/* ============ Tokens ============ */
:root {
  --blue: #1D4ED8;
  --blue-dark: #1E40AF;
  --blue-soft: #EFF4FF;
  --ink: #0A0F1E;
  --ink-soft: #4B5563;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --ok: #16A34A;
  --warn: #D97706;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
}

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 { font-family: var(--font-display); font-weight: 600; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section-head { max-width: 46rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-lead {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 6px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--inverse { background: #fff; color: var(--blue); }
.btn--inverse:hover { background: var(--blue-soft); }
.btn--outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }
.btn--sm { padding: .5rem 1rem; font-size: .875rem; }
.btn--lg { padding: .9rem 1.75rem; font-size: 1.05rem; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; }
.nav__mark { width: 28px; height: 28px; color: var(--blue); }
.nav__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--blue);
}
.nav__links { display: flex; gap: .6rem; }

/* ============ Hero ============ */
.hero {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 8.5rem) var(--pad-x) clamp(4rem, 10vh, 7rem);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero__line { display: block; }
.hero__sub {
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.5rem; }

/* Frame-corner motif around a headline word */
.framed { position: relative; display: inline-block; padding: .04em .12em; color: var(--blue); }
.fc {
  position: absolute;
  width: .28em;
  height: .28em;
  border: 3px solid var(--blue);
  opacity: 0;
}
.fc--tl { top: -0.06em; left: -0.1em; border-right: 0; border-bottom: 0; }
.fc--tr { top: -0.06em; right: -0.1em; border-left: 0; border-bottom: 0; }
.fc--br { bottom: -0.02em; right: -0.1em; border-left: 0; border-top: 0; }
.fc--bl { bottom: -0.02em; left: -0.1em; border-right: 0; border-top: 0; }

/* ============ Platform strip ============ */
.platforms {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem var(--pad-x);
  text-align: center;
}
.platforms__label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
}
.platforms__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 3rem;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

/* ============ What we do ============ */
.what {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 7.5rem) var(--pad-x) 0;
}

.stagewrap { margin-top: 3.5rem; }
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.75rem;
  padding: 2.5rem 0 3rem;
}
.wave { width: min(52rem, 100%); }
.wave__meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.wave__meta svg { width: 1.25rem; height: 1.25rem; color: var(--blue); flex: none; }
.wave__time { margin-left: auto; color: var(--ink-soft); font-family: var(--font-body); font-weight: 500; font-size: .9rem; }
.wave__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 92px;
  padding: 0 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10, 15, 30, .06);
}
.wave__bar i { flex: 1 1 0; min-width: 2px; border-radius: 99px; background: var(--line); }

/* The viewfinder that scans the waveform (spawns from the nav logo) */
.wave__vf {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 0;
  width: 58px;
  pointer-events: none;
  will-change: transform;
}
.vfc { position: absolute; width: 16px; height: 16px; border: 3.5px solid var(--blue); }
.vfc--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.vfc--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.vfc--br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
.vfc--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.wave__flash { position: absolute; inset: 4px; border-radius: 10px; background: var(--blue); opacity: 0; }

.stage__clips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.9rem, 2.5vw, 1.75rem);
}
.clip {
  width: clamp(7.25rem, 19vw, 9.5rem);
  aspect-ratio: 9 / 15;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(10, 15, 30, .08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .85rem .8rem;
}
.clip__platform {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 99px;
  padding: .15rem .55rem;
}
.clip__play {
  width: 0; height: 0;
  margin: auto;
  border-left: 1.1rem solid var(--blue);
  border-top: .7rem solid transparent;
  border-bottom: .7rem solid transparent;
  opacity: .9;
}
.clip__caption { width: 100%; display: grid; gap: .35rem; margin-bottom: .6rem; }
.clip__caption i { display: block; height: .4rem; border-radius: 99px; background: var(--line); }
.clip__posted { font-size: .72rem; font-weight: 600; color: var(--ok); }

.what__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0 4.5rem;
  border-top: 1px solid var(--line);
}
.what__points h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.what__points p { color: var(--ink-soft); font-size: .95rem; }

