/* ====================================================
   HENRRI SANDBOX TUTORIAL — styles.css
   Palette inspirée de l'identité Henrri :
   - Bleu profond  #1c3a5e (navy)
   - Bleu primaire #1976c9 (action)
   - Teal gradient #2ec4b6 → #5fd6a8
   - Accent orange #ff7a45 (rappel du trait sous le logo)
   ==================================================== */

:root {
  --navy:        #1c3a5e;
  --navy-dark:   #14293f;
  --navy-soft:   #2a4f7a;
  --blue:        #1976c9;
  --blue-dark:   #135aa1;
  --blue-light:  #e8f1fb;
  --teal:        #2ec4b6;
  --mint:        #5fd6a8;
  --accent:      #ff7a45;
  --accent-soft: #ffe8dc;

  --ink:         #1a2230;
  --ink-soft:    #4a5568;
  --muted:       #7a8699;
  --line:        #e3e8ef;
  --line-soft:   #eef2f7;
  --bg:          #f7f9fc;
  --bg-alt:      #ffffff;
  --bg-soft:     #f1f5fa;

  --shadow-sm: 0 1px 2px rgba(28,58,94,.06), 0 1px 3px rgba(28,58,94,.04);
  --shadow-md: 0 4px 12px rgba(28,58,94,.08), 0 2px 4px rgba(28,58,94,.04);
  --shadow-lg: 0 20px 40px -12px rgba(28,58,94,.18), 0 8px 16px -6px rgba(28,58,94,.08);
  --shadow-glow: 0 0 0 1px rgba(25,118,201,.12), 0 20px 50px -10px rgba(25,118,201,.25);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-dark); }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

code {
  background: var(--blue-light);
  color: var(--navy);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 500;
}

/* =================== HEADER =================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
  position: relative;
}
.nav a:hover { color: var(--navy); }
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 8px;
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: var(--navy-dark); transform: translateY(-1px); }

/* =================== HERO =================== */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(46,196,182,.14), transparent 60%),
    radial-gradient(900px 400px at 0% 10%, rgba(25,118,201,.10), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28,58,94,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,58,94,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center top, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue);
  background: var(--blue-light);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46,196,182,.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46,196,182,.2); }
  50%      { box-shadow: 0 0 0 6px rgba(46,196,182,.08); }
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--navy);
  text-wrap: balance;
}

