/* MercedesGenuineParts.com — bespoke domain sale site */
/* Self-hosted fonts (SIL Open Font License): Inter & Inter Tight, Latin subset, variable */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #08090b;
  --bg-2: #0e1014;
  --panel: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef0f3;
  --muted: #9aa1ab;
  --dim: #6b727c;
  --blue: #5ab4ff;
  --violet: #b26bff;
  --red: #ff4d6d;
  --ok: #3ddc97;
  --chrome: linear-gradient(100deg, #ffffff 0%, #a9b0b9 28%, #f4f6f8 48%, #7d848e 70%, #e9ecef 100%);
  --ambient: linear-gradient(90deg, var(--blue), var(--violet) 55%, var(--red));
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", var(--font);
}

*, *::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: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; margin: 0; }
::selection { background: var(--violet); color: #fff; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: #000; padding: 10px 14px; }
.skip:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.dim { color: var(--dim); }
.muted { color: var(--muted); }
.chrome {
  background: var(--chrome);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 8s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

/* cursor glow (pointer devices only) */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(90, 180, 255, .10), rgba(178, 107, 255, .05) 40%, transparent 70%);
  opacity: 0; transition: opacity .4s;
}
@media (hover: hover) and (pointer: fine) { body.has-pointer .cursor-glow { opacity: 1; } }

