:root {
  --paper: #f4efe4;
  --paper-2: #ebe3d2;
  --ink: #141210;
  --muted: #5d564c;
  --orange: #ff5b2e;
  --yellow: #ffb800;
  --blue: #2e6bff;
  --mint: #2fd18b;
  --pink: #ff4fa3;
  --violet: #7b4dff;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.5;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(20, 18, 16, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1; margin: 0 0 0.5em; letter-spacing: -0.03em; }
h2 { font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); font-weight: 800; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 1rem; }

.demo-bar { background: var(--ink); color: var(--yellow); text-align: center; font-family: var(--font-mono); font-size: 0.75rem; padding: 6px 16px; letter-spacing: 0.06em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; text-decoration: none; letter-spacing: -0.04em; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--orange); border: var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); transform: rotate(-8deg); font-size: 1.1rem; }
.site-header nav { display: flex; gap: clamp(0.75rem, 2vw, 2rem); font-weight: 600; }
.site-header nav a { text-decoration: none; position: relative; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease); }
.site-header nav a:hover::after { transform: scaleX(1); }
.cart-btn { font: inherit; font-weight: 800; background: var(--yellow); border: var(--line); border-radius: 999px; padding: 8px 16px; box-shadow: var(--shadow-sm); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: transform 150ms, box-shadow 150ms; }
.cart-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.cart-count { background: var(--ink); color: var(--paper); border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 0.8rem; }
.cart-count.bump { animation: bump 400ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); background: var(--orange); } }

