/* ─────────────────────────────────────────────────────────────
   Shades Lamp — product site
   Warm near-black ground, oak accents, one display face (Onest)
   with a serif italic (Playfair Display) for the emotional word.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #0b0a08;
  --bg-2: #14120f;
  --bg-3: #1d1a16;
  --line: rgba(243, 237, 228, 0.1);
  --ink: #f3ede4;
  --ink-2: #c9c0b3;
  --muted: #8f867a;
  --oak: #b07a45;
  --oak-2: #d8a76c;
  --oak-3: #7e5530;
  --glow-a: #ff4fd8;
  --glow-b: #33d6ff;
  --sans: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 5vw, 72px);
  --max: 1440px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, dt, figure, pre { margin: 0; }
::selection { background: var(--oak-2); color: #1a0f05; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* ── Type ────────────────────────────────────────────────── */
.eyebrow {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--oak-2); font-weight: 600; margin-bottom: 18px;
}
.display {
  font-size: clamp(48px, 8.6vw, 120px);
  line-height: 0.95; letter-spacing: -0.045em; font-weight: 700;
}
.h1 {
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1; letter-spacing: -0.04em; font-weight: 700;
}
.h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 700;
}
.display span, .h1 span { display: block; }
.display em, .h1 em, .h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.02em; display: block;
  background: linear-gradient(90deg, var(--oak-2), #ffd9a8 45%, var(--oak-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.08em; /* italics overhang */
}
.lede {
  font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--ink-2);
  max-width: 34em; margin-top: 26px;
}
.lede--dim { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }
.page { max-width: var(--max); margin: 0 auto; padding: 160px var(--pad) 120px; }
.page--narrow { max-width: 720px; }
.page a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: #14100b; box-shadow: 0 10px 40px -10px rgba(255, 230, 200, .35); }
.btn--primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 16px 48px -12px rgba(255, 230, 200, .5); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(243, 237, 228, .22); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(243, 237, 228, .5); background: rgba(243, 237, 228, .05); }
.btn--pill { height: 38px; padding: 0 16px; font-size: 14px; background: var(--ink); color: #14100b; }
.btn--pill:hover { background: #fff; }
.btn--big { height: 64px; padding: 0 36px; font-size: 19px; }
.btn--disabled { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.btn__price { opacity: .55; font-weight: 500; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px; padding: 0 var(--pad);
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
.nav--solid {
  background: rgba(11, 10, 8, .72);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: 17px; }
.nav__brand b { font-weight: 300; }
.nav__mark {
  width: 18px; height: 26px; border-radius: 4px 4px 3px 3px;
  background: linear-gradient(180deg, #ff6ad5, #4fd0ff);
  box-shadow: 0 0 18px rgba(255, 106, 213, .6), inset 0 0 0 2px var(--oak);
}
.nav__links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 18px; }
.nav__lang { font-size: 13px; color: var(--muted); }
body.on-light .nav:not(.nav--solid) { color: #17140f; }
body.on-light .nav:not(.nav--solid) .nav__links, body.on-light .nav:not(.nav--solid) .nav__lang { color: #4a443c; }
body.on-light .nav:not(.nav--solid) .btn--pill { background: #17140f; color: #f3ede4; }
.nav__lang:hover { color: var(--ink); }

/* ── Reveal on scroll ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding: 120px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 80px;
}
.hero--light {
  --ink: #17140f; --ink-2: #4a443c; --muted: #7b7367; --line: rgba(23, 20, 15, .1);
  color: var(--ink);
  background: #ebe8e5;
  max-width: none;
}
.hero--light::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 60%, rgba(255, 180, 120, .35), transparent 70%),
    radial-gradient(40% 40% at 80% 25%, rgba(120, 140, 255, .25), transparent 70%),
    linear-gradient(180deg, #f1efec, #e7e3df);
}
.hero__inner { position: relative; z-index: 1; }
.hero--light .btn--primary { background: var(--ink); color: #f3ede4; box-shadow: 0 14px 40px -14px rgba(23, 20, 15, .6); }
.hero--light .btn--primary:hover { background: #000; }
.hero--light .btn--ghost { box-shadow: inset 0 0 0 1px rgba(23, 20, 15, .25); }
.hero--light .btn--ghost:hover { background: rgba(23, 20, 15, .05); box-shadow: inset 0 0 0 1px rgba(23, 20, 15, .5); }
.hero--light .display em, .hero--light .h1 em { background: linear-gradient(90deg, #9a6535, #d08a4c 50%, #9a6535); -webkit-background-clip: text; background-clip: text; }
.hero--light .eyebrow { color: #9a6535; }
.hero__copy { position: relative; z-index: 1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__media { position: relative; z-index: 1; justify-self: center; width: min(100%, 780px); }
.hero__render {
  width: 100%; height: auto; aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__scroll {
  position: absolute; z-index: 1; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(180deg, var(--muted), transparent); animation: pulseLine 2s ease-in-out infinite; }
@keyframes pulseLine { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ── Stats ───────────────────────────────────────────────── */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__row {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats__row li { padding: 36px 0; display: flex; flex-direction: column; gap: 4px; }
.stats__row li + li { border-left: 1px solid var(--line); padding-left: 32px; }
.stats__row b { font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stats__row span { color: var(--muted); font-size: 14px; letter-spacing: .04em; }

/* ── Materials ───────────────────────────────────────────── */
.material { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 180px) var(--pad) 0; }
.material__copy { max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }
.material__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.5vw, 24px); }
.material__img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; }

/* ── Mood ────────────────────────────────────────────────── */
.mood { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--pad); }
.mood__wide { --wide: min(100vw - var(--pad) * 2, 1720px); width: var(--wide); margin-left: calc((100% - var(--wide)) / 2); }
.mood__wide img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 60px 120px -60px rgba(255, 140, 80, .35); }
.mood__copy { max-width: 760px; padding: clamp(56px, 8vw, 120px) 0 clamp(32px, 5vw, 64px); }
.mood__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
.mood__pair img, .mood__row img { width: 100%; height: auto; border-radius: 20px; }
.mood figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.mood__row { margin-top: clamp(14px, 2vw, 28px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 28px); align-items: end; }
.mood__row figcaption { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 32px); color: var(--ink-2); line-height: 1.3; padding-bottom: 8px; }

/* ── Effects (live WASM lamp) ────────────────────────────── */
.effects { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--pad) 40px; }
.effects__head { max-width: 760px; }
.effects__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(48px, 6vw, 96px);
}
.effects__sticky { position: sticky; top: 64px; height: calc(100svh - 64px); display: grid; place-items: center; align-content: center; gap: 12px; }
.effects__live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.effects__live i { width: 7px; height: 7px; border-radius: 50%; background: #5cff8a; box-shadow: 0 0 10px #5cff8a; animation: pulseLine 1.6s ease-in-out infinite; }
.effects__now { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-2); min-height: 1.5em; }

