/* ===== Fast Fleet — FAST design system ===== */
:root {
  --platinum:    #F6F8FA;
  --silicon:     #C8CFD8;
  --light-steel: #A1B0CF;
  --steel:       #5F6672;
  --graphite:    #2B2C2F;

  --canvas:      #F6F8FA;
  --card:        #FFFFFF;
  --surface:     rgba(200, 207, 216, 0.18);
  --text:        #2B2C2F;
  --text-muted:  #5F6672;
  --text-dim:    #80868B;
  --on-dark:     #F6F8FA;
  --brand:       #A1B0CF;
  --border:      rgba(43, 44, 47, 0.10);
  --border-2:    rgba(43, 44, 47, 0.16);

  --shadow-card:    0 12px 36px -18px rgba(95, 102, 114, 0.22);
  --shadow-raise:   0 22px 52px -20px rgba(95, 102, 114, 0.30);
  --shadow-frosted: 0 20px 50px -12px rgba(95, 102, 114, 0.12);

  --radius-pill: 9999px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   18px;
  --radius-2xl:  24px;
  --radius-hero: 28px;

  --font-sans: 'General Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out:  cubic-bezier(0.23, 1, 0.32, 1);
  --ease-demo: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
img { display: block; }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 18px; }

/* ===== Type ===== */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; color: var(--text); }
h1 { font-size: clamp(2.9rem, 8vw, 6.2rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.15; }
.lead { color: var(--text-muted); font-size: clamp(1.02rem, 1.8vw, 1.18rem); max-width: 48ch; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted);
}
.mono-label.dim { color: var(--text-dim); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 16px;
}
.eyebrow.center { display: block; }

/* ===== Liquid metal (CSS tier) ===== */
.fast-liquid-metal-css {
  --lm-deep: #0C0E12; --lm-shadow: #1A1F28; --lm-body: #3A4250;
  --lm-pewter: #7A8495; --lm-highlight: #E4EAF2;
  position: relative; overflow: hidden;
  background-color: var(--lm-shadow);
  background-image:
    radial-gradient(62% 55% at 28% 22%, rgba(228,234,242,0.70), rgba(228,234,242,0) 62%),
    radial-gradient(55% 60% at 72% 38%, rgba(122,132,149,0.55), rgba(122,132,149,0) 68%),
    radial-gradient(60% 70% at 78% 82%, rgba(12,14,18,0.75), rgba(12,14,18,0) 70%),
    radial-gradient(35% 25% at 42% 58%, rgba(228,234,242,0.45), rgba(228,234,242,0) 70%),
    linear-gradient(261deg, var(--lm-shadow) -8%, var(--lm-body) 22%, var(--lm-pewter) 48%, var(--lm-body) 72%, var(--lm-deep) 108%);
  background-size: 180% 180%, 180% 180%, 180% 180%, 140% 140%, 260% 260%;
  background-position: 0% 0%, 100% 30%, 100% 100%, 40% 60%, 0% 50%;
  animation: lm-orbit 18s ease-in-out infinite;
}
.fast-liquid-metal-css::after {
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(105deg, transparent 38%, rgba(228,234,242,0.28) 46%, rgba(255,255,255,0.70) 50%, rgba(228,234,242,0.28) 54%, transparent 62%);
  mix-blend-mode: screen; pointer-events: none;
  animation: lm-shimmer 12s ease-in-out infinite;
}
@keyframes lm-orbit {
  0%   { background-position: 0% 0%, 100% 100%, 50% 50%, 0% 50%; }
  25%  { background-position: 70% 15%, 30% 85%, 40% 55%, 50% 40%; }
  50%  { background-position: 100% 40%, 0% 60%, 60% 45%, 100% 50%; }
  75%  { background-position: 30% 70%, 70% 30%, 55% 50%, 50% 60%; }
  100% { background-position: 0% 0%, 100% 100%, 50% 50%, 200% 50%; }
}
@keyframes lm-shimmer {
  0%, 100% { transform: translateX(-10%) translateY(-5%); }
  50%      { transform: translateX(10%) translateY(5%); }
}
.fast-chrome {
  background: linear-gradient(261deg, #F6F8FA -8.09%, #C8CFD8 19.46%, #E3E5EA 45.22%, #F6F8FA 64.99%, #DEE3E8 91.94%, #5F6672 116.5%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -2px 0 0 rgba(0, 0, 0, 0.25) inset, 0 1px 2px rgba(95,102,114,0.2);
  color: #2B2C2F;
}

/* ===== Nav — liquid glass ===== */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px 11px 18px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px) saturate(165%);
  -webkit-backdrop-filter: blur(6px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow:
    0 8px 28px -10px rgba(31, 38, 53, 0.30),
    inset 0 1px 1px rgba(255, 255, 255, 0.65),
    inset 0 -2px 6px rgba(255, 255, 255, 0.22);
  position: sticky; top: 14px; z-index: 100;
  overflow: hidden; isolation: isolate;
  transition: box-shadow .3s var(--ease-out), background .3s;
}
/* Refraction layer: displaces the content seen through the bar */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  backdrop-filter: blur(1px) url(#liquid-glass);
  -webkit-backdrop-filter: blur(1px) url(#liquid-glass);
}
/* Moving specular sheen across the glass */
.nav::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 48%, rgba(255,255,255,0.0) 60%);
  background-size: 220% 100%;
  opacity: 0.5;
  animation: nav-sheen 9s ease-in-out infinite;
}
@keyframes nav-sheen {
  0%, 100% { background-position: 130% 0; }
  50% { background-position: -30% 0; }
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 12px 36px -10px rgba(31, 38, 53, 0.34),
    inset 0 1px 1px rgba(255, 255, 255, 0.75),
    inset 0 -2px 6px rgba(255, 255, 255, 0.28);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 19px; width: auto; }
