/* ─────────────────────────────────────────────────────────────
   VCar Website — Tokens identisch zur App (UX_REDESIGN.md §2)
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:            #0F1115;
  --bg-elev:       #14171F;
  --surface:       #181B22;
  --surface-2:     #21252E;
  --border:        #2A2F3B;
  --border-strong: #3A4150;

  --text-1: #ECEEF2;
  --text-2: #9CA3AF;
  --text-3: #6B7280;

  --accent:       #3B82F6;
  --accent-2:     #60A5FA;
  --accent-soft:  rgba(59,130,246,0.14);
  --accent-glow:  rgba(59,130,246,0.35);

  --green: #10B981;
  --amber: #F59E0B;
  --red:   #EF4444;
  --orange:#FB923C;

  --font-sans: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1180px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ── NAV ──────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(15,17,21,0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(15,17,21,0.92);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo .logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #2563EB);
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 14px;
  font-family: var(--font-mono);
  box-shadow: 0 0 24px var(--accent-glow);
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 14px; color: var(--text-2);
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--text-1); }
.nav-cta {
  background: var(--accent); color: white !important;
  padding: 8px 16px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px;
}
.nav-cta:hover { filter: brightness(1.08); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: inline-block; }
}

/* ── HERO ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 30%, rgba(16,185,129,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 13px; color: var(--accent-2); font-weight: 500;
  margin-bottom: 24px;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 19px;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.55;
}
.cta-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: all 200ms ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: white;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -8px var(--accent-glow); }
.btn-ghost {
  background: transparent; color: var(--text-1);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text-2); }

.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: white; color: black;
  padding: 10px 20px; border-radius: 12px;
  font-weight: 600; font-size: 14px;
}
.play-badge .icon { width: 22px; height: 22px; }
.play-badge .top { font-size: 10px; opacity: 0.6; line-height: 1.1; }
.play-badge .bot { font-size: 16px; line-height: 1.1; font-weight: 700; }

.hero-trust {
  margin-top: 48px;
  display: flex; gap: 24px; align-items: center;
  font-size: 12px; color: var(--text-3);
  flex-wrap: wrap;
}
.hero-trust .stars { color: var(--amber); letter-spacing: 2px; font-size: 14px; }

/* Phone-Mockup */
.hero-phone {
  position: relative;
  width: 100%; max-width: 340px; margin: 0 auto;
  aspect-ratio: 9/19;
  background: var(--bg-elev);
  border-radius: 36px;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(59,130,246,0.1);
  padding: 16px 12px;
  overflow: hidden;
}
.hero-phone .phone-topbar {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--text-3); padding: 0 8px 12px;
}
.phone-screen-content {
  display: flex; flex-direction: column; gap: 10px;
}
.phone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.phone-card .label {
  font-size: 9px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-2);
  margin-bottom: 4px;
}
.phone-card .value {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em;
}
.phone-card .value .unit { font-size: 11px; color: var(--text-2); font-weight: 500; margin-left: 4px; }
.phone-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.phone-flow {
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 14px; border-radius: 12px;
}
.phone-flow .row { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--text-2); margin-bottom: 8px; }
.phone-flow .nodes {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center; gap: 6px; text-align: center;
}
.phone-flow .node-ico {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  margin: 0 auto 4px; display: grid; place-items: center; font-size: 14px;
}
.phone-flow .node-ico.active { border-color: var(--accent); color: var(--accent); }
.phone-flow .node strong { font-size: 11px; }
.phone-flow .node small { font-size: 8px; color: var(--text-3); display: block; }
.phone-flow .arrow { color: var(--accent); font-size: 14px; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-phone { max-width: 280px; }
}

/* ── SECTIONS ─────────────────────────────────────────────── */

section { padding: 80px 0; }
section.tight { padding: 48px 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.section-h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 720px;
}
.section-sub {
  font-size: 17px; color: var(--text-2);
  max-width: 640px; line-height: 1.55;
  margin-bottom: 48px;
}

/* ── TRUST STRIP ──────────────────────────────────────────── */

.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-elev);
}
.trust-inner {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 12px 32px;
  align-items: center;
  font-size: 13px; color: var(--text-2);
}
.trust-inner b { color: var(--text-1); font-weight: 600; margin-right: 6px; }
.trust-inner .sep { color: var(--text-3); }

