/* ===================== TOKENS ===================== */
:root {
  --bg:        #0a0a0b;
  --bg-soft:   #111113;
  --bg-card:   #141416;
  --line:      rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);
  --ink:       #f5f5f4;
  --ink-dim:   #a8a8a6;
  --ink-faint: #6e6e6c;
  --accent:    #ffffff;
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1200px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle film-grain / vignette atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(255,255,255,0.035), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
strong { color: var(--ink); font-weight: 600; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; font-size: .92rem; letter-spacing: .01em;
  padding: .72rem 1.25rem; border-radius: 100px;
  border: 1px solid var(--line);
  transition: all .35s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: #0a0a0b; border-color: var(--ink); }
.btn--primary:hover { background: #fff; box-shadow: 0 10px 40px -12px rgba(255,255,255,.4); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.25); }

.btn--login { background: transparent; color: var(--ink); padding: .55rem 1.1rem; font-size: .88rem; }
.btn--login:hover { background: var(--ink); color: #0a0a0b; border-color: var(--ink); }

.btn--xl { padding: 1rem 1.9rem; font-size: 1.02rem; }

/* ===================== NAV ===================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.1rem, 4vw, 2.4rem);
  backdrop-filter: blur(14px);
  background: rgba(10,10,11,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line-soft); background: rgba(10,10,11,0.82); }

.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 30px; width: auto; display: block; }

.nav__links {
  display: flex; gap: 2rem; margin-left: auto; margin-right: 1.5rem;
}
.nav__links a {
  font-size: .9rem; color: var(--ink-dim); position: relative;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--ink); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

/* ===================== HERO ===================== */
.hero {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.4rem) 2rem;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-dim);
  padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 100px;
  margin-bottom: 1.6rem;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.hero__title {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.04; font-weight: 600; letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}
.hero__title-accent {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  letter-spacing: 0; color: #fff;
  background: linear-gradient(180deg, #fff 30%, #b8b8b6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub {
  font-size: 1.08rem; color: var(--ink-dim); max-width: 33rem; margin-bottom: 2rem;
}
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }

.hero__hint {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--ink-faint);
}
.hero__hint svg { color: var(--ink-dim); animation: drift 3s var(--ease) infinite; }
@keyframes drift { 0%,100%{transform:translateX(0)} 50%{transform:translateX(4px)} }

/* ---------- Portrait / video ---------- */
.hero__media { display: flex; justify-content: center; }
.portrait {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 1/1;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: #0d0d0f;
  box-shadow:
    0 40px 90px -40px rgba(0,0,0,.9),
    inset 0 0 0 1px rgba(255,255,255,.04);
  cursor: ew-resize;
  isolation: isolate;
}
.portrait__video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: contrast(1.04) saturate(.96);
}
/* scan-line accent */
.portrait__scan {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
  opacity: .35;
}
.portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 120px 10px rgba(0,0,0,.45);
  border-radius: var(--radius);
}
.portrait__corner {
  position: absolute; width: 18px; height: 18px; pointer-events: none;
  border: 1.5px solid rgba(255,255,255,.55); z-index: 3;
}
.portrait__corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.portrait__corner--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.portrait__corner--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.portrait__corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.portrait__meta {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .64rem; letter-spacing: .18em; font-weight: 500;
  color: rgba(255,255,255,.85);
  padding: .35rem .6rem; border-radius: 7px;
  background: rgba(0,0,0,.35); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
}
.portrait__meta-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #3ef08a;
  box-shadow: 0 0 8px #3ef08a; animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ===================== KPIs ===================== */
.kpis {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; margin-top: clamp(2.5rem, 6vw, 4rem);
}
.kpi {
  background: var(--bg-soft); padding: 1.6rem 1.3rem;
  display: flex; flex-direction: column; gap: .35rem;
  transition: background .35s var(--ease);
}
.kpi:hover { background: var(--bg-card); }
.kpi__num {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.kpi__label { font-size: .8rem; color: var(--ink-dim); }

/* ===================== SECTIONS ===================== */
.section {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.1rem, 4vw, 2.4rem);
}
.section + .section { border-top: 1px solid var(--line-soft); }