.brand-sep { width: 1px; height: 18px; background: var(--border-2); }
.brand-sub { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; color: var(--text); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 13.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease-out); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 500; font-size: 0.95rem; letter-spacing: -0.02em;
  padding: 12px 22px; border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; transition: transform .14s var(--ease-out), box-shadow .25s var(--ease-out), background .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-chrome {
  background: linear-gradient(261deg, #F6F8FA -8.09%, #C8CFD8 19.46%, #E3E5EA 45.22%, #F6F8FA 64.99%, #DEE3E8 91.94%, #5F6672 116.5%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 -2px 0 0 rgba(0, 0, 0, 0.25) inset, 0 1px 2px rgba(95,102,114,0.2);
  color: #2B2C2F;
}
.btn-ghost-light { color: var(--on-dark); border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.btn-graphite { background: var(--graphite); color: var(--on-dark); }
.btn-copy { cursor: pointer; }
.btn-copy .copy-ico { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.85; }
.btn-copy.copied { color: var(--on-dark); border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.16); }
@media (hover: hover) and (pointer: fine) {
  .btn-chrome:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -6px rgba(95,102,114,0.4), 0 -2px 0 0 rgba(0,0,0,0.25) inset; }
  .btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
  .btn-graphite:hover { background: #3a3b3f; }
}

/* ===== Hero ===== */
.hero {
  position: relative; margin-top: 18px;
  border-radius: var(--radius-hero); overflow: hidden;
  min-height: clamp(540px, 80vh, 720px);
  background: var(--graphite);
}

/* Crossfading background images */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .8s var(--ease-out);
  will-change: opacity;
}
.hero-bg-on { opacity: 0; }
.hero.is-on .hero-bg-off { opacity: 0; }
.hero.is-on .hero-bg-on { opacity: 1; }

/* Readability veil over the image */
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(10,12,16,0.55) 0%, rgba(10,12,16,0.18) 50%, rgba(10,12,16,0) 80%),
    linear-gradient(to top, rgba(10,12,16,0.45), rgba(10,12,16,0) 55%);
  transition: background .6s var(--ease-out);
}
.hero.is-on .hero-veil {
  background:
    linear-gradient(100deg, rgba(10,12,16,0.45) 0%, rgba(10,12,16,0.12) 55%, rgba(10,12,16,0) 85%),
    linear-gradient(to top, rgba(10,12,16,0.38), rgba(10,12,16,0) 60%);
}

