:root {
  color-scheme: dark;
  --bg: #050706;
  --bg-soft: #0a0f0d;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f5f8f6;
  --muted: rgba(245, 248, 246, 0.68);
  --quiet: rgba(245, 248, 246, 0.46);
  --green: #2fc06d;
  --green-deep: #0f7a45;
  --blue: #45a7ff;
  --yellow: #ffd15f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.84), var(--bg) 56%),
    linear-gradient(130deg, rgba(47, 192, 109, 0.22), transparent 34%),
    linear-gradient(235deg, rgba(69, 167, 255, 0.18), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 72%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 7, 6, 0.72);
  backdrop-filter: saturate(180%) blur(22px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(47, 192, 109, 0.2);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--quiet);
  text-decoration: none;
}

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

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(350px, 1.08fr);
  align-items: center;
  gap: clamp(34px, 5.5vw, 86px);
  padding: clamp(48px, 8vw, 96px) 0 56px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 6.4vw, 5.9rem);
  font-weight: 800;
  line-height: 0.92;
}

h2 {
  max-width: 9ch;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  font-weight: 760;
  line-height: 0.96;
}

h3 {
  font-size: 1.04rem;
  font-weight: 720;
  line-height: 1.2;
}

.lead {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  font-weight: 520;
  line-height: 1.22;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 11px 18px;
  background: linear-gradient(180deg, #34d679, var(--green-deep));
  color: #031108;
  font-size: 0.95rem;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(47, 192, 109, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  box-shadow: none;
}

.button:hover {
  transform: translateY(-1px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.stat {
  min-height: 102px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 740;
  line-height: 1.05;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.32;
}

.device-stage {
  position: relative;
  min-height: 620px;
}

.device-stage::before {
  content: "";
  position: absolute;
  inset: 12% -4% 8% 10%;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(47, 192, 109, 0.2), rgba(69, 167, 255, 0.12));
  filter: blur(34px);
}

.carplay-shot {
  width: min(100%, 660px);
  margin-left: auto;
  display: block;
  border: 7px solid #0c0f0e;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.phone-shot {
  position: absolute;
  right: min(6vw, 58px);
  bottom: 0;
  width: min(39%, 210px);
  border: 7px solid #0c0f0e;
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.section {
  padding: clamp(70px, 9vw, 112px) 0;
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 7, 6, 0.62);
}

.section.alt {
  background: linear-gradient(180deg, rgba(13, 22, 18, 0.92), rgba(5, 7, 6, 0.88));
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.section-copy {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.feature.note {
  grid-column: 1 / -1;
  min-height: 0;
}

.feature p,
.policy-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.screenshot-row {
  display: grid;
  grid-template-columns: 0.72fr 0.28fr;
  gap: 18px;
  align-items: end;
}

.screenshot-row img {
  width: 100%;
  border: 7px solid #0c0f0e;
  box-shadow: var(--shadow);
}

.screenshot-row img:first-child {
  border-radius: 8px;
}

.screenshot-row img:last-child {
  border-radius: 32px;
}

.page-hero {
  padding: clamp(66px, 9vw, 104px) 0 44px;
}

.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
}

.content {
  max-width: 840px;
  padding: 22px 0 88px;
}

.policy-card {
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.policy-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.policy-card li + li {
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #030504;
  color: var(--quiet);
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 560;
}

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

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  h1,
  h2 {
    max-width: 11ch;
  }

  .device-stage {
    min-height: auto;
    padding-bottom: 42px;
  }

  .phone-shot {
    width: min(35%, 160px);
    right: 18px;
  }

  .stats,
  .feature-grid,
  .screenshot-row {
    grid-template-columns: 1fr;
  }

  .screenshot-row img:last-child {
    width: min(72%, 270px);
  }
}

@media (max-width: 540px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .nav,
  .footer-inner {
    width: min(100% - 24px, 1160px);
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4rem);
  }

  h2 {
    font-size: clamp(2.35rem, 12vw, 3.1rem);
  }

  .lead {
    font-size: 1.12rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .stats {
    gap: 8px;
  }

  .carplay-shot {
    border-width: 5px;
  }

  .phone-shot {
    position: relative;
    right: auto;
    display: block;
    width: min(72%, 240px);
    margin: -22px auto 0;
  }

  .section {
    padding: 58px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
  }
}
