/* ============================================================
   interfaceful — "Nova" vibrant futuristic theme
   Midnight Black · Deep Purple · Indigo · Bright Teal · gradients
   Mirrors class names so app-nova.js renders into it.
   ============================================================ */


:root {
  --bg:        #0B0B0C;
  --bg2:       #121214;
  --navy:      #131316;
  --surface:   #18181B;
  --surface-2: #202024;
  --ink:       #F4F4F6;
  --ink-2:     #A7A9B0;
  --ink-3:     #6F727B;
  --line:      rgba(160,163,170,.16);
  --line-2:    rgba(160,163,170,.30);

  --purple:    #14532D;
  --purple-lt: #16A34A;
  --indigo:    #059669;
  --indigo-lt: #4ADE80;
  --teal:      #10B981;
  --teal-2:    #0D9E6E;
  --magenta:   #6EE7B7;
  --green:     #10B981;
  --amber:     #D1FAE5;
  --accent:    var(--purple-lt);

  /* signature multi-color gradient */
  --grad: linear-gradient(100deg, #0F5132 0%, #16A34A 45%, #6EE7B7 100%);
  --grad-rev: linear-gradient(100deg, #6EE7B7 0%, #16A34A 55%, #0F5132 100%);

  --maxw: 1200px;
  --gut: 36px;

  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Sora', system-ui, sans-serif;
  --disp: 'Sora', system-ui, sans-serif;

  --paper: var(--bg); --paper-2: var(--bg2);
  --panel: #09090A; --panel-2: #15151870;
  --panel-line: rgba(16,185,129,.18);
  --panel-ink: #D4D6DB; --panel-ink2: #7C7F88;
  --cyan: var(--teal); --cyan-br: var(--teal); --blue: var(--purple-lt); --blue-lt: var(--indigo-lt); --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
::selection { background: rgba(22,163,74,.45); color: #fff; }
a { color: inherit; text-decoration: none; }

/* ===== animated background ===== */
.bp-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bp-grid::before {
  content: ""; position: absolute; inset: -40px;
  background-image: linear-gradient(rgba(160,163,170,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(160,163,170,.07) 1px, transparent 1px);
  background-size: 44px 44px; animation: gridMove 26s linear infinite;
  -webkit-mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 72%);
          mask-image: radial-gradient(circle at 50% 24%, #000 0%, transparent 72%);
}
.glow-a, .glow-b { position: fixed; border-radius: 50%; z-index: 0; pointer-events: none; filter: blur(20px); }
.glow-a { top: -140px; left: 50%; width: 800px; height: 800px; transform: translateX(-50%); background: radial-gradient(circle, rgba(22,163,74,.20), transparent 62%); animation: floatA 16s ease-in-out infinite; }
.glow-b { top: 36%; right: -180px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(16,185,129,.13), transparent 64%); animation: floatB 20s ease-in-out infinite; }
.glow-c { position: fixed; bottom: -160px; left: -120px; width: 520px; height: 520px; border-radius: 50%; z-index: 0; pointer-events: none; filter: blur(20px); background: radial-gradient(circle, rgba(110,231,183,.10), transparent 64%); animation: floatB 24s ease-in-out infinite; }
@keyframes gridMove { to { transform: translate(44px, 44px); } }
@keyframes floatA { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(40px);} }
@keyframes floatB { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-50px);} }
@keyframes pulse { 0%,100%{ opacity:.5;} 50%{ opacity:1;} }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes ping { 0%{ box-shadow:0 0 0 0 color-mix(in srgb,var(--teal) 70%,transparent);} 70%{ box-shadow:0 0 0 9px transparent;} 100%{ box-shadow:0 0 0 0 transparent;} }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

/* ===== eyebrow ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); padding: 6px 15px; border-radius: 999px; white-space: nowrap;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.26);
}
.eyebrow .idx { color: var(--purple-lt); font-weight: 600; }
.eyebrow.on-dark { color: var(--teal); }
@media (max-width: 520px){ .eyebrow { white-space: normal; } }

h1, h2, h3 { font-family: var(--disp); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; color: var(--ink); }
.h-display { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.h2 { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.015em; }
.h3 { font-size: clamp(17px, 1.6vw, 20px); }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); line-height: 1.6; font-weight: 300; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); color: var(--ink); }

.rule { position: relative; height: 1px; background: var(--grad); opacity: .5; margin: 0; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .2s, border-color .2s, color .2s; white-space: nowrap;
}
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: linear-gradient(100deg, #16A34A 0%, #059669 45%, #10B981 100%); background-size: 100% 100%; color: #fff; box-shadow: 0 0 34px -6px rgba(22,163,74,.7); }
.btn-primary:hover { filter: brightness(1.12) saturate(1.1); transform: translateY(-2px); box-shadow: 0 0 50px -4px rgba(16,185,129,.55); }
.btn-ghost { background: rgba(255,255,255,.02); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-cyan { background: var(--teal); color: #04121b; box-shadow: 0 0 36px -6px var(--teal); }
.btn-cyan:hover { background: #6EE7B7; transform: translateY(-2px); }
button.btn { font-family: var(--sans); color: inherit; appearance: none; -webkit-appearance: none; }
button.btn-primary { color: #fff; }
button.btn-ghost { color: var(--ink); background: rgba(255,255,255,.02); border-color: var(--line-2); }
button.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.disc-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--green); background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.orig-price { font-family: var(--disp); font-size: 22px; font-weight: 400; color: var(--ink-3); text-decoration: line-through; margin-left: 4px; }

/* ===== NAV ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gut); background: rgba(13,14,21,0); backdrop-filter: blur(0px); border-bottom: 1px solid transparent; transition: all .35s; }
.nav.scrolled { background: rgba(13,14,21,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.brand { font-family: var(--disp); font-weight: 800; font-size: 21px; letter-spacing: -.02em; display: flex; align-items: center; gap: 7px; color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex-shrink: 0; display: block; }
.brand .mark .lnode { transform-box: fill-box; transform-origin: center; animation: lnodePulse 3s ease-in-out infinite; }
.brand .mark .lnode:nth-of-type(2){ animation-delay: .5s; }
.brand .mark .lnode:nth-of-type(3){ animation-delay: 1s; }
.brand .mark .lnode:nth-of-type(4){ animation-delay: 1.5s; }
.brand .mark .lnode:nth-of-type(5){ animation-delay: 2s; }
.brand .mark .lnode:nth-of-type(6){ animation-delay: 2.5s; }
.brand .mark .lnode:nth-of-type(7){ animation-delay: 3s; }
.brand .mark .lnode:nth-of-type(8){ animation-delay: 3.5s; }
@keyframes lnodePulse { 0%,100%{ opacity:.5; } 50%{ opacity:1; } }
.brand .wordmark { font-family: var(--disp); font-weight: 800; letter-spacing: -.022em; background: linear-gradient(100deg, #22C55E 0%, #6EE7B7 100%); background-size: 160% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary { color: #fff; }
.nav-cta { padding: 10px 20px; font-size: 14px; }
@media (max-width: 880px){ .nav-links a:not(.nav-cta){ display:none; } }

/* ===== HERO ===== */
.hero { padding: 168px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center; }
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accentword { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }
.hero .lede { max-width: 540px; margin-bottom: 18px; }
.hero .subnote { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.statstrip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border: 1px solid var(--line); background: rgba(24,24,27,.5); border-radius: 16px; overflow: hidden; backdrop-filter: blur(6px); }
.statstrip .cell { padding: 24px 26px; border-right: 1px solid var(--line); }
.statstrip .cell:last-child { border-right: none; }
.statstrip .n { font-family: var(--disp); font-weight: 800; font-size: 24px; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statstrip .n .u { -webkit-text-fill-color: var(--teal); }
.statstrip .l { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; margin-top: 5px; }
@media (max-width: 720px){ .statstrip { grid-template-columns: repeat(2,1fr); } .statstrip .cell:nth-child(2){border-right:none;} .statstrip .cell:nth-child(1),.statstrip .cell:nth-child(2){border-bottom:1px solid var(--line);} }

/* ===== topology panel ===== */
.topo { position: relative; background: var(--panel); border-radius: 18px; overflow: hidden; border: 1px solid var(--panel-line); box-shadow: 0 0 0 1px rgba(16,185,129,.05), 0 40px 90px -34px rgba(22,163,74,.5); aspect-ratio: 1 / 1; }
.topo .topo-head { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; font-family: var(--mono); font-size: 11px; color: var(--panel-ink2); letter-spacing: .07em; border-bottom: 1px solid var(--panel-line); background: linear-gradient(rgba(10,9,18,.9), rgba(10,9,18,0)); }
.topo .topo-head .live { display: flex; align-items: center; gap: 7px; color: var(--teal); }
.topo .topo-head .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: ping 1.8s infinite; }
.topo .sweep { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: conic-gradient(from 0deg, transparent 0deg, transparent 300deg, rgba(16,185,129,.14) 350deg, rgba(16,185,129,.32) 360deg); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 52%, transparent 60%); mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 52%, transparent 60%); animation: sweepRot 7s linear infinite; opacity:.9; }
@keyframes sweepRot { to { transform: rotate(360deg); } }
.topo svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.topo .topo-foot { position: absolute; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; gap: 22px; padding: 13px 18px; font-family: var(--mono); font-size: 10.5px; color: var(--panel-ink2); border-top: 1px solid var(--panel-line); background: linear-gradient(rgba(10,9,18,0), rgba(10,9,18,.9)); flex-wrap: wrap; }
.topo .topo-foot .m { display: flex; align-items: baseline; gap: 6px; }
.topo .topo-foot .m b { color: var(--teal); font-weight: 600; }
.topo .topo-foot .m.ok b { color: var(--green); }

