:root {
  color-scheme: dark;
  --white: #ffffff;
  --soft-white: rgba(255, 255, 255, 0.8);
  --muted-white: rgba(255, 255, 255, 0.55);
  --hairline: rgba(255, 255, 255, 0.2);
  --accent: #ed1c24;
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: #161719;
  color: var(--white);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.background {
  position: fixed;
  inset: -22px;
  z-index: -2;
  background:
    linear-gradient(110deg, rgba(3, 4, 5, 0.62), rgba(8, 9, 11, 0.28)),
    url("assets/porsche-background.png") center / cover no-repeat;
  filter: blur(6px) saturate(0.88);
  transform: scale(1.04);
}

.background::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 52%, rgba(255, 255, 255, 0.1), transparent 36%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.24));
}

.page-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(22px, 5vw, 64px);
}

.content-card {
  width: min(940px, 100%);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(10, 11, 13, 0.66), rgba(13, 14, 16, 0.45));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 1px minmax(120px, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 72px);
  min-height: 116px;
}

.brand { display: flex; align-items: center; min-width: 0; }
.brand img { display: block; object-fit: contain; }

.brand--carplay {
  justify-content: flex-start;
  transition: opacity 180ms ease, transform 180ms ease;
}

.brand--carplay:hover { opacity: 0.82; transform: translateY(-2px); }

.brand--carplay:focus-visible,
a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 5px;
  border-radius: 2px;
}

.brand--carplay img {
  width: clamp(112px, 18vw, 164px);
  height: clamp(112px, 18vw, 164px);
}

.brand--maxim { justify-content: flex-end; }

.brand--maxim img {
  width: min(100%, 290px);
  height: auto;
  filter: invert(1);
}

.brand-divider {
  width: 1px;
  height: 82px;
  background: var(--hairline);
}

.copy {
  max-width: 720px;
  margin-top: clamp(34px, 6vw, 64px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--soft-white);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.intro {
  max-width: 610px;
  margin: 27px 0 0;
  color: var(--soft-white);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.contact-line {
  margin: 12px 0 0;
  color: var(--soft-white);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.6;
}

a {
  color: var(--white);
  font-weight: 600;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

a:hover { color: #fff; text-decoration-color: var(--accent); }

.service-link {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 42px;
}

.service-link__line {
  height: 1px;
  margin-top: 13px;
  background: var(--accent);
}

.service-link p {
  margin: 0;
  color: var(--soft-white);
  font-size: 0.96rem;
  line-height: 1.7;
}

.service-link a span {
  display: inline-block;
  margin-left: 3px;
  color: var(--accent);
  transition: transform 180ms ease;
}

.service-link a:hover span { transform: translate(2px, -2px); }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(52px, 8vw, 82px);
  color: var(--muted-white);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@media (min-width: 641px) and (max-height: 820px) {
  .page-shell { padding-block: 28px; }
  .content-card { padding-block: 32px; }
  .brand-row { min-height: 88px; }
  .brand--carplay img { width: 112px; height: 112px; }
  .brand--maxim img { width: min(100%, 235px); }
  .brand-divider { height: 68px; }
  .copy { margin-top: 24px; }
  .eyebrow { margin-bottom: 11px; }
  h1 { font-size: clamp(3.2rem, 6.2vw, 4.5rem); }
  .intro { margin-top: 18px; }
  .service-link { margin-top: 24px; }
  footer { margin-top: 28px; }
}

@media (max-width: 640px) {
  .page-shell { padding: 14px; }
  .content-card { padding: 26px 22px 28px; }
  .brand-row { grid-template-columns: 104px 1px 1fr; gap: 19px; min-height: 98px; }
  .brand--carplay img { width: 104px; height: 104px; }
  .brand--maxim img { width: min(100%, 185px); }
  .brand-divider { height: 68px; }
  .copy { margin-top: 35px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  .service-link { grid-template-columns: 26px 1fr; gap: 13px; margin-top: 34px; }
  footer { margin-top: 48px; line-height: 1.7; }
}

@media (max-width: 390px) {
  .brand-row { grid-template-columns: 86px 1px 1fr; gap: 14px; }
  .brand--carplay img { width: 86px; height: 86px; }
}

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