/* ============================================================
   Kronagent — waitlist site
   Dark technical UI: near-black ground, engineering grid,
   gradient accents, hairline structure. No external assets.
   ============================================================ */

/* Cabinet Grotesk — Indian Type Foundry, ITF Free licence.
   Self-hosted deliberately: the CSP is default-src 'self', so a CDN link
   would be blocked, and no visitor IP is handed to a third party. Display
   weights only — body copy stays on the system stack, which keeps the
   payload at 40KB and long paragraphs on a face built for reading. */
@font-face{
  font-family:"Cabinet Grotesk";
  src:url("/fonts/cabinet-grotesk-700.woff2") format("woff2");
  font-weight:700; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Cabinet Grotesk";
  src:url("/fonts/cabinet-grotesk-800.woff2") format("woff2");
  font-weight:800; font-style:normal; font-display:swap;
}

:root{
  --bg:        #000000;
  --bg-2:      #060709;
  --surface:   #0F1216;
  --surface-2: #14181D;
  --line:      #1C2128;
  --line-hi:   #2A313A;

  --text:      #F2F5F8;
  --text-2:    #A2ACB6;
  --muted:     #6B7681;

  /* brand gradient — the one loud thing in an otherwise restrained palette */
  --g1:        #67E8F9;
  --g2:        #A78BFA;
  --grad:      linear-gradient(100deg, var(--g1), var(--g2));

  /* semantic, kept separate from the brand gradient so status stays legible */
  --ok:        #4ADE9B;
  --warn:      #F0B849;
  --bad:       #FB7185;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Cabinet Grotesk", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;

  --wrap: 1160px;
  --r: 16px;
  --r-sm: 12px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--sans); font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
img,svg{ max-width:100%; }

/* ───────── engineering grid + ambient glow ───────── */
.grain{
  position:fixed; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size:72px 72px;
  -webkit-mask-image:radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 78%);
  mask-image:radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 78%);
}
.grain::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(760px 460px at 8% -8%,  rgba(103,232,249,.16), transparent 66%),
    radial-gradient(700px 480px at 92% 4%,  rgba(167,139,250,.14), transparent 66%),
    radial-gradient(680px 520px at 70% 78%, rgba(103,232,249,.07), transparent 66%);
}

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:28px; position:relative; z-index:2; }
.wrap.narrow{ max-width:820px; }

/* ───────── type ───────── */
/* Cabinet Grotesk ships 700/800 only here, so weights are explicit rather
   than relying on the browser to round an in-between value. */
