:root {
  --bg: #0b0b10;
  --bg-elev: #12121a;
  --surface: #171722;
  --surface-2: #1f1f2c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ececf1;
  --text-2: #b4b4c2;
  --muted: #8a8a9c;
  --accent: #ff6b6b;
  --accent-2: #f59e0b;
  --accent-ink: #1a0a0a;
  --live: #ef4444;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1080px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; display: block; }
::selection { background: rgba(255, 107, 107, 0.35); }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(11, 11, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -0.02em; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { color: var(--text-2); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav a.cta { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nav a.cta:hover { filter: brightness(1.06); }
@media (max-width: 560px) { .nav a:not(.cta) { display: none; } }

/* Hero */
.hero { position: relative; padding: 96px 0 72px; text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 50% 0%, rgba(255, 107, 107, 0.22), transparent 70%),
    radial-gradient(500px 360px at 80% 20%, rgba(245, 158, 11, 0.14), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px 6px 8px; border-radius: 999px; margin-bottom: 24px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2); }
.hero h1 { font-size: clamp(38px, 7vw, 68px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; max-width: 14ch; margin: 0 auto 20px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 56ch; margin: 0 auto 36px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px; padding: 10px 18px 10px 14px; min-height: 56px;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}
.badge:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 107, 107, 0.18); }
.badge svg { width: 26px; height: 26px; }
.badge .t { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge .t small { font-size: 11px; font-weight: 500; opacity: 0.85; }
.badge .t strong { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.hero-note { font-size: 13px; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 56px auto 0; max-width: 760px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; }
.stat b { display: block; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(90deg, #fff, #ffd1d1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } .stats .stat:last-child { grid-column: span 2; } }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px; }
.section-head p { color: var(--text-2); font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform 200ms ease-out, border-color 200ms ease-out; }
.feature:hover { transform: translateY(-2px); border-color: rgba(255, 107, 107, 0.35); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(245, 158, 11, 0.16)); color: var(--accent); margin-bottom: 16px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { color: var(--text-2); font-size: 14.5px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.carplay { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; }
.split p { color: var(--text-2); margin-bottom: 14px; }
.split ul { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.split li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.split li svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.dash { background: linear-gradient(160deg, #1b1b27, #0f0f16); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.dash .bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.dash .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); display: block; }
.dash .row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); margin-bottom: 8px; }
.dash .row.active { background: linear-gradient(135deg, rgba(255, 107, 107, 0.22), rgba(245, 158, 11, 0.14)); border: 1px solid rgba(255, 107, 107, 0.35); }
.dash .art { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }
.dash .art.g2 { background: linear-gradient(135deg, #6366f1, #22d3ee); }
.dash .art.g3 { background: linear-gradient(135deg, #10b981, #84cc16); }
.dash .meta b { display: block; font-size: 14px; }
.dash .meta span { font-size: 12px; color: var(--muted); }
.dash .live { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: #fff; background: var(--live); padding: 3px 7px; border-radius: 6px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.cta-band { text-align: center; }
.cta-band .card { background: linear-gradient(135deg, rgba(255, 107, 107, 0.14), rgba(245, 158, 11, 0.1)); border: 1px solid rgba(255, 107, 107, 0.3); border-radius: 28px; padding: 56px 24px; }
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.03em; margin-bottom: 10px; }
.cta-band p { color: var(--text-2); margin-bottom: 26px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

/* Document pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; margin: 40px 0 12px; padding-top: 8px; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc li strong, .doc p strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 22px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--text); font-weight: 700; }
.doc .table-scroll { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0; color: var(--text-2); font-size: 15px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 32px; }
.toc b { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { columns: 2; column-gap: 24px; padding-left: 20px; margin: 0; }
.toc li { margin-bottom: 4px; font-size: 15px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Support page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 40px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card h3 { font-size: 17px; margin-bottom: 6px; }
.contact-card p { font-size: 14.5px; margin-bottom: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); background: var(--surface-2); min-height: 44px; }
.btn:hover { text-decoration: none; background: #2a2a3a; }
.btn.primary { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
details summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; flex: none; }
details[open] summary::after { content: "–"; }
details .body { padding: 0 18px 16px; color: var(--text-2); font-size: 15px; }
details .body p { margin-bottom: 10px; }
details .body p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
