:root {
  --ink: #101820;
  --muted: #5e6b76;
  --line: #d9e0e6;
  --panel: #f5f7f9;
  --paper: #ffffff;
  --blue: #2251d1;
  --teal: #13b8b1;
  --green: #1e7f53;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 8px;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a,
.site-footer a {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.header-action,
.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.secondary {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.button.outline {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.button.wide {
  width: 100%;
}

button.button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  padding: clamp(32px, 6vw, 82px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7, 12, 18, 0.78), rgba(7, 12, 18, 0.22) 58%, rgba(7, 12, 18, 0.05)), url("./assets/hero-carplay-adapter.png");
  background-size: cover;
  background-position: center;
}

.hero-copy {
  position: relative;
  max-width: 720px;
  color: white;
  padding-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7ff1e7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.18;
}

.hero-text {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.trust-strip div {
  padding: 24px clamp(16px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span,
.muted,
.small-note,
.section-heading p,
.split p,
.site-footer p {
  color: var(--muted);
}

.section {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-grid.two-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card.featured {
  border-color: rgba(34, 81, 209, 0.45);
  box-shadow: var(--shadow);
}

.product-thumb {
  display: grid;
  place-items: center;
  min-height: 250px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.product-thumb a {
  display: grid;
  width: 100%;
  min-height: 250px;
  place-items: center;
}

.product-thumb img {
  width: min(86%, 360px);
  height: auto;
}

.device-mockup {
  position: relative;
  width: min(82%, 420px);
  aspect-ratio: 1.45;
}

.screen-kit {
  display: grid;
  place-items: center;
}

.screen-ui {
  width: 100%;
  height: 68%;
  border: 10px solid #171f27;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 35%),
    linear-gradient(135deg, #0d2b55, #111820 62%, #13b8b1);
  box-shadow: 0 18px 36px rgba(16, 24, 32, 0.22);
}

.screen-ui::before,
.screen-ui::after {
  content: "";
  position: absolute;
  top: 33%;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
}

.screen-ui::before {
  left: 34%;
}

.screen-ui::after {
  left: 47%;
}

.camera-ui {
  position: absolute;
  left: 8%;
  bottom: 2%;
  width: 70px;
  height: 46px;
  border-radius: 10px;
  background: #111820;
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.2);
}

.camera-ui::after {
  content: "";
  position: absolute;
  inset: 10px 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #7ff1e7, #2251d1 55%, #101820 56%);
}

.adapter-kit {
  display: grid;
  place-items: center;
}

.adapter-body {
  width: 46%;
  height: 58%;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 32%),
    #111820;
  box-shadow: 0 18px 36px rgba(16, 24, 32, 0.24);
}

.adapter-body::before {
  content: "P";
  position: absolute;
  top: 40%;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 9px;
  transform: translate(-50%, -50%);
  font-weight: 900;
}

.adapter-cable {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: 58%;
  height: 7px;
  border-radius: 99px;
  background: #5e6b76;
  transform: translateX(-50%);
}

.adapter-cable::before,
.adapter-cable::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 28px;
  height: 24px;
  border-radius: 6px;
  background: #202b35;
}

.adapter-cable::before {
  left: -12px;
}

.adapter-cable::after {
  right: -12px;
}

.product-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.product-body .button {
  margin-top: auto;
}

.product-body h3 a {
  color: inherit;
  text-decoration: none;
}

.product-body h3 a:hover {
  color: var(--blue);
}

.product-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.sku {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
}

.device-mockup.large {
  width: min(86%, 560px);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.detail-gallery {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-gallery {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0;
  overflow: hidden;
}

.gallery-stage {
  position: relative;
  display: grid;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 8px 8px 0 0;
}

.gallery-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.gallery-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.gallery-control {
  position: absolute;
  top: 44%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.gallery-control.previous {
  left: 18px;
}

.gallery-control.next {
  right: 34px;
}

.gallery-thumbs {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  gap: 10px;
  padding: 12px;
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid var(--line);
}

.gallery-thumb {
  flex: 0 0 86px;
  display: grid;
  min-height: 70px;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.gallery-thumb.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(34, 81, 209, 0.12);
}

.gallery-thumb img {
  width: 92%;
  max-height: 62px;
  object-fit: contain;
}

.app-detail {
  display: grid;
  gap: 18px;
}

.app-detail-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-detail-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.app-detail-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.detail-summary h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(2.25rem, 4.6vw, 4.8rem);
  line-height: 0.98;
}

.detail-lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.mini-policy {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 750;
}

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

.detail-grid article {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-grid h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 520px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-image img {
  width: min(90%, 720px);
  height: auto;
}

.product-panel {
  padding: clamp(24px, 4vw, 42px);
  background: #111820;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-panel .muted,
.product-panel .small-note {
  color: rgba(255, 255, 255, 0.7);
}

.rating {
  color: #ffd15c;
  font-weight: 800;
  margin-bottom: 18px;
}

.rating span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

.price {
  font-size: 2.5rem;
  font-weight: 850;
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0;
  list-style: none;
}

.feature-list li {
  padding-left: 26px;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7ff1e7;
  font-weight: 900;
}

.feature-list.compact {
  margin: 20px 0 24px;
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist div {
  display: flex;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checklist span {
  color: var(--green);
  font-weight: 900;
}

.band {
  background: #edf7f4;
}

.commerce-band {
  background: #101820;
  color: #fff;
}

.commerce-band .section-heading p,
.commerce-band .muted {
  color: rgba(255, 255, 255, 0.72);
}

.commerce-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.commerce-grid article {
  min-height: 230px;
  padding: 26px;
  background: #101820;
}

.commerce-grid a {
  color: #7ff1e7;
  font-weight: 800;
}

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

.steps article,
.content-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-weight: 850;
}

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

.support-facts {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.policy-grid a {
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 20px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 36px;
  padding: 44px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--ink);
}

.site-footer .brand,
.site-footer h2,
.site-footer a {
  color: white;
}

.site-footer h2 {
  font-size: 1rem;
}

.site-footer a,
.site-footer p {
  display: block;
  margin-bottom: 8px;
}

.footer-brand .brand-mark {
  background: var(--teal);
}

.page-main {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(42px, 8vw, 96px) 20px;
}

.page-main h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.page-main h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.page-main li {
  margin-bottom: 9px;
}

.content-card {
  margin-top: 28px;
}

.support-form {
  display: grid;
  gap: 18px;
}

.support-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.support-form textarea {
  resize: vertical;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .trust-strip,
  .product-grid,
  .product-grid.two-products,
  .product-layout,
  .product-detail,
  .detail-grid,
  .split,
  .steps,
  .commerce-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-image {
    min-height: 360px;
  }

  .detail-gallery {
    min-height: 380px;
  }

  .gallery-stage {
    min-height: 320px;
  }

  .gallery-control.previous {
    left: 14px;
  }

  .gallery-control.next {
    right: 14px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 620px;
    padding: 26px 18px;
  }

  .hero-actions,
  .policy-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .product-gallery {
    padding: 0;
  }

  .gallery-stage {
    min-height: 390px;
  }

  .gallery-control {
    width: 38px;
    height: 38px;
  }

  .gallery-thumbs {
    display: none;
  }
}