/* Compact glass pill in the hero: toggle + FAST logo + "Fleet" */
.hero-glass {
  position: absolute; z-index: 2;
  top: clamp(20px, 3vw, 36px);
  left: clamp(20px, 3vw, 36px);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-pill);
  background: rgba(18, 20, 26, 0.42);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 14px 36px -16px rgba(0,0,0,0.55);
  color: var(--on-dark);
}
.hero-switch-btn {
  background: transparent; border: 0; padding: 2px;
  cursor: pointer; border-radius: var(--radius-pill);
  display: block;
}
.hero-switch-btn:focus-visible { outline: 2px solid rgba(255,255,255,0.7); outline-offset: 4px; }
.hero-switch-track {
  display: block; position: relative;
  width: 56px; height: 30px; border-radius: var(--radius-pill);
  background: rgba(120, 124, 134, 0.75);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
  transition: background .3s var(--ease-out), border-color .3s;
}
.hero-switch-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35), 0 0 0 0.5px rgba(0,0,0,0.06);
  transition: transform .3s var(--ease-out);
}
.hero.is-on .hero-switch-track {
  background: #34C759;
  border-color: rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.18), 0 0 0 4px rgba(52,199,89,0.18);
}
.hero.is-on .hero-switch-thumb { transform: translateX(26px); }
.hero-switch-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans);
  font-weight: 500; font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  line-height: 1;
}
.hero-switch-logo { height: 0.78em; width: auto; display: block; }
.hero-switch-word { font-weight: 600; }

/* One-line tagline above the hero visual */
.hero-tagline {
  margin: clamp(28px, 4vw, 48px) 0;
  text-align: center;
}
.hero-tagline h1 {
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
  color: var(--text);
}

