/* SaVolt — public site */

:root {
  --bg: #08090c;
  --bg-raised: #101218;
  --bg-card: #14171e;
  --border: #262a33;
  --text: #f4efe4;
  --text-dim: #b4aea3;
  --text-faint: #7c776e;
  --accent: #f3b23a;
  --accent-hot: #ff7a3c;
  --accent-dim: #8a6418;
  --radius: 16px;
  --max: 1120px;
  --font: "Sora", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  font-size: 17px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(8, 9, 12, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.wordmark .mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

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

.nav-cta {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text) !important;
}

.nav-cta:hover {
  border-color: var(--accent-dim);
  background: rgba(243, 178, 58, 0.08);
}

.hero {
  position: relative;
  padding: 88px 0 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-compact { padding-bottom: 12px; }

.hero-glow {
  pointer-events: none;
  position: absolute;
  inset: -20% 10% auto auto;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(243, 178, 58, 0.16), transparent 64%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 0 0 rgba(255, 122, 60, 0.7);
  animation: pulse-dot 2s ease-out infinite;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 400;
  max-width: 14ch;
}

.typed-line {
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 18px;
  min-height: 1.6em;
}

.typed {
  color: var(--accent);
  border-right: 2px solid var(--accent-hot);
  padding-right: 2px;
  animation: caret 0.9s steps(1) infinite;
}

.hero .lede,
.hero-compact .lede {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 54ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a1204;
}

.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent-dim);
  background: rgba(243, 178, 58, 0.06);
}

.hero-visual {
  margin: 0;
  padding: 18px 8px 0;
}

.hero-visual figcaption {
  margin: 8px 8px 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.charge-scene {
  width: 100%;
  height: auto;
  overflow: visible;
}

.wire-track {
  fill: none;
  stroke: #2b303a;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.wire-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 36 200;
  animation: charge-flow 2.8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(243, 178, 58, 0.55));
}

.wire-start { fill: #f3b23a; }
.wire-end { fill: #3ecf7a; }

.tesla-body { fill: #e6e1d6; }
.tesla-glass { fill: #1c2430; }
.tesla-light { fill: #fff3c4; }
.tesla-sill { fill: none; stroke: #b7b2a7; stroke-width: 2; stroke-linecap: round; }
.tesla-mirror { fill: #cfc9bc; }
.wheel-tire { fill: #12141a; stroke: #3a404c; stroke-width: 3.5; }
.wheel-aero { fill: #2b3038; }
.wheel-hub { fill: #9aa0aa; }

.charge-port {
  fill: var(--accent-hot);
}

.pulse-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-node 2.8s ease-in-out infinite;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

.section-head {
  max-width: 64ch;
  margin: 0 0 40px;
}

.section-kicker {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin: 0 0 12px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 400;
  line-height: 1.1;
}

.section-head h2 em {
  font-style: italic;
  color: var(--accent);
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, #171b22, var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--accent);
}

.card h3 {
  font-size: 1.02rem;
  margin: 0 0 10px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.value-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.value-panel p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-dim);
}

.value-panel .disclosure {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-faint);
}

.value-panel .disclosure strong {
  color: var(--text-dim);
}

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

.pillar {
  padding: 22px 0 0;
  border-top: 2px solid var(--accent-dim);
}

.pillar h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.pillar p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.93rem;
}

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

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.contact h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 10px;
  font-weight: 400;
}

.contact p {
  margin: 0;
  color: var(--text-dim);
}

footer {
  padding: 40px 0 56px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

.footer-inner a {
  text-decoration: none;
  color: var(--text-dim);
}

.footer-inner a:hover { color: var(--text); }

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-legal {
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 0 24px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.legal-body { max-width: 72ch; }

.legal-body h2 {
  font-size: 1.25rem;
  margin: 40px 0 14px;
  font-weight: 600;
}

.legal-body p,
.legal-body ul {
  color: var(--text-dim);
  margin: 0 0 16px;
}

.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--accent); }

.legal-body .updated {
  color: var(--text-faint);
  font-size: 0.88rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
}

.back-link:hover { color: var(--text); }

@keyframes charge-flow {
  from { stroke-dashoffset: 262; }
  to { stroke-dashoffset: 0; }
}

@keyframes pulse-node {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 60, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 122, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 60, 0); }
}

@keyframes caret {
  50% { border-right-color: transparent; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 28px; }
}

@media (max-width: 760px) {
  :root { font-size: 16px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .grid,
  .pillars { grid-template-columns: 1fr; }
  .contact,
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .wire-pulse,
  .pulse-node,
  .eyebrow::before,
  .typed { animation: none; }
  html { scroll-behavior: auto; }
}
