/* ===================================================================
   ENVOYAI — Transforming Every Industry
   Visual system: precision minimalism (Vercel-inspired)
   true-black canvas · hairline borders · inverted primary buttons
   =================================================================== */

:root {
  /* surfaces */
  --bg:        #000000;
  --bg-2:      #050505;
  --card:      #0a0a0a;
  --card-2:    #111111;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --line-3:    rgba(255,255,255,.24);

  /* type */
  --ink:       #ededed;
  --ink-soft:  #a1a1a1;
  --ink-mute:  #6f6f6f;

  /* accent — used sparingly, the way a monochrome system should */
  --accent:    #F38F1B;
  --accent-dim:#c2721f;
  --accent-2:  #7c3aed;

  /* legacy aliases kept so markup/JS hooks stay valid */
  --pink:      #F38F1B;
  --orange:    #F38F1B;
  --magenta:   #c2721f;
  --purple:    #7c3aed;
  --purple-2:  #a855f7;

  --grad-pink:   linear-gradient(180deg, #F38F1B, #d97b12);
  --grad-purple: linear-gradient(180deg, #a855f7, #7c3aed);
  --grad-brand:  linear-gradient(180deg, #F38F1B 0%, #d97b12 100%);
  /* Vercel's signature: white text fading to grey */
  --grad-sheen:  linear-gradient(180deg, #fff 30%, rgba(255,255,255,.62) 100%);

  --radius:    12px;
  --radius-sm: 8px;
  --maxw:      1100px;

  /* mutated at runtime by the ecosystem panels */
  --scene-a:   #141414;
  --scene-b:   #000000;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
::selection { background: rgba(243,143,27,.28); color: #fff; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

em { font-style: normal; }
strong { color: #fff; font-weight: 500; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.045em;
  background: var(--grad-sheen);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 em, h2 em, h3 em {
  background: none; -webkit-text-fill-color: var(--accent); color: var(--accent);
}

/* small caps label above a section title */
.kicker {
  display: inline-block;
  color: var(--ink-soft);
  font-size: .8125rem; font-weight: 400; letter-spacing: -.01em;
  text-transform: none;
  margin-bottom: 1rem;
}
.kicker::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  margin-right: .6rem; margin-top: -2px;
}
.kicker--center { text-align: center; }

/* the mark standing in for a section label */
.section__mark { height: 44px; width: auto; display: block; margin: 0 auto 1.1rem; opacity: .95; }

/* a glyph standing in for a section label */
.section__icon {
  width: 40px; height: 40px; display: block; margin: 0 auto 1.1rem;
  fill: none; stroke: var(--accent); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ===================== NAV ===================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 1.5rem); height: 64px;
  background: rgba(0,0,0,.6);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-solid { border-bottom-color: var(--line); background: rgba(0,0,0,.8); }
.nav__brand { display: inline-flex; align-items: center; text-decoration: none; }
/* horizontal lockup, ~4.34:1 — height drives the width */
.nav__logo { height: 30px; width: auto; display: block; }
@media (max-width: 720px){ .nav__logo { height: 26px; } }

.nav__links { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); }
.nav__links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: .875rem; font-weight: 400; letter-spacing: -.01em;
  transition: color .15s ease;
}
.nav__links a:hover { color: #fff; }

/* inverted primary — the signature move */
.nav__cta {
  background: #fff; color: #000 !important;
  padding: .4rem .875rem; border-radius: var(--radius-sm);
  font-weight: 500 !important; font-size: .875rem;
  transition: background .15s ease;
}
.nav__cta:hover { background: #d4d4d4; }
@media (max-width: 720px){ .nav__links a:not(.nav__cta){ display: none; } }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  padding: 8rem 0 clamp(3rem, 8vh, 5.5rem);
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero__scene {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg);
}
/* fine technical grid + a single soft glow — no colour wash */
.hero__scene::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 0%, transparent 78%);
          mask-image: radial-gradient(80% 70% at 60% 40%, #000 0%, transparent 78%);
}
.hero__scene.has-img::after { display: none; }

.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    /* weight sits under the copy at the foot of the frame */
    linear-gradient(to top, rgba(0,0,0,.97) 0%, rgba(0,0,0,.9) 18%, rgba(0,0,0,.6) 40%,
                    rgba(0,0,0,.24) 60%, rgba(0,0,0,0) 82%),
    /* just enough at the head to keep the nav legible */
    linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,.15) 14%, transparent 26%);
}

.hero__inner {
  position: relative; z-index: 2; text-align: center;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

.hero__title {
  font-size: clamp(2rem, 5.6vw, 4.5rem);
  letter-spacing: -.055em; margin-bottom: 1.25rem;
}
.hero__lead {
  color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 540px; margin: 0 auto; line-height: 1.6;
}

/* scroll hint — centred, barely there, and only once the reader has
   settled for a few seconds without moving */
.scrollcue {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 40; pointer-events: none;
  width: 30px; color: #fff;
  opacity: 0; transition: opacity 1.4s ease;
}
.scrollcue svg { display: block; width: 100%; height: auto; }
.scrollcue.is-shown { opacity: .16; }

@media (prefers-reduced-motion: reduce){ .scrollcue { display: none; } }

/* ===================== SECTION SHELL ===================== */
.section {
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 5vw, 2rem);
  max-width: var(--maxw); margin: 0 auto;
}
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2, .demo__inner h2 {
  font-size: clamp(1.875rem, 4.5vw, 3rem); letter-spacing: -.05em;
}
.section__sub {
  color: var(--ink-soft); font-size: 1rem; line-height: 1.65; margin-top: 1rem;
}
.section__sub--center { max-width: 560px; margin-left: auto; margin-right: auto; text-align: center; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===================== ECOSYSTEM — SCROLL EXPAND ===================== */
.expand { position: relative; height: 1000vh; background: var(--bg); }
.expand__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg); }
@media (max-width: 820px){ .expand { height: 820vh; } }