/* ===== Stats strip (inside hero, glassy) ===== */
.hero .stats {
  position: absolute; z-index: 2;
  left: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 36px);
  bottom: clamp(20px, 3vw, 36px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.hero .stat {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(18, 20, 26, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 14px 40px -16px rgba(0, 0, 0, 0.45);
  color: var(--on-dark);
  transition: transform .35s var(--ease-out), background .25s, box-shadow .35s;
}
.hero .stat-val {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.hero .stat-unit {
  font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em;
  color: rgba(246,248,250,0.72); margin-left: 2px;
}
.hero .stat-lbl {
  display: block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(246,248,250,0.78);
}
@media (hover: hover) and (pointer: fine) {
  .hero .stat:hover {
    transform: translateY(-3px);
    background: rgba(18, 20, 26, 0.44);
    box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.55);
  }
}

/* Hidden SVG filter defs — no layout impact */
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* Stat info icon + popover (10k hours explainer) */
.stat-info {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: -2px; margin-left: 6px;
  width: 15px; height: 15px; padding: 0;
  border: 0; background: none; cursor: pointer;
  color: rgba(246, 248, 250, 0.65); border-radius: 50%;
  transition: color .2s;
}
.stat-info svg { width: 15px; height: 15px; }
.stat-info:hover, .stat-info[aria-expanded="true"] { color: var(--on-dark); }
.stat-info:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
.stat-pop {
  position: fixed; z-index: 60; left: 0; top: 0;
  width: min(252px, 78vw);
  pointer-events: none;
  padding: 11px 13px; border-radius: var(--radius-md);
  background: rgba(18, 20, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  color: rgba(246, 248, 250, 0.92);
  font-family: var(--font-sans); font-size: 0.82rem; line-height: 1.5;
  font-weight: 400; letter-spacing: normal; text-transform: none; text-align: left;
}
.stat-pop[hidden] { display: none; }

/* ===== Trust strip ===== */
.strip { text-align: center; padding: 56px 0 8px; }
.strip .mono-label { display: block; margin-bottom: 24px; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; }
.strip-app {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-weight: 600; font-size: 1.02rem;
  opacity: 0.6; transition: opacity .25s, color .25s;
}
.strip-app:hover { opacity: 1; color: var(--text); }
.app-ico { width: 20px; height: 20px; flex-shrink: 0; }
.strip-more {
  display: inline-flex; align-items: center; padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  border: 1px dashed var(--border-2); background: var(--surface);
}

/* ===== Panels & section heads ===== */
.panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-2xl);
  padding: clamp(36px, 5vw, 64px); margin-top: 40px; box-shadow: var(--shadow-card);
}
.panel-head { max-width: 640px; margin-bottom: 44px; }
.panel-head h2, .section-head h2 { margin: 10px 0 16px; }
.section-head { max-width: 700px; margin: 96px auto 44px; text-align: center; }
.section-head .lead { margin-left: auto; margin-right: auto; }

/* Adoption — chrome accent in the top-right corner */
#adoption { position: relative; overflow: hidden; }
#adoption .panel-head, #adoption .chart { position: relative; z-index: 1; }
.adoption-chrome {
  position: absolute;
  top: 0;
  right: clamp(-44px, -2.4vw, -18px);
  width: clamp(220px, 22vw, 300px);
  height: clamp(160px, 16vw, 220px);
  object-fit: cover;
  object-position: 50% 65%;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ===== Chart ===== */
.chart-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.bar-row {
  display: grid; grid-template-columns: 150px 1fr 92px; align-items: center;
  gap: 16px; padding: 9px 4px; border-radius: var(--radius-md);
  transition: background .25s var(--ease-out);
}
.bar-label, .bar-val { transition: color .25s; }
.bar-label { font-size: 0.92rem; color: var(--text-muted); font-weight: 500; }
.bar-track { height: 14px; background: rgba(200,207,216,0.4); border-radius: var(--radius-pill); overflow: hidden; }
.bar { height: 100%; width: 0; border-radius: var(--radius-pill); background: var(--silicon); transition: width 1.1s var(--ease-demo), background .25s, transform .25s var(--ease-out); transform-origin: left; }
#chart.animate .bar { width: var(--w); }
.bar-fast { background: var(--graphite); }
.bar-val { font-size: 0.9rem; color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }
.bar-row.featured .bar-label, .bar-row.featured .bar-val { color: var(--text); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .bar-row:hover { background: var(--surface); }
  .bar-row:hover .bar-label, .bar-row:hover .bar-val { color: var(--text); }
  .bar-row:hover .bar { background: var(--light-steel); transform: scaleY(1.25); }
  .bar-row.featured:hover .bar { background: var(--graphite); }
}

/* ===== Feature flip cards ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { height: 280px; perspective: 1200px; cursor: pointer; outline: none; }
.feature-inner { position: relative; width: 100%; height: 100%; transition: transform .6s var(--ease-out); transform-style: preserve-3d; }
.feature.flipped .feature-inner { transform: rotateY(180deg); }
.feature:focus-visible .feature-inner { transform: rotateY(180deg); }
.feature-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card);
  box-shadow: var(--shadow-card); padding: 0; display: flex; flex-direction: column;
  overflow: hidden;
}
.feature-front { padding: 0; }
.feature-front::after {
  content: "+"; position: absolute; top: 16px; right: 18px;
  font-size: 18px; line-height: 1; color: var(--text-dim); z-index: 2;
}
.feature-front-text { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.feature-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.feature-front h3 { font-size: clamp(1.2rem, 2.1vw, 1.55rem); font-weight: 500; letter-spacing: -0.03em; }
.feature-back {
  transform: rotateY(180deg);
  justify-content: center; align-items: center;
  padding: 28px 26px;
}
.feature-back p {
  color: var(--text-muted);
  font-size: 0.95rem; line-height: 1.55;
  text-align: center; text-wrap: pretty;
}
@media (hover: hover) and (pointer: fine) { .feature:hover .feature-inner { transform: rotateY(180deg); } }

/* Feature visuals — illustrative photo header */
.feature-visual {
  position: relative;
  height: 164px; flex-shrink: 0;
  overflow: hidden;
  background: #F1F4F8;
}
.feature-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Split / Privacy ===== */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.split-text h2 { margin: 10px 0 18px; }
.check-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-muted); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border-radius: 6px; display: grid; place-items: center;
  font-size: 0.7rem; color: var(--on-dark); background: var(--graphite); font-weight: 700;
}
.privacy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.privacy-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: var(--steel); background: var(--card); border: 1px solid var(--border); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.95rem; }
.toggle-row:first-of-type { border-top: 0; }
.pill { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill); }
.pill.on { color: var(--on-dark); background: var(--graphite); }
.pill.off { color: var(--text-muted); border: 1px solid var(--border-2); }