/* Buttons */
.btn { font: inherit; font-weight: 800; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 24px; border: var(--line); border-radius: 12px; text-decoration: none; cursor: pointer; transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), background 150ms; }
.btn-primary { background: var(--orange); box-shadow: var(--shadow); color: var(--ink); }
.btn-primary:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.btn-primary:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; }
.btn:focus-visible, .cart-btn:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px dashed var(--blue); outline-offset: 4px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; padding: clamp(40px, 8vw, 110px) clamp(16px, 4vw, 48px) 60px; max-width: 1320px; margin: 0 auto; }
.hero h1 { font-size: clamp(3rem, 1.2rem + 7vw, 7.2rem); font-weight: 800; letter-spacing: -0.05em; }
.hero h1 em { font-style: normal; background: var(--yellow); padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; border: var(--line); border-radius: 10px; display: inline; line-height: 1.15; }
.lead { font-size: 1.2rem; max-width: 34ch; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 0.85rem; }
.trust li { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; background: var(--paper); }
.hero-stage { position: relative; height: clamp(320px, 40vw, 480px); display: grid; place-items: center; }
.spin { perspective: 900px; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-18px); } }
.stage-shadow { position: absolute; bottom: 8%; width: 46%; height: 26px; background: rgba(20, 18, 16, 0.18); border-radius: 50%; filter: blur(6px); animation: shadow 5s ease-in-out infinite; }
@keyframes shadow { 50% { transform: scale(0.8); opacity: 0.6; } }
.sticker { position: absolute; font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; border: var(--line); padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.s1 { top: 12%; left: 4%; background: var(--mint); transform: rotate(-10deg); }
.s2 { bottom: 20%; right: 2%; background: var(--pink); color: #fff; transform: rotate(7deg); }

/* 3D cube */
.cube { --s: 200px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-22deg) rotateY(-38deg); }
.cube-xl { --s: clamp(150px, 18vw, 230px); animation: turn 14s linear infinite; }
.cube-md { --s: 150px; }
.cube-sm { --s: 74px; }
@keyframes turn { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.face { position: absolute; inset: 0; border: var(--line); display: grid; place-items: center; font-weight: 800; font-size: calc(var(--s) * 0.42); color: var(--ink); backface-visibility: hidden; transition: transform 600ms var(--ease), opacity 600ms; }
.f-front { background: linear-gradient(135deg, var(--c1), var(--c2)); transform: translateZ(calc(var(--s) / 2)); }
.f-back { background: linear-gradient(135deg, var(--c2), var(--c1)); transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.f-right { background: var(--c1); filter: brightness(0.82); transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); font-size: calc(var(--s) * 0.22); }
.f-left { background: var(--c1); filter: brightness(0.82); transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); font-size: calc(var(--s) * 0.22); }
.f-top { background: var(--c2); transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background-image: linear-gradient(90deg, transparent 44%, var(--ink) 44% 56%, transparent 56%), linear-gradient(transparent 44%, var(--ink) 44% 56%, transparent 56%); }
.f-bottom { background: var(--c1); transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.cube.shake { animation: shake 700ms ease-in-out; }
@keyframes shake {
  0%, 100% { transform: rotateX(-22deg) rotateY(-38deg); }
  15% { transform: rotateX(-22deg) rotateY(-30deg) rotateZ(6deg); }
  30% { transform: rotateX(-22deg) rotateY(-46deg) rotateZ(-6deg); }
  45% { transform: rotateX(-22deg) rotateY(-30deg) rotateZ(8deg) scale(1.04); }
  60% { transform: rotateX(-22deg) rotateY(-46deg) rotateZ(-8deg) scale(1.06); }
  80% { transform: rotateX(-22deg) rotateY(-38deg) scale(1.1); }
}
.cube.open .lid { transform: rotateX(90deg) translateZ(calc(var(--s) * 1.4)) rotateY(35deg); opacity: 0; }

/* Ticker */
.ticker { border-block: var(--line); background: var(--ink); color: var(--paper); overflow: hidden; padding: 12px 0; }
.ticker-track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; font-family: var(--font-mono); font-size: 0.9rem; white-space: nowrap; }
.ticker-track b { color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: 1320px; margin: 0 auto; padding: clamp(60px, 9vw, 120px) clamp(16px, 4vw, 48px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head p { max-width: 40ch; color: var(--muted); margin: 0; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.chip { font: inherit; font-weight: 600; font-size: 0.9rem; border: 2px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: background 150ms; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip:hover { background: var(--yellow); color: var(--ink); }

/* Box cards */
.box-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { position: relative; background: #fffaf0; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.card:hover { transform: translate(-4px, -4px) rotate(-0.4deg); box-shadow: 10px 10px 0 var(--ink); }
.card.featured { grid-column: span 2; flex-direction: row; background: var(--ink); color: var(--paper); }
.card.featured .card-body p, .card.featured .meta { color: #cfc6b8; }
.card-visual { position: relative; min-height: 180px; display: grid; place-items: center; perspective: 600px; background: var(--tint); border-bottom: var(--line); }
.card.featured .card-visual { min-width: 42%; border-bottom: 0; border-right: var(--line); }
.card:hover .cube-sm { animation: wobble 900ms var(--ease); }
@keyframes wobble { 50% { transform: rotateX(-22deg) rotateY(-218deg) translateY(-8px); } 100% { transform: rotateX(-22deg) rotateY(-398deg); } }
.tag { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; padding: 3px 8px; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { font-size: 1.6rem; margin: 0; }
.card.featured .card-body h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.card-body p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: auto; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; }
.meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.value-bar { height: 12px; border: 2px solid currentColor; border-radius: 999px; overflow: hidden; }
.value-bar span { display: block; height: 100%; background: var(--mint); border-right: 2px solid var(--ink); }
.highlights { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.highlights li { font-size: 0.78rem; border: 1.5px solid currentColor; border-radius: 6px; padding: 2px 8px; }
.add-btn { margin-top: 6px; }
.card.featured .add-btn { background: var(--yellow); box-shadow: 6px 6px 0 var(--paper); }
.card.hidden { display: none; }

/* Probe / simulator */
.probe { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.probe-copy p { color: var(--muted); }
.select-label { display: block; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; margin: 1.5rem 0 0.4rem; }
select { width: 100%; font: inherit; font-weight: 600; padding: 12px 14px; border: var(--line); border-radius: 12px; background: #fffaf0; margin-bottom: 1rem; cursor: pointer; }
.fineprint { font-size: 0.78rem; font-family: var(--font-mono); margin-top: 1rem; }
.probe-stage { position: relative; min-height: 440px; border: var(--line); border-radius: 22px; background: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; perspective: 800px; overflow: hidden; padding: 24px; }
.probe-stage::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 184, 0, 0.18), transparent 30%); animation: rays 12s linear infinite; }
.probe-stage.glow-legendary::before { background: conic-gradient(from 0deg, transparent, rgba(255, 184, 0, 0.55), transparent 25%, rgba(255, 79, 163, 0.45), transparent 55%); animation-duration: 3s; }
@keyframes rays { to { transform: rotate(360deg); } }
.probe-stage .cube { z-index: 1; }
.reveal { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: min(86%, 380px); text-align: center; background: var(--paper); border: var(--line); border-radius: 16px; box-shadow: 8px 8px 0 var(--rarity, var(--yellow)); padding: 22px; display: grid; gap: 8px; animation: pop 600ms var(--ease); }
.reveal[hidden] { display: none; }
.reveal strong { font-size: 1.5rem; line-height: 1.1; }
.rarity { justify-self: center; font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; background: var(--rarity, var(--yellow)); border: 2px solid var(--ink); border-radius: 6px; padding: 3px 10px; color: var(--ink); }
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-6deg); } }
.history { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; margin: 0; padding: 0; list-style: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.history li { font-family: var(--font-mono); font-size: 0.7rem; color: var(--paper); border: 1.5px solid var(--hc, #888); border-radius: 6px; padding: 2px 8px; }

/* Steps */
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--line); border-radius: var(--radius); overflow: hidden; background: #fffaf0; }
.steps li { padding: clamp(24px, 3vw, 40px); border-right: var(--line); }
.steps li:last-child { border-right: 0; }
.steps li span { font-family: var(--font-mono); font-size: 0.85rem; background: var(--ink); color: var(--paper); padding: 2px 8px; border-radius: 6px; }
.steps h3 { font-size: 1.8rem; margin-top: 1rem; }
.steps p { color: var(--muted); margin: 0; }

/* Odds */
.garantie { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.garantie p { color: var(--muted); }
.odds { width: 100%; border-collapse: separate; border-spacing: 0; border: var(--line); border-radius: var(--radius); overflow: hidden; background: #fffaf0; box-shadow: var(--shadow); font-size: 1rem; }
.odds th, .odds td { padding: 14px 18px; text-align: left; border-bottom: 2px solid var(--ink); }
.odds thead th { background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; }
.odds tr:last-child td { border-bottom: 0; }
.odds .dot { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; margin-right: 10px; vertical-align: -2px; }
.odds .bar { display: inline-block; height: 10px; background: var(--ink); border-radius: 4px; margin-left: 10px; vertical-align: middle; }

/* FAQ */
.faq details { border: var(--line); border-radius: 12px; background: #fffaf0; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); max-width: 70ch; }

/* Drop */
.drop { text-align: center; background: var(--yellow); border: var(--line); border-radius: 26px; box-shadow: var(--shadow); margin-bottom: 80px; max-width: min(1224px, calc(100% - 32px)); }
.drop h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); }
.drop #countdown { font-family: var(--font-mono); background: var(--ink); color: var(--yellow); padding: 0 0.3em; border-radius: 10px; white-space: nowrap; }
.drop-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.drop-form input { font: inherit; padding: 14px 18px; border: var(--line); border-radius: 12px; min-width: min(320px, 100%); background: var(--paper); }

/* Footer */
.site-footer { border-top: var(--line); padding: 40px clamp(16px, 4vw, 48px); display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.site-footer .logo { color: var(--ink); }
.site-footer p { margin: 0; }

/* Drawer */
.drawer { position: fixed; top: 0; right: 0; z-index: 50; height: 100dvh; width: min(420px, 100vw); background: var(--paper); border-left: var(--line); display: flex; flex-direction: column; transform: translateX(105%); transition: transform 400ms var(--ease); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: var(--line); }
.drawer-head h2 { font-size: 1.8rem; margin: 0; }
.icon-btn { font-size: 1.8rem; line-height: 1; background: none; border: var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.cart-list { list-style: none; margin: 0; padding: 16px 22px; flex: 1; overflow-y: auto; display: grid; gap: 12px; align-content: start; }
.cart-list .empty { color: var(--muted); font-family: var(--font-mono); font-size: 0.9rem; padding: 24px 0; text-align: center; }
.cart-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; border: 2px solid var(--ink); border-radius: 12px; padding: 10px; background: #fffaf0; }
.cart-item .swatch { width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 8px; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; font-weight: 800; }
.cart-item small { display: block; font-family: var(--font-mono); color: var(--muted); font-size: 0.72rem; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); cursor: pointer; font-weight: 800; }
.drawer-foot { border-top: var(--line); padding: 18px 22px 24px; display: grid; gap: 8px; }
.sum { display: flex; justify-content: space-between; font-size: 1.2rem; }
.sum.sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.sum.sub b { color: #128a55; }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(20, 18, 16, 0.45); }
.scrim[hidden] { display: none; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; translate: -50% 0; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 12px 20px; font-weight: 600; box-shadow: 4px 4px 0 var(--orange); opacity: 0; transform: translateY(20px); transition: opacity 250ms, transform 250ms var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero, .probe, .garantie { grid-template-columns: 1fr; }
  .hero-stage { order: -1; height: 300px; }
  .box-grid { grid-template-columns: repeat(2, 1fr); }
  .site-header nav { display: none; }
}
@media (max-width: 640px) {
  .box-grid { grid-template-columns: 1fr; }
  .card.featured { grid-column: auto; flex-direction: column; }
  .card.featured .card-visual { border-right: 0; border-bottom: var(--line); }
  .steps ol { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: var(--line); }
  .steps li:last-child { border-bottom: 0; }
  .probe-stage { min-height: 380px; }
  .sticker { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