.expand__overview {
  position: absolute; inset: 0; z-index: 12; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center; padding: clamp(5rem, 13vh, 9rem) 1.5rem clamp(1.75rem, 5vh, 3.5rem);
}
.expand__overview h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); letter-spacing: -.05em; }
.expand__overview p {
  max-width: 580px; color: var(--ink-soft); font-size: clamp(.9375rem, 2vw, 1.0625rem);
  line-height: 1.65;
}

.expand__hint {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 12;
  color: var(--ink-mute); font-size: .8125rem; letter-spacing: -.01em; text-transform: none;
}

/* the tracking wheel — monochrome circles, active node in accent.
   Every node is a shortcut: click to jump straight to that component. */
.wheel {
  position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; z-index: 13;
  transform: translate(-50%, -50%);
  pointer-events: none;   /* only the nodes and core are targets, not the empty box */
}
.wnode, .wheel__core { pointer-events: auto; }
.wheel__ring { position: absolute; inset: 0; }

.wnode {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  padding: 0; background: none; border: 0; cursor: pointer;
}
.wnode__inner { position: relative; display: grid; place-items: center; width: 52px; height: 52px; }
.wnode__badge {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-soft); background: #0d0d0d; border: 1px solid var(--line-2);
  transition: all .3s ease;
}
.wnode__badge svg { width: 44%; height: 44%; }
.wnode:hover .wnode__badge { color: #fff; border-color: var(--line-3); background: #161616; }
.wnode:focus-visible { outline: none; }
.wnode:focus-visible .wnode__badge { box-shadow: 0 0 0 3px rgba(243,143,27,.55); }
.wnode.is-active .wnode__badge {
  color: #000; background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(243,143,27,.14), 0 8px 24px rgba(243,143,27,.28);
}

.wheel__core {
  position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: #0a0a0a; border: 1px solid var(--line-2);
  display: grid; place-items: center; cursor: pointer; transition: all .25s ease;
}
.wheel__core:hover { border-color: var(--line-3); background: #131313; }
.wheel__core:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(243,143,27,.55); }
.wheel__core svg { width: 38%; height: 38%; color: #fff; }

/* expanding chapter panels */
.panels { position: absolute; inset: 0; }
.panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 300px; height: 300px; overflow: hidden; will-change: width, height;
  box-shadow: 0 30px 90px -20px rgba(0,0,0,.9);
}
.panel__media {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-image: linear-gradient(160deg, #161616, #050505);
  will-change: transform;
}
.panel__info {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.88) 100%);
}
/* same glyph as the component's node on the wheel, framed so it holds
   against a photographic background */
