/* Artha Logic Labs: site styles (v2, dark) */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  --bg: #05070B;
  --bg-2: #0A0E15;
  --surface: rgba(255, 255, 255, .025);
  --surface-2: rgba(255, 255, 255, .045);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #EEF2F8;
  --text-2: #A4AFC0;
  --text-3: #6E7A8C;
  --mint: #3DDC97;
  --mint-2: #2BBF80;
  --blue: #6E9BFF;
  --amber: #F6B84B;
  --red: #FF7A7A;
  --radius: 16px;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
body {
  margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg);
  font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01"; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text); }
::selection { background: rgba(61, 220, 151, .3); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 96px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.mono { font-family: var(--mono); }

/* ---------- Header: floating glass pill ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.site-header .container { position: relative; }
.nav-shell {
  display: flex; align-items: center; gap: 20px; height: 56px; padding: 0 10px 0 18px;
  background: rgba(10, 14, 21, .72); border: 1px solid var(--border); border-radius: 999px;
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-weight: 650; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; flex: none; }
.wm { font-size: 17.5px; letter-spacing: -.035em; white-space: nowrap; }
.wm-a { font-weight: 750; color: var(--text); }
.wm-b { font-weight: 400; color: var(--text-2); letter-spacing: -.02em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); text-decoration: none; white-space: nowrap; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px;
  transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav .nav-cta { display: none; }
.menu-toggle { display: none; margin-left: auto; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text);
  border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px;
  border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--mint); color: #04130C; box-shadow: 0 0 0 1px rgba(61,220,151,.4), 0 8px 30px rgba(61,220,151,.25); }
.btn-primary:hover { background: #55E6A7; color: #04130C; box-shadow: 0 0 0 1px rgba(61,220,151,.6), 0 10px 40px rgba(61,220,151,.38); }
.btn-ghost { background: var(--surface-2); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--text); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Eyebrow chip ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; text-decoration: none; }
a.chip:hover { border-color: rgba(61,220,151,.5); color: var(--text); }
.chip .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.55); } 70% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 20px; text-align: center; isolation: isolate; overflow-x: clip; }
.hero::before { /* grid */
  content: ""; position: absolute; inset: -120px 0 0; z-index: -2;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  opacity: .55;
}
.hero::after { /* glow */
  content: ""; position: absolute; z-index: -1; left: 50%; top: -220px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(61,220,151,.20), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(110,155,255,.22), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin: 26px auto 22px; max-width: 980px; text-wrap: balance; }
