:root {
  --bg: #07090d;
  --bg-2: #0c1017;
  --panel: #10151e;
  --line: #1c2431;
  --line-2: #273244;
  --text: #e6ebf2;
  --muted: #8a96a8;
  --dim: #5b6677;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --warn: #fbbf24;
  --pink: #f472b6;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 60%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- background grid ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .45;
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; border-radius: 50%;
  top: -450px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(94,234,212,.16), rgba(129,140,248,.10) 40%, transparent 70%);
  filter: blur(20px);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7,9,13,.72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg); font-size: 13px; font-weight: 800;
}
.logo span.dim { color: var(--dim); }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 6px 10px; font-family: var(--mono); cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn-primary { background: var(--accent); color: #04110f; box-shadow: 0 0 0 0 rgba(94,234,212,.4); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -6px rgba(94,234,212,.55); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px;
  background: rgba(16,21,30,.6);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
  margin: 22px 0 20px;
}
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; font-family: var(--mono); font-size: 12px; color: var(--dim); flex-wrap: wrap; }
.hero-meta b { color: var(--text); font-weight: 600; }

/* terminal */
.term {
  background: linear-gradient(180deg, #0f141d, #0a0e14);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(94,234,212,.05), 0 0 60px -10px rgba(129,140,248,.18);
  overflow: hidden; font-family: var(--mono); font-size: 13px;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3342; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; color: var(--dim); font-size: 12px; }
.term-body { padding: 18px 20px 22px; min-height: 330px; line-height: 1.75; white-space: pre-wrap; }
.t-dim { color: var(--dim); } .t-acc { color: var(--accent); } .t-vio { color: var(--accent-2); }
.t-warn { color: var(--warn); } .t-pink { color: var(--pink); } .t-ok { color: #4ade80; }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--accent); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- marquee ---------- */
.stack-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: rgba(12,16,23,.5); }
.marquee { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; font-family: var(--mono); font-size: 14px; color: var(--dim); }
.marquee span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.marquee span::before { content: "▹"; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 104px 0; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: "// "; color: var(--dim); }
h2.title { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.03em; line-height: 1.1; font-weight: 750; max-width: 680px; }
p.sub { color: var(--muted); font-size: 17px; max-width: 600px; margin-top: 16px; }
.head { margin-bottom: 56px; }
.head.center { text-align: center; } .head.center h2, .head.center p { margin-left: auto; margin-right: auto; }

/* services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(94,234,212,.10), transparent 45%);
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card:hover::after { opacity: 1; }
.card .ico {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(94,234,212,.08); border: 1px solid rgba(94,234,212,.2); color: var(--accent);
  font-family: var(--mono); font-size: 15px; font-weight: 700; margin-bottom: 20px;
}
.card h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.card ul li { font-family: var(--mono); font-size: 11.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 30px 26px; border-right: 1px solid var(--line); background: var(--bg-2); position: relative; }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.step .n b { color: var(--accent); font-weight: 600; }
.step h3 { font-size: 17px; margin: 14px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }
.step .bar { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.step.in .bar { transform: scaleX(1); }

/* features split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--muted); font-size: 15px; }
.checks li::before { content: "✓"; color: var(--accent); font-family: var(--mono); font-weight: 700; flex-shrink: 0; }
.checks li b { color: var(--text); font-weight: 600; }
.code {
  background: #0a0e14; border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--mono); font-size: 13px; line-height: 1.8; padding: 22px 24px; overflow-x: auto;
}
.code .ln { color: #343e4f; user-select: none; display: inline-block; width: 26px; }
.k { color: var(--accent-2); } .s { color: #a3e635; } .f { color: var(--accent); } .c { color: var(--dim); font-style: italic; } .p { color: var(--pink); } .y { color: var(--warn); }

/* pricing */
.toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px; margin-top: 28px; background: var(--bg-2); font-family: var(--mono); font-size: 13px; }
.toggle button { background: none; border: 0; color: var(--muted); padding: 8px 16px; border-radius: 7px; cursor: pointer; font: inherit; }
.toggle button.on { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: rgba(94,234,212,.45); background: linear-gradient(180deg, rgba(94,234,212,.06), var(--panel) 40%); box-shadow: 0 0 0 1px rgba(94,234,212,.15), 0 30px 60px -30px rgba(94,234,212,.35); }
.plan .tag { position: absolute; top: -12px; left: 28px; font-family: var(--mono); font-size: 11px; background: var(--accent); color: #04110f; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.plan h3 { font-size: 15px; font-family: var(--mono); color: var(--muted); font-weight: 500; }
.price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.price .from { font-size: 13px; color: var(--dim); font-family: var(--mono); }
.price .amt { font-size: 46px; font-weight: 800; letter-spacing: -.04em; }
.price .per { color: var(--dim); font-size: 14px; }
.plan .desc { color: var(--muted); font-size: 14px; min-height: 44px; }
.plan ul { list-style: none; margin: 24px 0 28px; display: grid; gap: 11px; font-size: 14px; color: var(--muted); flex: 1; }
.plan ul li { display: flex; gap: 10px; }
.plan ul li::before { content: "→"; color: var(--accent); font-family: var(--mono); }
.plan .btn { justify-content: center; }
.price-note { text-align: center; margin-top: 28px; font-size: 13.5px; color: var(--dim); }
.price-note b { color: var(--muted); font-weight: 600; }
.rate { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 22px 28px; background: rgba(16,21,30,.5); }
.rate .mono { color: var(--muted); font-size: 14px; }
.rate b { color: var(--text); font-size: 22px; font-family: var(--sans); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 16.5px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 12px; font-size: 15px; max-width: 720px; }

/* contact */
.contact-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: var(--panel); }
.contact-info { padding: 44px; border-right: 1px solid var(--line); background: linear-gradient(160deg, rgba(94,234,212,.07), transparent 60%); }
.contact-info h2 { font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.contact-info p { color: var(--muted); margin-top: 14px; }
.contact-lines { margin-top: 32px; display: grid; gap: 14px; font-family: var(--mono); font-size: 13.5px; }
.contact-lines div { display: flex; gap: 12px; color: var(--muted); }
.contact-lines span { color: var(--dim); width: 74px; flex-shrink: 0; }
.contact-lines a:hover { color: var(--accent); }
form { padding: 44px; display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
input, select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 9px;
  padding: 12px 14px; color: var(--text); font: 15px var(--sans); outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94,234,212,.15); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--dim); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; background: var(--bg-2); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot p { color: var(--dim); font-size: 14px; margin-top: 14px; max-width: 320px; }