.panel__icon {
  width: clamp(52px, 8vw, 68px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.panel__icon svg { width: 46%; height: 46%; color: var(--accent); }
.panel__info h3 {
  font-size: clamp(1.875rem, 6.5vw, 4rem); letter-spacing: -.05em;
  -webkit-text-fill-color: #fff; color: #fff; background: none;
}
.panel__info p {
  max-width: 600px; color: var(--accent); font-weight: 400;
  font-size: clamp(.9375rem, 2vw, 1.0625rem); line-height: 1.6;
}
.panel__pts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .25rem; }
.panel__pts span {
  border: 1px solid var(--line-2); border-radius: 999px; padding: .35rem .875rem;
  font-size: .75rem; font-weight: 400; color: var(--ink); letter-spacing: -.01em;
  background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
}

/* ===================== WHY ENVOYAI ===================== */
.diff__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 820px){ .diff__grid { grid-template-columns: 1fr; } }

.diff__card {
  background: var(--bg); padding: 2rem 1.75rem;
  transition: background .2s ease;
}
.diff__card:hover { background: var(--card); }
.diff__card h3 {
  font-size: 1rem; font-weight: 500; letter-spacing: -.02em; margin: 1.25rem 0 .5rem;
  -webkit-text-fill-color: #fff; color: #fff; background: none;
}
.diff__card p { color: var(--ink-soft); font-size: .9375rem; line-height: 1.6; }

.diff__icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: #101010; border: 1px solid var(--line-2); color: var(--ink);
}
.diff__icon svg { width: 50%; height: 50%; }
.diff__icon--pink { color: var(--accent); }
.diff__icon--purple { color: var(--ink); }

/* ===================== STUDENT JOURNEY — scroll-driven tier curve =====================
   Height sets the pace: one viewport of scroll per tier gives a reader
   roughly two seconds on each before the next takes over. */
.journey { position: relative; height: 490vh; }
.journey__stage {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vh, 2rem); padding: 5rem clamp(1rem, 5vw, 2rem) 3rem;
  --tier: #8a8a8a;                       /* set per tier by script.js */
}
@media (max-width: 820px){ .journey { height: 420vh; } }

.journey__head { text-align: center; }
.journey__head h2 { font-size: clamp(1.875rem, 4.5vw, 3rem); letter-spacing: -.05em; }

.journey__chart { position: relative; width: 100%; max-width: 760px; }
.jc { display: block; width: 100%; height: auto; overflow: visible; }

.jc__grid { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.jc__base { stroke: var(--line-2); stroke-width: 1; }
.jc__area { fill: url(#jcFill); }

.jc__line {
  fill: none; stroke: var(--tier); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .8s ease;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--tier) 45%, transparent));
}

/* the head rides the curve at the current scroll position */
.jc__head {
  fill: var(--tier); stroke: #000; stroke-width: 2;
  transition: fill .8s ease, opacity .3s ease;
  filter: drop-shadow(0 0 12px var(--tier));
}

.jc__drop { stroke: rgba(255,255,255,.10); stroke-width: 1; opacity: 0; transition: opacity .5s ease; }
.jc__drop.is-on { opacity: 1; }

.jc__dot {
  fill: #0a0a0a; stroke: var(--line-3); stroke-width: 2.5;
  transform-box: fill-box; transform-origin: center; transform: scale(.55);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), stroke .6s ease, fill .6s ease;
}
.jc__dot.is-on { stroke: var(--tier); transform: scale(1); }

.jc__labels { position: relative; height: 2rem; margin-top: .25rem; }
.jc__label {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: .8125rem; color: var(--ink-mute); white-space: nowrap;
  opacity: .45; transition: opacity .4s ease, color .5s ease;
}
.jc__label.is-on { opacity: 1; color: var(--ink-soft); }
.jc__label.is-current { color: #fff; }

/* current tier, called out under the chart */
.journey__readout {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  text-align: center; min-height: 5.5rem;
}
.jr__idx { font-size: .75rem; color: var(--ink-mute); letter-spacing: .08em; }
.jr__name {
  font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 600; letter-spacing: -.04em;
  color: var(--tier); transition: color .8s ease;
}
.jr__name.is-swap { animation: tierSwap .55s cubic-bezier(.16,1,.3,1); }
@keyframes tierSwap {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.jr__desc { color: var(--ink-soft); font-size: .9375rem; max-width: 420px; }

@media (max-width: 560px){ .jc__label { font-size: .625rem; } }

/* ===================== PARTNERSHIP ===================== */
.partner__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  align-items: stretch; margin-top: 1rem;
}
@media (max-width: 860px){ .partner__grid { grid-template-columns: 1fr; max-width: 400px; margin: 1rem auto 0; } }

.pcard {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 1.75rem 1.5rem;
  transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .2s ease,
              background .2s ease, box-shadow .25s ease;
}
.pcard:hover {
  transform: translateY(-6px);
  border-color: var(--line-2); background: var(--card-2);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.9);
}

