:root {
  --bg: #04070f;
  --ink: #e8eefc;
  --muted: #8f9bb8;
  --dim: #5b6684;
  --line: rgba(140, 170, 255, 0.14);
  --glass: rgba(12, 20, 40, 0.45);
  --cyan: #5ef0dc;
  --blue: #3d5bd9;
  --grad: linear-gradient(100deg, #5ef0dc 0%, #38b6f0 45%, #5b5ce6 100%);
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
::selection { background: rgba(124, 243, 255, 0.3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* Background */
#sky {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2;
  background:
    radial-gradient(80% 60% at 70% 10%, #10265a 0%, transparent 60%),
    radial-gradient(60% 50% at 10% 30%, #0b2a3d 0%, transparent 60%),
    var(--bg);
}
.veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(4, 7, 15, 0.65) 100%);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 18px 24px;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(4, 7, 15, 0.35);
  mask: linear-gradient(#000 60%, transparent);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; width: auto; height: 34px; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 600 15px Inter, sans-serif; cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .3s, background .3s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #041022;
  background: var(--grad);
  box-shadow: 0 0 0 1px rgba(124, 243, 255, .3), 0 8px 30px -6px rgba(76, 125, 255, .6);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(124, 243, 255, .5), 0 10px 40px -4px rgba(124, 243, 255, .55); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { height: 40px; font-size: 14px; color: var(--ink); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(124, 243, 255, .08); box-shadow: inset 0 0 0 1px rgba(124, 243, 255, .35); }

/* Hero */
main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hero { min-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px 0 64px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  font: 500 12px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan);
  background: rgba(124, 243, 255, .06); box-shadow: inset 0 0 0 1px rgba(124, 243, 255, .25);
}
.hero-mark { position: relative; margin-bottom: 26px; }
.hero-mark::before { content: ""; position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(56, 182, 240, .35), transparent 65%); filter: blur(10px); animation: glow 6s ease-in-out infinite; }
.hero-mark img { position: relative; display: block; width: 104px; height: auto; filter: drop-shadow(0 0 18px rgba(94, 240, 220, .35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes glow { 50% { opacity: .55; transform: scale(.92); } }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero h1 { margin-top: 28px; font-size: clamp(42px, 7.4vw, 88px); line-height: 1.02; font-weight: 700; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin-top: 24px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }

.signup { position: relative; display: flex; gap: 8px; width: 100%; max-width: 500px; margin-top: 36px; padding: 6px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), 0 20px 60px -20px rgba(0,0,0,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.signup input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: 15px Inter, sans-serif; outline: none; }
.signup input::placeholder { color: var(--dim); }
.signup:focus-within { box-shadow: inset 0 0 0 1px rgba(124, 243, 255, .45), 0 0 0 4px rgba(124, 243, 255, .08); }
.signup .form-msg { position: absolute; top: calc(100% + 12px); left: 0; right: 0; }
.form-msg { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-msg.ok { color: var(--cyan); }
.form-msg.err { color: #ff8a9b; }
.creds { margin-top: 56px; font-size: 14px; color: var(--muted); letter-spacing: .01em; }
.creds strong { color: var(--ink); font-weight: 600; }

.terminal { width: 100%; max-width: 620px; margin-top: 40px; text-align: left; border-radius: 14px; overflow: hidden; background: rgba(6, 12, 26, .62); box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -30px rgba(76,125,255,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #1f2a44; }
.term-bar span { margin-left: auto; font: 12px "JetBrains Mono", monospace; color: var(--dim); }
.terminal pre { margin: 0; padding: 16px 18px; height: 168px; overflow: hidden; font: 13px/1.75 "JetBrains Mono", monospace; color: #b8c6e6; white-space: pre-wrap; }
.terminal .c { color: var(--cyan); }
.terminal .g { color: #7dffb0; }
.terminal .y { color: #ffd479; }
.terminal .d { color: var(--dim); }
.caret { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section { padding: 110px 0 40px; scroll-margin-top: 60px; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.eyebrow { font: 500 12px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.section h2 { margin-top: 14px; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; }

.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 28, 56, .55), rgba(8, 14, 30, .45));
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .35s, transform .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 243, 255, .1), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: inset 0 0 0 1px rgba(124, 243, 255, .28); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 12px; background: rgba(124, 243, 255, .07); box-shadow: inset 0 0 0 1px rgba(124, 243, 255, .2); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.service { padding-top: 26px; }
.tag { display: inline-block; margin-bottom: 18px; padding: 4px 10px; border-radius: 7px; font: 500 11px "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); background: rgba(124, 243, 255, .07); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); background: rgba(8, 14, 30, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.steps div { display: flex; align-items: center; gap: 12px; padding: 20px 24px; font-size: 15px; }
.steps div + div { border-left: 1px solid var(--line); }
.steps b { font: 500 12px "JetBrains Mono", monospace; color: var(--cyan); }

.team { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding: 52px; overflow: hidden; }
.team::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(76, 125, 255, .25), transparent 70%); pointer-events: none; }
.team p:not(.eyebrow) { margin-top: 18px; font-size: 17px; }
.team strong { color: var(--ink); }
.team-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.team-points li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.team-points li:last-child { border-bottom: 0; }
.team-points span { font-size: 10px; color: var(--cyan); }

/* Contact form */
.contact { display: grid; gap: 18px; max-width: 760px; padding: 36px; }
.contact label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.contact input:not([type=radio]), .contact textarea {
  width: 100%; padding: 13px 14px; border-radius: 11px; border: 0; resize: vertical;
  font: 15px Inter, sans-serif; color: var(--ink);
  background: rgba(4, 8, 18, .55); box-shadow: inset 0 0 0 1px var(--line); outline: none;
  transition: box-shadow .2s;
}
.contact input:focus, .contact textarea:focus { box-shadow: inset 0 0 0 1px rgba(124, 243, 255, .5), 0 0 0 4px rgba(124, 243, 255, .07); }
.contact textarea::placeholder { color: var(--dim); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.seg { display: inline-flex; justify-self: start; padding: 4px; border-radius: 12px; background: rgba(4, 8, 18, .55); box-shadow: inset 0 0 0 1px var(--line); }
.seg label { display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 16px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.seg input:checked + span { color: #041022; background: var(--grad); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.contact-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; max-width: var(--max); margin: 120px auto 0; padding: 32px 24px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.footer .brand img { height: 26px; opacity: .9; }
.footer a:last-child:hover { color: var(--ink); }

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

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps div:nth-child(3) { border-left: 0; }
  .steps div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav { padding: 14px 16px; }
  .brand img { height: 28px; }
  .hero-mark img { width: 84px; }
  .nav-links { display: none; }
  main { padding: 0 16px; }
  .hero { padding-top: 48px; min-height: auto; }
  .signup { flex-direction: column; }
  .signup .btn { width: 100%; }
  .grid-2, .row { grid-template-columns: 1fr; }
  .card, .contact { padding: 24px; }
  .steps { grid-template-columns: 1fr; }
  .steps div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding-top: 80px; }
  .terminal pre { font-size: 11.5px; height: 180px; }
  .footer { padding: 28px 16px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot, .caret, .hero-mark img, .hero-mark::before { animation: none; }
}
