:root {
  --bg: #0f1115;
  --bg-alt: #161a21;
  --surface: #1c212a;
  --surface-2: #232a35;
  --border: #2c3442;
  --text: #e8ecf1;
  --muted: #9aa5b5;
  --accent: #ffcc33;
  --accent-2: #2ee6a6;
  --danger: #ff6b6b;
  --warn: #ffab4c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

.container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

.accent { color: var(--accent); }

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.logo:hover { text-decoration: none; }
.logo-bolt { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(255, 204, 51, 0.12), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(46, 230, 166, 0.10), transparent 60%),
    var(--bg);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
  margin: 0 0 1rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: #ffd966; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 2rem; color: var(--accent); }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 680px; margin-top: 0; margin-bottom: 2rem; }

/* Top picks */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.pick-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.pick-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent);
}
.pick-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}
.pick-card h3 { margin: 0.4rem 0 0.15rem; }
.pick-model { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.pick-score {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-2);
  line-height: 1;
}
.pick-score small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.pick-why { font-size: 0.92rem; color: var(--muted); margin: 0.75rem 0 0; }

/* Controls */
.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.control { display: flex; flex-direction: column; gap: 0.35rem; }
.control label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
input[type="search"], select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font: inherit;
}
input[type="search"]:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.result-count { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }

/* Scooter cards */
.scooter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.scooter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.15s, transform 0.15s;
}
.scooter-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.card-brand { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0; }
.card-model { margin: 0.15rem 0 0; font-size: 1.1rem; }

.score-ring {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), var(--surface-2) 0);
  position: relative;
}
.score-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--surface);
}
.score-ring span { position: relative; }

.badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}
.badge-tag { background: rgba(255, 204, 51, 0.12); color: var(--accent); border-color: rgba(255, 204, 51, 0.3); }
.badge-easy { color: var(--accent-2); border-color: rgba(46, 230, 166, 0.35); }
.badge-medium { color: var(--warn); border-color: rgba(255, 171, 76, 0.35); }
.badge-hard { color: var(--danger); border-color: rgba(255, 107, 107, 0.35); }

.bars { display: grid; gap: 0.4rem; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 28px; align-items: center; gap: 0.6rem; font-size: 0.8rem; }
.bar-row .label { color: var(--muted); }
.bar-track { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent-2); border-radius: 999px; }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; font-size: 0.85rem; margin: 0; }
.specs dt { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.specs dd { margin: 0; }

.card-verdict { margin: 0; font-size: 0.92rem; color: var(--text); }

details.card-more summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
}
details.card-more summary::-webkit-details-marker { display: none; }
details.card-more summary::after { content: " ▸"; }
details.card-more[open] summary::after { content: " ▾"; }
details.card-more .more-body { margin-top: 0.75rem; font-size: 0.88rem; }
.more-body h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0.75rem 0 0.3rem; }
.more-body ul { margin: 0; padding-left: 1.1rem; }
.more-body .warn li { color: var(--warn); }

/* Compare */
.compare-pickers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.compare-table th, .compare-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--surface-2); font-family: var(--font-head); }
.compare-table tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; width: 180px; background: var(--surface); }
.compare-table td.best { color: var(--accent-2); font-weight: 600; }
.compare-table ul { margin: 0; padding-left: 1rem; }

/* Methods */
.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  counter-reset: method;
}
.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.method-icon { font-size: 1.8rem; }
.method-card h3 { margin: 0.5rem 0 0.25rem; }
.method-card h3::before {
  counter-increment: method;
  content: counter(method) ". ";
  color: var(--accent);
}
.method-meta { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.75rem; display: grid; gap: 0.15rem; }
.method-meta strong { color: var(--text); font-weight: 500; }
.method-card p:last-child { margin: 0; font-size: 0.93rem; }

/* Safety */
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.safety-card {
  border-left: 3px solid var(--warn);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
}
.safety-card h3 { font-size: 1.05rem; }
.safety-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* FAQ */
.faq-list { max-width: 820px; display: grid; gap: 0.75rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.faq-list summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); }
.faq-list p { margin: 0.75rem 0 0; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 0.25rem 0; }

.empty { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 3rem 0; }

/* Responsive */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 0.9rem 1rem; }
  .specs { grid-template-columns: 1fr; }
}