.accent {
  background: linear-gradient(135deg, var(--teal) 0%, var(--mint) 50%, var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  white-space: nowrap;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 560px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(25,118,201,.32);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(25,118,201,.4);
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

.hero-meta {
  display: flex;
  gap: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta strong {
  font-size: 20px;
  color: var(--navy);
  font-weight: 800;
}
.hero-meta span {
  font-size: 13px;
  color: var(--muted);
}

/* Hero summary card */
.hero-summary {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-summary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 50%, var(--accent) 100%);
}

.summary-label {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 18px;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  transition: background .15s;
}
.summary-list li:hover {
  background: var(--bg-soft);
}

.sum-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  border-radius: 10px;
  flex-shrink: 0;
}

.summary-list strong {
  display: block;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}
.summary-list em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

/* =================== STEPPER =================== */
.stepper {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 68px;
  z-index: 50;
  overflow-x: auto;
}
.stepper-inner {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 16px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.stepper-inner::-webkit-scrollbar { display: none; }

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all .15s;
}
.step-chip span {
  display: inline-flex;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.step-chip:hover, .step-chip.active {
  background: var(--blue-light);
  color: var(--blue);
  border-color: rgba(25,118,201,.15);
}
.step-chip.active span {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* =================== STEP =================== */
.step {
  padding: 88px 0;
  position: relative;
}
.step--alt { background: #fff; }

.step-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.step-grid--reverse .step-copy { order: 2; }
.step-grid--reverse .step-media { order: 1; }

.step-num {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.step h2 {
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 20px;
  text-wrap: balance;
}

.step p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 560px;
}

.kbd {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--navy);
}
.kbd-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue-dark);
}

/* Media frame — styles the screenshots */
.step-media {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-media--stack {
  gap: 18px;
}

.media-frame {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
  position: relative;
}
.media-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(28,58,94,.25), 0 12px 20px -6px rgba(28,58,94,.10);
}
.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.media-frame--tight { max-width: 380px; }

.step-media figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Browser frame */
.browser-frame {
  padding: 0;
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #f3f5f9;
  border-bottom: 1px solid var(--line);
}
.b-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.b-dot--red    { background: #ff5f57; }
.b-dot--yellow { background: #febc2e; }
.b-dot--green  { background: #28c840; }
.browser-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
  padding: 5px 14px;
  border-radius: 100px;
  flex: 1;
  max-width: 320px;
}
.browser-frame img {
  border-radius: 0;
  display: block;
  width: 100%;
}

/* Callout boxes */
.callout {
  padding: 18px 20px;
  border-radius: 12px;
  margin-top: 20px;
  border-left: 3px solid;
  max-width: 560px;
}
.callout-title {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  font-size: 14.5px;
  letter-spacing: -0.005em;
}
.callout p {
  font-size: 14.5px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: none;
}

.callout-info {
  background: linear-gradient(135deg, rgba(46,196,182,.06), rgba(46,196,182,.02));
  border-left-color: var(--teal);
}
.callout-warn {
  background: #fff8ed;
  border-left-color: #f0a020;
}
.callout-warn .callout-title { color: #8a5a00; }
.callout-danger {
  background: #fff0eb;
  border-left-color: var(--accent);
}
.callout-danger .callout-title { color: #b2401c; }

.inline-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  max-width: 560px;
}
.bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 16px;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 16px;
  height: 16px;
  background: var(--blue-light);
  border-radius: 50%;
}
.bullets li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 15px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* Step critical — étape secret */
.step--critical {
  background: linear-gradient(180deg, #fff 0%, #fff5f0 100%);
  position: relative;
}
.step--critical::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
}

.critical-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.step-num--critical {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Action cards (copy / download / c'est noté) */
.actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
  max-width: 560px;
}

.action-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all .18s;
}
.action-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.action-icon {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--accent);
}
.action-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 6px;
}
.action-card p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  max-width: none;
}

