/* ============================================================
   GALAGU LANDING PAGE — STYLES
   Fonts: DM Serif Display (headlines) + DM Sans (body/UI)
   Tokens derived from Galagu Design System (reference only)
   ============================================================ */

/* --- 1. Custom properties --------------------------------- */
:root {
  /* Brand */
  --red-500:  #E2131D;
  --red-600:  #C8101A;
  --red-400:  #EE3B43;
  --red-100:  #FFECED;

  /* Text — contrast-checked against white and surface-app */
  --ink-900:  #0A0A0A;   /* headings */
  --ink-700:  #1A1A1A;   /* strong body */
  --ink-500:  #5C5C60;   /* body text — 5.8:1 on white ✓ AA */
  --ink-300:  #999999;   /* decorative only — do not use for readable text */
  --hairline: #E8E8EC;

  /* Surfaces */
  --white:        #FFFFFF;
  --surface-app:  #F5F5F8;
  --ink-night:    #0E0E10;
  --night-panel:  #1C1C1E;

  /* Accent pairs (badges and status chips only) */
  --accent-teal:   #2E8B6F;  --tint-teal:   #E0F5EE;
  --accent-gold:   #8A6E28;  --tint-gold:   #F5EFC8;
  --accent-purple: #6318A8;  --tint-purple: #F0ECFB;
  --accent-blue:   #0A7EB5;  --tint-blue:   #D8F0FB;
  --tint-rose:     #FFECED;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-ui:      'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10,10,16,.06);
  --shadow-md: 0 8px 24px rgba(10,10,16,.10);
  --shadow-lg: 0 20px 60px rgba(10,10,16,.18);

  /* Motion */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --ease:     cubic-bezier(.4,0,.2,1);
}

/* --- 2. Reset -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-ui); }
p      { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* --- 3. Utilities ---------------------------------------- */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-300);
  display: block;
}

.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-family: var(--font-ui);
  font-size: 38px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink-900);
  text-wrap: balance;
}

.section-head p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-500);
  margin-top: 14px;
}

/* --- 4. Buttons ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-ui);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.01em;
}

.btn:active { transform: scale(0.985); }
.btn:focus-visible { outline: 3px solid rgba(226,19,29,.4); outline-offset: 2px; }

.btn--primary { background: var(--red-500); color: #fff; }
.btn--primary:hover { background: var(--red-600); }

.btn--sm  { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn--lg  { height: 54px; padding: 0 28px; font-size: 16px; font-weight: 600; }

.btn--white { background: #fff; color: var(--ink-900); }
.btn--white:hover { background: rgba(255,255,255,.88); }

/* Text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-500);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  letter-spacing: -0.01em;
}

.text-link:hover { color: var(--ink-900); border-color: var(--ink-500); }
.text-link--lg { font-size: 16px; }

/* --- 5. Nav ---------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0);
  backdrop-filter: saturate(180%) blur(0px);
  -webkit-backdrop-filter: saturate(180%) blur(0px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom-color: var(--hairline);
}

/* Scroll progress bar */
.nav__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red-500);
  transition: width 0.1s linear;
  transform-origin: left;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Entrance animation */
.nav__logo,
.nav__actions {
  opacity: 0;
  transform: translateY(-6px);
  animation: nav-in 0.5s var(--ease) forwards;
}

.nav__actions { animation-delay: 0.08s; }

@keyframes nav-in {
  to { opacity: 1; transform: translateY(0); }
}

.nav__logo img { height: 24px; display: block; }
.nav__actions  { display: flex; align-items: center; gap: 10px; }

/* --- 6. Hero --------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 112px;
  background: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #f0f0f5 0%, transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__copy { max-width: 720px; }

/* Hero entrance — staggered fade-up */
.hero .eyebrow,
.hero__copy h1,
.hero__copy .sub,
.hero__cta-row {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.65s var(--ease) forwards;
}

