/* ── Reset & Variables ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0D1117;
  --surface:  #161B22;
  --surface2: #1C2128;
  --border:   #30363D;
  --brand:    #0CB8A8;
  --brand-lt: #38D9C8;
  --text:     #E6EDF3;
  --muted:    #7D8590;
  --danger:   #F85149;
  --radius:   10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-lt); }

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0;
  font-size: 1.1rem; font-weight: 600; color: var(--text);
  text-decoration: none;
}
.nav-logo svg { width: 28px; height: 28px; margin-right: 0.5rem; }
.nav-logo span { color: var(--brand); font-weight: 300; }
.nav-links { display: flex; gap: 2rem; font-size: 0.9rem; }
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--brand); color: #fff;
  padding: 0.45rem 1.1rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--brand-lt); color: #fff; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: var(--muted);
  margin-top: auto;
}
.footer-logo {
  display: flex; align-items: center; gap: 0;
  font-weight: 600; color: var(--text);
  text-decoration: none;
}
.footer-logo svg { margin-right: 0.5rem; }
.footer-logo span { color: var(--brand); font-weight: 300; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  background: var(--brand); color: #fff;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500;
  transition: background 0.15s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: var(--brand-lt); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500;
  transition: border-color 0.15s, transform 0.1s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-soon {
  display: inline-block; text-align: center;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 500;
  background: var(--surface2); color: var(--muted);
  border: 1px solid var(--border);
  cursor: default; pointer-events: none;
}
.btn-soon.block { display: block; width: 100%; padding: 0.7rem; font-size: 0.9rem; }

/* ── Section shared ──────────────────────────────────────────── */
section { padding: 2rem 2rem; }
.section-inner { max-width: 1060px; margin: 0 auto; }
.section-label {
  text-align: center; font-size: 0.8rem; font-weight: 600;
  color: var(--brand); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  text-align: center; font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-sub {
  text-align: center; color: var(--muted); font-size: 1rem;
  max-width: 540px; margin: 0 auto 3.5rem;
}

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: rgba(12,184,168,0.12);
  color: var(--brand);
  border: 1px solid rgba(12,184,168,0.3);
  padding: 0.3rem 0.9rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

/* ── Page hero (sub-pages) ───────────────────────────────────── */
.page-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1rem; }
.page-hero p { font-size: 1.05rem; color: var(--muted); max-width: 540px; margin: 0 auto; }

/* ── Highlight box ───────────────────────────────────────────── */
.highlight-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.highlight-box p { margin: 0; color: var(--text); }

/* ── Code & pre ──────────────────────────────────────────────── */
pre {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem; color: var(--brand-lt);
  overflow-x: auto; margin: 0.75rem 0; line-height: 1.6;
}
code {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 4px; padding: 0.1em 0.4em;
  font-size: 0.85em; font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--brand-lt);
}

/* ── Callout ─────────────────────────────────────────────────── */
.callout {
  background: rgba(12,184,168,0.07);
  border: 1px solid rgba(12,184,168,0.25);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.callout p { color: var(--text); font-size: 0.9rem; margin: 0; }
.callout-warn { background: rgba(251,146,60,0.08); border-color: rgba(251,146,60,0.35); }

/* ── HR ──────────────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  footer { flex-direction: column; text-align: center; }
}
