:root {
  --bg: #07080b;
  --bg-2: #0d0f14;
  --panel: #11141b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0f4;
  --muted: #8b92a3;
  --dim: #5b6172;
  --accent: #7cf2c3;
  --accent-2: #6aa8ff;
  --warn: #ffb86b;
  --radius: 14px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
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; }
::selection { background: var(--accent); color: #000; }

/* ambient grid + glow */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(106, 168, 255, 0.12), transparent 60%),
    radial-gradient(50rem 35rem at 0% 20%, rgba(124, 242, 195, 0.08), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
}
.ambient::after {
  content: ""; position: absolute; inset: 0;
  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 at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 8, 11, 0.6);
  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-weight: 600; letter-spacing: -0.01em; font-size: 17px; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px; position: relative;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent));
}
.logo-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 2px; background: var(--bg); }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line-2); transition: all 0.2s ease; cursor: pointer;
  background: transparent; color: var(--text); font-family: inherit;
}
.btn:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.btn-primary { background: var(--text); color: #000; border-color: var(--text); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.display { font-family: var(--display); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { section { padding: 80px 0; } }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); margin-top: 18px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 18px; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
