:root {
  --bg-base: #0a0a0f;
  --bg-surface: #111118;
  --bg-elevated: #1a1a24;
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.18);
  --text-primary: #f0eff8;
  --text-secondary: #9895a8;
  --text-muted: #5a5770;
  --accent: #2dd4bf;
  --accent-dim: rgba(45, 212, 191, 0.12);
  --accent-hover: #25b8a6;
  --coral: #f97066;
  --purple: #a78bfa;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  --max: 72rem;
  --header-h: 4rem;
  --ease: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }
.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--accent); color: #0a0a0f; padding: 0.5rem 1rem; border-radius: 0.35rem;
}

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(14px);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text-primary); }
.brand img { height: 1.75rem; width: auto; }
.brand-mark {
  width: 2rem; height: 2rem; border-radius: 0.45rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
}
.brand span { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.1rem; }
.brand small { display: block; font-size: 0.65rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; margin-top: -0.15rem; }

.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { color: var(--text-secondary); font-size: 0.92rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-primary); }
.header-cta { display: flex; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.15rem; border-radius: 0.45rem; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent; transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn-primary { background: var(--accent); color: #062522; }
.btn-primary:hover { background: var(--accent-hover); color: #062522; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-active); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); color: var(--text-primary);
  border-radius: 0.4rem; padding: 0.4rem 0.55rem; cursor: pointer;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text-secondary); padding: 0.55rem 0; font-weight: 500; }

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Hero */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 212, 191, 0.15), transparent);
  pointer-events: none;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  padding: 0.35rem 0.7rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.08; letter-spacing: -0.03em; font-weight: 700;
  margin: 0 0 1.25rem; max-width: 16ch;
}
.hero h1 .accent { color: var(--accent); }
.lead {
  font-size: 1.15rem; color: var(--text-secondary); max-width: 42rem; margin: 0 0 1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.panel-title {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted); margin: 0 0 1rem;
}
.gate { display: grid; gap: 0.85rem; }
.gate-item {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start;
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--border);
}
.gate-item:last-child { border-bottom: 0; padding-bottom: 0; }
.gate-num {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent);
  background: var(--accent-dim); width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center; border-radius: 0.35rem; margin-top: 0.1rem;
}
.gate-item strong { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; }
.gate-item span { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.45; }

/* Sections */
section { padding: 4.5rem 0; border-bottom: 1px solid var(--border); }
section.tight { padding: 3rem 0; }
.h2 {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 1rem;
}
.section-intro { color: var(--text-secondary); max-width: 40rem; margin: 0 0 2.25rem; }

.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 1.35rem 1.3rem;
  transition: border-color var(--ease), transform var(--ease);
}
.card:hover { border-color: var(--border-active); transform: translateY(-2px); }
.card h3 {
  font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.5rem; letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }
.card .meta {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.65rem;
}

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.stack-layers { display: grid; gap: 0.65rem; }
.layer {
  border: 1px solid var(--border); border-radius: 0.65rem; padding: 1rem 1.15rem;
  background: var(--bg-surface);
}
.layer.mid {
  border-color: rgba(45, 212, 191, 0.35);
  background: linear-gradient(180deg, rgba(45,212,191,0.08), var(--bg-surface));
}
.layer .label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.layer .title { font-weight: 650; margin: 0.2rem 0 0.35rem; }
.layer .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font-size: 0.78rem; color: var(--text-secondary);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.55rem;
}
.layer.mid .chip { border-color: rgba(45,212,191,0.3); color: var(--accent); }

.quote {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin: 0;
}
.founder {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 0.85rem; padding: 1.5rem;
}
.avatar {
  width: 4rem; height: 4rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-dim), rgba(167,139,250,0.2));
  border: 1px solid var(--border); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.2rem;
}
.founder h3 { margin: 0 0 0.15rem; font-family: var(--font-display); }
.founder .role { color: var(--accent); font-size: 0.85rem; margin-bottom: 0.65rem; }
.founder p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat {
  padding: 1.25rem; border-radius: 0.75rem; background: var(--bg-surface); border: 1px solid var(--border);
}
.stat strong {
  display: block; font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -0.02em; color: var(--accent);
}
.stat span { color: var(--text-secondary); font-size: 0.9rem; }

.cta-band {
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(45,212,191,0.12), transparent),
    var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -0.02em; }
.cta-band p { margin: 0; color: var(--text-secondary); max-width: 32rem; }

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  color: var(--text-muted); font-size: 0.88rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--text-primary); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.06em; margin: 0 0 0.75rem;
}
.footer-grid a { display: block; color: var(--text-secondary); margin-bottom: 0.4rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
}

.page-hero { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--border); }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em; margin: 0 0 0.85rem; line-height: 1.1;
}
.crumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.crumbs a { color: var(--text-secondary); }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li {
  position: relative; padding-left: 1.4rem; margin-bottom: 0.65rem; color: var(--text-secondary);
}
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 0.45rem; height: 0.45rem; border-radius: 999px; background: var(--accent);
}

code, .mono { font-family: var(--font-mono); font-size: 0.88em; }
