/* =========================================================
   Car Dashboard — landing styles
   System fonts only (no web-font requests) for instant load.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1120px;
  --gauge-track: #e6e6ea;
  --appstore-bg: #1d1d1f;
  --appstore-fg: #ffffff;
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light dark;
}

/* Dark palette — applied automatically by system, or forced via [data-theme] */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #000000;
    --bg-soft: #101012;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: #2a2a2e;
    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --gauge-track: #2a2a2e;
    --appstore-bg: #f5f5f7;
    --appstore-fg: #000000;
    --shadow-lg: 0 30px 90px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #101012;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --line: #2a2a2e;
  --accent: #2997ff;
  --accent-hover: #47a6ff;
  --gauge-track: #2a2a2e;
  --appstore-bg: #f5f5f7;
  --appstore-fg: #000000;
  --shadow-lg: 0 30px 90px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.022em; line-height: 1.06; font-weight: 600; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 500; font-size: 16px;
  padding: 11px 22px; border-radius: 980px; transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:active { transform: scale(.97); }
.btn--sm { padding: 8px 17px; font-size: 15px; }

.appstore { display: inline-block; line-height: 0; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.appstore:hover { transform: translateY(-2px); opacity: .9; }
.appstore:active { transform: scale(.98); }
.appstore img { height: 54px; width: auto; }
.cta .appstore img { height: 58px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 54px; }
.nav__brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.nav__brand:hover { color: var(--text); }
.nav__logo { display: inline-flex; }
.nav__logo img { display: block; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--text-2); font-size: 14.5px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; }
@media (max-width: 720px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 20px; text-align: center; position: relative; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: -.01em; margin: 0 0 14px; }
.hero__title { font-size: clamp(40px, 7vw, 80px); margin-bottom: 20px; }
.hero__sub {
  color: var(--text-2); font-size: clamp(18px, 2.4vw, 22px); line-height: 1.42;
  max-width: 620px; margin: 0 auto 30px;
}
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 24px; margin-bottom: 30px; }
.trust { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--text); order: -1; }
.trust__laurel { height: 70px; width: auto; flex: none; }
.trust__body { text-align: center; line-height: 1.14; }
.trust__label { display: block; font-size: 14px; color: var(--text-2); }
.trust__count { display: block; font-size: clamp(18px, 2.5vw, 22px); font-weight: 700; letter-spacing: -.02em; }
.trust__stars { display: block; color: #ff9f0a; font-size: 17px; letter-spacing: 3px; margin-top: 3px; }
.trust__note { display: block; font-size: 11px; color: var(--text-2); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
/* Trust badge on the always-dark CTA background */
.cta .trust { color: #fff; display: flex; justify-content: center; margin: 0 auto 24px; }
.cta .trust__label, .cta .trust__note { color: #9fb0c9; }

/* ---------- Hero product image ---------- */
.device { position: relative; margin: 0 auto; max-width: 1000px; isolation: isolate; }
.device::before {
  content: ""; position: absolute; z-index: -1;
  inset: -20% -16% -26%;
  background:
    radial-gradient(42% 46% at 28% 40%, rgba(41, 151, 255, .8), transparent 70%),
    radial-gradient(42% 46% at 76% 60%, rgba(48, 209, 88, .6), transparent 72%);
  filter: blur(90px); opacity: 1;
}
.device picture { display: block; }
.device__img {
  display: block; width: 100%; height: auto; border-radius: 26px;
  -webkit-mask:
    linear-gradient(to bottom, transparent 0, #000 8%, #000 78%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(to bottom, transparent 0, #000 8%, #000 78%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}
@media (prefers-color-scheme: light) {
  .device:not([data-theme] *)::before { opacity: .5; }
}
:root[data-theme="light"] .device::before { opacity: .5; }
:root[data-theme="dark"] .device::before { opacity: .85; }
/* ---------- Generic section ---------- */
.section { padding: clamp(70px, 12vw, 130px) 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 16px; }
.section__head p { color: var(--text-2); font-size: clamp(17px, 2.2vw, 21px); }

/* ---------- Features grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -24px rgba(0,0,0,.28); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 15px; background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); margin-bottom: 18px;
}
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; margin: 0; }

/* ---------- Feature highlight rows ---------- */
.feature { padding: clamp(70px, 12vw, 130px) 0; }
.feature--soft { background: var(--bg-soft); }
.feature--dark { background: #000; color: #f5f5f7; }
.feature--dark .eyebrow { color: #2997ff; }
.feature--dark .feature__text p { color: #a1a1a6; }
.feature__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.feature__inner--rev .feature__text { order: 2; }
@media (max-width: 820px) {
  .feature__inner, .feature__inner--rev { grid-template-columns: 1fr; }
  .feature__inner--rev .feature__text { order: 0; }
}
.feature__text h2 { font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 18px; }
.feature__text > p { color: var(--text-2); font-size: clamp(17px, 2.1vw, 20px); margin: 0 0 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature__img { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 55px rgba(0, 0, 0, .3)); }
.ticks li { position: relative; padding-left: 30px; font-size: 16.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9.6 16.2 4.8 11.4l1.4-1.4 3.4 3.4 8-8 1.4 1.4z'/></svg>") center/70% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9.6 16.2 4.8 11.4l1.4-1.4 3.4 3.4 8-8 1.4 1.4z'/></svg>") center/70% no-repeat;
}
.feature--dark .ticks li::before { background: #2997ff; }

/* Feature artworks */
.art {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.art--map { background: linear-gradient(150deg, #17233a, #0a0f1c); }
.art__grid {
  position: absolute; inset: -20%;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px; transform: rotate(-10deg);
}
.art__route { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(10,132,255,.55)); }
.art__pin { position: absolute; right: 30%; top: 16%; width: 18px; height: 18px; border-radius: 50%; background: #0a84ff; box-shadow: 0 0 0 7px rgba(10,132,255,.25); }
.art__card { position: absolute; left: 20px; bottom: 20px; background: rgba(10,12,20,.6); backdrop-filter: blur(10px); padding: 12px 16px; border-radius: 14px; color: #fff; }
.art__card b { display: block; font-size: 18px; }
.art__card span { font-size: 13px; color: #b9c0cc; }

.art--music { background: linear-gradient(150deg, #2a0f2a, #120a1e); display: grid; place-content: center; gap: 16px; padding: 30px; }
.art__cover { width: min(46%, 200px); aspect-ratio: 1; border-radius: 20px; margin: 0 auto; background: linear-gradient(135deg, #ff6a3d, #d21f7c); box-shadow: 0 20px 50px -18px rgba(210,31,124,.6); }
.art__meta { text-align: center; color: #fff; }
.art__meta b { display: block; font-size: 20px; }
.art__meta span { color: #c9b8d6; font-size: 14px; }
.art__bar { height: 5px; border-radius: 4px; background: rgba(255,255,255,.18); width: min(60%, 260px); margin: 0 auto; }
.art__bar i { display: block; height: 100%; width: 46%; border-radius: 4px; background: #fff; }
.art__controls { display: flex; align-items: center; justify-content: center; gap: 26px; }
.art__controls span { width: 12px; height: 12px; background: rgba(255,255,255,.6); border-radius: 2px; }
.art__play { width: 46px !important; height: 46px !important; border-radius: 50% !important; background: #fff !important; position: relative; }
.art__play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 15px solid #120a1e; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

.art--design { background: linear-gradient(150deg, #1c2130, #0d1017); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 30px; align-content: center; }
.art__swatch { border-radius: 16px; aspect-ratio: 3/4; }
.art__swatch--a { background: linear-gradient(160deg, #0a84ff, #0040a0); }
.art__swatch--b { background: linear-gradient(160deg, #30d158, #0a7d38); }
.art__swatch--c { background: linear-gradient(160deg, #ff9f0a, #d2691e); }
.art__toggle { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 14px; color: #fff; font-size: 14px; }
.art__toggle i { width: 52px; height: 30px; border-radius: 999px; background: #0a84ff; position: relative; }
.art__toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .3s var(--ease); }

/* ---------- Final CTA ---------- */
.cta { padding: clamp(80px, 13vw, 150px) 0; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, #0a2a5e 0%, #071a3a 45%, #04060f 100%);
  color: #fff;
}
.cta h2 { font-size: clamp(32px, 5vw, 58px); margin-bottom: 16px; }
.cta p { color: #c9d3e4; font-size: clamp(17px, 2.2vw, 22px); max-width: 560px; margin: 0 auto 30px; }
.cta .appstore { color: #fff; margin: 0 auto; }
.cta__note { font-size: 14px; color: #9fb0c9; margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 46px 0; }
.footer__inner { display: grid; gap: 22px; }
.footer__brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { color: var(--text-2); font-size: 14.5px; }
.footer__links a:hover { color: var(--text); }
.footer__legal { color: var(--text-2); font-size: 12.5px; line-height: 1.6; max-width: 760px; margin: 0; }

/* ---------- Reviews / testimonials ---------- */
.reviews__rating {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 8px 16px; border-radius: 980px; border: 1px solid var(--line); background: var(--bg-soft);
  font-size: 14.5px; color: var(--text-2);
}
.reviews__rating .stars { color: #ff9f0a; letter-spacing: 1px; }
.reviews__rating b { color: var(--text); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews__grid { grid-template-columns: 1fr; } }
.review {
  margin: 0; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .28); }
.review__stars { color: #ff9f0a; letter-spacing: 2px; font-size: 15px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text); }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 15px;
}
.review:nth-child(6n+1) .review__avatar { background: linear-gradient(135deg, #0a84ff, #0040a0); }
.review:nth-child(6n+2) .review__avatar { background: linear-gradient(135deg, #ff6a3d, #d21f7c); }
.review:nth-child(6n+3) .review__avatar { background: linear-gradient(135deg, #30d158, #0a7d38); }
.review:nth-child(6n+4) .review__avatar { background: linear-gradient(135deg, #ff9f0a, #d2691e); }
.review:nth-child(6n+5) .review__avatar { background: linear-gradient(135deg, #bf5af2, #6c2bd9); }
.review:nth-child(6n+6) .review__avatar { background: linear-gradient(135deg, #64d2ff, #0071a4); }
.review__who { display: flex; flex-direction: column; line-height: 1.3; }
.review__who b { font-size: 15px; }
.review__who span { color: var(--text-2); font-size: 13px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(70px, 10vw, 110px) 0 90px; }
.legal__wrap { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 10px; }
.legal .updated { color: var(--text-2); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-size: 22px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--text-2); font-size: 16.5px; line-height: 1.6; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { text-decoration: underline; }
.legal .back { display: inline-block; margin-top: 44px; font-weight: 500; text-decoration: none; }

/* ---------- Theme switch (Light / Dark / Auto) ---------- */
.theme-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 980px; background: var(--bg);
}
.theme-switch button {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 6px 16px; border-radius: 980px; background: transparent;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.theme-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.footer__bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.footer__bar-note { color: var(--text-2); font-size: 14px; }
.footer__bar-note a { font-weight: 500; }
@media (max-width: 520px) { .footer__bar { justify-content: center; text-align: center; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