.hero .eyebrow      { animation-delay: 0.15s; }
.hero__copy h1      { animation-delay: 0.28s; }
.hero__copy .sub    { animation-delay: 0.40s; }
.hero__cta-row      { animation-delay: 0.52s; }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero__copy h1 {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero__copy h1 em {
  font-style: italic;
  color: var(--red-500);
}

.hero__copy .sub {
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink-500);
  font-weight: 400;
  margin-bottom: 36px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* --- 7. Stat bar ----------------------------------------- */
.stat-bar {
  padding: 72px 0 60px;
  background: var(--surface-app);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stat-bar__inner {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 24px;
}

.stat-bar__item {
  text-align: center;
  padding: 0 40px;
}

.stat-bar__number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 12px;
}

.stat-bar__label {
  font-size: 14px;
  color: var(--ink-500);
  font-weight: 400;
  line-height: 1.55;
  max-width: 18ch;
  margin: 0 auto;
}

.stat-bar__divider {
  width: 1px;
  height: 60px;
  background: var(--hairline);
}

.stat-bar__disclaimer {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-300);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* --- 8. Ticker ------------------------------------------- */
.ticker {
  border-bottom: 1px solid var(--hairline);
  background: var(--white);
  padding: 14px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-500);
  white-space: nowrap;
  padding: 0 32px;
  letter-spacing: 0.01em;
}

.ticker__item + .ticker__item { border-left: 1px solid var(--hairline); }

.ticker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ticker__dot--teal   { background: var(--accent-teal); }
.ticker__dot--gold   { background: var(--accent-gold); }
.ticker__dot--blue   { background: var(--accent-blue); }
.ticker__dot--red    { background: var(--red-500); }
.ticker__dot--purple { background: var(--accent-purple); }

/* --- 9. Positioning — 2-col sticky layout ---------------- */
.positioning {
  padding: 104px 0;
  background: var(--surface-app);
}

.positioning__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.positioning__headline h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  text-wrap: balance;
  position: sticky;
  top: 88px;
}

.positioning__body p {
  font-size: 18px;
  line-height: 1.74;
  color: var(--ink-500);
  font-weight: 400;
  margin-bottom: 20px;
}

.positioning__body p:last-child { margin-bottom: 0; }

/* --- 10. Flow diagram — single card crossfade ------------ */

.flow-scroller {
  position: relative;
  height: 500vh;
}

.flow {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.flow__stage {
  width: 100%;
  max-width: 600px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Top bar */
.flow__topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.flow__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-300);
}

.flow__counter {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-300);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}

/* Progress bar */
.flow__bar {
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.flow__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--ink-900);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step dots */
.flow__dots {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}

.flow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline);
  transition: background 0.4s ease, transform 0.4s ease;
  flex-shrink: 0;
}

.flow__dot.is-active         { background: var(--ink-900); transform: scale(1.3); }
.flow__dot--problem.is-active{ background: var(--ink-500); }
.flow__dot--galagu.is-active { background: var(--red-500); box-shadow: 0 0 0 3px rgba(226,19,29,.15); }
.flow__dot--outcome.is-active{ background: var(--accent-teal); }

/* Card wrap — fixed height so crossfade doesn't shift layout */
.flow__card-wrap {
  position: relative;
  min-height: 260px;
}

/* Each panel — absolutely stacked, crossfades */
.flow__panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1), transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

.flow__panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.flow__panel-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: 16px;
}

.flow__panel-eyebrow--problem { color: var(--ink-500); }
.flow__panel-eyebrow--galagu  { color: var(--red-500); }
.flow__panel-eyebrow--outcome { color: var(--accent-teal); }

.flow__panel-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--ink-900);
  margin-bottom: 20px;
  text-wrap: balance;
}

.flow__panel--problem .flow__panel-title { color: var(--ink-500); }
.flow__panel--galagu  .flow__panel-title { color: var(--red-500); }
.flow__panel--outcome .flow__panel-title { color: var(--accent-teal); }

.flow__panel-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-500);
  font-weight: 400;
  margin-bottom: 24px;
  max-width: 52ch;
}

.flow__panel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flow__chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--surface-app);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 5px 14px;
}

.flow__chip--muted {
  color: var(--ink-300);
  text-decoration: line-through;
  background: transparent;
}

.flow__chip--galagu {
  color: var(--red-500);
  background: var(--tint-rose);
  border-color: rgba(226,19,29,.18);
}

.flow__chip--outcome {
  color: var(--accent-teal);
  background: var(--tint-teal);
  border-color: rgba(46,139,111,.2);
}