/* Creds display (étape 5) */
.creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
  max-width: 560px;
}
.cred {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all .18s;
}
.cred:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}
.cred-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cred-value {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 8px;
  word-break: break-all;
}
.cred-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* =================== SANDBOX ACCESS =================== */
.sandbox-access {
  padding: 96px 0;
  background:
    radial-gradient(800px 400px at 10% 50%, rgba(46,196,182,.18), transparent 60%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 45%, #0f7a8a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sandbox-access::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.sandbox-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.sandbox-copy .step-num {
  background: rgba(255,255,255,.12);
  color: var(--mint);
}
.sandbox-copy h2 {
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
}
.sandbox-copy .accent {
  background: linear-gradient(135deg, var(--mint), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sandbox-copy p {
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 520px;
}
.sandbox-copy .btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.sandbox-copy .btn-primary:hover {
  background: var(--mint);
  color: var(--navy-dark);
}

.sandbox-media .media-frame {
  background: #fff;
  padding: 0;
}
.sandbox-media img {
  max-height: 500px;
  object-fit: cover;
  object-position: top;
}

/* =================== API CALL =================== */
.api-call {
  padding: 96px 0;
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin: 0 0 44px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 16px 0 14px;
}
.section-lede {
  font-size: 17.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Tabs */
.tabs {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.tab-bar {
  display: flex;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 8px 8px 0;
  gap: 4px;
}
.tab {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all .15s;
  position: relative;
  bottom: -1px;
}
.tab:hover { color: var(--navy); }
.tab.active {
  background: #0f1b2d;
  color: #fff;
}

.tab-panel {
  display: none;
  background: #0f1b2d;
}
.tab-panel.active { display: block; }

.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #0b1523;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.code-file {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
.copy-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}
.copy-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.copy-btn.copied {
  background: var(--mint);
  color: var(--navy-dark);
  border-color: var(--mint);
}

.tab-panel pre {
  margin: 0;
  padding: 24px 28px 28px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  color: #d8e0ea;
}
.tab-panel code { background: transparent; color: inherit; padding: 0; }

.c-cmt { color: #6b8299; font-style: italic; }
.c-str { color: #8ee0a7; }
.c-var { color: #ffb87a; }
.c-kw  { color: #7cc7ff; font-weight: 600; }
.c-fn  { color: #e58ef0; }

/* Endpoint pills (above tabs) */
.endpoints-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.endpoint-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f1b2d;
  padding: 8px 14px 8px 8px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.06);
}
.endpoint-pill code {
  background: transparent;
  color: #d8e0ea;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0;
  font-weight: 500;
}
.ep-method {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.ep-method--post { background: var(--accent); color: #fff; }
.ep-method--get  { background: var(--teal);   color: #fff; }

/* Response preview */
.response-preview {
  margin-top: 28px;
  background: #0f1b2d;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow-lg);
}
.response-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #0b1523;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.response-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(95,214,168,.2);
}
.response-title {
  color: rgba(255,255,255,.85);
  font-weight: 700;
}
.response-status {
  background: rgba(95,214,168,.15);
  color: var(--mint);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}
.response-endpoint {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.5);
}
.response-body {
  margin: 0;
  padding: 22px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #d8e0ea;
  overflow-x: auto;
}
.response-body code { background: transparent; color: inherit; padding: 0; }

/* Token facts */
.token-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.tf-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all .15s;
}
.tf-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.tf-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tf-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.tf-value span {
  font-weight: 500;
  color: var(--muted);
  font-size: 12.5px;
  margin-left: 4px;
}
.tf-scopes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tf-scopes span {
  background: var(--blue-light);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  margin: 0;
}

.api-docs-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  margin-top: 28px;
  background: var(--blue-light);
  border-radius: 14px;
  flex-wrap: wrap;
}
.api-docs-cta strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 3px;
}
.api-docs-cta span {
  font-size: 14px;
  color: var(--ink-soft);
}

/* =================== FAQ =================== */
.faq {
  padding: 96px 0;
  background: var(--bg);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: all .15s;
}
.faq-item:hover { border-color: rgba(25,118,201,.3); box-shadow: var(--shadow-sm); }
.faq-item[open] {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-weight: 300;
  font-size: 24px;
  color: var(--blue);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-body {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

/* =================== FINAL CTA =================== */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: 0.15;
}

.final-cta-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.final-cta h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.15;
}
.final-cta p {
  color: rgba(255,255,255,.75);
  margin: 0;
  font-size: 16.5px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =================== FOOTER =================== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.6);
  padding: 36px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  height: 32px;
  filter: brightness(1.2);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,.72);
  font-weight: 500;
}
.footer-links a:hover { color: #fff; }
.footer-legal {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--accent));
  width: 0%;
  z-index: 999;
  transition: width .1s;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
  .hero-inner,
  .step-grid,
  .sandbox-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .step-grid--reverse .step-copy { order: 1; }
  .step-grid--reverse .step-media { order: 2; }
  .hero { padding: 60px 0 48px; }
  .step, .sandbox-access, .api-call, .faq { padding: 60px 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; flex-wrap: wrap; }
  .actions-row, .creds { grid-template-columns: 1fr; }
  .token-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .token-facts { grid-template-columns: 1fr; }
  .endpoints-row { flex-direction: column; align-items: flex-start; }
  .response-endpoint { display: none; }
}

@media (max-width: 680px) {
  .nav a:not(.nav-cta) { display: none; }
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: 34px; }
  .lede { font-size: 16.5px; }
  .step h2, .sandbox-copy h2, .section-head h2 { font-size: 26px; }
  .hero-summary { padding: 22px; }
  .tab { padding: 10px 14px; font-size: 12.5px; }
  .tab-panel pre { font-size: 12px; padding: 18px; }
  .final-cta-inner { flex-direction: column; align-items: flex-start; }
}