/* ===== Timeline ===== */
.timeline {
  position: relative;
  margin-top: 32px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-card);
  padding: 24px;
  min-height: 480px;
  overflow: hidden;
}
.t-stage { position: relative; width: 100%; height: 420px; }
.t-curve { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-item {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%);
  width: 0; height: 0;
}
.t-dot {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--graphite);
  box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--border-2);
  transition: transform .25s var(--ease-out), background .25s;
  z-index: 2;
}
.t-item:hover .t-dot { transform: translate(-50%, -50%) scale(1.25); background: #34C759; }
.t-line {
  position: absolute; left: 0;
  transform: translateX(-50%);
  bottom: 12px;
  width: 1px; height: 34px;
  background-image: linear-gradient(to bottom, var(--text-dim) 50%, transparent 50%);
  background-size: 1px 6px;
}
.t-card {
  position: absolute; left: 0;
  transform: translateX(-50%);
  bottom: 50px;
  background: var(--graphite); color: var(--on-dark);
  border: 1px solid var(--graphite);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-family: inherit; font-weight: 500; font-size: 0.9rem;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.3);
  transition: transform .25s var(--ease-out), background .25s, box-shadow .25s;
}
.t-card:hover {
  transform: translateX(-50%) translateY(-2px);
  background: #3a3b3f;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
}
.t-time {
  position: absolute; left: 0; top: 16px;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}

/* Expanded detail */
.t-detail {
  position: absolute; inset: 24px; z-index: 3;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 36px clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 44px);
  align-items: center;
  box-shadow: var(--shadow-raise);
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  pointer-events: none;
  transition: opacity .42s var(--ease-out), transform .42s var(--ease-out);
}
.timeline.is-open .t-detail {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.t-stage { transition: opacity .32s var(--ease-out); }
.timeline.is-open .t-stage { opacity: 0; pointer-events: none; }
.t-detail-text { display: flex; flex-direction: column; }
.t-detail-time {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel);
  padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); width: max-content; margin-bottom: 16px;
}
.t-detail-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 12px; max-width: 22ch; }
.t-detail-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 50ch; }
.t-detail-media {
  border-radius: var(--radius-lg);
  min-height: 240px; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--on-dark);
}
.t-detail-play {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
  position: relative; z-index: 1;
}
.t-detail-cap {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(246,248,250,0.82);
}
.t-detail-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--graphite); color: var(--on-dark);
  border: 1px solid var(--graphite);
  cursor: pointer; font-size: 13px;
  display: grid; place-items: center; z-index: 4;
  transition: background .2s, transform .2s var(--ease-out);
}
.t-detail-close:hover { background: #3a3b3f; transform: scale(1.06); }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); }
.member-photo {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: linear-gradient(160deg, rgba(200,207,216,0.45), rgba(161,176,207,0.22));
  display: grid; place-items: center; border-bottom: 1px solid var(--border);
}
.member-initials { font-size: 3rem; font-weight: 500; letter-spacing: -0.03em; color: var(--steel); }
.member-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo-tag { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); background: rgba(255,255,255,0.72); border: 1px solid var(--border); padding: 2px 9px; border-radius: var(--radius-pill); z-index: 2; }