.effects__steps { display: flex; flex-direction: column; }
.effects__step { min-height: 62svh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; border-top: 1px solid var(--line); }
.effects__step:first-child { border-top: 0; }
.effects__pick { display: flex; align-items: center; gap: 16px; text-align: left; }
.effects__dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--pulse);
  box-shadow: 0 0 0 0 var(--pulse); transition: box-shadow .5s, transform .5s var(--ease); opacity: .55;
}
.effects__name {
  font-size: clamp(30px, 4.2vw, 58px); font-weight: 700; letter-spacing: -0.035em; line-height: 1;
  color: var(--muted); transition: color .5s;
}
.effects__desc { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 30em; opacity: .55; transition: opacity .5s; }
.effects__step.is-active .effects__name { color: var(--ink); }
.effects__step.is-active .effects__desc { opacity: 1; color: var(--ink-2); }
.effects__step.is-active .effects__dot { opacity: 1; transform: scale(1.25); box-shadow: 0 0 22px 2px var(--pulse); }
.effects__more { margin-top: 32px; color: var(--ink-2); font-size: 18px; max-width: 40em; }
.effects__more .fine { display: block; margin-top: 6px; }

/* 3D lamp -------------------------------------------------- */
/* A cuboid --w × --h × --d centred in .lamp3d__box; caps are slabs overhanging by --e with thickness --t. */
.lamp3d {
  --w: 190px; --d: 190px; --h: 430px; --post: 16px; --e: 8px; --t: 22px;
  --wood-a: #c68e58; --wood-b: #a06a3a; --wood-c: #7a4f2b;
  --grain: repeating-linear-gradient(180deg, rgba(0, 0, 0, .09) 0 3px, transparent 3px 9px);
  width: 100%; max-width: 420px; aspect-ratio: 1 / 1.35; perspective: 1500px; perspective-origin: 50% 38%; position: relative;
}
.lamp3d__scene { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; }
.lamp3d__box {
  position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d;
  transform: rotateX(-8deg) rotateY(-34deg); animation: sway 18s ease-in-out infinite alternate;
}
@keyframes sway { from { transform: rotateX(-8deg) rotateY(-40deg); } to { transform: rotateX(-8deg) rotateY(-22deg); } }
.lamp3d__face { position: absolute; inset: 0; overflow: hidden; background: #0e0c0a; backface-visibility: hidden; }
.lamp3d__face--front { transform: translateZ(calc(var(--d) / 2)); }
.lamp3d__face--right { width: var(--d); left: 50%; margin-left: calc(var(--d) / -2); transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.lamp3d__face--left { width: var(--d); left: 50%; margin-left: calc(var(--d) / -2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.lamp3d__panel {
  position: absolute; inset: 0 var(--post); width: calc(100% - var(--post) * 2); height: 100%;
  filter: blur(9px) saturate(1.3) brightness(1.05); transform: scale(1.12);
}
.lamp3d__face--right .lamp3d__panel { filter: blur(9px) saturate(1.3) brightness(.78); }
.lamp3d__face::after {
  content: ""; position: absolute; inset: 0 var(--post); pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 35%, rgba(255, 255, 255, .02) 70%, rgba(255, 255, 255, .1)),
    radial-gradient(120% 60% at 50% 100%, rgba(0, 0, 0, .18), transparent 60%);
}
.lamp3d__post { position: absolute; top: 0; bottom: 0; width: var(--post); z-index: 2; background: var(--grain), linear-gradient(90deg, var(--wood-c), var(--wood-a) 45%, var(--wood-b)); }
.lamp3d__post--l { left: 0; } .lamp3d__post--r { right: 0; }
.lamp3d__face--right .lamp3d__post { filter: brightness(.72); }
.lamp3d__face--left .lamp3d__post { filter: brightness(.5); }

.lamp3d__cap {
  position: absolute; left: 50%; top: 50%; width: calc(var(--w) + var(--e) * 2); height: calc(var(--d) + var(--e) * 2);
  margin: calc((var(--d) + var(--e) * 2) / -2) 0 0 calc((var(--w) + var(--e) * 2) / -2);
  transform-style: preserve-3d;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 4px, transparent 4px 11px), linear-gradient(135deg, var(--wood-a), var(--wood-b) 60%, var(--wood-c));
}
.lamp3d__cap--top { transform: translateY(calc(var(--h) / -2)) rotateX(90deg); }
.lamp3d__cap--bottom { transform: translateY(calc(var(--h) / 2)) rotateX(90deg); background: var(--wood-c); }
.lamp3d__cap::before, .lamp3d__cap::after { content: ""; position: absolute; background: var(--grain), linear-gradient(180deg, var(--wood-a), var(--wood-b)); }
/* front lip: hangs from the front edge (local +y) */
.lamp3d__cap::before { left: 0; right: 0; bottom: 0; height: var(--t); transform-origin: 50% 0; transform: rotateX(-90deg); }
/* right lip */
.lamp3d__cap::after { top: 0; bottom: 0; right: 0; width: var(--t); transform-origin: 100% 50%; transform: rotateY(-90deg); filter: brightness(.72); }
/* bottom slab: lips rise instead of hang */
.lamp3d__cap--bottom::before { transform-origin: 50% 100%; transform: rotateX(-90deg); }
.lamp3d__cap--bottom::after { transform: rotateY(90deg); }

.lamp3d__shadow {
  position: absolute; bottom: 3%; left: 18%; right: 18%; height: 12%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .8), transparent 70%); filter: blur(10px);
}
.lamp3d__halo {
  position: absolute; inset: 10% 5%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, var(--halo, #ff4fd8) 0%, transparent 62%);
  opacity: .3; filter: blur(50px); transition: background .8s;
}

/* ── App ─────────────────────────────────────────────────── */
.app { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 180px) var(--pad) 0; }
.app__head { max-width: 760px; }
.app__shots {
  display: flex; gap: clamp(14px, 2vw, 28px); margin-top: clamp(40px, 6vw, 80px);
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--pad) 40px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1);
  scrollbar-width: none;
}
.app__shots::-webkit-scrollbar { display: none; }
.app__shots img {
  flex: 0 0 clamp(260px, 25vw, 360px); height: auto; border-radius: 28px; scroll-snap-align: center;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--line);
  transition: transform .6s var(--ease);
}
.app__shots img:nth-child(even) { transform: translateY(34px); }
.app__shots img:hover { transform: translateY(-6px) scale(1.02); }
.app__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; margin-top: 40px; }
.app__features b { display: block; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.app__features p { color: var(--muted); font-size: 16px; }
.app__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 56px; }
.app__badges .fine { flex-basis: 100%; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 14px; border-radius: 12px;
  background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); font-size: 15px; font-weight: 500;
}
.badge--soon { opacity: .55; }
.badge small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--oak-2); margin-left: 4px; }
.badge__ic { width: 20px; height: 20px; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.badge__ic--apple { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.5 2-3.7 2.1-3.8-1.2-1.7-3-1.9-3.6-2-1.5-.2-3 .9-3.8.9-.8 0-2-.9-3.3-.9-1.7 0-3.3 1-4.2 2.5-1.8 3.1-.5 7.7 1.3 10.2.9 1.2 1.9 2.6 3.2 2.6 1.3-.1 1.8-.8 3.3-.8s2 .8 3.3.8c1.4 0 2.3-1.3 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9-.1 0-2.8-1-2.8-4.1zM14 5.3c.7-.8 1.2-2 1-3.1-1 0-2.2.7-2.9 1.5-.6.7-1.2 1.9-1 3 1.1.1 2.2-.6 2.9-1.4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.5 2-3.7 2.1-3.8-1.2-1.7-3-1.9-3.6-2-1.5-.2-3 .9-3.8.9-.8 0-2-.9-3.3-.9-1.7 0-3.3 1-4.2 2.5-1.8 3.1-.5 7.7 1.3 10.2.9 1.2 1.9 2.6 3.2 2.6 1.3-.1 1.8-.8 3.3-.8s2 .8 3.3.8c1.4 0 2.3-1.3 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9-.1 0-2.8-1-2.8-4.1zM14 5.3c.7-.8 1.2-2 1-3.1-1 0-2.2.7-2.9 1.5-.6.7-1.2 1.9-1 3 1.1.1 2.2-.6 2.9-1.4z'/%3E%3C/svg%3E"); }
.badge__ic--play { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.6 2.3 13 12l-9.4 9.7c-.3-.2-.6-.6-.6-1.2V3.5c0-.5.2-1 .6-1.2zm11.1 11.4 2.9 2.9-11 6.3 8.1-9.2zm3.2-2.1 3.3 1.9c.9.5.9 1.4 0 2l-3.3 1.9-3.3-3 3.3-2.8zm-.3-1.3-2.9 2.9-8.1-9.3 11 6.4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.6 2.3 13 12l-9.4 9.7c-.3-.2-.6-.6-.6-1.2V3.5c0-.5.2-1 .6-1.2zm11.1 11.4 2.9 2.9-11 6.3 8.1-9.2zm3.2-2.1 3.3 1.9c.9.5.9 1.4 0 2l-3.3 1.9-3.3-3 3.3-2.8zm-.3-1.3-2.9 2.9-8.1-9.3 11 6.4z'/%3E%3C/svg%3E"); }

/* ── Open source ─────────────────────────────────────────── */
.open {
  max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 180px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.open__copy .btn { margin-top: 32px; }
.open__code {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px;
  font: 14px / 1.6 ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace; color: var(--ink-2);
  overflow-x: auto; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.open__code .c { color: var(--muted); }
.open__code .k { color: var(--oak-2); }
.open__code .f { color: #ffd9a8; }
.open__code .n { color: #7fd8ff; }

/* ── Specs ───────────────────────────────────────────────── */
.specs { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(96px, 12vw, 160px); }
.specs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 40px; }
.specs__grid > div { border-top: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.specs__grid dt { color: var(--muted); font-size: 14px; letter-spacing: .04em; padding-top: 3px; }
.specs__grid dd { font-size: 18px; }

/* ── CTA ─────────────────────────────────────────────────── */
.cta { position: relative; text-align: center; padding: clamp(96px, 14vw, 200px) var(--pad); overflow: hidden; }
.cta__glow { position: absolute; inset: auto 0 -40% 0; height: 90%; background: radial-gradient(ellipse at 50% 100%, rgba(255, 130, 60, .28), transparent 60%); pointer-events: none; }
.cta .display em, .cta .display span { display: inline; }
.cta .lede { margin: 20px auto 0; }
.cta .btn { margin-top: 40px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; font-size: 14px; color: var(--muted);
}
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { text-align: right; }

/* ── Buy page ────────────────────────────────────────────── */
.buy__hero {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 140px var(--pad) 80px;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.buy__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 60% at 25% 50%, rgba(255, 90, 230, .22), transparent 70%); }
.buy__hero.hero--light { max-width: none; padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); padding-right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.buy__hero .buy__glow { display: none; }
.buy__media { position: relative; z-index: 1; }
.buy__media img { width: 100%; height: auto; border-radius: 20px; -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 60%, transparent 100%); }
.buy__copy { position: relative; z-index: 1; }

.pack {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(72px, 10vw, 140px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px) clamp(32px, 5vw, 80px); align-items: center;
}
.pack__img img { width: 100%; height: auto; border-radius: 24px; }
.pack__img--wide { grid-column: 1 / -1; }
.buy__price { margin-top: 22px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.buy__price b { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; line-height: 1; }
.buy__price span { color: var(--muted); }
.buy__box { margin-top: 44px; max-width: 34em; }
.buy__box li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.buy__box li:first-child { border-top: 0; color: var(--muted); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; padding-bottom: 6px; }
.buy__box li:first-child b { font-weight: 600; }

.stores { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--pad); }
.stores__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.store {
  display: flex; flex-direction: column; gap: 8px; padding: 30px; border-radius: 22px;
  background: var(--bg-2); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s;
}
.store:hover { transform: translateY(-4px); border-color: rgba(243, 237, 228, .22); }
.store--soon { opacity: .6; }
.store__region { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--oak-2); }
.store__name { font-size: 28px; letter-spacing: -0.03em; }
.store__note { color: var(--muted); flex: 1; }
.store__price { font-size: 22px; font-weight: 600; margin-top: 8px; }
.store .btn { margin-top: 12px; align-self: flex-start; }

.ask { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.ask__inner { border-radius: 28px; padding: clamp(40px, 6vw, 80px); background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); }
.ask__inner .lede { margin-top: 12px; }
.ask__inner .hero__cta { margin-top: 28px; }

.faq { max-width: 860px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--pad) clamp(96px, 12vw, 160px); }
.faq__list { margin-top: 32px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary { cursor: pointer; padding: 22px 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--muted); font-weight: 300; font-size: 26px; line-height: 1; transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 24px; color: var(--ink-2); max-width: 40em; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .app__features { grid-template-columns: repeat(2, 1fr); }
  .stores__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .hero__media { width: min(92%, 440px); order: -1; }
  .hero__scroll { display: none; }
  .stats__row { grid-template-columns: repeat(2, 1fr); }
  .stats__row li + li { padding-left: 0; border-left: 0; }
  .stats__row li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .open, .buy__hero, .pack, .mood__pair, .mood__row { grid-template-columns: 1fr; }
  .material__grid { grid-template-columns: 1fr 1fr; }
  .pack__img--wide { grid-column: auto; }
  .buy__hero.hero--light { grid-template-columns: 1fr; }
  .effects__stage { grid-template-columns: 1fr; }
  .effects__sticky { height: auto; position: sticky; top: 58px; z-index: 2; background: var(--bg); padding: 8px 0 12px; box-shadow: 0 24px 24px -12px var(--bg); }
  .effects__now { display: none; }
  .lamp3d { --w: 120px; --d: 120px; --h: 270px; --post: 10px; --e: 5px; --t: 14px; max-width: 250px; }
  .effects__step { min-height: 0; padding: 32px 0; }
  .specs__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__copy { text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { height: 58px; }
  .nav__lang { display: none; }
  .btn__price { display: none; }
  .app__features, .stores__grid { grid-template-columns: 1fr; }
  .specs__grid > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__glow::before, .hero__glow::after, .lamp3d__box, .hero__scroll i, .effects__live i { animation: none; }
}

/* ── Legal / support documents (/privacy, /support, /terms) ── */
.legal { line-height: 1.65; color: var(--ink-2); }
.legal h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal h2 { font-size: 22px; color: var(--ink); margin: 40px 0 10px; }
.legal h3 { font-size: 17px; color: var(--ink); margin: 26px 0 8px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal strong { color: var(--ink); }
.legal a { color: var(--oak-2); text-decoration: underline; text-underline-offset: 3px; }
