/* Spinwheel brand palette */
:root {
  --sw-dark:    #0f172a;
  --sw-green:   #16a34a;
  --sw-green-d: #15803d;
  --sw-green-l: #dcfce7;
  --sw-accent:  #4ade80;
  --sw-bg:      #f8fafc;
  --sw-surface: #ffffff;
  --sw-text:    #0f172a;
  --sw-muted:   #64748b;
  --sw-border:  #e2e8f0;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --max-w: 860px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--sw-bg);
  color: var(--sw-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-cta {
  background: var(--sw-green);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 1.125rem;
}

.btn-cta:hover { background: var(--sw-green-d); }

.btn-primary {
  background: var(--sw-green);
  color: #fff;
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

.btn-primary:hover { background: var(--sw-green-d); }

.btn-install {
  background: var(--sw-green);
  color: #fff;
  font-size: 1rem;
  padding: 0.875rem 2.25rem;
  display: inline-block;
  margin-top: 2.5rem;
}

.btn-install:hover { background: var(--sw-green-d); }

/* ── Navigation ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sw-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-spin  { color: var(--sw-accent); }
.logo-wheel { color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  background: var(--sw-dark);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sw-accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 .accent { color: var(--sw-accent); }

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* ── Install steps ───────────────────────────────────────────────────────── */

.install {
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  background: var(--sw-surface);
  border-top: 1px solid var(--sw-border);
  text-align: center;
}

.section-inner {
  max-width: 680px;
  margin: 0 auto;
}

.install h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sw-text);
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--sw-muted);
  margin-bottom: 2.5rem;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--sw-bg);
  border: 1px solid var(--sw-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--sw-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--sw-text);
}

.step-body p {
  font-size: 0.9375rem;
  color: var(--sw-muted);
}

/* Code block */
.code-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--sw-surface);
  border: 1px solid var(--sw-border);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  margin-top: 0.875rem;
  font-size: 0.875rem;
  overflow-x: auto;
}

.code-block code {
  flex: 1;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  color: var(--sw-green-d);
  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;
  background: var(--sw-green-l);
  color: var(--sw-green-d);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.copy-btn:hover { background: #bbf7d0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  background: var(--sw-dark);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo { margin-bottom: 0.25rem; }

.footer-disclaimer {
  font-size: 0.8125rem;
  max-width: 600px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero h1 { font-size: 1.875rem; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 1rem; }
  .hero, .install { padding-left: 1rem; padding-right: 1rem; }
  .step { flex-direction: column; gap: 0.875rem; }
  .btn-primary, .btn-install { width: 100%; text-align: center; }
  .code-block { flex-direction: column; align-items: flex-start; }
}