.section__head { max-width: 46rem; margin-bottom: 3rem; }
.section__tag {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); display: inline-block; margin-bottom: 1rem;
  padding-bottom: .35rem; border-bottom: 1px solid var(--line);
}
.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.1;
}
.section__lead { margin-top: 1.1rem; color: var(--ink-dim); font-size: 1.05rem; max-width: 42rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1rem; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line); background: #18181b; }
.card:hover::before { opacity: 1; }
.card__index {
  font-size: .8rem; color: var(--ink-faint); font-variant-numeric: tabular-nums;
  display: block; margin-bottom: 1.2rem; letter-spacing: .1em;
}
.card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: .55rem; letter-spacing: -0.01em; }
.card p { font-size: .92rem; color: var(--ink-dim); }
.card--lg { padding: 2rem 1.8rem; }
.card__icon {
  font-size: 1.5rem; line-height: 1; margin-bottom: 1.3rem; color: var(--ink);
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03);
}

/* ---------- Pipeline ---------- */
.pipeline {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: .8rem; align-items: stretch;
}
.pipeline__step {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.pipeline__step:hover { border-color: var(--line); transform: translateY(-3px); }
.pipeline__num {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600; margin-bottom: 1rem;
}
.pipeline__step h4 { font-size: 1.02rem; margin-bottom: .4rem; }
.pipeline__step p { font-size: .86rem; color: var(--ink-dim); }
.pipeline__arrow { display: grid; place-items: center; color: var(--ink-faint); font-size: 1.2rem; }

.loop-note {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem;
  padding: 1.2rem 1.5rem; border: 1px dashed var(--line);
  border-radius: var(--radius); background: rgba(255,255,255,.02);
}
.loop-note__icon { font-size: 1.6rem; color: var(--ink); }
.loop-note p { font-size: .95rem; color: var(--ink-dim); }

/* ---------- Benchmark table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.bench { width: 100%; border-collapse: collapse; min-width: 760px; }
.bench th, .bench td {
  text-align: left; padding: 1rem 1.15rem; font-size: .9rem;
  border-bottom: 1px solid var(--line-soft);
}
.bench thead th {
  font-weight: 500; color: var(--ink-dim); font-size: .82rem;
  background: var(--bg-soft); vertical-align: bottom;
}
.bench thead th small { color: var(--ink-faint); font-weight: 400; }
.bench tbody td:first-child { color: var(--ink); font-weight: 500; }
.bench td { color: var(--ink-dim); }
.bench__hl { background: rgba(255,255,255,.045); color: var(--ink) !important; font-weight: 500; }
.bench thead .bench__hl { background: rgba(255,255,255,.08); color: var(--ink); font-weight: 600; }
.bench__logo { height: 40px; width: auto; display: block; }
.bench tbody tr:last-child td { border-bottom: 0; }
.bench tbody tr { transition: background .25s var(--ease); }
.bench tbody tr:hover td { background: rgba(255,255,255,.02); }
.bench tbody tr:hover .bench__hl { background: rgba(255,255,255,.07); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .55rem; vertical-align: middle; }
.dot--full { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.6); }
.dot--mid  { background: #8a8a88; }
.dot--low  { background: #3a3a3a; border: 1px solid #555; box-sizing: border-box; }

/* ===================== CTA ===================== */
.cta {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line-soft);
  background: radial-gradient(800px 400px at 50% 0%, rgba(255,255,255,.05), transparent 70%);
}
.cta__inner {
  max-width: 50rem; margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.1rem, 4vw, 2.4rem);
  text-align: center;
}
.cta__quote {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.25; font-weight: 400; letter-spacing: -0.01em; color: #fff;
}
.cta__quote em { font-style: normal; }
.cta__attrib { margin-top: 1.2rem; color: var(--ink-faint); font-size: .92rem; letter-spacing: .04em; }
.cta__inner .btn { margin-top: 2.4rem; }

/* ===================== FOOTER ===================== */
.footer {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto;
  padding: 2rem clamp(1.1rem, 4vw, 2.4rem) 3rem;
  border-top: 1px solid var(--line-soft);
}
.footer__left { display: flex; align-items: center; gap: 1rem; }
.footer__logo { height: 24px; width: auto; opacity: .9; }
.footer__left p { font-size: .82rem; color: var(--ink-faint); }
.footer__right { display: flex; align-items: center; gap: .8rem; font-size: .82rem; color: var(--ink-faint); }
.footer__right a { color: var(--ink-dim); transition: color .3s var(--ease); }
.footer__right a:hover { color: var(--ink); }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .portrait { max-width: 380px; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline__arrow { transform: rotate(90deg); padding: .2rem 0; }
}
@media (max-width: 620px) {
  .nav__links { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