/* ============ How it works ============ */
.how { background: linear-gradient(180deg, #FAFBFF 0%, #fff 100%); border-top: 1px solid var(--line); }
.how__pin {
  max-width: 62rem;
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 6rem) var(--pad-x);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.how__rail {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: min(22rem, 100%);
  margin: 2.5rem auto;
}
.how__node {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 700;
  transition: border-color .3s, color .3s, background .3s;
}
.how__node.is-active { border-color: var(--blue); color: var(--blue); }
.how__node.is-done { background: var(--blue); border-color: var(--blue); color: #fff; }
.how__track {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.how__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
}

.how__cards { display: grid; grid-template-columns: minmax(0, 1fr); }
.phase {
  grid-area: 1 / 1;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 18px 50px rgba(10, 15, 30, .07);
}
.phase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .9rem;
}
.phase__head h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.phase__tag {
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 99px;
  padding: .25rem .7rem;
}
.phase__copy { color: var(--ink-soft); max-width: 44rem; }

.phase__demo { margin-top: 1.75rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.approval {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem 1rem;
  background: #FCFCFD;
  position: relative;
}
.approval__name { flex: 1; min-width: 0; font-size: .9rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip {
  flex: none;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 99px;
  padding: .25rem .7rem;
}
.chip--ok { color: var(--ok); background: #EAF7EE; }
.chip--rev { color: var(--warn); background: #FEF3E2; }
/* row 3: the two chips stack in the same spot; GSAP crossfades them */
.approval .chip--rev + .chip--ok { position: absolute; right: 1rem; }

.phase__demo--toggle { justify-items: start; }
.toggle { display: flex; align-items: center; gap: .9rem; }
.toggle__track {
  flex: none;
  width: 3.4rem;
  height: 1.9rem;
  border-radius: 99px;
  background: var(--line);
  position: relative;
  transition: background .3s;
}
.toggle__knob {
  position: absolute;
  top: .2rem;
  left: .2rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(10, 15, 30, .25);
}
.toggle.is-on .toggle__track { background: var(--blue); }
.toggle__label { font-family: var(--font-display); font-weight: 600; }

/* ============ Scope ============ */
.scope {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(4.5rem, 10vh, 7rem) var(--pad-x);
}
.scope__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.scope__card {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
}
.scope__card--in { border-color: var(--blue); background: var(--blue-soft); }
.scope__card h3 { margin-bottom: 1rem; font-size: 1.15rem; }
.scope__card--in h3 { color: var(--blue); }
.scope__card ul { display: grid; gap: .65rem; }
.scope__card li { padding-left: 1.5rem; position: relative; font-size: .95rem; }
.scope__card--in li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.scope__card--out li::before { content: "—"; position: absolute; left: 0; color: var(--ink-soft); font-weight: 700; }
.scope__note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-soft);
}

/* ============ No lock-in ============ */
.lockin {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 9vh, 6.5rem) var(--pad-x);
  text-align: center;
}
.lockin p { max-width: 38rem; margin: 1.25rem auto 0; color: var(--ink-soft); }

/* ============ Final CTA ============ */
.cta {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: clamp(4.5rem, 11vh, 8rem) var(--pad-x);
}
.cta p { margin: 1.25rem auto 0; max-width: 34rem; color: rgba(255, 255, 255, .85); }
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-top: 2.25rem;
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--pad-x);
  text-align: center;
  font-size: .9rem;
  color: var(--ink-soft);
}
.footer a { color: var(--blue); }

/* ============ Scroll progress bar ============ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.progress__fill {
  display: block;
  height: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ============ Compact nav on scroll ============ */
.nav { transition: padding .25s ease, box-shadow .25s ease; }
.nav.is-scrolled {
  padding-top: .55rem;
  padding-bottom: .55rem;
  box-shadow: 0 6px 24px rgba(10, 15, 30, .06);
}

/* ============ Eyebrow frame corners ============ */
.eyebrow { position: relative; display: inline-block; padding: .35em .8em; }
.eyebrow::before,
.eyebrow::after {
  content: "";
  position: absolute;
  width: .6em;
  height: .6em;
  border: 2px solid var(--blue);
  opacity: 0;
  transition: opacity .4s ease .15s, transform .4s ease .15s;
}
.eyebrow::before { top: 0; left: 0; border-right: 0; border-bottom: 0; transform: translate(-6px, -6px); }
.eyebrow::after { bottom: 0; right: 0; border-left: 0; border-top: 0; transform: translate(6px, 6px); }
.eyebrow.is-in::before,
.eyebrow.is-in::after { opacity: 1; transform: translate(0, 0); }

/* ============ FAQ ============ */
.faq { max-width: 46rem; margin: 0 auto; padding: clamp(4.5rem, 10vh, 7rem) var(--pad-x); }
.faq__list { margin-top: 2.5rem; display: grid; gap: .9rem; }
.faq__item {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .25s ease;
}
.faq__item[open] { border-color: var(--blue); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue);
  transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 1.35rem 1.15rem; color: var(--ink-soft); font-size: .95rem; overflow: hidden; }

/* ============ Responsive ============ */
@media (max-width: 767px) {
  .what__points { grid-template-columns: 1fr; gap: 1.75rem; }
  .scope__grid { grid-template-columns: 1fr; }
  .how__pin { min-height: 0; }
  .wave__bar { height: 64px; padding: 0 10px; gap: 2px; }
  .wave__vf { width: 46px; top: -8px; bottom: -8px; }
  .vfc { width: 12px; height: 12px; border-width: 3px; }
}

/* ============ Motion safety ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