h1,h2,h3{ margin:0; font-family:var(--display); font-weight:700; letter-spacing:-.035em; line-height:1.04; }
h1{
  /* 700, not 800: Extrabold read as "loud startup" rather than composed.
     Cabinet at 700 keeps the authority and gains refinement — the tracking
     is opened very slightly to compensate for the lighter stem. */
  font-size:clamp(2.7rem, 6.4vw, 5rem); font-weight:700;
  letter-spacing:-.038em; line-height:1.01;
  /* Resend's signature: the headline fades as it descends, so the first
     line lands hardest. Clipped to the text, not the box. */
  background:linear-gradient(to bottom right, #fff 28%, rgba(255,255,255,.52));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
/* pika's move: the key word carries the gradient */
h1 em{
  font-style:normal;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
h2{ font-size:clamp(1.85rem, 3.3vw, 2.7rem); margin-bottom:20px; letter-spacing:-.038em; }
h2.tight{ margin-bottom:16px; }
h3{ font-size:1.16rem; letter-spacing:-.024em; font-weight:700; }
p{ margin:0 0 18px; }
em{ font-style:italic; }

.eyebrow{
  font-family:var(--mono); font-size:.71rem; letter-spacing:.2em; text-transform:uppercase;
  margin-bottom:16px;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.lede{ font-size:clamp(1.05rem,1.4vw,1.2rem); color:var(--text-2); max-width:62ch; margin-top:26px; }
.section-sub{ color:var(--text-2); max-width:66ch; font-size:1.04rem; }
.body-lg{ font-size:1.04rem; color:var(--text-2); }
.muted{ color:var(--muted); }

/* ───────── nav ───────── */
/* Invisible at rest, glass on scroll.
   Any always-on treatment — tint, blur, hairline — draws a band across the
   top of the page, and no amount of tuning removes it: the eye reads the
   *edge*, not the colour. So at scroll-top the bar has no background, no
   blur and no border at all; the logo and links simply float on the hero.
   Glass materialises only once content is actually passing underneath. */
.nav{
  position:sticky; top:0; z-index:50;
  background:transparent;
  border-bottom:0;
  transition:background .35s ease, box-shadow .35s ease,
             -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease;
}
.nav::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px; pointer-events:none;
  background:linear-gradient(90deg,
    transparent 0%,
    rgba(103,232,249,.18) 22%,
    rgba(255,255,255,.18) 50%,
    rgba(167,139,250,.18) 78%,
    transparent 100%);
  opacity:0; transition:opacity .35s ease;
}
.nav.scrolled{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  -webkit-backdrop-filter:saturate(190%) blur(22px); backdrop-filter:saturate(190%) blur(22px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 20px 40px -30px #000;
}
.nav.scrolled::after{ opacity:1; }
.nav-inner{ display:flex; align-items:center; gap:32px; height:68px; }
.brand{ display:flex; align-items:center; gap:0; text-decoration:none; color:var(--text); }
.brand-word{ font-family:var(--display); font-weight:800; letter-spacing:-.034em; font-size:1.32rem; }
.nav-links{ display:flex; gap:28px; margin-left:auto; }
.nav-links a{ color:var(--text-2); text-decoration:none; font-size:.93rem; transition:color .18s ease; }
.nav-links a:hover{ color:var(--text); }

/* ───────── buttons ───────── */
.btn{
  appearance:none; border:0; cursor:pointer; white-space:nowrap;
  background:#fff; color:#000;
  font-family:inherit; font-weight:600; font-size:.95rem;
  padding:13px 24px; border-radius:12px;
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset, 0 8px 26px -16px rgba(255,255,255,.5);
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover{ background:#EDEFF2; transform:translateY(-1px);
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset, 0 14px 34px -16px rgba(255,255,255,.6); }
.btn:active{ transform:translateY(0); }
.btn-sm{ padding:9px 18px; font-size:.89rem; text-decoration:none; border-radius:9px; }

/* ───────── hero ───────── */
.hero{ position:relative; padding:132px 0 112px; overflow:hidden; }
.hero-glow{
  position:absolute; top:-300px; left:14%; width:820px; height:600px;
  pointer-events:none; max-width:none;
  background:radial-gradient(closest-side, rgba(103,232,249,.14), transparent 72%);
  filter:blur(20px);
}
/* pill badge — pika principle */
.badge{
  display:inline-flex; align-items:center; gap:10px;
  font-size:.8rem; color:var(--text-2);
  background:var(--surface); border:1px solid transparent;
  border-radius:100px; padding:8px 17px 8px 13px; margin-bottom:32px;
  position:relative;
}
.badge::before{
  content:""; position:absolute; inset:0; border-radius:100px; padding:1px;
  background:linear-gradient(100deg, rgba(103,232,249,.5), rgba(167,139,250,.5), rgba(255,255,255,.12));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none;
}
.badge .dot{
  width:7px; height:7px; border-radius:50%; background:var(--ok);
  box-shadow:0 0 10px rgba(74,222,155,.9); animation:pulse 2.4s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(74,222,155,.5), 0 0 10px rgba(74,222,155,.9); }
  70%{ box-shadow:0 0 0 9px rgba(74,222,155,0), 0 0 10px rgba(74,222,155,.9); }
  100%{ box-shadow:0 0 0 0 rgba(74,222,155,0), 0 0 10px rgba(74,222,155,.9); }
}

/* ───────── waitlist form ───────── */
.waitlist-form{ margin-top:34px; max-width:540px; }
.waitlist-form.big{ max-width:600px; margin-inline:auto; }
.field{ display:flex; gap:10px; }
.field-row{ display:flex; gap:10px; margin-top:10px; }
.waitlist-form input,
.waitlist-form select{
  flex:1; min-width:0; color:var(--text);
  background:var(--surface); border:1px solid var(--line-hi); border-radius:10px;
  padding:13px 16px; font-family:inherit; font-size:.98rem;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.waitlist-form select{ cursor:pointer; }
.waitlist-form input::placeholder{ color:var(--muted); }
.waitlist-form input:focus,
.waitlist-form select:focus{
  outline:none; background:var(--surface-2); border-color:rgba(103,232,249,.55);
  box-shadow:0 0 0 3px rgba(103,232,249,.12);
}
/* honeypot — off-screen rather than display:none, which some bots detect */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-note{ font-size:.85rem; color:var(--muted); margin:13px 0 0; }
.form-status{ font-size:.9rem; margin:12px 0 0; min-height:1.2em; font-family:var(--mono); }
.form-status.ok{ color:var(--ok); }
.form-status.err{ color:var(--bad); }

/* ───────── terminal ───────── */
.terminal{
  margin-top:60px; border:1px solid var(--line); border-radius:var(--r); overflow:hidden;
  background:linear-gradient(180deg, #0C0F13, #08090B);
  box-shadow:0 40px 90px -50px #000, inset 0 1px 0 rgba(255,255,255,.04);
}
.term-bar{
  display:flex; align-items:center; gap:8px;
  padding:13px 17px; border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.02);
}
.tl{ width:11px; height:11px; border-radius:50%; background:#242A31; }
.tl.red{ background:#3E2A2C; } .tl.amber{ background:#3D3526; } .tl.green{ background:#22362E; }
.term-title{ margin-left:10px; font-family:var(--mono); font-size:.76rem; color:var(--muted); }
/* fixed height: the replay types line by line, and a growing box would
   reflow the whole page under the reader's scroll position */
.term-body{
  margin:0; padding:24px 22px 28px; height:452px;
  font-family:var(--mono); font-size:.83rem; line-height:1.85;
  overflow:auto; white-space:pre; color:var(--text-2);
  scrollbar-width:thin; scrollbar-color:#2A313A transparent;
}
.term-body::-webkit-scrollbar{ width:8px; height:8px; }
.term-body::-webkit-scrollbar-thumb{ background:#2A313A; border-radius:4px; }
.term-body::-webkit-scrollbar-track{ background:transparent; }
.term-body .c-mut{ color:#59636D; }
.term-body .c-ok{ color:var(--ok); }
.term-body .c-warn{ color:var(--warn); }
.term-body .c-bad{ color:var(--bad); }
.term-body .c-key{ color:#fff; font-weight:600; }
.cursor{
  display:inline-block; width:8px; height:1em; vertical-align:-2px;
  background:var(--g1); box-shadow:0 0 9px rgba(103,232,249,.8);
  animation:blink 1.05s step-end infinite;
}
@keyframes blink{ 0%,100%{opacity:1} 50%{opacity:0} }

/* ───────── provider strip → checklist chips (pika principle) ───────── */
.strip{
  margin-top:44px; padding-top:28px; border-top:1px solid var(--line);
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  font-size:.82rem; color:var(--muted);
}
.strip span{
  font-family:var(--mono); font-size:.68rem; letter-spacing:.18em;
  text-transform:uppercase; margin-right:6px; color:var(--muted);
}
.strip b{
  display:inline-flex; align-items:center; gap:7px; font-weight:500; color:var(--text-2);
  background:var(--surface); border:1px solid var(--line); border-radius:100px;
  padding:6px 14px 6px 11px;
}
.strip b::before{ content:"✓"; color:var(--ok); font-size:.82em; }
.strip i{ display:none; }   /* separators replaced by the chips themselves */

/* ───────── sections ───────── */
.section{ padding:116px 0; position:relative; }
.alt-bg{ background:var(--bg-2); border-block:1px solid var(--line); }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:36px; margin-top:34px; max-width:980px; }

/* compare */
.compare{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:56px; }
.compare-col{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); padding:32px 30px;
}
/* gradient edge on the column that matters */
.compare-col.alt{ position:relative; background:var(--surface-2); border-color:transparent; }
.compare-col.alt::before{
  content:""; position:absolute; inset:0; border-radius:var(--r); padding:1px;
  background:var(--grad); opacity:.55;
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none;
}
.compare-head{
  font-family:var(--mono); font-size:.71rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--muted); margin-bottom:22px;
}
.compare-col.alt .compare-head{
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.ticks{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.ticks li{ position:relative; padding-left:28px; font-size:.98rem; color:var(--text-2); }
.ticks li::before{ content:"✓"; position:absolute; left:0; top:-1px; color:var(--ok); }
.ticks.x li::before{ content:"—"; color:#39414A; }
.ticks li em{ color:var(--text); font-style:normal; font-weight:700; }

/* ───────── pipeline ───────── */
.pipeline{ margin-top:52px; }
.pipe-row{ display:grid; gap:14px; }
.pipe-row.grid4{ grid-template-columns:repeat(4,1fr); }
.pipe-row.grid3{ grid-template-columns:repeat(3,1fr); }
.node{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-sm); padding:19px 19px 18px;
  transition:border-color .22s ease, transform .22s ease, background .22s ease;
}
.node:hover{ border-color:var(--line-hi); background:var(--surface-2); transform:translateY(-3px); }
.node-kind{
  display:block; font-family:var(--mono); font-size:.64rem;
  letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin-bottom:10px;
}
.node b{ display:block; font-family:var(--display); font-size:1.02rem; font-weight:700; margin-bottom:5px; letter-spacing:-.022em; }
.node small{ display:block; color:var(--muted); font-size:.85rem; line-height:1.5; }
.node.llm{ border-top:2px solid #4E7FA8; }
.node.llm .node-kind{ color:#7FAFD4; }
.node.det{ border-top:2px solid #6E8A55; }
.node.det .node-kind{ color:#A3C081; }
.node.act{ border-top:2px solid var(--g1); }
.node.act .node-kind{ color:var(--g1); }
.node.human{ border-top:2px solid var(--warn); }
.node.human .node-kind{ color:var(--warn); }
.node.audit{ border-top:2px solid var(--g2); }
.node.audit .node-kind{ color:var(--g2); }
.node.in{ border-top:2px solid #39414A; }
.arrow{ width:1px; height:28px; margin:0 auto; position:relative; background:var(--line-hi); }
.arrow::after{
  content:""; position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  border-left:4px solid transparent; border-right:4px solid transparent;
  border-top:5px solid var(--line-hi);
}

/* ───────── cards ───────── */
.cards{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:52px; }
.card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r); padding:32px 30px; position:relative; overflow:hidden;
  transition:border-color .22s ease, transform .22s ease, background .22s ease;
}
.card::after{  /* hairline gradient glint along the top edge */
  content:""; position:absolute; top:0; left:0; right:0; height:1px;
  background:var(--grad); opacity:0; transition:opacity .22s ease;
}
.card:hover{ border-color:var(--line-hi); background:var(--surface-2); transform:translateY(-3px); }
.card:hover::after{ opacity:.8; }
.card-num{
  font-family:var(--mono); font-size:.72rem; letter-spacing:.12em; display:block; margin-bottom:16px;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.card h3{ margin-bottom:12px; }
.card p{ color:var(--text-2); font-size:.97rem; margin-bottom:0; }
.chip{
  display:inline-block; margin-top:20px;
  font-family:var(--mono); font-size:.77rem; color:var(--text-2);
  background:var(--bg); border:1px solid var(--line); border-radius:8px;
  padding:9px 13px; max-width:100%; overflow-x:auto; white-space:nowrap;
}
.chip.ok{ color:var(--ok); background:rgba(74,222,155,.08); border-color:rgba(74,222,155,.25); }

/* ───────── kill switch ───────── */
.killswitch{
  margin-top:16px; display:grid; grid-template-columns:1fr 1fr;
  border:1px solid var(--line); border-radius:var(--r); overflow:hidden; background:var(--surface);
}
.ks-copy{ padding:38px 36px; }
.ks-copy h3{ font-size:1.48rem; margin-bottom:14px; letter-spacing:-.03em; }
.ks-copy p{ color:var(--text-2); font-size:.99rem; margin-bottom:0; }
.ks-log{
  padding:34px 30px; border-left:1px solid var(--line); background:var(--bg);
  font-family:var(--mono); font-size:.8rem;
  display:flex; flex-direction:column; justify-content:center; gap:11px;
}
.ks-line{ color:var(--text-2); display:flex; gap:10px; align-items:baseline; }
.ks-line .t{ color:#4A535C; min-width:52px; }
.ks-line .ok{ color:var(--ok); }
.ks-line .warn{ color:var(--warn); }
.ks-line .bad{ color:var(--bad); }
.ks-line .mut{ color:var(--muted); }
.ks-line b{ color:var(--text); font-weight:600; }
.ks-line.halt{ color:var(--bad); }
.ks-line.halt b{ color:var(--bad); letter-spacing:.08em; text-shadow:0 0 16px rgba(251,113,133,.6); }

/* ───────── compliance ───────── */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.reg-list{ display:grid; gap:12px; }
.reg{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); padding:22px 24px; }
.reg b{
  display:block; font-family:var(--mono); font-size:.78rem; letter-spacing:.04em;
  margin-bottom:8px; font-weight:500;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.reg span{ color:var(--text-2); font-size:.93rem; }
.reg code{ font-family:var(--mono); font-size:.88em; color:var(--text); }

/* ───────── cta ───────── */
.cta{ text-align:center; padding:124px 0 130px; }
.cta .section-sub{ margin-inline:auto; }

/* ───────── footer ───────── */
.footer{ border-top:1px solid var(--line); padding:42px 0; background:var(--bg-2); }
.footer-inner{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.foot-note{ color:var(--muted); font-size:.9rem; margin:0; }
.foot-copy{ margin:0 0 0 auto; color:#4A535C; font-size:.85rem; font-family:var(--mono); }

/* ───────── reveal ───────── */
.reveal{ opacity:0; transform:translateY(18px);
  transition:opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in{ opacity:1; transform:none; }

/* ───────── responsive ───────── */
@media (max-width:960px){
  .pipe-row.grid4{ grid-template-columns:repeat(2,1fr); }
  .split{ grid-template-columns:1fr; gap:36px; }
  .killswitch{ grid-template-columns:1fr; }
  .ks-log{ border-left:0; border-top:1px solid var(--line); }
}
@media (max-width:760px){
  body{ font-size:16px; }
  .nav-links{ display:none; }
  .hero{ padding:68px 0 64px; }
  .section{ padding:82px 0; }
  .two-col, .cards, .compare{ grid-template-columns:1fr; }
  .pipe-row.grid4, .pipe-row.grid3{ grid-template-columns:1fr; }
  .field, .field-row{ flex-direction:column; }
  .btn{ width:100%; }
  .btn-sm{ width:auto; }
  .term-body{ height:400px; font-size:.72rem; }
  .footer-inner{ flex-direction:column; align-items:flex-start; gap:10px; }
  .foot-copy{ margin-left:0; }
}

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