@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070b;
  --bg-soft: #0a1018;
  --text: #eef3f8;
  --muted: #8b97a8;
  --faint: #5e6b7c;
  --line: rgba(170, 210, 230, 0.12);
  --line-strong: rgba(170, 210, 230, 0.22);
  --accent: #5cf2d0;
  --accent-dim: rgba(92, 242, 208, 0.14);
  --accent-2: #7aa8ff;
  --danger: #f0b4a0;
  --glass: rgba(12, 18, 28, 0.62);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --wrap: 1120px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #b8fff0; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.wrap { width: min(var(--wrap), calc(100% - 2.4rem)); margin: 0 auto; }

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(122, 168, 255, 0.16), transparent 55%),
    radial-gradient(800px 520px at 90% 8%, rgba(92, 242, 208, 0.12), transparent 50%),
    radial-gradient(700px 600px at 50% 110%, rgba(92, 242, 208, 0.08), transparent 55%),
    var(--bg);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(150, 200, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 200, 230, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}
.bg-orbs {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(92, 242, 208, 0.16), transparent 28%),
    radial-gradient(circle at 78% 40%, rgba(122, 168, 255, 0.14), transparent 26%);
  filter: blur(8px);
  animation: drift 28s ease-in-out infinite alternate;
  opacity: 0.85;
}
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* Draft banner */
.draft-banner {
  background: linear-gradient(90deg, #3a1b16, #4a2318);
  color: #ffd7cc;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 7, 11, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand-text {
  font-weight: 650;
  letter-spacing: 0.16em;
  font-size: 0.92rem;
  text-transform: uppercase;
}
.brand-text span {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 450;
  margin-top: 0.12rem;
}
.nav-links { display: flex; align-items: center; gap: 0.2rem 1.4rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
  border: 1px solid var(--line-strong);
  background: var(--accent-dim);
  color: var(--accent) !important;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

/* Hero */
.hero { padding: 5.5rem 0 4.2rem; position: relative; }
.eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 1.15rem;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; font-weight: 580; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14ch; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.lede { margin-top: 1.4rem; max-width: 40rem; color: var(--muted); font-size: 1.15rem; }
.actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 550;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #04130f; }
.btn-primary:hover { background: #b8fff0; color: #04130f; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
section { padding: 4.2rem 0; }
.section-kicker {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.section-intro { color: var(--muted); max-width: 40rem; margin: 0.85rem 0 2rem; }

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

.card, .glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.card { padding: 1.45rem 1.4rem 1.5rem; }
.card h3 { margin-bottom: 0.55rem; }
.card p, .card li { color: var(--muted); }
.card .index {
  font-family: "Geist Mono", ui-monospace, monospace;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.steps { counter-reset: step; display: grid; gap: 0.8rem; }
.steps li {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  color: var(--muted);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: "Geist Mono", ui-monospace, monospace;
  color: var(--accent);
  font-size: 0.85rem;
  padding-top: 0.15rem;
}
.steps strong { color: var(--text); display: block; margin-bottom: 0.15rem; }

/* Page hero (inner pages) */
.page-hero { padding: 3.6rem 0 2rem; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2rem, 4.5vw, 3.4rem); }
.page-hero .lede { font-size: 1.08rem; }

.prose { max-width: 46rem; }
.prose h2 { margin: 2.2rem 0 0.8rem; }
.prose h3 { margin: 1.5rem 0 0.55rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 0.9rem; }
.prose ul, .prose ol { margin: 0.7rem 0 0.7rem 1.15rem; }
.prose li + li { margin-top: 0.35rem; }
.prose strong { color: var(--text); font-weight: 580; }

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: stretch;
}
.contact-list { list-style: none; display: grid; gap: 1rem; }
.contact-list span {
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.2rem;
}
.contact-list a, .contact-list p { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.note { font-size: 0.92rem; color: var(--muted); margin-top: 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.6rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer strong { color: var(--text); font-weight: 560; }
.site-footer p + p { margin-top: 0.7rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin: 1.15rem 0 1.1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.legal-meta {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* Utilities */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { padding: 1.2rem 0; }
.stat b { display: block; font-size: 0.95rem; font-weight: 580; color: var(--text); }
.stat span { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 860px) {
  .grid-3, .grid-2, .contact-panel, .stats { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.6rem 1.2rem 1.1rem;
    background: rgba(5, 7, 11, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.7rem 0; }
  .hero { padding: 3.4rem 0 3rem; }
  section { padding: 3rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-orbs, #particles { animation: none !important; }
  .bg-orbs { filter: none; opacity: 0.5; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
