/* PorscheCodes.co.uk — Design System */

:root {
  --bg:          #080809;
  --bg-2:        #060607;
  --surface:     #111114;
  --surface-2:   #17171b;
  --border:      #1e1e24;
  --border-2:    #28282f;

  --gold:        #cc2222;
  --gold-dk:     #9e1a1a;
  --gold-lt:     #df3535;
  --gold-glow:   rgba(204, 34, 34, .13);
  --gold-glow2:  rgba(204, 34, 34, .06);

  --text:        #f0ede6;
  --text-2:      #a0a0a8;
  --text-3:      #52525a;

  --green:       #2d9e6b;
  --green-bg:    rgba(45,158,107,.1);

  --mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --max:      1200px;
  --gap:      clamp(1.25rem, 4vw, 2.5rem);
  --r:        4px;
  --r-lg:     8px;
  --section:  clamp(4.5rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
h1,h2,h3,h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0 0 1em; }
ul,ol { padding-left: 1.2em; margin: 0 0 1em; }

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


/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,9,.88);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.brand-mark {
  width: 30px; height: 30px;
  background: var(--gold);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 800;
  color: #000;
  letter-spacing: 0;
  line-height: 1;
}
.brand-text {
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
}
.brand-text em {
  color: var(--text-3);
  font-style: normal;
}
.site-nav {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 2rem;
  margin-left: auto;
}
.site-nav a {
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: .03em;
  transition: color .2s;
}
.site-nav a:hover { color: var(--text); }
.header-cta {
  margin-left: 1.25rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--gold);
  color: #000;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55rem 1.15rem;
  border-radius: var(--r);
  transition: background .2s;
}
.header-cta:hover { background: var(--gold-lt); }


/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .06;
  pointer-events: none;
  display: block;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 60%, rgba(201,168,76,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 40%, rgba(201,168,76,.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: var(--section);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 22px; height: 1px;
  background: var(--gold);
}
.hero-h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  max-width: 16ch;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-2);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: .9rem 1.9rem;
  border-radius: var(--r);
  transition: background .2s, transform .15s;
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: .92rem;
  font-weight: 500;
  padding: .9rem 1.9rem;
  border-radius: var(--r);
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--text-2); color: var(--text); }

.hero-stats {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat .num {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat .lbl {
  font-size: .75rem;
  color: var(--text-3);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-3);
  animation: nudge 2.5s ease-in-out infinite;
}
.hero-scroll-hint::after {
  content: '';
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
}
@keyframes nudge {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}


/* ════════════════════════════════════════
   EXPLAINER BAND
════════════════════════════════════════ */
.explainer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.explainer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.explainer h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: .75rem;
}
.explainer p { color: var(--text-2); font-size: .95rem; }
.explainer p:last-child { margin: 0; }

.code-terminal {
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.terminal-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-2);
}
.terminal-bar span:nth-child(1) { background: #ff5f56; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #27c93f; }
.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .67rem;
  color: var(--text-3);
}
.terminal-body {
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 2;
}
.t-row { display: flex; gap: .75rem; }
.t-key { color: var(--text-3); flex-shrink: 0; min-width: 160px; }
.t-val { color: var(--text-2); }
.t-val.gold { color: var(--gold); }
.t-val.green { color: var(--green); }
.t-val.tag {
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--gold-dk);
  font-size: .65rem;
  padding: .05rem .4rem;
  border-radius: 2px;
  letter-spacing: .06em;
}
.t-val.tag.g {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green);
}


/* ════════════════════════════════════════
   FEATURES
════════════════════════════════════════ */
#features {
  padding: var(--section) 0;
}
.section-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 18px; height: 1px;
  background: var(--gold);
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: .65rem;
}
.section-sub {
  font-size: .97rem;
  color: var(--text-2);
  max-width: 55ch;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.feat-group { margin-bottom: 3rem; }
.feat-group-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.feat-card {
  background: var(--surface);
  padding: 1.4rem 1.35rem;
  transition: background .2s;
  position: relative;
}
.feat-card:hover { background: var(--surface-2); }
.feat-card:hover .feat-icon { background: var(--gold-glow); border-color: var(--gold); }
.feat-icon {
  width: 36px; height: 36px;
  background: var(--gold-glow2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background .2s, border-color .2s;
}
.feat-icon svg {
  width: 18px; height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat-name {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: var(--text);
}
.feat-desc {
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.55;
  margin: 0;
}

.compat-note {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  border-radius: var(--r);
  padding: .9rem 1.2rem;
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-top: 2rem;
}
.compat-note svg {
  width: 15px; height: 15px;
  stroke: var(--gold); fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
  margin-top: .1rem;
}


/* ════════════════════════════════════════
   MODEL COVERAGE
════════════════════════════════════════ */
#coverage {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section) 0;
}
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
  margin-top: 2.5rem;
}
.model-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 1rem 1rem;
  transition: border-color .2s, background .2s;
}
.model-card:hover {
  border-color: var(--gold-dk);
  background: var(--gold-glow2);
}
.model-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}
.model-gen {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--text-3);
  margin-bottom: .3rem;
}
.model-years {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--gold-dk);
}


/* ════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════ */
#how {
  padding: var(--section) 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 2.5rem;
}
.step {
  background: var(--surface);
  padding: 2.25rem 2rem;
  position: relative;
}
.step-num {
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-2);
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--text);
}
.step p {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}
.step-meta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--green);
  background: var(--green-bg);
  padding: .2rem .55rem;
  border-radius: 2px;
}


/* ════════════════════════════════════════
   FAQ
════════════════════════════════════════ */
#faq {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section) 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 5rem;
  margin-top: 2.5rem;
}
.faq-q {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .55rem;
  letter-spacing: -.01em;
}
.faq-a {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
}


/* ════════════════════════════════════════
   ORDER / CTA
════════════════════════════════════════ */
#order {
  padding: var(--section) 0;
}
.order-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.order-inner .section-label { justify-content: center; }
.order-h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.order-h2 em { color: var(--gold); font-style: italic; }
.order-sub {
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}
.order-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 1rem 2rem;
  border-radius: var(--r);
  transition: background .2s, transform .15s;
}
.btn-wa:hover { background: #1ebe5d; transform: translateY(-1px); }
.btn-wa svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.btn-email {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: .95rem;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: var(--r);
  transition: border-color .2s, color .2s;
}
.btn-email:hover { border-color: var(--text-2); color: var(--text); }
.btn-email svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.order-note {
  margin-top: 1.75rem;
  font-size: .8rem;
  color: var(--text-3);
  line-height: 1.6;
}


/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--mono);
  font-size: .73rem;
  color: var(--text-3);
  line-height: 1.6;
}
.footer-brand strong { color: var(--text-2); }
.footer-disclaimer {
  font-size: .73rem;
  color: var(--text-3);
  max-width: 48ch;
  text-align: right;
  line-height: 1.55;
}


/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .explainer-inner { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .order-actions { flex-direction: column; }
  .btn-wa, .btn-email, .btn-gold { width: 100%; justify-content: center; }
  .footer-row { flex-direction: column; }
  .footer-disclaimer { text-align: left; max-width: 100%; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
}
