:root {
  --bg: #0a0b0d;
  --text: #efeeeb;
  --muted: #8b8f96;
  --dark: #0a0b0d;
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --ink: #0a0a0a;
  --accent: #d12424;           /* the red of the SW logo */
  --sw-accent: var(--accent);
  --font-display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 3vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(.9375rem, 1.111vw, 1rem); line-height: 1.55; letter-spacing: -.01em;
  overflow-x: hidden;
}
/* een zachte lichtvlek achter de auto; de rest van de studio is donker */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 58%, #1b1d22 0%, #0a0b0d 70%);
}
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
.accent { color: var(--accent); }

.eyebrow {
  display: block;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase;
  transition: color .5s ease;
}

/* ---------- icons ---------- */
.icon {
  width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease);
}

/* ---------- letter wave on hover (same as the main site) ---------- */
.wave { display: inline-flex; align-items: center; gap: .5em; }
.wave-inner { display: inline-flex; overflow: hidden; line-height: 1.25; }
.wave .ch {
  display: inline-block; white-space: pre;
  transition: transform .45s var(--ease);
  transition-delay: calc(var(--i) * 18ms);
  text-shadow: 0 1.25em 0 currentColor;
}
.wave:hover .ch, .wave:focus-visible .ch { transform: translateY(-1.25em); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  background: linear-gradient(rgba(10, 11, 13, .9), rgba(10, 11, 13, 0));
}
.demo-badge {
  padding: 6px 12px; border: 1px solid rgba(209, 36, 36, .6); border-radius: 999px;
  color: #f3b3b3; background: rgba(209, 36, 36, .12);
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.logo { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: .12em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-transform: uppercase; }

/* ---------- 3D scene ---------- */
.nav { justify-content: space-between; }
.nav .demo-badge { margin-right: auto; margin-left: 18px; }
.scene {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  transition: opacity .6s ease;
}
.scene.faded { opacity: .15; }

/* ---------- story ---------- */
main { position: relative; z-index: 2; }
.story { position: relative; }
.step {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  max-width: 34rem;
  padding: 110px var(--pad) 60px;
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
}
.step.is-active { opacity: 1; transform: none; }
.step-right { margin-left: auto; text-align: right; align-items: flex-end; }
.step h2 { font-size: clamp(2.6rem, 6.4vw, 6rem); font-weight: 800; letter-spacing: -.05em; line-height: .92; }
.step p { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.35; color: var(--text); opacity: .8; max-width: 26rem; }
.num {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}

.step-hero { max-width: none; justify-content: flex-end; padding-bottom: 8vh; }
.title {
  font-size: clamp(4rem, 15vw, 15rem); font-weight: 800;
  letter-spacing: -.06em; line-height: .82;
  display: flex; flex-wrap: wrap; column-gap: .2em;
}
.title .line { display: inline-block; animation: rise 1.2s var(--ease) both; }
.title .line + .line { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } }
.lead { font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.2; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue .icon { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- specs ---------- */
.specs {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--pad);
  color: var(--text);
  background: linear-gradient(transparent, #0a0b0d 14%);
  display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px);
}
.spec-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.spec { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.spec + .spec { padding-left: 24px; border-left: 1px solid var(--line); }
.spec-value { font-size: clamp(3.2rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.spec-value small { font-size: .32em; letter-spacing: 0; color: var(--accent); margin-left: 6px; font-weight: 600; }
.spec-label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.features li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  padding: 22px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .4s, background .4s, transform .6s var(--ease);
}
.features li:hover { border-color: rgba(209, 36, 36, .6); background: rgba(255, 255, 255, .07); transform: translateY(-3px); }
.features .icon { grid-row: span 2; width: 34px; height: 34px; stroke-width: 1.5; }
.features strong { font-size: 1.15rem; letter-spacing: -.02em; }
.features span { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.cta-text { display: flex; flex-direction: column; gap: 16px; max-width: 44rem; }
.cta-text p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.4; color: #b9bcc2; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.btn {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn:hover .icon { transform: translateX(3px); }
.btn:not(.btn-ghost) { --sw-accent: currentColor; } /* a blue arrow would vanish on the blue button */
.btn-ghost { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 35%, transparent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- footer (same as the main site) ---------- */
.footer { position: relative; z-index: 2; background: var(--ink); color: #efeeeb; padding: clamp(60px, 8vw, 120px) var(--pad) 28px; }
.footer-line { font-size: clamp(1.4rem, 3vw, 2.6rem); letter-spacing: -.03em; color: #bfbab2; }
.footer-big {
  display: inline-flex; max-width: 100%; gap: .25em; margin: 32px 0 80px;
  font-size: clamp(1.6rem, 6.4vw, 7rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.05;
}
.footer-big .icon { width: .7em; height: .7em; stroke-width: 2.2; }
.footer-big:hover { color: var(--accent); }
.footer-big:hover .icon { transform: translate(3px, 0); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: .75rem; color: #918e89;
  border-top: 1px solid rgba(239, 238, 235, .15); padding-top: 20px;
}
.footer-bottom a:hover { color: #efeeeb; }

@media (max-width: 800px) {

  .step, .step-right { max-width: none; margin: 0; text-align: left; align-items: flex-start; justify-content: flex-end; padding-bottom: 12vh; }
  .step h2 { text-shadow: 0 2px 30px rgba(10, 11, 13, .85); }
  .step p { text-shadow: 0 1px 16px rgba(10, 11, 13, .9); }
  .demo-badge { font-size: .62rem; padding: 5px 9px; }
  .nav-links { display: none; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(3) { border-left: 0; padding-left: 0; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .cta-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 14px; }
  .cta-actions .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .l-ink, .l-ink > span, .l-swoosh, .l-swoosh > span, .l-spark { transform: none; opacity: 1; }
  .step, .reveal { opacity: 1; transform: none; }
}

/* ---------- reveal: tekst komt pas als het licht aan is ---------- */
/* de titel wacht tot het laadscherm weg is en het licht aangaat */
body:not(.revealed) .step-hero > * { opacity: 0; }
body:not(.revealed) .step-hero .title .line { animation: none; }
.revealed .step-hero > * { animation: fade-up 1.2s var(--ease) both; animation-delay: 1.6s; }
.revealed .step-hero .title .line { animation: rise 1.4s var(--ease) both; animation-delay: 1.4s; }
.revealed .step-hero .title .line + .line { animation-delay: 1.55s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }
/* ---------- laadscherm met het SW-logo ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: #0a0b0d;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro.done .intro-logo { animation: none; transform: scale(1.08); }
.intro-logo {
  position: relative; width: min(240px, 52vw); aspect-ratio: 195 / 160;
  transition: transform .7s var(--ease);
  animation: sw-breathe 3.2s ease-in-out 2.2s infinite;
}
.intro-logo > span { position: absolute; inset: 0; }
.intro-logo svg { display: block; width: 100%; height: 100%; }
.l-ink path { fill: #efeeeb; }
.l-swoosh path, .l-spark path { fill: var(--accent); }
/* venster-truc: de buitenkant schuift van links naar binnen, de binnenkant precies terug,
   zodat het logo stil blijft staan en alleen het zichtbare deel groeit */
.reveal-x { overflow: hidden; }
.reveal-x, .reveal-x > span { display: block; will-change: transform; }
.reveal-x > span { position: absolute; inset: 0; }
.l-ink { transform: translateX(-100%); animation: sw-slide 1.3s var(--ease) .15s forwards; }
.l-ink > span { transform: translateX(100%); animation: sw-slide 1.3s var(--ease) .15s forwards; }
.l-swoosh { transform: translateX(-100%); animation: sw-slide 1s var(--ease) 1s forwards; }
.l-swoosh > span { transform: translateX(100%); animation: sw-slide 1s var(--ease) 1s forwards; }
.l-spark {
  transform-origin: 54.4% 21.9%;
  transform: scale(0) rotate(-90deg); opacity: 0;
  will-change: transform, opacity;
  animation: sw-pop .7s cubic-bezier(.2, 1.7, .4, 1) 1.7s forwards, sw-twinkle 1.8s ease-in-out 2.4s infinite;
}
@keyframes sw-slide { to { transform: none; } }
@keyframes sw-pop { to { transform: none; opacity: 1; } }
@keyframes sw-twinkle { 0%, 100% { transform: none; } 50% { transform: scale(.7) rotate(45deg); } }
@keyframes sw-breathe { 50% { transform: scale(1.025); } }
.intro-bar { width: min(220px, 50vw); height: 2px; border-radius: 2px; background: rgba(239, 238, 235, .12); overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; will-change: transform; }
.intro-text { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: inherit; }
.step-right .swatches { justify-content: flex-end; }
.swatches button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  border: 1px solid rgba(239, 238, 235, .22); background: rgba(10, 11, 13, .55);
  color: var(--text); font: 500 .8rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: border-color .3s, background .3s;
}
.swatches button:hover { border-color: rgba(239, 238, 235, .5); }
.swatches button[aria-pressed="true"] { border-color: var(--accent); background: rgba(209, 36, 36, .16); }
.swatches i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -6px 10px rgba(0,0,0,.35), inset 0 4px 8px rgba(255,255,255,.35), 0 0 0 1px rgba(255,255,255,.25); }

.spec-note { margin-top: -40px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; color: var(--muted); }
.disclaimer { max-width: 60rem; margin: 0 0 28px; font-size: .85rem; line-height: 1.55; color: #8f8c86; }
.disclaimer a { text-decoration: underline; text-underline-offset: 2px; }
.disclaimer a:hover { color: #efeeeb; }
.btn-ghost { color: var(--text); }
