:root {
  --bg: #08090a;
  --bg-alt: #0b0c0d;
  --surface: #08090a;
  --border: #1d1e20;
  --text: #f1f1ef;
  --text-bright: #f8f8f6;
  --text-muted: #a6a6ac;
  --text-dim: #8c8c93;
  --text-dimmer: #6e6e74;
  --accent: #00e6a8;
  --accent-ink: #08090a;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.mono { font-family: "JetBrains Mono", ui-monospace, "SF Mono", monospace; }
.display { font-family: "Space Grotesk", -apple-system, sans-serif; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; font-weight: 600; color: var(--text-bright); }
p { margin: 0 0 16px; color: var(--text-muted); }

.grid-bg {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 10, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-bright);
}

.nav { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 28px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  border: 1px solid #2a2b2e;
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

.nav-links .btn { padding: 10px 20px; }

/* Hero */
.hero {
  padding: 140px 0 120px;
  border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: 820px; display: flex; flex-direction: column; gap: 28px; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 820px;
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sections */
.section { padding: 100px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.section-head h2 { margin-bottom: 0; }

.section-lead {
  max-width: 340px;
  font-size: 0.95rem;
  margin: 0;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.card {
  background: var(--bg);
  padding: 36px;
}

.card-index { display: block; font-size: 0.8rem; color: var(--accent); margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.card p { margin-bottom: 0; font-size: 0.9rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.step {
  padding-top: 20px;
  border-top: 1px solid #2a2b2e;
}

.step-active { border-top-color: var(--accent); }

.step-number { display: block; font-size: 0.8rem; color: var(--text-dimmer); margin-bottom: 12px; }
.step p { font-size: 0.9rem; margin-bottom: 0; }

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-inner p { font-size: 0.95rem; }

.stats {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat {
  background: var(--bg-alt);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label { color: var(--text-dim); font-size: 0.8rem; }
.stat-number { font-size: 1.05rem; font-weight: 600; color: var(--text); }

/* CTA */
.section-cta {
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.cta-inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.cta-inner .eyebrow { margin-bottom: 6px; }
.cta-inner .btn { margin-top: 10px; }

/* Footer */
.site-footer {
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--text-dimmer);
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 20px;
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; padding-top: 16px; }

  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
