/* =================================================================
   ExecutiveAnswer — answer-engine aesthetic
   Near-black, cool teal signal, Hanken Grotesk + IBM Plex Mono
   ================================================================= */
:root {
  --bg: #08090A;
  --bg-1: #0E1012;
  --bg-2: #14171a;
  --bg-deep: #050607;

  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.22);

  --text: #EAECEE;
  --text-2: #99A0A8;
  --text-3: #5E656D;

  --accent: #4FE0C2;
  --accent-hi: #7CF0D8;
  --accent-dim: rgba(79, 224, 194, 0.12);
  --accent-line: rgba(79, 224, 194, 0.42);
  --accent-glow: rgba(79, 224, 194, 0.22);
  --warm: #E8896A;

  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #08090A; }

/* ---------- atmosphere ---------- */
.texture {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 70% 0%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse 75% 55% at 70% 0%, #000, transparent 72%);
  opacity: 0.5;
}
body::before {
  content: ""; position: fixed; top: -30vh; right: -10vw;
  width: 70vw; height: 70vh;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 62%);
  opacity: 0.5; filter: blur(24px); z-index: 0; pointer-events: none;
}
main, .rail, .colophon { position: relative; z-index: 2; }

/* ---------- rail ---------- */
.rail {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px var(--pad);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.rail.is-stuck {
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.rail__mark { display: inline-flex; align-items: center; gap: 10px; }
.rail__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
.rail__name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.rail__nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.rail__nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-2); transition: color .25s var(--ease);
}
.rail__nav a:hover { color: var(--text); }
.rail__cta {
  color: var(--accent) !important; border: 1px solid var(--accent-line);
  border-radius: 4px; padding: 7px 14px;
}
.rail__cta:hover { background: var(--accent-dim); }
@media (max-width: 640px) { .rail__nav a:not(.rail__cta) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.03em;
  padding: 14px 22px; border-radius: 6px; border: 1px solid var(--line-2);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  cursor: pointer;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover span { transform: translateX(4px); }
.btn--solid { background: var(--accent); color: #06100D; border-color: var(--accent); font-weight: 700; }
.btn--solid:hover { box-shadow: 0 14px 40px -12px var(--accent-glow); }
.btn--ghost { color: var(--text); }
.btn--ghost:hover { border-color: var(--line-3); background: var(--bg-1); }
.btn--full { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- shared heads ---------- */
.eyebrow, .kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}
.kicker { color: var(--text-3); }

/* ---------- HERO ---------- */
.hero {
  max-width: 900px; margin-inline: auto;
  padding: clamp(130px, 20vh, 200px) var(--pad) clamp(60px, 9vh, 100px);
}

/* interactive demo */
.demo { margin-top: clamp(30px, 5vh, 46px); }
.demo__bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-1); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 8px 8px 8px 18px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.demo__bar:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-dim); }
.demo__prompt { font-family: var(--mono); font-size: 14px; color: var(--text-3); white-space: nowrap; }
.demo__input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--mono); font-size: 15px; padding: 12px 4px; }
.demo__input::placeholder { color: var(--text-3); }
.demo__btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: #06100D;
  background: var(--accent); border: none; border-radius: 8px; padding: 13px 18px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.demo__btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -12px var(--accent-glow); }
.demo__btn span { transition: transform .25s var(--ease); }
.demo__btn:hover span { transform: translateX(3px); }
.demo__result {
  margin-top: 14px; display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden;
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.demo__result.show { opacity: 1; transform: none; }
.demo__block { background: var(--bg-1); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.demo__block p { font-size: 14.5px; line-height: 1.6; margin: 0; }
.demo__block--before p { color: var(--text-3); }
.demo__block--after { background: linear-gradient(90deg, var(--accent-dim), var(--bg-1)); }
.demo__block--after p { color: var(--text); }
.demo__note { background: var(--bg); padding: 12px 18px; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); line-height: 1.5; margin: 0; }
.demo__note a { color: var(--accent); white-space: nowrap; }
@media (max-width: 560px) {
  .demo__bar { flex-wrap: wrap; }
  .demo__btn { width: 100%; justify-content: center; }
}
.hero__title {
  font-weight: 800; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.02;
  letter-spacing: -0.03em; margin: 22px 0 24px;
}
.hero__title .q { display: inline-block; }
.hero__title .accent { color: var(--accent); }
.hero__lede {
  font-size: clamp(16px, 1.9vw, 19px); line-height: 1.65; color: var(--text-2); max-width: 50ch;
}
.hero__lede strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* answer card motif */
.answercard {
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 40px 90px -50px #000;
}
.answercard__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px;
}
.answercard__q { color: var(--text-2); }
.answercard__src { color: var(--text-3); letter-spacing: 0.12em; }
.answercard__row { padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.answercard__row p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.answercard__row--before { border-bottom: 1px solid var(--line); }
.answercard__row--before p { color: var(--text-3); }
.answercard__row--after { background: linear-gradient(90deg, var(--accent-dim), transparent); }
.answercard__row--after p { color: var(--text); }
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 4px 7px; border-radius: 3px; white-space: nowrap; line-height: 1; margin-top: 2px;
}
.tag--before { color: var(--warm); border: 1px solid rgba(232, 137, 106, 0.4); }
.tag--after { color: var(--accent); border: 1px solid var(--accent-line); }
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .answercard { max-width: 520px; }
}

