/* KosherPlay™ · premium theme */
:root {
  --red: #ed1c24;
  --green: #64be48;
  --bg: #000;
  --bg-1: #0a0a0b;
  --bg-2: #111113;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --muted: #86868b;
  --soft: #a1a1a6;
  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter Tight', 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --grad: linear-gradient(90deg, var(--red), var(--green));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
html[lang="he"] { --font: 'Heebo', 'Inter Tight', system-ui, sans-serif; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-weight: 300; line-height: 1.5; letter-spacing: -0.005em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-weight: 500; }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
.dim { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.eyebrow { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); margin-bottom: 18px; }
html[lang="he"] .eyebrow { letter-spacing: 0.06em; font-size: 0.9rem; }
.eyebrow::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--grad); vertical-align: 0.32em; margin-inline-end: 10px; }

/* film grain for depth */
.grain {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  padding: 0.78em 1.6em; border-radius: 999px; font: 500 0.98rem var(--font); letter-spacing: 0;
  background: var(--text); color: #000; border: 1px solid var(--text); cursor: pointer; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 0.5em 1.15em; font-size: 0.86rem; }
.link { color: var(--text); font-weight: 400; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color 0.3s; }
.link:hover { border-color: var(--text); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 32px;
  padding: 0 max(20px, calc((100% - var(--wrap)) / 2));
  background: rgba(0, 0, 0, 0.55); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.4s;
}
.nav.scrolled { border-color: var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 500 1.12rem 'Inter Tight', sans-serif; letter-spacing: -0.02em; }
.wordmark b { font-weight: 300; }
.wordmark .mark { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 30px; margin-inline-start: auto; }
.nav-links a { font-size: 0.86rem; font-weight: 400; color: var(--soft); transition: color 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { background: none; border: 0; color: var(--soft); font: 500 0.82rem var(--font); cursor: pointer; padding: 6px; }
.lang:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-actions { margin-inline-start: auto; } }

/* ---------- 3D stage ---------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.stage-ready #stage { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; position: relative; display: flex; justify-content: center; text-align: center; padding: 15vh 20px 0; overflow: hidden; }
.spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 66%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(35% 30% at 30% 70%, rgba(237, 28, 36, 0.08), transparent 70%),
    radial-gradient(35% 30% at 70% 70%, rgba(100, 190, 72, 0.08), transparent 70%);
}
.hero h1 { font-size: clamp(3.4rem, 10vw, 8.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 0.95; }
html[lang="he"] .hero h1 { letter-spacing: -0.03em; }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.45rem); color: var(--soft); margin: 22px auto 30px; max-width: 30em; font-weight: 300; }
.hero-links { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }
.swatches { display: flex; gap: 12px; justify-content: center; margin-top: 34px; }
.sw { width: 22px; height: 22px; border-radius: 50%; background: var(--c); border: 0; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); outline-offset: 4px; transition: box-shadow 0.3s; }
.sw.on { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 0 0 2px #000, 0 0 0 3px var(--text); }

/* ---------- statement ---------- */
.statement { padding: 26vh 20px; text-align: center; }
.big { font-size: clamp(2rem, 5.4vw, 4.6rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; max-width: 16ch; margin: 0 auto; }
html[lang="he"] .big { max-width: 18ch; letter-spacing: -0.02em; }
.big span { display: block; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-lines span { opacity: 0; transform: translateY(0.4em); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal-lines.in span { opacity: 1; transform: none; }
.reveal-lines.in span:nth-child(2) { transition-delay: 0.35s; }

/* ---------- scrolly (exploded views) ---------- */
.scrolly { position: relative; height: 520vh; }
#console.scrolly { height: 480vh; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.intro { position: absolute; top: 15vh; inset-inline: 0; text-align: center; padding: 0 20px; will-change: opacity, transform; }
.intro h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.intro p:not(.eyebrow) { color: var(--soft); margin-top: 14px; font-size: 1.1rem; }
.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lines line { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; opacity: 0; }
.lines circle { fill: #fff; opacity: 0; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)); }
.callouts { position: absolute; inset: 13vh max(20px, calc((100% - 1280px) / 2)) 11vh; display: flex; justify-content: space-between; pointer-events: none; }
.col { list-style: none; margin: 0; padding: 0; width: 230px; display: flex; flex-direction: column; justify-content: space-around; }
.callout { opacity: 0; will-change: opacity, transform; }
.callout i, .caption i { display: block; font: 500 0.72rem 'Inter Tight', sans-serif; font-style: normal; letter-spacing: 0.12em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.callout b, .caption b { display: block; font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 4px; }
.callout span, .caption span { display: block; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.caption { position: absolute; bottom: 8vh; inset-inline: 20px; margin: 0; text-align: center; opacity: 0; transition: opacity 0.4s; }
@media (max-width: 759px) { .callouts { display: none; } .intro { top: 11vh; } }
.outro { position: absolute; bottom: 10vh; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; text-align: center; }
.outro-name { color: var(--soft); font-size: 1rem; }
.outro-price { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 16px; }

/* no-WebGL fallback */
.no-webgl .scrolly { height: auto; }
.no-webgl .sticky { position: relative; height: auto; padding: 120px 0 60px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.no-webgl .intro, .no-webgl .outro { position: static; opacity: 1 !important; transform: none !important; }
.no-webgl .callouts { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; width: min(var(--wrap), 100% - 40px); }
.no-webgl .col { width: auto; gap: 24px; }
.no-webgl .callout { opacity: 1 !important; transform: none !important; }
.no-webgl .lines, .no-webgl .caption { display: none; }
.no-webgl #portable .sticky::before, .no-webgl #console .sticky::before { content: ''; width: min(560px, 90vw); aspect-ratio: 4 / 3; background: center / contain no-repeat; order: 1; }
.no-webgl #portable .sticky::before { background-image: url(../img/product-portable.png); }
.no-webgl #console .sticky::before { background-image: url(../img/product-console.png); }

/* ---------- solid sections ---------- */
.solid { background: var(--bg); position: relative; padding: clamp(110px, 16vw, 200px) 0; }
.sec-head { margin-bottom: clamp(48px, 7vw, 90px); }
.sec-head.center { text-align: center; }

/* safety */
.safe { background: linear-gradient(180deg, #000 0%, var(--bg-1) 100%); }
.hash { border-top: 1px solid var(--line); margin-bottom: clamp(60px, 8vw, 100px); }
.hash-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.hash-row code { font: 300 clamp(0.95rem, 2.6vw, 2rem) ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.06em; color: var(--text); }
.hash-row.bad code { color: #4b4b50; text-decoration: line-through; text-decoration-color: rgba(237, 28, 36, 0.7); }
.hash-row .ok, .hash-row .no { font-size: 0.85rem; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.hash-row .ok { color: var(--green); } .hash-row .no { color: var(--red); }
.hash-row .ok::before, .hash-row .no::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.hash-note { padding-top: 16px; font-size: 0.8rem; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 70px); }
.pillars article { border-top: 1px solid var(--line-2); padding-top: 26px; }
.pillars article:nth-child(2) { transition-delay: 0.12s; } .pillars article:nth-child(3) { transition-delay: 0.24s; }
.pillars h3 { margin-bottom: 12px; }
.pillars p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

/* specs */
.specs { background: var(--bg-1); }
.spec-table { border-top: 1px solid var(--line-2); }
.spec-row { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.spec-row span:first-child { color: var(--muted); }
.spec-row.head { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; padding: 28px 0; }
@media (max-width: 700px) {
  .spec-row { grid-template-columns: 1fr 1fr; gap: 6px 18px; }
  .spec-row span:first-child { grid-column: 1 / -1; font-size: 0.8rem; letter-spacing: 0.04em; }
  .spec-row.head span:first-child { display: none; }
}

/* buy */
.buy { background: #000; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg-2); border-radius: 28px; padding: 34px 30px 36px; text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: transform 0.6s var(--ease), background 0.6s var(--ease);
}
.card:nth-child(2) { transition-delay: 0.08s; } .card:nth-child(3) { transition-delay: 0.16s; }
.card:hover { background: #161618; }
.card-img { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 18px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.9s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card h3 { font-size: 1.6rem; font-weight: 500; margin-bottom: 8px; }
.card-sub { color: var(--muted); min-height: 3em; }
.card-price { font-size: 1.4rem; font-weight: 400; margin: 18px 0 22px; }
.card .btn { margin-top: auto; }
.accessory {
  margin-top: 22px; display: grid; grid-template-columns: 120px 1fr auto auto; align-items: center; gap: 28px;
  padding: 18px 32px; border-radius: 28px; background: var(--bg-2);
}
.accessory p { color: var(--muted); }
.accessory .card-price { margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .accessory { max-width: 520px; margin-inline: auto; grid-template-columns: 90px 1fr; } }

/* order */
.order { text-align: center; background: radial-gradient(70% 60% at 50% 110%, rgba(255, 255, 255, 0.06), transparent 70%), #000; }
.phone { display: inline-block; font-size: clamp(3rem, 10vw, 7.5rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; transition: color 0.4s; }
.phone:hover { color: var(--soft); }
.order-actions { display: flex; gap: 14px; justify-content: center; margin: 40px 0 80px; }
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: start; }
.steps li { border-top: 1px solid var(--line-2); padding-top: 20px; color: var(--soft); }
.steps i { display: block; font: 500 0.75rem 'Inter Tight', sans-serif; font-style: normal; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* faq */
.faq { background: var(--bg-1); }
.faq h2 { margin-bottom: 40px; font-size: clamp(2rem, 4vw, 3rem); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 24px 0; font-size: 1.12rem; font-weight: 400; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 1px solid var(--soft); border-bottom: 1px solid var(--soft); transform: rotate(45deg); transition: transform 0.4s var(--ease); }
details[open] summary::after { transform: rotate(-135deg); }
details p { color: var(--muted); padding-bottom: 26px; max-width: 60ch; }

/* footer */
.footer { background: #000; border-top: 1px solid var(--line); padding: 70px 0 34px; font-size: 0.9rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 40px; align-items: start; }
.foot-brand p { color: var(--muted); margin-top: 12px; }
.foot-contact { display: flex; flex-direction: column; gap: 8px; }
.foot-contact a:hover { color: var(--soft); }
.foot-contact span { color: var(--muted); }
.foot-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 0.8rem; }
.foot-qr img { width: 96px; border-radius: 12px; background: #fff; padding: 6px; }
.legal { margin-top: 50px !important; font-size: 0.72rem; color: #55555a; line-height: 1.6; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.no-webgl .swatches { display: none; }