/* --- 11. Layer diagram ----------------------------------- */
.layer-diagram {
  padding: 104px 0;
  background: var(--surface-app);
}

.layer-diagram__stack {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Stagger-in animation */
.layer-diagram__stack .layer,
.layer-diagram__stack .layer__connector {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.layer-diagram__stack.is-visible .layer:nth-child(1)           { opacity: 1; transform: none; transition-delay: 0.05s; }
.layer-diagram__stack.is-visible .layer__connector:nth-child(2){ opacity: 1; transform: none; transition-delay: 0.20s; }
.layer-diagram__stack.is-visible .layer:nth-child(3)           { opacity: 1; transform: none; transition-delay: 0.35s; }
.layer-diagram__stack.is-visible .layer__connector:nth-child(4){ opacity: 1; transform: none; transition-delay: 0.50s; }
.layer-diagram__stack.is-visible .layer:nth-child(5)           { opacity: 1; transform: none; transition-delay: 0.65s; }

.layer {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.layer__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 14px;
}

.layer__label--galagu { color: var(--red-500); }

.layer__inner { display: flex; flex-direction: column; gap: 10px; }

.layer__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.layer__chip {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-700);
  background: var(--surface-app);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 4px 10px;
}

.layer__chip--galagu {
  color: var(--red-500);
  background: var(--tint-rose);
  border-color: rgba(226,19,29,.18);
}

.layer__desc {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 400;
  line-height: 1.5;
}

.layer--galagu {
  border-left: 3px solid var(--red-500);
  box-shadow: var(--shadow-sm);
}

.layer__connector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.layer__connector-line {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.layer__connector-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
}

/* --- 12. Outcomes (three points) ------------------------- */
.outcomes { padding: 96px 0; background: var(--white); }

.outcomes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.outcomes__item {
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-app);
}

.outcomes__item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.outcomes__item p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.62;
  font-weight: 400;
}

/* --- 13. Pilot CTA — dark full-width --------------------- */
.pilot {
  position: relative;
  padding: 120px 0 112px;
  background: var(--ink-night);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* Animated background layer */
.pilot__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Dot grid */
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

.pilot__bg::before,
.pilot__bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: pilot-pulse 7s ease-in-out infinite alternate;
}

.pilot__bg::before {
  width: 600px; height: 400px;
  top: -80px; left: -100px;
  background: rgba(226,19,29,.16);
  animation-delay: 0s;
}

.pilot__bg::after {
  width: 500px; height: 360px;
  bottom: -60px; right: -80px;
  background: rgba(226,19,29,.10);
  animation-delay: -3.5s;
}

@keyframes pilot-pulse {
  from { opacity: 0.5; transform: scale(1);   }
  to   { opacity: 1;   transform: scale(1.15); }
}

.pilot__wrap { position: relative; z-index: 1; }

.pilot__header {
  max-width: 680px;
  margin: 0 auto 64px;
}

.pilot__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 20px;
  display: block;
}

.pilot__headline {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 auto 24px;
  text-wrap: balance;
}

.pilot__sub {
  font-size: 17px;
  color: rgba(255,255,255,.6);
  line-height: 1.72;
  font-weight: 400;
  max-width: 52ch;
  margin: 0 auto;
}

/* Three feature cards */
.pilot__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 48px;
}

.pilot__feature {
  background: rgba(255,255,255,.04);
  padding: 32px 28px;
  text-align: left;
  transition: background 0.2s ease;
}

.pilot__feature:hover { background: rgba(255,255,255,.07); }

.pilot__feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(226,19,29,.18);
  border: 1px solid rgba(226,19,29,.25);
  color: var(--red-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pilot__feature h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.pilot__feature p {
  font-size: 13.5px;
  color: rgba(255,255,255,.52);
  line-height: 1.62;
  font-weight: 400;
}

/* Availability bar */
.pilot__avail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto 44px;
}

.pilot__avail-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 3px;
  overflow: hidden;
}