/* ascending weight across the three tiers — entry, recommended, top */
.pcard--silver { background: #080808; }
.pcard--gold { border-color: var(--line-3); background: #0f0f0f; }
.pcard--gold:hover {
  border-color: rgba(243,143,27,.5);
  box-shadow: 0 18px 46px -18px rgba(243,143,27,.32);
}
.pcard--plat { background: #0f0f0f; }
.pcard--plat .pcard__tier {
  background: var(--grad-sheen); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.pcard__badge {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(243,143,27,.12); color: var(--accent);
  border: 1px solid rgba(243,143,27,.3);
  font-size: .6875rem; font-weight: 400; letter-spacing: -.01em;
  padding: .2rem .55rem; border-radius: 999px; white-space: nowrap;
}

.pcard__tier {
  font-weight: 500; font-size: 1.0625rem; letter-spacing: -.02em; text-transform: none;
  -webkit-text-fill-color: #fff; color: #fff; background: none;
}
.pcard--gold .pcard__tier { -webkit-text-fill-color: var(--accent); color: var(--accent); }
.pcard__tag {
  color: var(--ink-mute); font-size: .875rem; margin: .25rem 0 1.25rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.pcard ul { list-style: none; display: grid; gap: .625rem; flex: 1; align-content: start; }
.pcard li { color: var(--ink-soft); font-size: .9375rem; padding-left: 1.5rem; position: relative; }
.pcard li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 14px; height: 8px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) scale(.72); transform-origin: center;
}
.pcard li strong { color: #fff; font-weight: 500; }

.pcard__cta {
  margin-top: 1.5rem; text-align: center; text-decoration: none;
  font-weight: 500; font-size: .875rem; letter-spacing: -.01em;
  padding: .5625rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pcard__cta:hover { border-color: var(--line-3); background: rgba(255,255,255,.04); color: #fff; }
.pcard__cta--solid { background: #fff; border-color: #fff; color: #000; }
.pcard__cta--solid:hover { background: #d4d4d4; border-color: #d4d4d4; color: #000; }

/* ===================== BEYOND EDUCATION — rotating showcase ===================== */
.reach { text-align: center; }
.reach__frame {
  position: relative; max-width: 880px; margin: 2.5rem auto 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  aspect-ratio: 16 / 8.5; background: var(--card);
}
.reach__media-stack { position: absolute; inset: 0; }
.reach__media {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.05);
  transition: opacity 1s ease, transform 4s ease-out;
}
.reach__media.is-active { opacity: 1; transform: scale(1); }
.reach__media:nth-child(1) { background-color: #0d0d0d; }
.reach__media:nth-child(2) { background-color: #111; }
.reach__media:nth-child(3) { background-color: #0d0d0d; }
.reach__media:nth-child(4) { background-color: #111; }

.reach__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.4) 52%, rgba(0,0,0,.1) 100%);
}

.reach__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: clamp(1.25rem, 4vw, 2rem); text-align: left;
}
.reach__label {
  display: block; font-weight: 600; letter-spacing: -.04em; color: #fff;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem); margin-bottom: .35rem;
  transition: opacity .3s ease;
}
.reach__lead {
  color: var(--ink-soft); max-width: 500px; font-size: clamp(.8125rem, 1.9vw, .9375rem);
  line-height: 1.6; transition: opacity .3s ease;
}

.reach__dots {
  position: absolute; top: clamp(1rem, 3vw, 1.25rem); right: clamp(1rem, 3vw, 1.25rem);
  z-index: 2; display: flex; gap: .375rem;
}
.reach__dot {
  width: 6px; height: 6px; padding: 0; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.28); transition: all .3s ease;
}
.reach__dot:hover { background: rgba(255,255,255,.5); }
.reach__dot.is-active { width: 20px; background: var(--accent); }

.reach__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); color: var(--ink); cursor: pointer;
  transition: all .15s ease;
}
.reach__arrow svg { width: 16px; height: 16px; }
.reach__arrow:hover { background: #fff; border-color: #fff; color: #000; }
.reach__arrow--prev { left: clamp(.6rem, 2.4vw, 1rem); }
.reach__arrow--next { right: clamp(.6rem, 2.4vw, 1rem); }
@media (max-width: 560px){ .reach__arrow { width: 30px; height: 30px; } }

/* ===================== DEMO / CTA ===================== */
.demo { text-align: center; position: relative; overflow: clip; }
.demo::before {
  content: ""; position: absolute; left: 50%; top: 20%; transform: translateX(-50%);
  width: min(680px, 90vw); height: 240px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(243,143,27,.10), transparent 72%);
}
.demo__inner { position: relative; max-width: 620px; margin: 0 auto; }
.demo__actions { display: flex; gap: .625rem; justify-content: center; flex-wrap: wrap; margin: 2rem 0 1.25rem; }

.btn {
  text-decoration: none; padding: .625rem 1.125rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: .875rem; letter-spacing: -.011em;
  display: inline-block; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
button.btn { font-family: inherit; }
.btn--primary { background: #fff; color: #000; border-color: #fff; }
.btn--primary:hover { background: #d4d4d4; border-color: #d4d4d4; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,.04); color: #fff; }


/* ===================== REQUEST DOCUMENTATION MODAL ===================== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; visibility: hidden; opacity: 0;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.modal.is-open { visibility: visible; opacity: 1; transition: opacity .2s ease; }
.modal__veil { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }

.modal__dialog {
  position: relative; z-index: 1; width: min(480px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: 0 20px 70px -20px rgba(0,0,0,.9);
  transform: translateY(8px) scale(.99); transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.modal.is-open .modal__dialog { transform: none; }

.modal__close {
  position: absolute; top: 1rem; right: 1rem; width: 30px; height: 30px; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: transparent; border: 1px solid var(--line);
  color: var(--ink-mute); cursor: pointer; transition: all .15s ease;
}
.modal__close:hover { color: #fff; border-color: var(--line-3); background: rgba(255,255,255,.04); }
.modal__close svg { width: 14px; height: 14px; }

#docsModalTitle {
  font-size: 1.25rem; letter-spacing: -.03em; padding-right: 2rem;
  -webkit-text-fill-color: #fff; color: #fff; background: none;
}
.modal__sub { color: var(--ink-soft); font-size: .875rem; margin: .5rem 0 1.5rem; line-height: 1.6; }

.docs-form { display: grid; gap: .875rem; }
.docs-form label { display: grid; gap: .375rem; font-size: .8125rem; color: var(--ink-soft); font-weight: 400; }
.docs-form input,
.docs-form select,
.docs-form textarea {
  font: inherit; font-size: .875rem; color: var(--ink);
  background: #000; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .5625rem .75rem; transition: border-color .15s ease;
}
.docs-form input::placeholder, .docs-form textarea::placeholder { color: var(--ink-mute); }
.docs-form input:focus,
.docs-form select:focus,
.docs-form textarea:focus { outline: none; border-color: var(--line-3); }
.docs-form textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.docs-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6f6f' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 15px;
  padding-right: 2.25rem;
}
.docs-form select option { background: #0a0a0a; color: var(--ink); }

.docs-form__submit { margin-top: .25rem; width: 100%; }
.docs-form__submit:disabled { opacity: .55; cursor: default; }
.docs-form__status { font-size: .8125rem; min-height: 1.2em; text-align: center; color: var(--ink-mute); }
.docs-form__status[data-state="ok"]  { color: #4ade80; }
.docs-form__status[data-state="err"] { color: #f87171; }

/* ===================== FOOTER ===================== */
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 2rem); border-top: 1px solid var(--line);
  color: var(--ink-mute); font-size: .8125rem; letter-spacing: -.01em;
}
.foot__brand { display: flex; align-items: center; gap: .75rem; }
.foot__brand img { height: 26px; width: auto; opacity: .75; }
.foot__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.foot__meta a { color: var(--ink-soft); text-decoration: none; transition: color .15s ease; }
.foot__meta a:hover { color: #fff; }
@media (max-width: 640px){ .foot__meta { align-items: flex-start; } }

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