/* buttons */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; overflow: hidden;
  transition: border-color .3s, background-color .3s, color .3s;
  will-change: transform;
}
.btn span { position: relative; z-index: 1; pointer-events: none; }
.btn--primary { background: #f2f4f6; color: #0a0b0d; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; background: var(--ambient);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary:hover { color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .05); }
.btn--small { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--violet); }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(8, 9, 11, .85), rgba(8, 9, 11, 0));
  transition: translate .5s var(--ease), background-color .3s;
}
.nav.is-scrolled { background: rgba(8, 9, 11, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.is-hidden { translate: 0 -100%; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.nav__mark {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--line-2); font: 700 12px/1 var(--display); letter-spacing: .08em;
  background: linear-gradient(145deg, #1a1d22, #0b0c0f);
}
.nav__name { font: 500 15px/1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) {
  .nav__links a:not(.btn), .nav__name { display: none; }
}

/* hero */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: 120px var(--gutter) 90px; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: -8% 0; z-index: -3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.12); }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 80% 40%, transparent 0%, rgba(8, 9, 11, .55) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8, 9, 11, .95) 0%, rgba(8, 9, 11, .7) 45%, rgba(8, 9, 11, .25) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 35%);
}
.hero__light { position: absolute; left: 0; right: 0; bottom: 6%; width: 100%; height: 40%; z-index: -1; pointer-events: none; }
.hero__inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.hero__title { font-size: clamp(38px, 8.4vw, 132px); line-height: .95; font-weight: 300; letter-spacing: -.045em; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line--tld { font-weight: 700; background: var(--ambient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title .char { display: inline-block; will-change: transform; }
.line--tld .char { background: inherit; -webkit-background-clip: text; background-clip: text; }
.hero__lede { max-width: 560px; font-size: clamp(16px, 1.5vw, 19px); color: #c5cad1; margin: 0 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee__track { display: flex; gap: 40px; width: max-content; white-space: nowrap; font: 300 clamp(22px, 3vw, 38px)/1 var(--display); letter-spacing: -.02em; color: var(--muted); }
.marquee__track i { font-style: normal; font-size: .5em; align-self: center; background: var(--ambient); -webkit-background-clip: text; background-clip: text; color: transparent; }
html:not(.has-gsap) .marquee__track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { position: relative; padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head h2 { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.02; font-weight: 300; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 30px 28px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line);
  overflow: hidden; transform-style: preserve-3d; will-change: transform;
  display: flex; flex-direction: column; gap: 22px;
}
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255,255,255,.25), transparent 40%, transparent 60%, rgba(178,107,255,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card--primary { background: linear-gradient(160deg, rgba(90, 180, 255, .12), rgba(178, 107, 255, .06) 50%, rgba(255, 255, 255, .02)); }
.card__sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .12), transparent 50%); opacity: 0; transition: opacity .3s; }
.card:hover .card__sheen { opacity: 1; }
.card__tag { margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.card__domain { font-size: clamp(20px, 2vw, 26px); font-weight: 400; line-height: 1.2; word-break: break-word; }
.card__domain strong { font-weight: 700; }
.card__meta { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--muted); flex: 1; }
.card__meta li { display: flex; align-items: center; gap: 10px; }
.card__meta li:not(:first-child)::before { content: ""; width: 14px; height: 1px; background: var(--line-2); }
.status { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.cards--single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.cards--single .card { padding: clamp(28px, 4vw, 48px); }
.cards--single .card__domain { font-size: clamp(26px, 4vw, 44px); }

/* facts */
.facts { padding-block: clamp(40px, 6vw, 80px); }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .facts__grid { grid-template-columns: 1fr; } }
.fact { padding: 28px 20px 8px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.fact dd { margin: 6px 0 0; font: 200 clamp(48px, 7vw, 96px)/1 var(--display); letter-spacing: -.04em; }
.fact dd small { font-size: .4em; color: var(--muted); margin-left: 4px; }

/* single large "Ready for transfer" figure; colour shifts on scroll (main.js) */
.facts__grid:has(.fact--hero) { grid-template-columns: 1fr; border-top: 0; }
.fact--hero { padding: 0; border-bottom: 0; text-align: center; }
.fact--hero dt { font-size: clamp(13px, 1.4vw, 16px); letter-spacing: .28em; text-transform: uppercase; }
.fact--hero dd {
  margin-top: 10px;
  font-size: clamp(120px, 27vw, 380px); font-weight: 200; line-height: .9; letter-spacing: -.06em;
  background: linear-gradient(90deg, #5ab4ff, #b26bff, #ff4d6d, #ffb86b, #3ddc97, #5ab4ff);
  background-size: 600% 100%; background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fact--hero dd small { color: transparent; font-size: .35em; margin-left: .04em; }

/* process */
.process__rail { position: relative; height: 2px; background: var(--line); border-radius: 2px; margin-bottom: 44px; overflow: hidden; }
.process__fill { position: absolute; inset: 0; background: var(--ambient); transform-origin: left; transform: scaleX(1); box-shadow: 0 0 18px rgba(90, 180, 255, .6); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding-top: 6px; transition: opacity .4s; }
.step__num { display: block; font: 300 14px/1 var(--display); letter-spacing: .18em; color: var(--muted); margin-bottom: 16px; }
.step h3 { font-size: 26px; font-weight: 400; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.js-anim .step { opacity: .28; }
.js-anim .step.is-active { opacity: 1; }
.step.is-active .step__num { background: var(--ambient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* band */
.band { position: relative; height: clamp(360px, 60vh, 640px); overflow: hidden; display: grid; place-items: center; text-align: center; isolation: isolate; }
.band__media { position: absolute; inset: -20% 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: saturate(1.15); }
.band__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--bg), rgba(8, 9, 11, .35) 30%, rgba(8, 9, 11, .35) 70%, var(--bg)), rgba(8, 9, 11, .35); }
.band__quote { margin: 0; padding: 0 var(--gutter); font: 300 clamp(34px, 6vw, 84px)/1.02 var(--display); letter-spacing: -.035em; }

/* enquiry */
.enquire__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .enquire__grid { grid-template-columns: 1fr; } }
.enquire .section__head { position: sticky; top: 110px; }
@media (max-width: 960px) { .enquire .section__head { position: static; } }

.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); border-radius: calc(var(--radius) + 6px); background: var(--panel); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.form__domain { margin: 0 0 4px; font-size: 15px; color: var(--muted); }
.form__domain strong { color: var(--text); font-weight: 600; }
.form__domains { border: 0; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__domains legend { width: 100%; padding: 0; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 15px/1 var(--display); transition: all .25s var(--ease); }
.chip input:checked + span { background: #f2f4f6; color: #0a0b0d; border-color: #f2f4f6; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 16px 10px; border-radius: 12px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: var(--text);
  font: 400 16px/1.4 var(--font); transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(90, 180, 255, .15); }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: #c5cad1; }
.field .opt { color: var(--dim); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.field--offer { display: grid; grid-template-columns: 86px 1fr; }
.field--offer select { border-radius: 12px 0 0 12px; border-right: 0; padding: 18px 12px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field--offer input { border-radius: 0 12px 12px 0; }
.field--offer label { left: 103px; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.consent.is-invalid { color: var(--red); }
.form__status { margin: 0; min-height: 1.6em; font-size: 15px; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-error { color: var(--red); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px var(--gutter) 40px; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; display: grid; gap: 14px; }
.footer__brand { margin: 0; font: 500 18px/1.3 var(--display); }
.footer__legal { margin: 0; max-width: 820px; font-size: 13px; color: var(--dim); }
.footer__copy { margin: 0; font-size: 13px; color: var(--dim); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none !important; }
}