.pilot__avail-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red-500), var(--red-400));
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pilot__avail-label {
  font-size: 11.5px;
  color: rgba(255,255,255,.38);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.pilot__cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Pilot reveal animations */
.pilot-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.pilot-reveal.is-visible          { opacity: 1; transform: translateY(0); }
.pilot-reveal--delay.is-visible   { transition-delay: 0.12s; }
.pilot-reveal--delay2.is-visible  { transition-delay: 0.22s; }
.pilot-reveal--delay3.is-visible  { transition-delay: 0.32s; }

/* --- 14. Footer ------------------------------------------ */
.footer {
  background: var(--ink-night);
  color: rgba(255,255,255,.55);
  padding: 64px 0 36px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand img { height: 22px; margin-bottom: 14px; }

.footer__brand p {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.55);
  font-weight: 400;
  max-width: 26em;
}

.footer__col h4 {
  color: rgba(255,255,255,.6);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul a {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  font-weight: 400;
  transition: color var(--dur-fast);
}

.footer__col ul a:hover { color: rgba(255,255,255,.9); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,.38);
}

/* --- 15. Modal ------------------------------------------- */
dialog.modal {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-md);
  overflow-y: auto;
}

dialog.modal::backdrop {
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(6px);
}

.modal__inner {
  padding: 32px;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-app);
  color: var(--ink-500);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast);
}

.modal__close:hover { background: var(--hairline); }

.modal__inner h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-bottom: 5px;
  padding-right: 40px;
}

.modal__inner .sub {
  font-size: 14px;
  color: var(--ink-500);
  margin-bottom: 28px;
  font-weight: 400;
}

.modal__form { display: flex; flex-direction: column; gap: 14px; }

.modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 5px; }

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.field input,
.field select {
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0 13px;
  font-size: 14.5px;
  font-family: var(--font-ui);
  color: var(--ink-900);
  background: var(--white);
  outline: none;
  width: 100%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-appearance: none;
  appearance: none;
  font-weight: 400;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

.field input:focus,
.field select:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(226,19,29,.1);
}

.field input.is-error,
.field select.is-error { border-color: var(--red-500); }

.field__err {
  font-size: 12px;
  color: var(--red-500);
  display: none;
  font-weight: 400;
}

.field.has-error .field__err { display: block; }

.modal__confirmation {
  display: none;
  text-align: center;
  padding: 32px 0;
}

.modal__confirmation.is-visible { display: block; }

.modal__confirm-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tint-teal);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal__confirmation h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.modal__confirmation p {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.58;
  font-weight: 400;
}

/* --- 16. Scroll reveal ----------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* --- 17. Responsive -------------------------------------- */
@media (max-width: 960px) {
  .positioning__split { grid-template-columns: 1fr; gap: 40px; }
  .positioning__headline h2 { position: static; font-size: 36px; }

  .flow-scroller { height: auto; }
  .flow { position: static; height: auto; padding: 72px 40px; display: block; }

  /* On mobile: reveal all panels as a vertical stack */
  .flow__topbar, .flow__bar, .flow__dots { display: none; }
  .flow__stage { max-width: 600px; padding: 0; margin: 0 auto; }
  .flow__card-wrap { min-height: auto; }
  .flow__panel {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 44px;
    transition: none;
  }
  .flow__panel:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

  .footer__top { grid-template-columns: 1fr 1fr; }

  .section-head h2 { font-size: 30px; }
  .pilot__headline { font-size: 42px; }
  .pilot__features { grid-template-columns: 1fr; gap: 0; }

  .stat-bar__inner { grid-template-columns: 1fr; gap: 36px; }
  .stat-bar__divider { display: none; }
  .stat-bar__item { padding: 0; }
  .stat-bar__number { font-size: 48px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }

  .hero { padding: 64px 0 80px; }
  .hero__copy h1 { font-size: 40px; }
  .hero__copy .sub { font-size: 17px; }
  .hero__cta-row { flex-direction: column; align-items: center; gap: 14px; }

  .positioning { padding: 72px 0; }
  .flow { padding: 72px 0; }
  .layer-diagram { padding: 72px 0; }
  .outcomes { padding: 72px 0; }
  .pilot { padding: 88px 0; }
  .pilot__headline { font-size: 36px; }

  .section-head h2 { font-size: 26px; }
  .section-head p  { font-size: 16px; }

  .outcomes__grid { grid-template-columns: 1fr; }
  .layer-diagram__stack { max-width: 100%; }

  .modal__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
