/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  --void:    #020209;
  --surface: #07070f;
  --raised:  #0d0d1c;
  --ink:     #dde3f0;
  --ghost:   #3e476a;
  --pale:    #8290b5;
  --signal:  #4d7cff;
  --violet:  #7b5ea7;
  --alive:   #3ddbb8;
  --warn:    #e0a955;
  --edge:    rgba(77,124,255,.12);
  --edge2:   rgba(77,124,255,.22);
  --glow:    rgba(77,124,255,.06);
  --f-d:     'Space Grotesk', sans-serif;
  --f-b:     'Inter', sans-serif;
  --f-m:     'JetBrains Mono', monospace;
  --nav-h:   58px;
  --max-w:   1180px;
  --pad-x:   52px;
}

/* ── reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--f-b);
  font-size: .9375rem;
  line-height: 1.8;
  overflow-x: hidden;
  cursor: none;
}
::selection { background: rgba(77,124,255,.28); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--edge2); border-radius: 3px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
code {
  font-family: var(--f-m);
  font-size: .8em;
  background: rgba(77,124,255,.1);
  border: 1px solid var(--edge);
  border-radius: 3px;
  padding: 1px 6px;
}

/* ── canvas + cursor ────────────────────────────────────────────────────── */
#bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
#cur {
  position: fixed; width: 10px; height: 10px; border-radius: 50%;
  background: var(--signal); pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, opacity .15s;
  mix-blend-mode: screen;
}
#cur.big  { width: 28px; height: 28px; opacity: .35; }
#cur.link { width: 20px; height: 20px; background: var(--alive); opacity: .7; }
#glw {
  position: fixed; width: 580px; height: 580px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,124,255,.055) 0%, transparent 68%);
  pointer-events: none; z-index: 1;
  transform: translate(-50%,-50%);
  transition: left .07s, top .07s;
}

/* ── layout util ────────────────────────────────────────────────────────── */
.pg { position: relative; z-index: 2; }
.w  { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.sec { padding: 96px var(--pad-x); max-width: var(--max-w); margin: 0 auto; }

/* ── nav ────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(2,2,9,.8);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--edge);
}
.n-logo {
  font-family: var(--f-d); font-size: 15px; font-weight: 800;
  letter-spacing: .06em; color: var(--ink); text-decoration: none;
  flex-shrink: 0;
}
.n-logo em { font-style: normal; color: var(--signal); }
.n-links { display: flex; gap: 32px; list-style: none; }
.n-links a {
  font-family: var(--f-m); font-size: 11px; color: var(--pale);
  text-decoration: none; letter-spacing: .06em;
  transition: color .18s; position: relative;
}
.n-links a:hover,
.n-links a.active { color: var(--ink); }
.n-links a.active::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--signal);
}
.n-right { display: flex; align-items: center; gap: 14px; }
.n-pill {
  font-family: var(--f-m); font-size: 10px;
  padding: 4px 12px; border-radius: 99px;
  border: 1px solid var(--edge); color: var(--pale); letter-spacing: .06em;
}
.n-cta {
  font-family: var(--f-m); font-size: 11px;
  padding: 7px 18px; border-radius: 4px;
  background: var(--signal); color: #fff;
  text-decoration: none; letter-spacing: .04em;
  transition: background .18s, box-shadow .18s;
}
.n-cta:hover { background: #3d6cf5; box-shadow: 0 0 20px rgba(77,124,255,.4); }

/* ── divider ────────────────────────────────────────────────────────────── */
.dv {
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--pad-x); max-width: var(--max-w); margin: 0 auto;
}
.dl { flex: 1; height: 1px; background: var(--edge); }
.dlb {
  font-family: var(--f-m); font-size: 10px; color: var(--ghost);
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; padding: 0 4px;
}

