/* ==========================================================================
   Marketing Fix AG — "black velvet" theme
   Pure black canvas, hairline borders, ghost buttons, serif hero,
   mono for data strings. No shadows, no gradients, no photography.
   ========================================================================== */

:root {
  --void: #000000;
  --hairline: #292d30;
  --white: #ffffff;
  --bone: #f0f0f0;
  --ash: #a1a4a5;
  --smoke: #abafb4;
  --iron: #6e727a;
  --charcoal: #464a4d;
  --violet: #9281f7;
  --violet-glow: #baa7ff;
  --blue: #3b9eff;
  --sky: #70b8ff;
  --green: #3ad389;
  --red: #ff9592;
  --amber: #ffca16;
  --lift: #0b0e14;

  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", "Tiempos Headline", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-card: 16px;
  --r-panel: 24px;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 104px);
}

/* --- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--void); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bone);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--white); margin: 0 0 20px; font-weight: 400; text-wrap: balance; }
h1 {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.05em;
}
h3 { font-size: 24px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: 20px; line-height: 1.3; font-weight: 500; }

p { margin: 0 0 16px; max-width: 62ch; color: var(--ash); }
p.lead { font-size: 18px; line-height: 1.6; }
strong { color: var(--bone); font-weight: 500; }

a { color: var(--smoke); text-decoration: none; transition: color 150ms ease-out; }
a:hover { color: var(--white); }
p a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--iron); }

ul, ol { padding-left: 1.2em; color: var(--ash); }
li { margin-bottom: 8px; }

code, .mono {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.43;
}
code { color: var(--charcoal); }

:focus-visible { outline: 1px solid var(--white); outline-offset: 3px; border-radius: var(--r-sm); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Buttons: ghost only --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--white);
  font: 500 14px/1 var(--font-body);
  cursor: pointer;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}
.btn:hover { border-color: var(--white); color: var(--white); }
.btn--muted { color: var(--bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.link { color: var(--bone); font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.link::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.link:hover { color: var(--white); }

/* --- Pill badge -------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  font-size: 14px;
  color: var(--bone);
  margin-bottom: 32px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* --- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--white); }
.logo svg { width: 24px; height: 24px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; color: var(--bone); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--iron); }
.nav .btn { padding: 8px 16px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--bone); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--void);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; }
  .nav a[aria-current="page"]:not(.btn) { text-decoration: none; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 1px solid var(--hairline); }
}

/* --- Hero ------------------------------------------------------------- */
.hero { padding-block: clamp(64px, 10vw, 144px) clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
@media (max-width: 899px) { .cube-stage { width: min(100%, 280px); margin-top: 16px; } }
.hero h1 { max-width: 12ch; }
.hero p.lead { max-width: 46ch; margin-top: 24px; }

.hero--inner { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.hero--inner h1 { font-size: clamp(40px, 6vw, 77px); }

/* 3D cube: 3x3 segmented faces, lit with the surface-gradient token,
   slow rotation, faint floor light. Pure CSS, no WebGL. */
.cube-stage {
  perspective: 1400px;
  aspect-ratio: 1;
  width: min(100%, 420px);
  margin-inline: auto;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
}
.cube-stage::after {
  /* faint light pooling under the object, as in the reference */
  content: "";
  position: absolute;
  left: 50%; bottom: 6%;
  width: 70%; height: 22%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.10), rgba(255,255,255,0) 70%);
  z-index: -1;
  pointer-events: none;
}
.cube {
  --s: 200px;
  width: var(--s); height: var(--s);
  position: relative;
  transform-style: preserve-3d;
  animation: spin 30s linear infinite;
}
@media (min-width: 900px) { .cube { --s: 240px; } }
.cube .face {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  background: #000;
  backface-visibility: hidden;
}
.cube .face i {
  display: block;
  border-radius: 3px;
  background: linear-gradient(135deg, #1e1e1e 0%, #0a0a0a 55%, #030303 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), inset 1px 1px 0 rgba(255,255,255,0.07);
}
/* per-face lighting: top brightest, right lit, front neutral, others deep */
.cube .top    { transform: rotateX(90deg)  translateZ(calc(var(--s) / 2)); }
.cube .bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .front  { transform: rotateY(0deg)   translateZ(calc(var(--s) / 2)); }
.cube .back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube .right  { transform: rotateY(90deg)  translateZ(calc(var(--s) / 2)); }
.cube .left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube .top i    { background: linear-gradient(135deg, #3a3a3a 0%, #1a1a1a 60%, #0e0e0e 100%); }
.cube .right i  { background: linear-gradient(135deg, #262626 0%, #0f0f0f 60%, #050505 100%); }
.cube .left i,
.cube .back i  { background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 60%, #030303 100%); }
.cube .bottom i { background: linear-gradient(135deg, #0e0e0e 0%, #050505 60%, #000 100%); }
@keyframes spin {
  from { transform: rotateX(-24deg) rotateY(-30deg); }
  to   { transform: rotateX(-24deg) rotateY(330deg); }
}

/* Page-load fade for hero text */
.hero .fade { animation: rise 600ms ease-out both; }
.hero .fade:nth-child(2) { animation-delay: 80ms; }
.hero .fade:nth-child(3) { animation-delay: 160ms; }
.hero .fade:nth-child(4) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --- Sections --------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--rule { border-top: 1px solid var(--hairline); }
.section-head { margin-bottom: 48px; }
.section-head h2 { max-width: 16ch; }
.section-head p { font-size: 18px; }

.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 768px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split > .sticky { position: sticky; top: 96px; }
}

/* --- Metrics strip ----------------------------------------------------- */
.metrics {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
}
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
.metrics li { margin: 0; padding: 32px; border-bottom: 1px solid var(--hairline); }
@media (min-width: 640px) {
  .metrics li { border-bottom: 0; border-right: 1px solid var(--hairline); }
  .metrics li:last-child { border-right: 0; }
}
.metrics li:last-child { border-bottom: 0; }
.metrics strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 12px;
}
.metrics span { font-size: 14px; color: var(--ash); }

/* --- Cards ------------------------------------------------------------- */
.cards { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  margin: 0;
  background: var(--void);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 32px;
  transition: border-color 150ms ease-out;
}
.card:hover { border-color: var(--iron); }
.card h3 { font-size: 20px; line-height: 1.3; margin: 20px 0 10px; }
.card p { font-size: 15px; margin: 0; }
.card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--bone);
}
.card .icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* --- Report window (the "code window" for a marketing agency) -------- */
.window {
  background: var(--void);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ash);
  font-size: 12px;
}
.window-bar i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--iron); }
.window-bar span { margin-left: 8px; }
.window-body { padding: 20px 24px; overflow-x: auto; }
.window-body .row { display: flex; gap: 16px; white-space: nowrap; }
.window-body .k { color: var(--ash); min-width: 14ch; }
.window-body .v { color: var(--bone); }
.window-body .id { color: var(--violet); }
.window-body .ok { color: var(--green); }
.window-body .info { color: var(--sky); }
.window-body .warn { color: var(--amber); }
.window-body .bad { color: var(--red); }
.window-body .sep { border-top: 1px solid var(--hairline); margin: 12px 0; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* --- Steps / how we work ------------------------------------------------ */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  display: grid; gap: 8px 32px;
}
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
@media (min-width: 640px) { .steps li { grid-template-columns: 6ch 1fr; } }
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--charcoal);
  padding-top: 4px;
}
.steps h3 { font-size: 20px; margin: 0 0 6px; }
.steps p { margin: 0; font-size: 15px; }