/* ── FEATURES ─────────────────────────────────────────────── */

.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 200ms ease, transform 200ms ease;
  position: relative; overflow: hidden;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.feature p {
  color: var(--text-2); font-size: 15px; line-height: 1.55;
}
.feature .pill {
  position: absolute; top: 24px; right: 24px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent-2);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.feature.experimental .pill {
  background: rgba(251,146,60,0.14); color: var(--orange);
}

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

/* ── HOW IT WORKS ─────────────────────────────────────────── */

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 60px; font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  position: absolute;
  top: 12px; right: 20px;
  line-height: 1;
}
.step h4 {
  font-size: 17px; font-weight: 700;
  margin: 8px 0 8px; letter-spacing: -0.01em;
}
.step p { color: var(--text-2); font-size: 14px; line-height: 1.55; }

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

/* ── ADAPTERS ─────────────────────────────────────────────── */

.adapter-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.adapter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: left;
}
.adapter .ico {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--surface-2); display: grid; place-items: center;
  font-size: 28px; margin-bottom: 16px;
}
.adapter h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.adapter .price { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.adapter .traits { font-size: 12px; color: var(--text-3); margin-bottom: 16px; line-height: 1.5; }
.adapter .link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--accent-2); font-weight: 600;
}
.adapter .link:hover { color: var(--accent); }

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

/* ── PRICING ──────────────────────────────────────────────── */

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; align-items: stretch;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 50%);
  transform: scale(1.02);
}
.tier .featured-flag {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: var(--r-pill); text-transform: uppercase;
}
.tier h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.tier .price {
  margin: 16px 0 4px;
  font-size: 42px; font-weight: 800; letter-spacing: -0.02em;
  font-family: var(--font-mono);
}
.tier .price .per { font-size: 14px; color: var(--text-2); font-weight: 500; font-family: var(--font-sans); }
.tier .desc { font-size: 13px; color: var(--text-2); margin-bottom: 24px; }
.tier ul { list-style: none; flex: 1; }
.tier li {
  padding: 8px 0; font-size: 14px;
  display: flex; gap: 8px; align-items: flex-start;
}
.tier li::before {
  content: '✓'; color: var(--green); font-weight: 700;
  flex-shrink: 0;
}
.tier li.no::before { content: '×'; color: var(--text-3); }
.tier li.no { color: var(--text-3); }
.tier .tier-cta {
  margin-top: 24px;
  background: var(--surface-2); color: var(--text-1);
  border: 1px solid var(--border-strong);
  padding: 12px; border-radius: var(--r-md);
  text-align: center; font-weight: 600; font-size: 14px;
}
.tier.featured .tier-cta { background: var(--accent); color: white; border-color: var(--accent); }

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .tier.featured { transform: none; }
}

/* ── FAQ ──────────────────────────────────────────────────── */

.faq-list { max-width: 760px; margin: 0 auto; }
.faq {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 17px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--text-2); font-weight: 400;
  font-size: 24px; line-height: 1;
  transition: transform 200ms ease;
}
.faq[open] summary::after { content: '−'; }
.faq p {
  margin-top: 12px; color: var(--text-2);
  font-size: 15px; line-height: 1.6;
}

/* ── CTA SECTION ──────────────────────────────────────────── */

.cta-section {
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--bg-elev);
  border-radius: var(--r-lg);
  padding: 64px 32px;
  text-align: center;
  border: 1px solid var(--border);
  margin-bottom: 80px;
}
.cta-section h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-section p { color: var(--text-2); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ───────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 13px; color: var(--text-2); max-width: 320px; margin-top: 12px; line-height: 1.6; }
.footer-col h5 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 4px 0; font-size: 14px; }
.footer-col li a { color: var(--text-1); transition: color 150ms; }
.footer-col li a:hover { color: var(--accent-2); }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-3);
}
.footer-legal a { color: var(--text-2); margin-left: 16px; }
.footer-legal a:hover { color: var(--text-1); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-legal { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-legal a { margin-left: 0; margin-right: 16px; }
}

/* ── REVEAL ON SCROLL (CSS-only Fallback) ─────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
  .reveal.in { opacity: 1; transform: none; }
}