/* ── section labels ─────────────────────────────────────────────────────── */
.ey {
  font-family: var(--f-m); font-size: 10px; color: var(--signal);
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 14px;
}
.sh {
  font-family: var(--f-d); font-weight: 800;
  font-size: clamp(26px, 3.5vw, 40px); letter-spacing: -.02em;
  line-height: 1.1; margin-bottom: 16px; color: var(--ink);
}
.sp {
  font-size: 16px; color: var(--pale); max-width: 500px;
  line-height: 1.7; font-weight: 300; margin-bottom: 60px;
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 4px;
  font-family: var(--f-m); font-size: 12px; letter-spacing: .04em;
  text-decoration: none; border: none; transition: all .18s;
  cursor: none; font-weight: 500;
}
.bf {
  background: var(--signal); color: #fff;
  box-shadow: 0 0 28px rgba(77,124,255,.3);
}
.bf:hover {
  background: #3d6cf5;
  box-shadow: 0 0 44px rgba(77,124,255,.5);
  transform: translateY(-1px);
}
.bl {
  background: transparent; color: var(--pale);
  border: 1px solid var(--edge);
}
.bl:hover { border-color: var(--signal); color: var(--ink); }

/* ── terminal shared ────────────────────────────────────────────────────── */
.term {
  background: var(--surface); border: 1px solid var(--edge);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 80px rgba(77,124,255,.06), 0 32px 64px rgba(0,0,0,.55);
}
.t-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--edge);
}
.td { width: 11px; height: 11px; border-radius: 50%; }
.td.r { background: #ff5f57; } .td.y { background: #febc2e; } .td.g { background: #28c840; }
.t-title { flex: 1; text-align: center; font-family: var(--f-m); font-size: 10px; color: var(--ghost); }
.t-body { padding: 20px 18px; font-family: var(--f-m); font-size: 12px; line-height: 2; }
.tp { color: var(--ghost); }
.tc { color: var(--ink); }
.tok { color: var(--alive); }
.tdd { color: var(--ghost); }
.th { color: var(--pale); }
.tcur {
  display: inline-block; width: 7px; height: 13px;
  background: var(--signal); vertical-align: middle;
  animation: blink .85s step-end infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ── feature grid ───────────────────────────────────────────────────────── */
.fl { display: flex; flex-direction: column; gap: 1px; background: var(--edge); }
.fr {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface); transition: background .15s;
}
.fr:hover { background: var(--raised); }
.fc { padding: 38px 42px; border-left: 1px solid var(--edge); }
.fc:first-child { border-left: none; }
.ftag {
  font-family: var(--f-m); font-size: 10px; color: var(--violet);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}
.fn { font-family: var(--f-d); font-weight: 700; font-size: 19px; letter-spacing: -.02em; margin-bottom: 10px; }
.fd { font-size: 13.5px; color: var(--pale); line-height: 1.65; }
.fcode {
  background: var(--raised); border: 1px solid var(--edge); border-radius: 5px;
  padding: 16px 18px; font-family: var(--f-m); font-size: 11.5px; line-height: 1.9; margin-top: 22px;
}

/* ── stats strip ────────────────────────────────────────────────────────── */
.stats {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  background: var(--surface);
}
.stat { flex: 1; min-width: 150px; padding: 30px 36px; border-right: 1px solid var(--edge); }
.stat:last-child { border-right: none; }
.sn {
  font-family: var(--f-d); font-weight: 800; font-size: 30px;
  letter-spacing: -.02em; color: var(--signal); margin-bottom: 3px;
}
.sl { font-family: var(--f-m); font-size: 10px; color: var(--ghost); letter-spacing: .1em; text-transform: uppercase; }

/* ── changelog ──────────────────────────────────────────────────────────── */
.cl { display: flex; flex-direction: column; position: relative; }
.cl::before {
  content: ''; position: absolute; left: 106px; top: 0; bottom: 0;
  width: 1px; background: var(--edge);
}
.ce { display: flex; padding: 38px 0; position: relative; }
.ce + .ce { border-top: 1px solid var(--edge); }
.cs { width: 106px; flex-shrink: 0; padding-right: 32px; padding-top: 3px; text-align: right; }
.cv { font-family: var(--f-d); font-weight: 800; font-size: 14px; color: var(--signal); letter-spacing: -.01em; }
.cd { font-family: var(--f-m); font-size: 10px; color: var(--ghost); margin-top: 4px; }
.cdot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--void); border: 2px solid var(--signal);
  position: absolute; left: 102px; top: 45px; z-index: 1;
}
.cdot.l { background: var(--alive); border-color: var(--alive); }
.cb { padding-left: 34px; flex: 1; }
.cbadge {
  display: inline-block; font-family: var(--f-m); font-size: 10px;
  padding: 3px 10px; border-radius: 3px; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 14px;
}
.cbadge.l { background: rgba(61,219,184,.12); color: var(--alive); border: 1px solid rgba(61,219,184,.25); }
.cbadge.p { background: var(--glow); color: var(--ghost); border: 1px solid var(--edge); }
.csec {
  font-family: var(--f-m); font-size: 10px; color: var(--violet);
  letter-spacing: .1em; text-transform: uppercase; margin: 14px 0 7px;
}
.csec:first-of-type { margin-top: 0; }
.clist { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.clist li { font-size: 13.5px; color: var(--pale); padding-left: 18px; position: relative; }
.clist li::before { content: '─'; position: absolute; left: 0; color: var(--ghost); }

/* ── os grid ────────────────────────────────────────────────────────────── */
.og { display: flex; flex-wrap: wrap; gap: 1px; background: var(--edge); }
.oc { flex: 1; min-width: 195px; background: var(--surface); padding: 26px 30px; transition: background .15s; }
.oc:hover { background: var(--raised); }
.on-s { font-family: var(--f-d); font-weight: 700; font-size: 15px; letter-spacing: -.02em; margin-bottom: 3px; }
.od { font-family: var(--f-m); font-size: 11px; color: var(--ghost); margin-bottom: 10px; }
.otag { font-family: var(--f-m); font-size: 10px; padding: 3px 9px; border-radius: 3px; letter-spacing: .06em; text-transform: uppercase; }
.oy { background: rgba(61,219,184,.1); color: var(--alive); border: 1px solid rgba(61,219,184,.2); }
.owarn { background: rgba(224,169,85,.08); color: var(--warn); border: 1px solid rgba(224,169,85,.18); }

/* ── pricing ────────────────────────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--edge); }
.plan {
  background: var(--surface); padding: 44px 36px;
  display: flex; flex-direction: column; transition: background .15s;
  position: relative; overflow: hidden;
}
.plan:hover { background: var(--raised); }
.plan.featured {
  background: var(--raised);
  border: 1px solid rgba(77,124,255,.35);
  margin: -1px;
  box-shadow: inset 0 0 60px rgba(77,124,255,.05);
}
.plan.featured::before {
  content: 'MOST POPULAR';
  position: absolute; top: 18px; right: -26px;
  font-family: var(--f-m); font-size: 9px; letter-spacing: .1em;
  background: var(--signal); color: #fff;
  padding: 4px 36px; transform: rotate(30deg);
}
.plan-tier { font-family: var(--f-m); font-size: 11px; color: var(--violet); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.plan-name { font-family: var(--f-d); font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin-bottom: 20px; }
.plan-price {
  font-family: var(--f-d); font-weight: 800; font-size: 42px;
  letter-spacing: -.02em; color: var(--signal); line-height: 1;
  margin-bottom: 6px;
}
.plan-price sup { font-size: 20px; vertical-align: super; }
.plan-cadence { font-family: var(--f-m); font-size: 10px; color: var(--ghost); letter-spacing: .08em; margin-bottom: 32px; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 36px; }
.plan-feats li { font-size: 13.5px; color: var(--pale); padding-left: 20px; position: relative; }
.plan-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--alive); font-size: 12px; }
.plan-feats li.no { color: var(--ghost); }
.plan-feats li.no::before { content: '×'; color: var(--ghost); }
.plan-btn {
  display: block; width: 100%; text-align: center;
  padding: 12px; border-radius: 4px;
  font-family: var(--f-m); font-size: 12px; letter-spacing: .04em;
  text-decoration: none; transition: all .18s; cursor: none;
  border: 1px solid var(--edge); color: var(--pale);
  background: transparent;
}
.plan-btn:hover { border-color: var(--signal); color: var(--ink); }
.plan.featured .plan-btn { background: var(--signal); color: #fff; border-color: var(--signal); box-shadow: 0 0 24px rgba(77,124,255,.3); }
.plan.featured .plan-btn:hover { background: #3d6cf5; }

/* ── contact ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--edge); }
.ccard {
  background: var(--surface); padding: 44px 40px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .2s;
}
.ccard:hover { background: var(--raised); }
.ccard-icon { font-size: 28px; margin-bottom: 4px; }
.ccard-label { font-family: var(--f-m); font-size: 10px; color: var(--violet); letter-spacing: .12em; text-transform: uppercase; }
.ccard-name { font-family: var(--f-d); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.ccard-val {
  font-family: var(--f-m); font-size: 14px; color: var(--signal);
  text-decoration: none; word-break: break-all;
  transition: color .18s;
}
.ccard-val:hover { color: var(--alive); }
.ccard-desc { font-size: 13.5px; color: var(--pale); line-height: 1.6; }
.ccard-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 10px 22px; border-radius: 4px;
  font-family: var(--f-m); font-size: 11px; letter-spacing: .04em;
  text-decoration: none; border: 1px solid var(--edge);
  color: var(--pale); transition: all .18s; cursor: none; align-self: flex-start;
}
.ccard-btn:hover { border-color: var(--signal); color: var(--ink); }

/* ── faq ────────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 1px; }
.faq-item { background: var(--surface); border: 1px solid var(--edge); border-radius: 4px; overflow: hidden; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px; cursor: none;
  font-size: 15px; font-weight: 500;
  transition: background .15s;
}
.faq-q:hover { background: var(--raised); }
.faq-arrow {
  font-family: var(--f-m); font-size: 12px; color: var(--signal);
  transition: transform .25s;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-a {
  padding: 0 28px 22px; font-size: 14px; color: var(--pale); line-height: 1.7;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ── footer ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--edge);
  padding: 52px var(--pad-x) 36px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 200px 1fr 1fr; gap: 48px;
  margin-bottom: 52px;
}
.f-brand .f-logo { font-family: var(--f-d); font-weight: 800; font-size: 18px; color: var(--signal); margin-bottom: 10px; }
.f-brand p { font-size: 13px; color: var(--pale); line-height: 1.65; max-width: 180px; }
.f-col-head { font-family: var(--f-m); font-size: 10px; color: var(--pale); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.f-col a { font-size: 13.5px; color: var(--ghost); text-decoration: none; transition: color .18s; }
.f-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--edge);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.f-copy { font-family: var(--f-m); font-size: 11px; color: var(--ghost); }
.f-disc { font-family: var(--f-m); font-size: 11px; color: var(--ghost); }

/* ── reveal animation ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── pip ────────────────────────────────────────────────────────────────── */
.pip { width: 5px; height: 5px; border-radius: 50%; background: var(--alive); animation: pip 2.2s ease-in-out infinite; }
@keyframes pip { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ── badge ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--edge); border-radius: 24px;
  padding: 5px 14px; font-family: var(--f-m); font-size: 11px;
  color: var(--pale); letter-spacing: .08em; text-transform: uppercase;
}

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --pad-x: 20px; }
  nav { padding: 0 20px; }
  .n-links { display: none; }
  .fr { grid-template-columns: 1fr; }
  .fc { border-left: none; border-top: 1px solid var(--edge); }
  .fc:first-child { border-top: none; }
  .cl::before { display: none; }
  .cdot { display: none; }
  .cs { width: 72px; padding-right: 14px; }
  .cb { padding-left: 16px; }
  .pricing { grid-template-columns: 1fr; }
  .plan.featured { margin: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  footer { padding-bottom: 28px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pip, .tcur { animation: none; }
  #cur, #glw { display: none; }
  body { cursor: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
