/* ============================================================
   EVGasCalc — Voltage design system
   Dark / cyan / charging-green corporate-modern aesthetic.
   Inspired by stitch_ev_cost_savings_redesign Apr 2026.
   ============================================================ */

:root {
  /* Surfaces — tonal layering on a deep-navy base */
  --bg:                 #0A0D14;
  --surface:            #10131a;
  --surface-low:        #191b23;
  --surface-mid:        #1d1f27;
  --surface-high:       #272a32;
  --surface-highest:    #32353d;

  /* Borders */
  --border:             rgba(255, 255, 255, 0.06);
  --border-strong:      rgba(255, 255, 255, 0.10);
  --border-cyan:        rgba(0, 229, 255, 0.30);
  --border-cyan-soft:   rgba(0, 229, 255, 0.15);

  /* Text */
  --text:               #e1e2ec;
  --text-muted:         #bac9cc;
  --text-dim:           #8a96a3;
  --text-faint:         #5b6571;

  /* Brand: Electric Cyan */
  --primary:            #00e5ff;
  --primary-soft:       #c3f5ff;
  --primary-deep:       #00626e;
  --on-primary:         #00363d;

  /* Success: Charging Green */
  --success:            #27ff97;
  --success-dim:        #00e383;
  --on-success:         #00210e;

  /* Accent: Gas / warning orange */
  --gas:                #fb923c;
  --gas-soft:           #fdba74;

  /* Spacing scale (8px base) */
  --xs: 4px;
  --sm: 12px;
  --md: 24px;
  --lg: 48px;
  --xl: 80px;
  --gutter: 24px;
  --max-w: 1280px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 30px rgba(0, 229, 255, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(0, 229, 255, 0.25);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-soft); }
::selection { background: var(--primary-soft); color: var(--on-primary); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: 17px; font-weight: 600; }
p { color: var(--text-muted); }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); }

/* Mono / data display */
.mono, .data-display, .label-caps {
  font-family: var(--font-mono);
  font-feature-settings: "ss01", "tnum";
}
.data-display {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--text);
}
.data-xl {
  font-family: var(--font-mono);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.label-caps {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1;
}
.label-caps.cyan { color: var(--primary); }
.label-caps.green { color: var(--success-dim); }

/* ---------- Layout ---------- */
.wrap, .container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--md);
  padding-right: var(--md);
  width: 100%;
}
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-left: var(--md); padding-right: var(--md); width: 100%; }

main { flex: 1 0 auto; }

/* ---------- Top App Bar ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.07);
}
.appbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--md);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.brand:hover { color: var(--primary-soft); }
.brand-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(0,229,255,0.5));
}

.nav-primary { display: flex; align-items: center; gap: 28px; }
.nav-primary a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-primary a:hover { color: var(--text); }
.nav-primary a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.appbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 0.15s, transform 0.1s;
}
.appbar-cta:hover { filter: brightness(1.1); color: var(--on-primary); }
.appbar-cta:active { transform: scale(0.97); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--xl) 0;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 229, 255, 0.08) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 90% 100%, rgba(39, 255, 151, 0.04) 0%, transparent 60%);
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-cyan);
  background: rgba(0, 229, 255, 0.05);
  border-radius: var(--r-pill);
  color: var(--primary);
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; max-width: 22ch; }
.hero p.lead { max-width: 60ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: filter 0.15s, transform 0.1s, background 0.15s, color 0.15s;
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover { filter: brightness(1.1); color: var(--on-primary); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border-cyan);
}
.btn-secondary:hover { background: rgba(0, 229, 255, 0.07); color: var(--primary-soft); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 12px 0;
  letter-spacing: 0.1em;
}
.btn-ghost:hover { color: var(--primary-soft); }
.btn-ghost svg { transition: transform 0.15s; }
.btn-ghost:hover svg { transform: translateX(3px); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 13px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--md);
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.card-hover:hover {
  border-color: var(--border-cyan-soft);
  transform: translateY(-2px);
}
.glass-card {
  background: rgba(18, 25, 38, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: var(--md);
}
.card-accent-top { position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card-accent-cyan { background: linear-gradient(to right, var(--primary), transparent); }
.card-accent-gas { background: linear-gradient(to right, var(--gas), transparent); }
.card-accent-green { background: linear-gradient(to right, var(--success), transparent); }

/* Stat / metric card */
.stat-card {
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}
.stat-card .stat-label { display: block; margin-bottom: 8px; }
.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-card .stat-value.cyan { color: var(--primary); }
.stat-card .stat-value.green { color: var(--success-dim); }

/* Hero metric — primary-container highlight */
.hero-metric {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-lg);
  padding: var(--md);
  position: relative;
  overflow: hidden;
}
.hero-metric .metric-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-deep);
  opacity: 0.85;
  margin-bottom: 12px;
}
.hero-metric .metric-value {
  font-family: var(--font-mono);
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--on-primary);
}
.hero-metric .metric-sub {
  margin-top: 14px;
  font-size: 14px;
  color: var(--on-primary);
  opacity: 0.8;
}

/* ---------- Form controls ---------- */
input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: var(--surface-high);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}
label.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}
.field-row .data-display { color: var(--text); }

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: var(--surface-highest);
  height: 4px;
  border-radius: 2px;
  cursor: pointer;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
  transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/* Toggle pills */