/* Hover wipe: random-patch grid of past-company blocks */
.member-wipe {
  position: absolute; inset: 0; z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .6s var(--ease-out);
  pointer-events: none;
}
.member-photo:hover .member-wipe { clip-path: inset(0 0 0 0); }
.member-wipe > span {
  grid-area: var(--a);
  background: var(--c); color: var(--t, #fff);
  display: grid; place-items: center;
  padding: 4px 6px;
  overflow: hidden;
}
.member-wipe b {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; line-height: 1.15;
}
.member-body { padding: 22px 24px 26px; }
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.member-head h3 { margin: 0; font-size: 1.3rem; }
.linkedin { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--steel); border: 1px solid var(--border); transition: color .2s, background .2s; }
.linkedin svg { width: 15px; height: 15px; }
.linkedin:hover { color: var(--text); background: var(--surface); }
.member .role { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin: 7px 0 12px; }
.member p { color: var(--text-muted); font-size: 0.94rem; }

/* ===== Thesis ===== */
.thesis {
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url('/thesis_bg.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
/* Soft veil so the chrome reads as a backdrop and the copy stays crisp */
.thesis::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.62) 50%, rgba(255,255,255,0.80) 100%);
  pointer-events: none;
}
.thesis > * { position: relative; z-index: 1; }
.thesis .eyebrow.center { margin-bottom: 24px; }
.thesis-lead, .thesis-foot {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  max-width: 54ch;
  margin: 0 auto;
  text-wrap: pretty;
}
.thesis-quote {
  position: relative;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500; letter-spacing: -0.035em; line-height: 1.25;
  max-width: 34ch;
  margin: 36px auto;
  padding: 28px 0;
  text-wrap: pretty;
  color: var(--text);
}
.thesis-quote::before, .thesis-quote::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 48px; height: 1px; background: var(--border-2);
}
.thesis-quote::before { top: 0; }
.thesis-quote::after { bottom: 0; }
.thesis em { color: var(--text); font-weight: 600; }

/* ===== CTA ===== */
.cta-block { margin-top: 56px; border-radius: var(--radius-2xl); }
.cta-inner { position: relative; z-index: 1; text-align: center; padding: clamp(56px, 7vw, 96px) 28px; color: var(--on-dark); }
.cta-block h2 { color: var(--on-dark); max-width: 20ch; margin: 0 auto 16px; text-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.cta-inner > p { color: rgba(246,248,250,0.82); font-size: 1.1rem; max-width: 52ch; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-fine { margin-top: 22px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246,248,250,0.6); }

/* ===== Footer ===== */
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 30px 6px; margin-top: 20px; }
.foot-cta { color: var(--text-muted); transition: color .2s; }
.foot-cta:hover { color: var(--text); }
.foot-link { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.foot-link:hover { color: var(--text); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-demo), transform .6s var(--ease-demo); }
.reveal.visible { opacity: 1; transform: none; }
.feature-grid .reveal.visible, .team-grid .reveal.visible, .cases .reveal.visible { transition-delay: var(--d, 0s); }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .hero .stats { grid-template-columns: repeat(2, 1fr); }
  .timeline { min-height: 380px; }
  .t-stage { height: 320px; }
  .t-detail { grid-template-columns: 1fr; }
  .adoption-chrome { display: none; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open { border-radius: 22px; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 16px;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(14px);
    padding: 20px; border: 1px solid var(--border); border-radius: 18px;
  }
  .feature-grid { grid-template-columns: 1fr; }
  .hero .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero .stat { padding: 12px 14px; }
  .hero .stat-val { font-size: 1.4rem; }
  .bar-row { grid-template-columns: 92px 1fr 72px; gap: 10px; }
  .bar-label { font-size: 0.8rem; }
  .hero-tagline h1 { font-size: clamp(1.3rem, 6vw, 1.9rem); }
  .strip-row { gap: 12px 18px; }
  .strip-app { font-size: 0.92rem; }
  .timeline { min-height: 420px; padding: 16px; }
  .t-stage { height: 360px; }
  .t-card { font-size: 0.82rem; padding: 7px 14px; }
  .t-detail { grid-template-columns: 1fr; padding: 28px 20px; }
  .t-detail-media { min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
