*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1a2e;
  --bg-card: #162744;
  --bg-card-alt: #1a3054;
  --accent: #60a5fa;
  --accent-glow: rgba(96, 165, 250, 0.12);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.1);
  --radius: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

.shell { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--accent); color: var(--bg);
  padding: 0.5rem 1rem; border-radius: 6px; z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

/* Header */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg);
  backdrop-filter: blur(12px); z-index: 10;
}
.header-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); }
.brand__mark { font-size: 1.3rem; color: var(--accent); }
.brand__name { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.header-nav { display: flex; gap: 1.25rem; font-size: 0.9rem; }
.header-nav a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.header-nav a:hover, .header-nav a[aria-current] { color: var(--accent); }
.header-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.live-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; display: inline-block; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; }

/* Hero */
.hero { padding: 2.5rem 1.25rem 2rem; text-align: center; }
.eyebrow {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.5rem;
}
h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.answer-block {
  max-width: 620px; margin: 0 auto 1.75rem;
  font-size: 1rem; color: var(--text-muted); line-height: 1.7;
}
.answer-block strong { color: var(--text); }

/* Code cards */
.code-stack {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem; max-width: 600px; margin: 0 auto;
}
.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.code-card:hover { border-color: var(--accent); box-shadow: 0 0 16px var(--accent-glow); }
.code-card--alt { background: var(--bg-card-alt); }
.code-card--bonus { background: var(--bg-card); border-color: rgba(96, 165, 250, 0.25); }

.code-card__top { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 0.65rem; }
.code-card__label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted); background: rgba(148, 163, 184, 0.08);
  padding: 0.18rem 0.55rem; border-radius: 4px;
}
.code-card__badge {
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
  background: var(--accent-glow); padding: 0.18rem 0.55rem; border-radius: 4px;
}
.code-card__value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800; letter-spacing: 0.03em;
  margin-bottom: 0.4rem; user-select: all;
}
.code-card__meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.9rem; }

.btn {
  display: inline-block; padding: 0.6rem 1.4rem; border-radius: 7px;
  font-size: 0.88rem; font-weight: 600; border: none; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.copy-btn.copied { background: #34d399; }

/* Signup band */
.signup-band { padding: 1.75rem 1.25rem; }
.signup-band__inner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.75rem; align-items: center;
}
.signup-band__copy h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.signup-band__copy p { color: var(--text-muted); font-size: 0.92rem; }

/* Steps */
.steps { padding: 1.5rem 1.25rem; }
.steps h2 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.step-list { list-style: none; counter-reset: step; }
.step-list li {
  counter-increment: step; padding: 0.7rem 0 0.7rem 2.4rem;
  position: relative; color: var(--text-muted); font-size: 0.92rem;
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.65rem;
  width: 1.5rem; height: 1.5rem; background: var(--accent-glow);
  color: var(--accent); border-radius: 50%; text-align: center;
  font-size: 0.75rem; font-weight: 700; line-height: 1.5rem;
}
.step-list li strong { color: var(--text); }

/* FAQ */
.faq-section { padding: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 0.9rem 0; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.15rem; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 0.9rem; color: var(--text-muted); font-size: 0.92rem; }

/* Text link */
.text-link { color: var(--accent); }

/* Footer */
.site-footer {
  padding: 2rem 1.25rem; text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.82rem;
}
.site-footer a { color: var(--accent); text-decoration: none; margin: 0 0.4rem; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .header-row { flex-direction: column; align-items: flex-start; }
  .header-nav { order: 3; width: 100%; }
  .signup-band__inner { grid-template-columns: 1fr; }
  .code-stack { grid-template-columns: 1fr; }
}
