:root {
  --bg: #030607;
  --bg-soft: #090c0e;
  --panel: #0b0f11;
  --panel-2: #101518;
  --line: #1c2428;
  --line-hot: #ff75186b;
  --orange: #e96d2f;
  --orange-bright: #ff8748;
  --white: #f6f7f7;
  --muted: #9ba4a8;
  --muted-dark: #657075;
  --shell: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 180px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .12;
  background-image:
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(#000, transparent 68%);
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid #ffffff14;
  background: #040607eb;
  backdrop-filter: blur(18px);
}

.nav {
  position: relative;
  display: grid;
  grid-template: "brand" 112px "links" 54px / 1fr;
  align-items: center;
}

.brand {
  grid-area: brand;
  width: min(480px, 58vw);
  height: 90px;
  overflow: hidden;
  background: url('/images/car2code-logo-trimmed.png') left center / contain no-repeat;
  text-indent: -9999px;
}

.nav-links {
  grid-area: links;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 54px;
  border-top: 1px solid #ffffff0e;
  border-bottom: 1px solid #ffffff0e;
}

.nav-links > a:not(.cta) {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  color: #aeb5b8;
  font-size: .85rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .2s;
}

.nav-links > a:not(.cta):hover { color: var(--orange-bright); }

.nav-links .cta {
  position: absolute;
  top: 32px;
  right: 0;
  min-height: 48px;
  border-radius: 11px;
  padding-inline: 27px;
}

.cta,
.secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 3px;
  padding: 0 24px;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s, filter .2s, box-shadow .2s, border-color .2s, color .2s;
}

.cta {
  border: 1px solid #ff9650;
  background: linear-gradient(135deg, #ff8d3d, var(--orange));
  box-shadow: 0 8px 26px #ff75182e;
  color: #080909;
}

.cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px #ff751847;
}

.secondary {
  border: 1px solid #30383c;
  background: #ffffff09;
  box-shadow: none;
  color: #eef1f2;
}

.secondary:hover {
  border-color: var(--orange);
  color: var(--orange-bright);
}

.breadcrumbs {
  padding-top: 24px;
  color: var(--muted-dark);
  font-size: .78rem;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 520px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 66px 0 72px;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: url('/images/car2code-porsche-hero.jpg') 50% / cover no-repeat;
  opacity: .62;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #030506fc 0%, #030506f0 38%, #03050665 72%, #03050626 100%),
    linear-gradient(transparent 70%, var(--bg) 100%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--orange-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 27px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 940px;
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 4.8vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .94;
  text-transform: uppercase;
}

.hero .lead {
  max-width: 600px;
  margin: 27px 0 0;
  color: #a7afb2;
  font-size: 1rem;
  line-height: 1.72;
}

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

.trust-strip {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: #06090af5;
}

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.trust-grid > div {
  min-height: 96px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

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

.trust-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.section { padding: 82px 0; }
.section.alt { border-block: 1px solid var(--line); background: #06090a; }

.section h2,
.content h2,
.faq h2,
.contact-band h2 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  text-transform: uppercase;
}

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .72fr); gap: 64px; }
.content h3 { margin: 36px 0 10px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.content p, .content li, .section > .shell > p { color: var(--muted); }

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  padding: 0;
  list-style: none;
}

.check-list li { position: relative; padding-left: 22px; }
.check-list li::before { position: absolute; left: 0; color: var(--orange-bright); font-weight: 900; content: "✓"; }

.side-card {
  position: sticky;
  top: 196px;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--panel-2), #070a0b);
  padding: 30px;
}

.side-card::after {
  position: absolute;
  right: 30px;
  bottom: 0;
  left: 30px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.side-card h2 { font-size: 1.55rem; line-height: 1.08; }
.side-card p { color: var(--muted); }
.side-card a { margin-top: 14px; }

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

.step,
.service-links a {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #080c0e, #050809);
  transition: transform .25s, border-color .25s;
}

.step { min-height: 220px; padding: 30px 26px 38px; }
.step::after, .service-links a::after { position: absolute; right: 25px; bottom: 22px; left: 25px; height: 2px; background: var(--orange); content: ""; }
.step:hover, .service-links a:hover { border-color: var(--line-hot); transform: translateY(-5px); }
.step span { color: var(--orange-bright); font-family: ui-monospace, monospace; font-size: .75rem; font-weight: 900; letter-spacing: .1em; }
.step h3 { margin: 24px 0 10px; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); padding: 21px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; letter-spacing: .02em; }
.faq summary::marker { color: var(--orange); }
.faq p { color: var(--muted); }

.service-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.service-links a { min-height: 136px; padding: 26px 25px 38px; font-size: .9rem; font-weight: 800; letter-spacing: .03em; line-height: 1.45; text-decoration: none; text-transform: uppercase; }

.contact-band { border-top: 1px solid var(--line-hot); background: #090c0e; padding: 58px 0; }
.contact-band .shell { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-band h2 { max-width: 760px; margin: 0; }

.footer { border-top: 1px solid var(--line); padding: 38px 0 90px; color: var(--muted); font-size: .82rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; }
.footer a { color: #d9ddde; }

@media (max-width: 900px) {
  html { scroll-padding-top: 92px; }
  .nav { grid-template: "brand links" 86px / 1fr auto; }
  .brand { width: min(340px, 58vw); height: 70px; }
  .nav-links { height: auto; border: 0; }
  .nav-links > a:not(.cta) { display: none; }
  .nav-links .cta { position: static; min-height: 44px; padding-inline: 17px; font-size: .7rem; }
  .hero { min-height: 470px; padding: 58px 0 64px; }
  .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps, .service-links { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav { min-height: 74px; }
  .brand { width: 190px; height: 58px; }
  .nav-links .cta { padding-inline: 12px; font-size: .64rem; }
  .hero { min-height: 440px; padding: 48px 0 54px; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { min-height: 80px; border-right: 0; border-bottom: 1px solid var(--line); }
  .check-list { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .section h2, .content h2, .faq h2, .contact-band h2 { font-size: 2rem; }
  .contact-band .shell, .footer-grid { align-items: flex-start; flex-direction: column; }
}