/* ---------- bands ---------- */
.band { border-top: 1px solid var(--line); padding: clamp(64px, 11vh, 120px) var(--pad); }
.band__inner { max-width: 820px; margin-inline: auto; }
.band__title {
  font-weight: 800; font-size: clamp(28px, 4.6vw, 48px); line-height: 1.06;
  letter-spacing: -0.03em; margin: 16px 0 22px;
}
.band__lede { font-size: clamp(16px, 2vw, 19px); line-height: 1.7; color: var(--text-2); }
.band--proof { background: var(--bg-deep); }
.proof__link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  font-family: var(--mono); font-size: 15px; color: var(--accent);
  border-bottom: 1px solid var(--accent-line); padding-bottom: 3px; transition: gap .25s var(--ease);
}
.proof__link:hover { gap: 14px; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin-inline: auto; padding: clamp(64px, 11vh, 120px) var(--pad); border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(44px, 7vh, 70px); }
.sec-head__idx { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--accent); }
.sec-head__title { font-weight: 800; font-size: clamp(26px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.sec-head__note { font-size: clamp(15px, 1.9vw, 18px); color: var(--text-2); line-height: 1.6; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--bg-1); padding: clamp(26px, 3.2vw, 40px); min-height: 200px; transition: background .35s var(--ease); position: relative; }
.step::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.step:hover { background: var(--bg-2); }
.step:hover::after { transform: scaleY(1); }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; letter-spacing: -0.02em; margin: 26px 0 12px; }
.step p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* who */
.section--who { border-top: 1px solid var(--line); }
.who { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.who li { background: var(--bg-1); padding: 22px 26px; font-size: clamp(15px, 2vw, 18px); font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; transition: background .3s var(--ease); }
.who li span { color: var(--accent); font-family: var(--mono); }
.who li:hover { background: var(--bg-2); }
@media (max-width: 640px) { .who { grid-template-columns: 1fr; } }

/* ---------- audit ---------- */
.audit { border-top: 1px solid var(--line-2); background: var(--bg-deep); padding: clamp(64px, 11vh, 120px) var(--pad); }
.audit__inner { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.audit__title { font-weight: 800; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.06; letter-spacing: -0.03em; margin: 14px 0 20px; }
.audit__note { font-size: clamp(15px, 1.9vw, 18px); color: var(--text-2); line-height: 1.65; }
.audit__form { background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.field__opt { text-transform: none; letter-spacing: 0; }
.field input {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 5px;
  padding: 13px 14px; color: var(--text); font-family: var(--sans); font-size: 15px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
.audit__fineprint { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-top: 4px; }
.audit__ok { color: var(--accent); font-family: var(--mono); font-size: 14px; padding: 8px 0; }
@media (max-width: 820px) { .audit__inner { grid-template-columns: 1fr; } }

/* file input */
.field input[type="file"] { padding: 10px 14px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.field input[type="file"]::file-selector-button { font-family: var(--mono); font-size: 11px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 4px; padding: 6px 10px; margin-right: 10px; cursor: pointer; }

/* ---------- outcomes (why band) ---------- */
.outcomes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 30px; }
.outcomes li { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 15px; }
.outcomes li::before { content: "\2192  "; color: var(--accent); }

/* ---------- flow: generator motif + steps ---------- */
.flow { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }
.gen { background: linear-gradient(180deg, var(--bg-1), var(--bg)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; box-shadow: 0 40px 90px -50px #000; display: grid; gap: 18px; }
.gen__row { display: grid; gap: 9px; }
.gen__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--text-3); }
.gen__v { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.gen__v b { color: var(--accent); }
.gen__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.chip--on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.chip--add { color: var(--text-3); }
.gen__go { margin-top: 2px; text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 500; color: #06100D; background: var(--accent); border-radius: 6px; padding: 13px; }
.gen__out { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 16px; border-top: 1px solid var(--line); }
.gen__out span { font-family: var(--mono); font-size: 11px; color: var(--text-2); border: 1px solid var(--line); border-radius: 4px; padding: 5px 9px; }
.flowsteps { list-style: none; display: grid; gap: 20px; }
.flowsteps li { display: flex; gap: 14px; font-size: clamp(15px, 1.9vw, 18px); color: var(--text); line-height: 1.5; }
.flowsteps li b { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
.flowsteps li em { color: var(--text-3); font-style: normal; display: block; font-size: 13.5px; margin-top: 3px; }

/* ---------- what you get ---------- */
.getgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.getcard { background: var(--bg-1); padding: 24px; transition: background .3s var(--ease); }
.getcard:hover { background: var(--bg-2); }
.getcard h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.getcard p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.getcard--accent { background: linear-gradient(180deg, var(--accent-dim), var(--bg-1)); }
.getcard--accent h3 { color: var(--accent); }
@media (max-width: 920px) { .getgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .getgrid { grid-template-columns: 1fr; } }
.getexample { margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.getexample a { color: var(--accent); border-bottom: 1px solid var(--accent-line); padding-bottom: 2px; }

/* ---------- colophon ---------- */
.colophon { border-top: 1px solid var(--line-2); background: var(--bg-deep); padding: clamp(40px, 6vh, 64px) 0 clamp(50px, 7vh, 80px); }
.colophon__grid { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); display: grid; gap: 18px; }
.colophon__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.colophon__line { font-size: 14px; line-height: 1.65; color: var(--text-2); max-width: 640px; }
.colophon__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-3); }

/* ---------- motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .step:hover { transform: none; }
}

/* honeypot field: hidden from humans, present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