.grad { background: linear-gradient(100deg, #FFFFFF 0%, #BFD3FF 35%, #3DDC97 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); margin: 0 auto 34px; max-width: 40em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Product window */
.window-wrap { position: relative; max-width: 980px; margin: 64px auto 0; }
.window-wrap::before { content: ""; position: absolute; inset: 40px 6% -30px; background: radial-gradient(closest-side, rgba(61,220,151,.18), transparent); filter: blur(30px); z-index: -1; }
.window { text-align: left; border-radius: 18px; background: linear-gradient(180deg, rgba(20,26,36,.92), rgba(10,14,21,.95));
  border: 1px solid var(--border-2); box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2A3240; display: block; }
.win-title { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--amber);
  background: rgba(246,184,75,.1); border: 1px solid rgba(246,184,75,.3); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.win-body { display: grid; grid-template-columns: 280px 1fr; }
.totals { padding: 20px; border-right: 1px solid var(--border); display: grid; gap: 12px; align-content: start; }
.stat { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 14px 16px; }
.stat .k { font-size: 12.5px; color: var(--text-3); }
.stat .v { font-family: var(--mono); font-weight: 600; font-size: 21px; letter-spacing: -.02em; margin-top: 2px; }
.stat.diff { border-color: rgba(246,184,75,.35); background: rgba(246,184,75,.06); }
.stat.diff .v { color: var(--amber); }
.stat .s { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 2px; }
.rows { padding: 18px 22px 8px; }
.rows-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.row b { font-weight: 600; font-size: 14.5px; }
.row small { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.amt { font-family: var(--mono); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.amt.pos { color: var(--mint); }
.amt.neg { color: var(--red); }
.bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 4px; width: 0; transition: width 1.2s var(--ease); }
.bar .pos { background: linear-gradient(90deg, rgba(61,220,151,.5), var(--mint)); }
.bar .neg { background: linear-gradient(90deg, rgba(255,122,122,.5), var(--red)); }
.in .bar span { width: var(--w); }
.win-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 12.5px; color: var(--text-3); background: rgba(255,255,255,.015); }
.win-foot .ok { color: var(--mint); font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* Coverage strip under hero */
.strip { padding: 24px 0 0; text-align: center; }
.strip p { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.strip li { font-size: 14px; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 14px; }

/* ---------- Sections ---------- */
section { padding: 52px 0; position: relative; }
.head { max-width: 760px; margin-bottom: 32px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; margin: 18px 0 16px; text-wrap: balance; }
h2 .dim { color: var(--text-3); }
.lead2 { font-size: 18px; color: var(--text-2); margin: 0; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; margin: 0 0 8px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }

/* Cards + spotlight */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease); }
.card:hover { border-color: var(--border-2); }
.card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(61,220,151,.09), transparent 45%); }
.spot:hover::before { opacity: 1; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.b-4 { grid-column: span 4; } .b-2 { grid-column: span 2; } .b-3 { grid-column: span 3; }
.num { font-family: var(--mono); font-size: 12.5px; color: var(--mint); display: block; margin-bottom: 14px; }
.viz { margin-top: 22px; }
.bins { display: flex; align-items: flex-end; gap: 5px; height: 84px; }
.bins i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, rgba(110,155,255,.75), rgba(110,155,255,.18)); display: block; }
.bins i.hot { background: linear-gradient(180deg, var(--mint), rgba(61,220,151,.2)); }
.viz-legend { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 10px; }
.viz-legend b { color: var(--text); font-weight: 600; }
.ledger { font-family: var(--mono); font-size: 13px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ledger div { display: flex; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--border); color: var(--text-2); }
.ledger div:first-child { border-top: 0; }
.ledger .strike { color: var(--text-3); text-decoration: line-through; }
.sheet { font-family: var(--mono); font-size: 12.5px; display: grid; grid-template-columns: 34px repeat(3, 1fr); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sheet span { padding: 7px 10px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet span:nth-child(4n) { border-right: 0; }
.sheet .h { color: var(--text-3); background: rgba(255,255,255,.02); }
.sheet .err { color: var(--red); background: rgba(255,122,122,.07); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row span { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--border-2); color: var(--text-3); }

/* Coverage grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.code-tag { display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--blue);
  border: 1px solid rgba(110,155,255,.3); background: rgba(110,155,255,.08); padding: 3px 8px; border-radius: 6px; margin-bottom: 16px; }
.card .sub { display: block; font-size: 13.5px; color: var(--text-3); margin: -4px 0 10px; }
.note { color: var(--text-3); font-size: 14.5px; margin: 26px 0 0; text-align: center; }

/* Pipeline */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 18px; }
.pipeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 1px;
  background: linear-gradient(90deg, rgba(110,155,255,.1), rgba(110,155,255,.6), rgba(61,220,151,.9)); }
.step { position: relative; text-align: left; }
.node { position: relative; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--bg-2); border: 1px solid var(--border-2); font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--blue); }
.step.last .node { color: var(--mint); border-color: rgba(61,220,151,.55); box-shadow: 0 0 0 6px rgba(61,220,151,.08), 0 0 30px rgba(61,220,151,.25); }
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }

/* AI split */
.ai { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: center; }
.list { list-style: none; margin: 0 0 26px; padding: 0; }
.list li { position: relative; padding: 10px 0 10px 32px; color: var(--text-2); border-top: 1px solid var(--border); }
.list li:first-child { border-top: 0; }
.list li::before { position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.list.yes li::before { content: "\2713"; color: var(--mint); background: rgba(61,220,151,.12); }
.list.no li::before { content: "\2715"; color: var(--red); background: rgba(255,122,122,.12); }
.list-title { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 6px; }
.code { border-radius: 16px; border: 1px solid var(--border-2); background: #080B11; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.code pre { margin: 0; padding: 22px 22px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #C9D3E3; overflow-x: auto; }
.c-com { color: #5F6B7D; } .c-key { color: #C792EA; } .c-fn { color: var(--blue); } .c-str { color: var(--mint); } .c-num { color: var(--amber); }

/* Security */
.sec { display: flex; gap: 18px; align-items: flex-start; }
.icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(61,220,151,.16), rgba(61,220,151,.04)); border: 1px solid rgba(61,220,151,.25); }
.icon svg { width: 22px; height: 22px; }

/* Origin */
.origin { max-width: 900px; margin: 0 auto; text-align: center; }
.origin blockquote { margin: 0 0 30px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -.03em; font-weight: 650; text-wrap: balance; }
.origin p { color: var(--text-2); font-size: 17.5px; max-width: 46em; margin: 0 auto 14px; }

/* Partners */
.gborder { position: relative; border-radius: 24px; padding: 1px; background: linear-gradient(135deg, rgba(61,220,151,.6), rgba(110,155,255,.35) 40%, rgba(255,255,255,.06) 70%); }
.partners { position: relative; border-radius: 23px; background: radial-gradient(800px 300px at 15% 0%, rgba(61,220,151,.10), transparent 60%), #080C12;
  padding: 56px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; overflow: hidden; }
.benefits { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.benefits li { padding: 14px 16px 14px 48px; position: relative; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-2); font-size: 15px; }
.benefits li b { display: block; color: var(--text); font-weight: 600; }
.benefits li::before { content: "\2713"; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mint); color: #04130C; font-size: 11px; font-weight: 800; }
.apply { align-self: start; border: 1px solid var(--border-2); border-radius: 18px; background: rgba(255,255,255,.03); padding: 28px; }
.apply h3 { font-size: 21px; }
.apply p { color: var(--text-2); font-size: 15px; margin: 0 0 14px; }
.apply ul { margin: 0 0 24px; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.apply li { margin-bottom: 7px; }
.apply li::marker { color: var(--mint); }
.apply .btn { width: 100%; }
.apply .fine { font-size: 13px; color: var(--text-3); margin: 14px 0 0; text-align: center; }
.apply .fine a { color: var(--text-2); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 10px; transition: border-color .2s, background .2s; }
.faq details[open] { border-color: var(--border-2); background: var(--surface-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); font-size: 15.5px; }

/* CTA band */
.cta-final { text-align: center; padding: 4px 0 64px; }

/* Back to top: appears after scrolling; the ring fills with scroll progress */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 50px; height: 50px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: rgba(10, 14, 21, .78); border: 1px solid var(--border-2);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(12px) scale(.92); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .2s, box-shadow .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: rgba(61, 220, 151, .6); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 24px rgba(61, 220, 151, .25); }
.to-top:hover .arrow-up { transform: translateY(-2px); }
.to-top .arrow-up { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.to-top .ring { position: absolute; inset: -1px; width: 50px; height: 50px; transform: rotate(-90deg); pointer-events: none; }
.to-top .ring circle { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; }
.cta-final h2 { max-width: 16ch; margin: 0 auto 26px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 40px; color: var(--text-3); font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.disclaimer { font-size: 12.5px; line-height: 1.65; color: var(--text-3); max-width: 70em; margin: 0 0 10px; }

/* Simple pages (privacy / 404) */
.page { padding: 60px 0 100px; }
.page .container { max-width: 780px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.04em; line-height: 1.05; margin: 10px 0 10px; }
.page h2 { font-size: 22px; letter-spacing: -.01em; margin: 40px 0 10px; }
.page p, .page li { color: var(--text-2); }
.page a:not(.btn) { color: var(--mint); }
.page .updated { color: var(--text-3); font-size: 14.5px; margin: 0 0 32px; font-family: var(--mono); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal][data-d="1"] { transition-delay: .08s; }
.js [data-reveal][data-d="2"] { transition-delay: .16s; }
.js [data-reveal][data-d="3"] { transition-delay: .24s; }
.js [data-reveal][data-d="4"] { transition-delay: .32s; }
/* Hero never waits for scrolling: it animates in with CSS on load */
.js .hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; }
.js .hero [data-reveal][data-d="1"] { animation-delay: .08s; }
.js .hero [data-reveal][data-d="2"] { animation-delay: .16s; }
.js .hero [data-reveal][data-d="3"] { animation-delay: .24s; }
.js .hero [data-reveal][data-d="4"] { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: none; }
  .bar span { transition: none; }
  .chip .pulse { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pipeline { grid-template-columns: 1fr; gap: 0; }
  .pipeline::before { left: 27px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(110,155,255,.2), rgba(110,155,255,.6), rgba(61,220,151,.9)); }
  .step { display: grid; grid-template-columns: 54px 1fr; gap: 0 20px; padding-bottom: 22px; }
  .node { margin-bottom: 0; grid-row: span 2; }
  .ai, .partners { grid-template-columns: 1fr; }
  .partners { padding: 36px; }
}
@media (max-width: 860px) {
  .win-body { grid-template-columns: 1fr; }
  .totals { border-right: 0; border-bottom: 1px solid var(--border); grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .b-4, .b-2, .b-3 { grid-column: auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  section { padding: 44px 0; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .nav-shell > .btn-sm { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
  .menu-toggle { display: inline-block; }
  .site-header.open .nav { display: flex; flex-direction: column; position: absolute; top: 64px; left: 24px; right: 24px; gap: 2px;
    background: rgba(10,14,21,.97); border: 1px solid var(--border-2); border-radius: 18px; padding: 10px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
  .site-header.open .nav a { padding: 12px 14px; font-size: 16px; border-radius: 10px; }
  .site-header.open .nav .nav-cta { display: block; color: var(--mint); font-weight: 650; }
}
@media (max-width: 620px) {
  .nav-shell > .btn-sm { display: none; }
  .menu-toggle { margin-left: auto; }
  .container { padding: 0 16px; }
  .site-header.open .nav { left: 16px; right: 16px; }
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .totals { grid-template-columns: 1fr; }
  .stat { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .stat .v { font-size: 17px; }
  .stat .s { display: none; }
  .rows { padding: 14px 16px 4px; }
  .win-foot { padding: 12px 16px; flex-direction: column; align-items: flex-start; }
  .win-title { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .partners { padding: 24px; }
  .apply { padding: 22px; }
  .sheet { font-size: 11.5px; }
  section { padding: 36px 0; }
  .head { margin-bottom: 30px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* Without JavaScript, show final state */
:root:not(.js) .bar span { width: var(--w); }

/* ---------- Apply page / form ---------- */
.apply-page { padding: 40px 0 90px; position: relative; isolation: isolate; }
.apply-page::after { content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: 1000px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(61,220,151,.14), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(110,155,255,.16), transparent 70%);
  pointer-events: none; }
.apply-layout { display: grid; grid-template-columns: .9fr 1.2fr; gap: 48px; align-items: start; }
.apply-intro h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; letter-spacing: -.04em; margin: 18px 0 16px; text-wrap: balance; }
.apply-intro .lead2 { margin-bottom: 30px; }
.next-steps { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: ns; }
.next-steps li { position: relative; padding: 0 0 18px 46px; color: var(--text-2); font-size: 15.5px; }
.next-steps li b { display: block; color: var(--text); font-weight: 600; }
.next-steps li::before { counter-increment: ns; content: counter(ns); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--mint);
  border: 1px solid rgba(61,220,151,.35); background: rgba(61,220,151,.08); }
.apply-intro .fine { color: var(--text-3); font-size: 14px; }
.apply-intro .fine a { color: var(--text-2); }

.form-card { border: 1px solid var(--border-2); border-radius: 20px; background: linear-gradient(180deg, rgba(20,26,36,.85), rgba(10,14,21,.9));
  padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--text); }
.field label .opt { font-weight: 400; color: var(--text-3); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: rgba(255,255,255,.035);
  border: 1px solid var(--border-2); border-radius: 11px; padding: 11px 13px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #0E131B; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #5A6576; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.22); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); background: rgba(61,220,151,.04); box-shadow: 0 0 0 4px rgba(61,220,151,.14); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,122,122,.12); }
.field .err { display: none; font-size: 13px; color: var(--red); }
.field.invalid .err { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-foot .note-s { font-size: 13px; color: var(--text-3); margin: 0; max-width: 30em; }
.form-foot .note-s a { color: var(--text-2); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(4,19,12,.25); border-top-color: #04130C; animation: spin .8s linear infinite; display: none; }
.sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 16px; padding: 13px 15px; border-radius: 12px; font-size: 14.5px; display: none; }
.form-status.error { display: block; color: #FFC9C9; background: rgba(255,122,122,.08); border: 1px solid rgba(255,122,122,.3); }
.form-status.error a { color: #FFFFFF; }
.form-done { display: none; text-align: center; padding: 34px 10px 20px; }
.form-done .ok-badge { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
  background: rgba(61,220,151,.12); border: 1px solid rgba(61,220,151,.45); box-shadow: 0 0 40px rgba(61,220,151,.25); }
.form-done h2 { font-size: 30px; margin: 0 0 10px; }
.form-done p { color: var(--text-2); margin: 0 auto 6px; max-width: 30em; }
.form-card.done form { display: none; }
.form-card.done .form-done { display: block; }

@media (max-width: 960px) { .apply-layout { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .field input, .field select, .field textarea { font-size: 16px; } /* 16px+ stops iOS zooming in on focus */
  .form-card { padding: 22px 18px; }
  .form-foot .btn { width: 100%; }
}
