/* ==========================================================================
   VoltichQ — design tokens
   Palette: near-black ground, single voltage-yellow accent, charge-level
   status system instead of traffic-light colors.
   ========================================================================== */

:root {
  --bg: #0b0b0d;
  --bg-elevated: #141417;
  --bg-card: #18181c;
  --border: #28282e;
  --border-soft: #1e1e23;
  --text: #f2f1ec;
  --text-muted: #99979f;
  --text-faint: #616068;

  --accent: #f5c518;
  --accent-dim: #b6941a;
  --accent-soft: rgba(245, 197, 24, 0.12);
  --accent-soft-strong: rgba(245, 197, 24, 0.22);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;

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

  --container: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(245, 197, 24, 0.09), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(245, 197, 24, 0.05), transparent 55%);
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

::selection { background: var(--accent-soft-strong); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.brand .bolt { width: 20px; height: 20px; }
.brand .bolt path { fill: var(--accent); }
.brand span.hq { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Voltage meter (signature element) ---------- */

.meter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
}

.meter-card .meter-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.meter-card .meter-label b { color: var(--accent); font-weight: 600; }

.meter-track {
  height: 14px;
  border-radius: 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  gap: 2px;
  padding: 2px;
}

.meter-seg {
  flex: 1;
  border-radius: 4px;
  background: var(--border-soft);
  position: relative;
  overflow: hidden;
}

.meter-seg.charged { background: var(--accent); }
.meter-seg.charging {
  background: linear-gradient(90deg, var(--accent) 55%, var(--border-soft) 55%);
}
.meter-seg.charging::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  animation: sweep 2.6s ease-in-out infinite;
}

@keyframes sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.meter-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.meter-legend span { display: flex; align-items: center; gap: 6px; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.live { background: var(--accent); }
.dot.testing { background: var(--accent); opacity: 0.55; }
.dot.soon { background: var(--border); border: 1px solid var(--text-faint); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #14120a;
}
.btn-primary:hover { background: #ffd23e; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--accent); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

section { padding: 88px 0; position: relative; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  margin: 6px 0 0;
}

.section-head p {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 6px 0 0;
}

/* ---------- App cards ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 920px) {
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .app-grid { grid-template-columns: 1fr; }
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.app-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }

.app-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card .icon svg { width: 24px; height: 24px; }
.app-card .icon path, .app-card .icon rect, .app-card .icon circle, .app-card .icon polygon {
  stroke: var(--accent);
}

.app-card .top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-faint);
  white-space: nowrap;
}

.status-pill.live { color: #14120a; background: var(--accent); border-color: var(--accent); }
.status-pill.testing { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-soft); }

.app-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0;
}

.app-card .genre {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: -10px;
}

.app-card p.desc {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
  flex-grow: 1;
}

.app-card .card-meter {
  height: 5px;
  border-radius: 3px;
  background: var(--bg-elevated);
  overflow: hidden;
  border: 1px solid var(--border);
}

.app-card .card-meter i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.app-card .card-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
  margin-top: 4px;
}

.app-card .card-links a { color: var(--text-muted); border-bottom: 1px solid transparent; }
.app-card .card-links a:hover { color: var(--accent); border-color: var(--accent-dim); }
.app-card .card-links a.primary { color: var(--accent); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-grid p { color: var(--text-muted); }

.fact-list {
  display: grid;
  gap: 14px;
  font-size: 14.5px;
}

.fact-list .fact {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
}

.fact-list .fact b { color: var(--text); font-weight: 500; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border-soft);
  padding: 52px 0 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Legal / privacy pages ---------- */

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  position: relative;
  z-index: 1;
}

.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  margin: 6px 0 6px;
}

.legal-wrap .updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 40px;
}

.legal-wrap h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 40px 0 12px;
}

.legal-wrap p, .legal-wrap li { color: var(--text-muted); font-size: 15px; }
.legal-wrap ul { padding-left: 20px; }
.legal-wrap a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.back-link:hover { color: var(--accent); }

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 28px 0;
}