.pill-group {
  display: inline-flex;
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  gap: 2px;
}
.pill-group button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pill-group button:hover { color: var(--text); }
.pill-group button.active {
  background: rgba(0, 229, 255, 0.18);
  color: var(--primary);
}

/* ---------- Tables ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-strong);
}
/* Right-align headers from column 2 onward to match the right-aligned numeric cells below them.
   First column is always a text label (Metric / Category / Component), subsequent columns are numeric. */
.data-table thead th:not(:first-child) { text-align: right; }
.data-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr.highlight { background: rgba(0, 229, 255, 0.06); }
.data-table tbody tr.highlight td { color: var(--text); }
.data-table .num { font-family: var(--font-mono); text-align: right; }
.data-table .num-cyan { color: var(--primary); }
.data-table .num-green { color: var(--success-dim); }
.data-table .num-gas { color: var(--gas); }

/* ---------- Image slot (placeholder until Gemini fills it) ---------- */
.image-slot {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,229,255,0.06) 0%, rgba(39,255,151,0.04) 100%),
    var(--surface-low);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(0,229,255,0.18), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(39,255,151,0.10), transparent 50%);
  pointer-events: none;
}
.image-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.image-slot .slot-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.image-slot.has-image::before, .image-slot.has-image::after { display: none; }
.image-slot img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-slot.aspect-square { aspect-ratio: 1 / 1; }
.image-slot.aspect-video  { aspect-ratio: 16 / 9; }
.image-slot.aspect-wide   { aspect-ratio: 21 / 9; }

/* ---------- Trust / icon block ---------- */
.icon-bullet {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.icon-bullet .iconwrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-cyan-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.icon-bullet .iconwrap.green {
  background: rgba(39, 255, 151, 0.08);
  border-color: rgba(39, 255, 151, 0.2);
  color: var(--success-dim);
}
.icon-bullet h4 { margin-bottom: 4px; }
.icon-bullet p { font-size: 14px; color: var(--text-dim); }

/* ---------- Section spacing ---------- */
.section { padding: var(--xl) 0; }
.section-tight { padding: var(--lg) 0; }
.section-bg-low { background: var(--surface); }
.section-bg-lowest { background: #07090e; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: var(--lg);
}
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--text-dim); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 24px 0 8px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { padding: 0 8px; opacity: 0.5; }

/* ---------- Footer ---------- */
.site-footer {
  background: #07090e;
  border-top: 1px solid var(--border-strong);
  padding: var(--lg) 0;
  margin-top: var(--xl);
}
.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--md);
  display: grid;
  gap: 32px;
}
.site-footer .brand { font-size: 22px; }
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer-links a { color: var(--text-faint); transition: color 0.15s; }
.site-footer-links a:hover { color: var(--primary); }
.site-footer-meta {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.site-footer-meta a { color: var(--text-dim); }

/* ---------- Article (blog post / state page prose) ---------- */
.prose {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.prose h2 {
  margin: 40px 0 16px;
  font-size: 26px;
  color: var(--text);
}
.prose h3 {
  margin: 32px 0 12px;
  font-size: 20px;
  color: var(--text);
  font-weight: 600;
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--border-cyan); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--primary); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.prose th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-strong);
  font-weight: 600;
}
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.prose tr.total-row td {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--border-cyan-soft);
}
.prose figure { margin: 24px 0; }
.prose figure img { border-radius: var(--r-lg); }
.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  color: var(--text);
  font-style: italic;
  background: rgba(0, 229, 255, 0.03);
}

/* CTA box embedded in prose */
.cta-box {
  margin: 36px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(39,255,151,0.04));
  border: 1px solid var(--border-cyan-soft);
  border-radius: var(--r-lg);
  text-align: center;
}
.cta-box p {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 16px;
  font-weight: 500;
}

/* Pro tip / inline callout */
.pro-tip {
  position: relative;
  padding: 20px 22px;
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-md);
  margin: 24px 0;
}
.pro-tip .tip-eyebrow { color: var(--primary); margin-bottom: 6px; display: block; }
.pro-tip h4 { color: var(--text); margin-bottom: 6px; }
.pro-tip p { color: var(--text-muted); font-size: 14px; }

/* ---------- Bento grid helpers ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.span-12 { grid-column: span 12; }
.span-8  { grid-column: span 8; }
.span-6  { grid-column: span 6; }
.span-4  { grid-column: span 4; }
.span-3  { grid-column: span 3; }

/* ---------- Animations ---------- */
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ---------- Utility ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 32px 0; }
.text-cyan { color: var(--primary); }
.text-green { color: var(--success-dim); }
.text-gas { color: var(--gas); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.muted { color: var(--text-dim); }
.center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-primary { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-primary.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-strong);
    padding: var(--sm) var(--md);
  }
  .nav-primary.open a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .span-8, .span-6, .span-4, .span-3 { grid-column: span 12; }
  .section { padding: var(--lg) 0; }
}
@media (max-width: 600px) {
  :root { --md: 18px; --lg: 36px; --xl: 56px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero-actions .btn { width: 100%; }
  .nav-primary { gap: 0; }
}
