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

:root {
  --primary:        #FF6600;
  --primary-dark:   #E55C00;
  --primary-light:  #FF8533;
  --primary-glow:   rgba(255,102,0,.18);
  --bg:             #0c0c14;
  --bg-card:        #13131e;
  --bg-raised:      #1a1a28;
  --border:         #252535;
  --border-subtle:  #1e1e2e;
  --text:           #e6e6f0;
  --text-muted:     #8080a0;
  --text-faint:     #454560;
  --green:          #22c55e;
  --amber:          #f59e0b;
  --radius:         12px;
  --radius-lg:      20px;
  --shadow:         0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:      0 12px 48px rgba(0,0,0,.5);
  --font:           'Inter', system-ui, -apple-system, sans-serif;
  --mono:           'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --max-w:          1160px;
  --nav-h:          64px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

/* ── Typography ────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p  { color: var(--text-muted); line-height: 1.7; }

.text-primary { color: var(--primary-light); }
.text-muted   { color: var(--text-muted); }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Navigation ────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(12,12,20,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em;
  flex-shrink: 0;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-links a {
  padding: 6px 12px; border-radius: 8px;
  font-size: .9rem; color: var(--text-muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-raised); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-menu-btn { display: none; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  font-size: .9rem; font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 0 0 0 var(--primary-glow);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 0 0 4px var(--primary-glow); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); background: var(--bg-raised); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 8px; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.card:hover { border-color: var(--border); }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .03em;
}
.badge-primary { background: var(--primary-glow); color: var(--primary-light); border: 1px solid rgba(255,102,0,.3); }
.badge-green   { background: rgba(34,197,94,.1); color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.badge-amber   { background: rgba(245,158,11,.1); color: #fbbf24; border: 1px solid rgba(245,158,11,.2); }

/* ── Gradient text ─────────────────────────────────────────────────────────── */
.grad {
  background: linear-gradient(135deg, #FFD6B3 0%, #FF6600 50%, #FF8533 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section label ─────────────────────────────────────────────────────────── */
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary-light); margin-bottom: 12px;
}

/* ── Divider ───────────────────────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border-subtle); }

/* ── Grid helpers ──────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  color: var(--text-faint);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 48px;
  align-items: start;
}
.footer-brand p { font-size: .85rem; margin-top: 8px; max-width: 220px; }
.footer-col h4 { font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: .88rem; color: var(--text-faint); transition: color .15s; }
.footer-col a:hover { color: var(--text-muted); }
.footer-bottom {
  max-width: var(--max-w); margin: 32px auto 0; padding: 24px 24px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem;
}

/* ── Checklist ─────────────────────────────────────────────────────────────── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--text-muted);
}
.checklist li::before {
  content: '✓'; color: var(--green);
  font-weight: 700; font-size: .85rem; flex-shrink: 0; margin-top: 2px;
}

/* ── Glow ring ─────────────────────────────────────────────────────────────── */
.glow-ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary-glow); border: 1px solid rgba(255,102,0,.3);
  color: var(--primary-light); font-size: 1.4rem; flex-shrink: 0;
}

/* ── Code block ────────────────────────────────────────────────────────────── */
.code-block {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  font-family: var(--mono); font-size: .85rem;
  color: #a5b4fc; line-height: 1.6; overflow-x: auto;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .nav-menu-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--bg-raised); border-radius: 8px; color: var(--text-muted); font-size: 1.2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 64px 0; }
}

/* ── Utility ───────────────────────────────────────────────────────────────── */
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.flex  { display: flex; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.w-full { width: 100%; }