/* ===== bands ===== */
.band { padding: 116px 0; }
.band.paper2 { background: linear-gradient(var(--bg), var(--bg2), var(--bg)); }
.band.ink { background: var(--navy); position: relative; }
.sec-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head .h2 { margin: 0 0 18px; }
.sec-head .lede { margin: 0 auto; }
.sec-head.left { margin-left: 0; text-align: left; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; transition: border-color .3s, transform .3s, box-shadow .3s; position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: 18px; background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(22,163,74,.16), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: rgba(22,163,74,.5); transform: translateY(-5px); box-shadow: 0 26px 56px -30px rgba(22,163,74,.6); }
.card:hover::after { opacity: 1; }
.card .cn { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }
.card .ct { font-family: var(--disp); font-size: 18px; font-weight: 700; margin: 14px 0 10px; letter-spacing: -.01em; color: var(--ink); }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; font-weight: 300; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px){ .cols-3 { grid-template-columns: 1fr; } .cols-2 { grid-template-columns: 1fr; } .hero-grid { grid-template-columns: 1fr; } }

.glyph { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(22,163,74,.14); border: 1px solid rgba(22,163,74,.34); }
.glyph svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 1.6; }

.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; transition: border-color .3s, transform .3s; position: relative; overflow: hidden; }
.feat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); opacity: .8; }
.feat:hover { border-color: rgba(22,163,74,.45); transform: translateY(-4px); }
.feat .ft { font-family: var(--disp); font-weight: 700; font-size: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.feat ul { margin: 0; }
.feat li { list-style: none; font-family: var(--mono); font-size: 13px; color: var(--ink-2); padding: 9px 0; border-bottom: 1px solid var(--line); }
.feat li:last-child { border-bottom: none; }

/* ===== ARCHITECTURE STACK ===== */
.stack { display: grid; border: 1px solid var(--panel-line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.layer { display: grid; grid-template-columns: 156px 1fr; cursor: pointer; border-bottom: 1px solid var(--panel-line); transition: background .3s; }
.layer:last-child { border-bottom: none; }
.layer:hover, .layer.open, .layer.cycle { background: rgba(22,163,74,.08); }
.layer .lcode { padding: 22px; border-right: 1px solid var(--panel-line); }
.layer .lcode .lc { font-family: var(--mono); font-size: 14px; color: var(--teal); font-weight: 600; }
.layer .lcode .ll { font-family: var(--mono); font-size: 11px; color: var(--panel-ink2); margin-top: 4px; letter-spacing: .04em; }
.layer .lbody { padding: 22px 24px; }
.layer .lname { font-family: var(--disp); font-size: 16px; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: space-between; }
.layer .lname .tog { font-family: var(--mono); font-size: 18px; color: var(--panel-ink2); transition: transform .3s; }
.layer.open .lname .tog { transform: rotate(45deg); color: var(--teal); }
.layer .ldesc { color: var(--panel-ink2); font-size: 14.5px; margin-top: 6px; font-weight: 300; }
.layer .comps { display: flex; flex-wrap: wrap; gap: 7px; max-height: 0; overflow: hidden; transition: max-height .4s ease, margin-top .4s ease; }
.layer.open .comps { max-height: 220px; margin-top: 16px; }
.layer .comps span { font-family: var(--mono); font-size: 11.5px; color: var(--panel-ink); background: rgba(16,185,129,.07); border: 1px solid var(--panel-line); padding: 5px 10px; border-radius: 7px; }
@media (max-width: 640px){ .layer { grid-template-columns: 92px 1fr; } }

.planes { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; margin-top: 22px; border-radius: 16px; overflow: hidden; }
.plane { background: var(--surface); border: 1px solid var(--line-2); padding: 26px; }
.plane.ctrl { border-right: none; } .plane.data { border-left: none; }
.plane .pl { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.plane .pt { font-family: var(--disp); font-size: 17px; font-weight: 700; margin: 8px 0; color: var(--ink); }
.plane p { font-size: 14.5px; color: var(--ink-2); font-weight: 300; }
.gate { display: grid; place-items: center; width: 66px; background: var(--grad); color: #fff; }
.gate .gt { writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
@media(max-width:640px){ .planes{ grid-template-columns:1fr; } .plane.ctrl{border-right:1px solid var(--line-2);border-bottom:none;} .plane.data{border-left:1px solid var(--line-2);} .gate{width:auto;height:48px;} .gate .gt{writing-mode:horizontal-tb;} }

.modal-row { display: grid; grid-template-columns: 190px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.modal-row .mk { font-family: var(--mono); font-size: 14px; color: var(--teal); font-weight: 500; }
.modal-row .mv { color: var(--ink-2); font-size: 15px; font-weight: 300; }
@media(max-width:640px){ .modal-row{ grid-template-columns:1fr; gap:4px; } }

/* ===== CONNECTORS ===== */
.conn-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 28px; justify-content: center; }
.conn-tab { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; padding: 9px 17px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(24,24,27,.6); cursor: pointer; color: var(--ink-2); transition: all .2s; text-transform: uppercase; }
.conn-tab:hover { border-color: var(--teal); color: var(--teal); }
.conn-tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 24px -6px var(--purple-lt); }
.conn-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
@media(max-width:900px){ .conn-grid{ grid-template-columns: repeat(3,1fr); } }
@media(max-width:560px){ .conn-grid{ grid-template-columns: repeat(2,1fr); } }
.conn { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 19px 17px; position: relative; transition: opacity .3s, transform .3s, border-color .25s, box-shadow .25s; }
.conn:hover { border-color: rgba(22,163,74,.5); box-shadow: 0 16px 34px -22px rgba(22,163,74,.7); transform: translateY(-3px); }
.conn[data-hidden="1"] { opacity: .2; }
.conn .ct-tier { position: absolute; top: 13px; right: 13px; width: 7px; height: 7px; border-radius: 50%; }
.conn .ct-name { font-family: var(--disp); font-weight: 700; font-size: 14px; color: var(--ink); }
.conn .ct-proto { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 5px; }
.conn .ct-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-top: 13px; }
.tier1 { color: var(--teal); } .tier1.bg { background: var(--teal); }
.tier2 { color: var(--green); } .tier2.bg { background: var(--green); }
.tier3 { color: var(--amber); } .tier3.bg { background: var(--amber); }
.tierP { color: var(--magenta); } .tierP.bg { background: var(--magenta); }
.tierU { color: var(--ink-3); } .tierU.bg { background: var(--ink-3); }
.conn-note { display:flex; gap:16px; margin-top: 28px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 12px; }
.conn-note p { font-size: 14.5px; color: var(--ink-2); font-weight: 300; }
.conn-note .mono { color: var(--teal); }

/* ===== SECURITY ===== */
.sec-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media(max-width:900px){ .sec-list{ grid-template-columns: 1fr 1fr; } }
@media(max-width:600px){ .sec-list{ grid-template-columns: 1fr; } }
.sec-item { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s, transform .25s; }
.sec-item:hover { border-color: rgba(16,185,129,.4); transform: translateY(-4px); }
.sec-item .si { font-family: var(--mono); font-size: 12px; color: var(--purple-lt); letter-spacing: .06em; }
.sec-item .st { font-family: var(--disp); font-size: 15px; font-weight: 700; color: var(--ink); margin: 12px 0 8px; }
.sec-item p { font-size: 14px; color: var(--ink-2); font-weight: 300; }

/* ===== PRICING ===== */
.toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px; background: rgba(24,24,27,.6); }
.toggle button { font-family: var(--mono); font-size: 12.5px; padding: 9px 20px; border: none; background: transparent; border-radius: 999px; cursor: pointer; color: var(--ink-2); transition: all .2s; letter-spacing: .02em; }
.toggle button.active { background: var(--grad); color: #fff; box-shadow: 0 0 24px -6px var(--purple-lt); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-grid .tier { display: flex; flex-direction: column; }
.price-grid .tier .tier-in { display: flex; flex-direction: column; flex: 1; }
.price-grid .tier .tier-in ul { flex: 1; }
.price-grid .tier.pop { transform: none; }
@media(max-width:900px){ .price-grid{ grid-template-columns:1fr; } }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; position: relative; transition: transform .3s, box-shadow .3s; }
.tier.pop { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: 0 34px 70px -38px rgba(22,163,74,.8); transform: translateY(-6px); }
.tier .pop-tag { background: var(--grad); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-align: center; padding: 8px; text-transform: uppercase; font-weight: 600; }
.tier .tier-in { padding: 30px; }
.tier .tn { font-family: var(--disp); font-size: 18px; font-weight: 700; }
.tier .ttag { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 6px; min-height: 30px; }
.tier .price { display: flex; align-items: baseline; gap: 6px; margin: 20px 0; }
.tier .price .amt { font-family: var(--disp); font-weight: 800; font-size: 36px; letter-spacing: -.03em; color: var(--ink); }
.tier .price .un { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.tier .calc { font-family: var(--mono); font-size: 12px; color: var(--teal); margin: -10px 0 16px; min-height: 16px; }
.tier ul { list-style: none; }
.tier li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 8px 0; line-height: 1.4; font-weight: 300; }
.tier li .ck { flex-shrink: 0; font-family: var(--mono); }
.tier li.no { color: var(--ink-3); } .tier li.no .ck { color: var(--ink-3); }
.tier li.head { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 16px; font-weight: 400; }
.tier .tier-cta { margin-top: 24px; width: 100%; justify-content: center; }
.addons { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }
.addons .ad { text-align: center; }
.addons .ad .an { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.addons .ad .ap { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* ===== VERTICALS ===== */
.vert-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media(max-width:800px){ .vert-grid{ grid-template-columns:1fr; } }
.vert { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.vert:hover { border-color: rgba(22,163,74,.5); box-shadow: 0 0 30px -12px var(--purple-lt); transform: translateY(-3px); }
.vert .vidx { font-family: var(--mono); font-size: 12px; color: var(--purple-lt); }
.vert .vn { font-family: var(--disp); font-size: 14px; font-weight: 700; color: var(--ink); }
.vert .vw { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 5px; }

/* ===== CTA ===== */
.cta { background: linear-gradient(160deg, #151517, var(--bg)); padding: 140px 0; text-align: center; position: relative; overflow: hidden; }
.cta .glow { position: absolute; top: 50%; left: 50%; width: 860px; height: 860px; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(22,163,74,.22), transparent 64%); pointer-events: none; animation: pulse 6s ease-in-out infinite; }
.cta h2 { font-size: clamp(24px,3vw,38px); color: var(--ink); margin-bottom: 22px; }
.cta h2 .g { background: linear-gradient(100deg, #22C55E 0%, #6EE7B7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta .lede { color: var(--ink-2); max-width: 560px; margin: 0 auto 38px; }
.cta-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 42px 0; }
.footer .frow { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer .fm { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* ===== FLOW-SPLIT (animated control/data-plane diagram) ===== */
.flowsplit { position: relative; border: 1px solid var(--panel-line); border-radius: 18px; overflow: hidden; background: var(--panel); box-shadow: 0 0 0 1px rgba(16,185,129,.04), 0 30px 70px -38px rgba(22,163,74,.5); }
.fs-plane { padding: 26px 28px; position: relative; }
.fs-plane.control { background: linear-gradient(180deg, rgba(22,163,74,.07), transparent); }
.fs-reason { margin-top: 20px; border: 1px solid var(--panel-line); border-radius: 12px; background: rgba(10,9,18,.6); overflow: hidden; opacity: .55; transition: opacity .4s, box-shadow .4s, border-color .4s; }
.fs-reason.active { opacity: 1; border-color: rgba(22,163,74,.4); box-shadow: 0 0 30px -10px rgba(22,163,74,.6); }
.fs-reason-bar { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-bottom: 1px solid var(--panel-line); background: rgba(22,163,74,.06); }
.fs-reason-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; transition: background .3s, box-shadow .3s; }
.fs-reason.active .fs-reason-dot { background: var(--purple-lt); box-shadow: 0 0 0 3px rgba(22,163,74,.2); animation: rsnDot 1s ease-in-out infinite; }
@keyframes rsnDot { 0%,100%{ box-shadow: 0 0 0 3px rgba(22,163,74,.2); } 50%{ box-shadow: 0 0 0 5px rgba(22,163,74,.05); } }
.fs-reason-title { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--panel-ink2); flex: 1; }
.fs-reason-status { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); transition: color .3s, border-color .3s, background .3s; }
.fs-reason-status.thinking { color: var(--purple-lt); border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.08); }
.fs-reason-status.ready { color: var(--green); border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.1); }
.fs-reason-body { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--panel-ink); padding: 14px 16px; min-height: 178px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.fs-task { padding: 6px 0; opacity: .4; transition: opacity .35s; }
.fs-task.running, .fs-task.done { opacity: 1; }
.fs-task-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.fs-task-label { font-family: var(--mono); font-size: 12px; color: var(--panel-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-task-label .det { color: var(--panel-ink2); }
.fs-task-pct { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-3); min-width: 42px; text-align: right; flex-shrink: 0; transition: color .3s; }
.fs-task.running .fs-task-pct { color: var(--purple-lt); }
.fs-task.done .fs-task-pct { color: var(--green); }
.fs-task-track { height: 4px; border-radius: 999px; background: rgba(160,163,170,.12); overflow: hidden; }
.fs-task-fill { height: 100%; width: 0; border-radius: 999px; background: var(--grad); box-shadow: 0 0 10px -1px rgba(22,163,74,.6); transition: width .12s linear; }
.fs-task.done .fs-task-fill { background: linear-gradient(90deg, var(--green), var(--teal)); box-shadow: 0 0 10px -1px rgba(16,185,129,.6); }.fs-plane.data { background: linear-gradient(0deg, rgba(16,185,129,.06), transparent); }
.fs-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.fs-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.fs-plane.control .fs-tag { color: var(--purple-lt); }
.fs-sub { font-family: var(--disp); font-weight: 700; font-size: 15px; color: var(--ink); }
.fs-lane { display: flex; align-items: flex-start; gap: 0; flex-wrap: nowrap; }
.fs-step { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: 0 0 auto; text-align: center; opacity: .5; transition: opacity .3s; padding: 0 2px; }
.fs-step .fs-ic { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-family: var(--mono); font-size: 18px; font-weight: 600; transition: border-color .35s, background .35s, color .35s, box-shadow .35s, transform .35s; }
.fs-step .fs-lab { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); white-space: nowrap; transition: color .3s; }
.fs-step.on { opacity: 1; }
.fs-step.on .fs-ic { border-color: transparent; background: #16A34A; color: #fff; box-shadow: 0 0 14px -2px var(--purple-lt); transform: translateY(-2px); animation: icPop .45s cubic-bezier(.2,.7,.3,1.15); }
@keyframes icPop { 0%{ transform: scale(.65) translateY(0); opacity:.4; } 55%{ transform: scale(1.12) translateY(-5px); } 100%{ transform: scale(1) translateY(-3px); opacity:1; } }
.fs-step.on .fs-lab { color: var(--ink); }
.fs-link { flex: 1 1 auto; height: 1px; min-width: 18px; margin-top: 15px; background: var(--line-2); position: relative; overflow: hidden; border-radius: 2px; }
.fs-link::after { content: ""; position: absolute; inset: 0; transform: translateX(-101%); background: var(--grad); transition: transform .4s cubic-bezier(.25,.46,.45,.94); }
.fs-link.on::after { transform: translateX(0); }

.fs-gate { position: relative; padding: 15px 28px; display: flex; align-items: center; justify-content: center; gap: 16px; background: linear-gradient(90deg, rgba(22,163,74,.18), rgba(16,185,129,.14), rgba(16,185,129,.18)); border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line); overflow: hidden; transition: box-shadow .35s; }
.fs-gate.flash { box-shadow: inset 0 0 50px rgba(16,185,129,.35); }
.fs-gate-beam { position: absolute; top: 0; bottom: 0; width: 130px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); transform: translateX(-200px); animation: fsBeam 3.6s linear infinite; pointer-events: none; }
@keyframes fsBeam { from { transform: translateX(-200px); } to { transform: translateX(1320px); } }
.fs-gate-label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 9px; z-index: 2; }
.fs-verdict { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px; color: #04121b; background: var(--green); box-shadow: 0 0 20px -3px var(--green); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s; z-index: 2; }
.fs-verdict.show { opacity: 1; transform: scale(1); }

.fs-ledger { padding: 18px 28px 22px; background: rgba(10,9,18,.55); border-top: 1px solid var(--panel-line); }
.fs-ledger-head { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--panel-ink2); margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.fs-ledger-head::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.fs-ledger-body { font-family: var(--mono); font-size: 12px; line-height: 1.4; color: var(--panel-ink); min-height: 96px; display: flex; flex-direction: column; gap: 7px; }
.fs-ledger-body .row { display: flex; gap: 14px; align-items: center; opacity: 0; transform: translateY(8px); animation: fsRow .45s ease forwards; }
.fs-ledger-body .row .h { color: var(--teal); transition: color .3s; }
.fs-ledger-body .row .lbl { color: var(--panel-ink2); transition: color .3s; }
.fs-ledger-body .row .st { margin-left: auto; font-weight: 600; letter-spacing: .04em; transition: color .3s; }
.fs-ledger-body .row .st.pend { color: var(--ink-3); }
.fs-ledger-body .row .st.writing { color: var(--amber); }
.fs-ledger-body .row .st.writing::before { content: "▸ "; }
.fs-ledger-body .row .st.ok { color: var(--green); }
.fs-ledger-body .row .ok { color: var(--green); margin-left: auto; }
.fs-ledger-body .row .dim { color: var(--panel-ink2); }
.fs-ledger-body .row.pending .h { color: var(--panel-ink2); }
.fs-ledger-body .row.pending { opacity: .72; }
.fs-ledger-body .row.exec .h { color: var(--amber); }
.fs-ledger-body .row.exec .st.writing { animation: ledBlink .9s steps(1) infinite; }
@keyframes ledBlink { 0%,60%{ opacity: 1; } 61%,100%{ opacity: .45; } }
@keyframes fsRow { to { opacity: 1; transform: none; } }

.fs-token { display: none; }
.fs-token.thinking { width: 20px; height: 20px; margin: -10px 0 0 -10px; animation: tkThink .55s ease-in-out infinite alternate; }
@keyframes tkThink { from { box-shadow: 0 0 20px 6px rgba(16,185,129,.5); } to { box-shadow: 0 0 34px 14px rgba(22,163,74,.7); } }
.fs-token.fast { transition-duration: .28s, .3s, .3s, .3s, .3s, .3s; }
.fs-gate.scanning { box-shadow: inset 0 0 40px rgba(16,185,129,.18); transition: box-shadow .4s; }
.fs-gate.scanning .fs-gate-beam { animation-duration: 1s; }
.fs-verdict.show { animation: verdictStamp .35s cubic-bezier(.2,.8,.3,1.2); }
@keyframes verdictStamp { 0%{ transform: scale(.4); opacity:0; } 60%{ transform: scale(1.15); } 100%{ transform: scale(1); opacity:1; } }
@media (max-width: 620px){
  .fs-step .fs-ic { width: 26px; height: 26px; font-size: 11px; border-radius: 6px; }
  .fs-step .fs-lab { font-size: 9.5px; }
  .fs-link { min-width: 8px; margin-top: 18px; }
  .fs-plane, .fs-gate, .fs-ledger { padding-left: 16px; padding-right: 16px; }
}

/* ===== reveal ===== */
.reveal { opacity: 1; transform: none; }
body.reveal-on .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
body.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ body.reveal-on .reveal{ opacity:1; transform:none; transition:none; } * { animation: none !important; } }

/* ===== mobile polish ===== */
@media (max-width: 640px){
  :root { --gut: 20px; }
  body { font-size: 15.5px; }
  .hero { padding: 120px 0 60px; }
  .hero-grid { gap: 32px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .statstrip { margin-top: 40px; }
  .statstrip .cell { padding: 16px 18px; }
  .statstrip .n { font-size: 20px; }
  .band { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; }
  .card, .feat { padding: 22px; }
  .tier .tier-in { padding: 22px; }
  .cta { padding: 80px 0; }
  .cta-cta .btn { width: 100%; justify-content: center; }
  .conn-grid { gap: 10px; }
  .footer .frow { flex-direction: column; text-align: center; }
  .topo { aspect-ratio: 4 / 5; }
}
@media (max-width: 400px){
  .conn-grid { grid-template-columns: 1fr 1fr; }
  .statstrip { grid-template-columns: 1fr 1fr; }
}