/* --- Checklist --------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--bone); }
.checklist li::before {
  content: "";
  position: absolute; left: 4px; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--bone);
}

/* --- CTA band ---------------------------------------------------------- */
.cta {
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: clamp(32px, 5vw, 64px);
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 768px) { .cta { grid-template-columns: 1fr auto; } }
.cta h2 { margin: 0; max-width: 20ch; font-size: clamp(28px, 3.5vw, 44px); }
.cta p { margin: 12px 0 0; }

/* --- Contact page ----------------------------------------------------- */
.form { display: grid; gap: 20px; max-width: 560px; }
.form label { display: block; font-size: 14px; color: var(--bone); margin-bottom: 8px; }
.form input, .form textarea {
  width: 100%;
  font: 400 16px/1.5 var(--font-body);
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--void);
  color: var(--white);
  transition: border-color 150ms ease-out;
}
.form input::placeholder, .form textarea::placeholder { color: var(--charcoal); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--white); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hint { font-size: 13px; margin: 0; }

.address { font-style: normal; line-height: 1.7; color: var(--ash); }
.address .mono { color: var(--violet); }

/* --- Footer: minimal ---------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 40px;
  font-size: 14px;
  color: var(--ash);
}
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 768px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer .mono { color: var(--violet); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: var(--ash); }
.site-footer nav a:hover { color: var(--white); }

/* --- Legal pages ------------------------------------------------------ */
.legal { max-width: 720px; }
.legal h2 { font-size: 24px; letter-spacing: -0.01em; line-height: 1.3; margin-top: 48px; }
.legal h3 { font-size: 16px; margin-top: 28px; }
.legal p, .legal li { color: var(--ash); }
.legal .updated { font-family: var(--font-mono); font-size: 13px; color: var(--charcoal); }

/* --- Motion preferences ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cube, .hero .fade { animation: none !important; }
  .cube { transform: rotateX(-24deg) rotateY(-30deg); }
  * { transition-duration: 0.01ms !important; }
}

/* --- Interactive report ------------------------------------------------ */
.window-foot { border-top: 1px solid var(--hairline); padding: 14px 24px 18px; }
.window-foot label { display: block; font-family: var(--font-body); font-size: 12px; color: var(--ash); margin-bottom: 10px; }
.window-foot input[type="range"] { width: 100%; accent-color: var(--white); background: transparent; }
.window-foot input[type="range"]:focus-visible { outline: 1px solid var(--white); outline-offset: 6px; }
.window-body .v[data-out] { transition: color 150ms ease-out; }
.window-body .v.is-updating { color: var(--white); }

/* --- Trust row (placeholder logos until real ones are supplied) -------- */
.trust-label { font-size: 14px; color: var(--ash); text-align: center; margin-bottom: 24px; }
.logos {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .logos { grid-template-columns: repeat(5, 1fr); } }
.logos li {
  margin: 0; height: 56px;
  display: grid; place-items: center;
  opacity: 0.75;
  transition: opacity 150ms ease-out;
}
.logos li:hover { opacity: 1; }
.logos svg { height: 28px; width: auto; }
.logos img { max-height: 28px; width: auto; }

/* --- Quote card -------------------------------------------------------- */
.quote { margin-top: 32px; padding: 24px; }
.quote blockquote { margin: 0 0 20px; color: var(--bone); font-size: 16px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.quote figcaption div { display: grid; }
.quote figcaption strong { color: var(--bone); }
.quote figcaption span:not(.avatar) { color: var(--ash); }
.quote .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #3a3a3a, #111); border: 1px solid var(--hairline); flex: none; }