.foot h4 { font-family: var(--mono); font-size: 12px; color: var(--dim); font-weight: 500; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.foot ul { list-style: none; display: grid; gap: 9px; font-size: 14px; color: var(--muted); }
.foot ul a:hover { color: var(--accent); }
.legal-line { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee, .pill .dot, .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* legal page */
.legal { max-width: 780px; margin: 0 auto; padding: 80px 24px 40px; }
.legal h1 { font-size: 42px; letter-spacing: -.03em; }
.legal .updated { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-top: 8px; }
.legal nav.toc { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 8px; }
.legal nav.toc a { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; color: var(--muted); }
.legal nav.toc a:hover { color: var(--accent); border-color: var(--accent); }
.legal h2 { font-size: 26px; letter-spacing: -.02em; margin: 56px 0 6px; padding-top: 12px; scroll-margin-top: 80px; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 20px; display: grid; gap: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .split, .contact-box { grid-template-columns: 1fr; }
  .grid-3, .pricing { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr 1fr; }
  .contact-info { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan.featured { order: -1; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .menu-btn { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 72px 0; }
  .process { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .row2 { grid-template-columns: 1fr; }
  .contact-info, form { padding: 28px 22px; }
  .term-body { min-height: 300px; font-size: 12px; }
  .foot { grid-template-columns: 1fr; }
}
