/* ============================================================
   Jois — landing styles
   Apple-grade dark, cinematic, restrained accents.
   ============================================================ */

:root {
  --bg: #000;
  --bg-2: #0b0b0e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --muted: #86868b;
  --muted-2: #a1a1a6;
  --accent: #ff3b5c;
  --accent-2: #ff8a3d;
  --gold: #f0c27b;
  --glow: rgba(255, 59, 92, 0.35);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--text); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-content: center; gap: 22px;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__word {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(56px, 10vw, 120px); line-height: 1; letter-spacing: -0.03em;
  display: flex; justify-content: center;
}
.loader__word span {
  display: inline-block; opacity: 0; transform: translateY(24px);
  animation: loaderIn 0.9s var(--ease) forwards;
}
.loader__word span:nth-child(2) { animation-delay: 0.08s; }
.loader__word span:nth-child(3) { animation-delay: 0.16s; }
.loader__word span:nth-child(4) { animation-delay: 0.24s; }
@keyframes loaderIn { to { opacity: 1; transform: none; } }
.loader__bar { width: 120px; height: 1px; background: var(--line); margin: 0 auto; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--text); transform-origin: left; animation: loaderBar 1.4s var(--ease-io) forwards; }
@keyframes loaderBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Cursor glow (desktop only) ---------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 1; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 92, 0.12), rgba(255, 138, 61, 0.05) 40%, transparent 65%);
  opacity: 0; transition: opacity 0.6s;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow.is-on { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 22px; height: 48px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: transform 0.5s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.4s;
  will-change: transform;
}
.btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.btn:active { transform: scale(0.97); }
.btn--small { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--white { background: var(--text); color: #000; border-color: transparent; }
.btn--white:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,0.08); }

.btn--store {
  height: 60px; padding: 0 22px 0 18px; gap: 12px;
  background: rgba(255,255,255,0.06);
  text-align: left;
}
.btn--store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.btn--store span { display: flex; flex-direction: column; line-height: 1.1; }
.btn--store small { font-size: 11px; color: var(--muted-2); font-weight: 400; letter-spacing: 0.02em; }
.btn--store b { font-size: 17px; font-weight: 600; }
.btn--store:hover {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 10px 40px -10px var(--glow);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px var(--pad);
  transform: translateY(-100%);
  transition: transform 0.9s var(--ease);
}
.nav.is-visible { transform: none; }
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  height: 56px; padding: 0 8px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.8);
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.nav__mark {
  width: 26px; height: 26px;
  background: url("assets/jois-logo.png") center / contain no-repeat;
}
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted-2);
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.lang { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); padding: 8px 10px; display: flex; gap: 6px; }
.lang span { transition: color 0.25s; }
.lang span.is-active { color: var(--text); }
.lang i { font-style: normal; opacity: 0.4; }

/* ---------- Common ---------- */
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.h2 {
  font-size: clamp(38px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600;
}
.h2 .muted, .muted { color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted-2); line-height: 1.5; max-width: 60ch; margin-top: 22px; }
.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* reveal (JS-driven, falls back visible) */
.reveal { opacity: 0; transform: translateY(28px); }
.no-js .reveal, .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(84px, 11vh, 120px) var(--pad) 0;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__aura {
  position: absolute; left: 50%; top: 58%; width: 120vmin; height: 120vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, rgba(255, 59, 92, 0.22), rgba(255, 138, 61, 0.08) 35%, transparent 62%);
  filter: blur(20px);
  animation: aura 9s ease-in-out infinite alternate;
}
@keyframes aura { from { transform: translate(-50%, -50%) scale(0.92); opacity: 0.8; } to { transform: translate(-50%, -52%) scale(1.08); opacity: 1; } }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 55% 40% at 50% 92%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 55% 40% at 50% 92%, #000 10%, transparent 75%);
  opacity: 0.7;
}

.hero__content {
  position: relative; z-index: 2; text-align: center; max-width: 900px;
  display: flex; flex-direction: column; align-items: center;
}
.hero__eyebrow { font-size: 14px; color: var(--muted-2); letter-spacing: 0.02em; margin-bottom: 20px; }
.hero__title {
  font-size: clamp(54px, 8vw, 112px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 700;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
@media (min-width: 1024px) { .hero__title .line { display: inline-block; vertical-align: bottom; } .hero__title .line + .line { margin-left: 0.22em; } }
.hero__title .word { display: inline-block; transform: translateY(110%); }
.word--serif {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  background: linear-gradient(100deg, #fff 10%, #ffd7c2 45%, var(--accent-2) 70%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  margin-top: 14px; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted-2); max-width: 44ch; line-height: 1.45;
}

/* character stage */
.hero__stage {
  position: relative; z-index: 1; order: 2;
  width: 100%; display: flex; justify-content: center;
  margin-top: clamp(-10px, -1vh, 0px);
}
.hero__video-wrap {
  position: relative;
  height: clamp(340px, 56vh, 760px); aspect-ratio: 1;
  will-change: transform;
}
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 97%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 97%);
  mask-composite: intersect; -webkit-mask-composite: source-in;
}
.hero__floor {
  position: absolute; left: 50%; bottom: 3%; width: 60%; height: 8%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 59, 92, 0.35), transparent 70%);
  filter: blur(14px);
}

.hero__actions { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero__cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: clamp(6px, 1vh, 16px);
}
.hero__hint {
  display: flex; align-items: center; gap: 10px; margin-top: 22px;
  font-size: 13px; color: var(--muted);
}
.hero__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #34c759;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }

.hero__scroll {
  position: absolute; bottom: 28px; right: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: fadeIn 1s 2.2s forwards;
}
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(var(--muted), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #fff; animation: scrollLine 1.8s var(--ease-io) infinite; }
@keyframes scrollLine { to { top: 100%; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; gap: 40px; width: max-content; white-space: nowrap;
  font-size: clamp(18px, 2.2vw, 26px); font-weight: 500; letter-spacing: -0.02em; color: var(--muted-2);
  animation: marquee 34s linear infinite;
}
.marquee__track em { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { padding: clamp(100px, 16vh, 200px) var(--pad); max-width: 1100px; margin: 0 auto; }
.statement__text {
  font-size: clamp(26px, 4.2vw, 56px); line-height: 1.18; letter-spacing: -0.035em; font-weight: 500;
}
.statement__text .w { color: rgba(255,255,255,0.18); transition: color 0.4s; }
.statement__text .w.is-lit { color: var(--text); }

/* ---------- Desktop ---------- */
.desktop { padding: 40px 0 clamp(80px, 12vh, 160px); position: relative; }
.desktop .section-head { text-align: center; }
.desktop__stage {
  position: relative; max-width: 1180px; margin: clamp(48px, 7vh, 90px) auto 0; padding: 0 var(--pad);
  perspective: 1800px;
}

.mac { position: relative; width: 100%; transform-style: preserve-3d; will-change: transform; }
.mac__screen {
  position: relative; border-radius: clamp(14px, 1.6vw, 24px);
  background: #0c0c0e; padding: clamp(8px, 1vw, 14px);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.8),
    0 40px 120px -30px rgba(255, 59, 92, 0.25),
    0 60px 100px -40px rgba(0,0,0,0.9);
  overflow: hidden;
}
.mac__screen::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 30%, transparent 70%, rgba(255,255,255,0.04));
  z-index: 3;
}
.mac__notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 14%; height: clamp(10px, 1.2vw, 16px); background: #0c0c0e; border-radius: 0 0 10px 10px; z-index: 4;
}
.mac__video { width: 100%; aspect-ratio: 1228 / 720; object-fit: cover; border-radius: clamp(8px, 0.9vw, 12px); background: #000; }
.mac__glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: glare 7s 2s var(--ease-io) infinite;
}
@keyframes glare { 0%, 20% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.mac__base {
  height: clamp(10px, 1.2vw, 16px); margin: 0 -2.5%;
  background: linear-gradient(#2a2a2e, #141416);
  border-radius: 0 0 14px 14px / 0 0 100% 100%;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
}
.mac__foot { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 14%; height: 40%; background: #0a0a0b; border-radius: 0 0 8px 8px; }

.desktop__chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgba(20, 20, 24, 0.75); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
  opacity: 0; transform: translateY(14px) scale(0.96);
}
.chip i { font-style: normal; font-size: 16px; }
.chip--1 { left: 4%; top: 26%; }
.chip--2 { right: 3%; top: 14%; }
.chip--3 { right: 6%; bottom: 20%; }
.chip.is-in { animation: chipIn 0.8s var(--ease) forwards, chipFloat 5s 0.8s ease-in-out infinite alternate; }
.chip--2.is-in { animation-delay: 0.2s, 1s; }
.chip--3.is-in { animation-delay: 0.4s, 1.2s; }
@keyframes chipIn { to { opacity: 1; transform: none; } }
@keyframes chipFloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }

.desktop__steps {
  max-width: var(--max); margin: clamp(60px, 9vh, 110px) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step__num { font-size: 12px; color: var(--accent); letter-spacing: 0.1em; font-weight: 600; }
.step h3 { font-size: 22px; letter-spacing: -0.02em; margin: 14px 0 10px; font-weight: 600; }
.step p { color: var(--muted-2); font-size: 16px; line-height: 1.55; }

/* ---------- Mobile ---------- */
.mobile { padding: clamp(80px, 12vh, 160px) 0; position: relative; overflow: hidden; }
.mobile__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.mobile__list { margin-top: 36px; display: grid; gap: 18px; }
.mobile__list li { display: grid; gap: 4px; padding-left: 18px; border-left: 1px solid var(--line); }
.mobile__list b { font-weight: 600; font-size: 17px; }
.mobile__list span { color: var(--muted-2); font-size: 15px; }
.mobile__cta { margin-top: 36px; }

.mobile__stage { position: relative; display: flex; justify-content: center; perspective: 1600px; }
.phone {
  position: relative; width: clamp(240px, 24vw, 320px); aspect-ratio: 9 / 19.5;
  border-radius: 52px; padding: 11px;
  background: linear-gradient(160deg, #3a3a3f, #17171a 40%, #0b0b0d);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.12),
    0 50px 120px -30px rgba(0,0,0,0.9),
    0 30px 80px -30px var(--glow);
  transform-style: preserve-3d; will-change: transform;
  z-index: 1;
}
.phone::before {
  content: ""; position: absolute; right: -3px; top: 20%; width: 3px; height: 12%;
  background: #2a2a2e; border-radius: 0 3px 3px 0;
}
.phone::after {
  content: ""; position: absolute; left: -3px; top: 16%; width: 3px; height: 6%;
  background: #2a2a2e; border-radius: 3px 0 0 3px; box-shadow: 0 60px 0 #2a2a2e;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #000;
  border: 1px solid rgba(255,255,255,0.06);
}
.phone__island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 26px; background: #000; border-radius: 999px; z-index: 3;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}
.phone__video { width: 100%; height: 100%; object-fit: cover; }
.phone__ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.phone__bubble {
  position: absolute; left: 50%; top: 20%; transform: translateX(-50%);
  display: flex; gap: 5px; padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.phone__bubble span { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: dots 1.2s infinite; }
.phone__bubble span:nth-child(2) { animation-delay: 0.2s; }
.phone__bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dots { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.phone__mic {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 0 rgba(255,59,92,0.5); animation: micPulse 2.2s infinite;
}
.phone__mic::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 22px;
  background: #fff; border-radius: 8px;
}
@keyframes micPulse { 70% { box-shadow: 0 0 0 18px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
.phone__glow {
  position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,59,92,0.22), rgba(255,138,61,0.06) 45%, transparent 70%);
  filter: blur(30px); z-index: 0;
}

/* ---------- Features / bento ---------- */
.features { padding: clamp(80px, 12vh, 160px) 0; }
.bento {
  max-width: var(--max); margin: clamp(48px, 7vh, 80px) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 28px;
  background: var(--surface); border: 1px solid var(--line);
  min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  transition: border-color 0.4s, transform 0.6s var(--ease), background 0.4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.08), transparent 40%);
  transition: opacity 0.4s;
}
.card:hover { border-color: rgba(255,255,255,0.18); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card--wide { grid-column: span 2; }
.card h3 { font-size: 22px; letter-spacing: -0.025em; font-weight: 600; }
.card p { color: var(--muted-2); font-size: 15px; line-height: 1.5; max-width: 46ch; }
.card__viz { position: relative; height: 150px; flex: none; margin: -6px 0 auto; pointer-events: none; }
.card h3 { margin-top: 18px; }

/* wave */
.card__viz--wave { display: flex; align-items: center; justify-content: center; gap: 8px; }
.card__viz--wave span {
  width: 6px; height: 40px; border-radius: 999px;
  background: linear-gradient(var(--accent-2), var(--accent));
  animation: wave 1.6s ease-in-out infinite; opacity: 0.9;
}
.card__viz--wave span:nth-child(odd) { animation-duration: 1.3s; }
.card__viz--wave span:nth-child(3n) { animation-delay: 0.2s; }
.card__viz--wave span:nth-child(4n) { animation-delay: 0.45s; height: 60px; }
.card__viz--wave span:nth-child(5n) { animation-delay: 0.1s; height: 90px; }
@keyframes wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1.4); } }

/* eyes */
.card__viz--eyes { display: flex; justify-content: center; align-items: center; gap: 26px; }
.card__viz--eyes i {
  width: 34px; height: 54px; border-radius: 50%; background: #fff;
  transform-origin: center; animation: blink 4.5s infinite;
  box-shadow: 0 0 40px -6px rgba(255,255,255,0.7);
  position: relative;
}
.card__viz--eyes i::after { content: ""; position: absolute; width: 14px; height: 18px; left: 10px; top: 20px; border-radius: 50%; background: var(--accent); animation: look 6s ease-in-out infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.05); } }
@keyframes look { 0%, 100% { transform: translate(0,0); } 30% { transform: translate(6px, -4px); } 60% { transform: translate(-6px, 3px); } }

/* memory */
.card__viz--memory { }
.card__viz--memory b {
  position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 20px -2px var(--gold); animation: twinkle 3s ease-in-out infinite;
}
.card__viz--memory b:nth-child(1) { left: 22%; top: 40%; }
.card__viz--memory b:nth-child(2) { left: 46%; top: 28%; animation-delay: 0.4s; }
.card__viz--memory b:nth-child(3) { left: 70%; top: 44%; animation-delay: 0.8s; }
.card__viz--memory b:nth-child(4) { left: 34%; top: 66%; animation-delay: 1.2s; }
.card__viz--memory b:nth-child(5) { left: 60%; top: 70%; animation-delay: 1.6s; }
.card__viz--memory b:nth-child(6) { left: 82%; top: 74%; animation-delay: 2s; }
.card__viz--memory::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(20deg, transparent 49.6%, rgba(240,194,123,0.25) 50%, transparent 50.4%) 0 0 / 100% 100%,
    linear-gradient(-35deg, transparent 49.6%, rgba(240,194,123,0.2) 50%, transparent 50.4%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 55%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 55%, #000, transparent);
}
@keyframes twinkle { 0%, 100% { transform: scale(0.7); opacity: 0.5; } 50% { transform: scale(1.3); opacity: 1; } }

/* 3d cube */
.card__viz--3d { display: grid; place-items: center; perspective: 600px; }
.cube { width: 70px; height: 70px; position: relative; transform-style: preserve-3d; animation: spin 10s linear infinite; }
.cube i {
  position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.5);
  background: linear-gradient(135deg, rgba(255,59,92,0.25), rgba(255,138,61,0.05));
  backdrop-filter: blur(2px);
}
.cube i:nth-child(1) { transform: translateZ(35px); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(35px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(35px); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(35px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(35px); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(35px); }
@keyframes spin { to { transform: rotateX(360deg) rotateY(720deg); } }

/* lock */
.card__viz--lock { display: grid; place-items: center; }
.lock { width: 56px; height: 44px; border-radius: 12px; background: linear-gradient(#fff, #d8d8dc); position: relative; box-shadow: 0 20px 50px -10px rgba(255,255,255,0.3); }
.lock::before { content: ""; position: absolute; left: 10px; right: 10px; top: -26px; height: 40px; border: 6px solid #e8e8ec; border-bottom: 0; border-radius: 22px 22px 0 0; animation: lockShackle 4s var(--ease) infinite; transform-origin: right bottom; }
.lock i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; background: #000; border-radius: 50%; }
@keyframes lockShackle { 0%, 60%, 100% { transform: translateY(0); } 75%, 85% { transform: translateY(-8px); } }

/* ---------- Quote ---------- */
.quote { position: relative; padding: clamp(120px, 18vh, 240px) var(--pad); text-align: center; overflow: hidden; }
.quote__bg {
  position: absolute; left: 50%; top: 50%; width: 140vmin; height: 140vmin; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,59,92,0.18), transparent 55%); filter: blur(30px);
}
.quote__text {
  position: relative; margin: 0 auto; max-width: 1000px;
  font-size: clamp(32px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600;
  display: flex; flex-direction: column; gap: 0.1em;
}
.quote__text em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--accent-2); }
.quote__by { position: relative; margin-top: 28px; color: var(--muted); font-size: 15px; }

/* ---------- Download ---------- */
.download { padding: clamp(60px, 10vh, 140px) 0 clamp(80px, 12vh, 160px); }
.download .section-head { text-align: center; }
.download .lead { margin-left: auto; margin-right: auto; }
.platforms {
  max-width: var(--max); margin: clamp(48px, 7vh, 80px) auto 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.platform {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 32px 28px 28px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.6s var(--ease), border-color 0.4s, background 0.4s, box-shadow 0.6s;
}
.platform::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(135deg, rgba(255,59,92,0.25), transparent 50%, rgba(240,194,123,0.15));
  transition: opacity 0.4s;
}
.platform:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.22); box-shadow: 0 40px 80px -30px var(--glow); }
.platform:hover::after { opacity: 1; }
.platform__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line);
}
.platform__icon svg { width: 28px; height: 28px; fill: #fff; }
.platform h3 { font-size: 26px; letter-spacing: -0.03em; font-weight: 600; }
.platform p { color: var(--muted); font-size: 14px; }
.platform__btn {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 0 18px; height: 42px; border-radius: 999px; background: var(--text); color: #000; font-weight: 600; font-size: 14px;
  transition: gap 0.3s, background 0.3s;
}
.platform__btn i { font-style: normal; transition: transform 0.4s var(--ease); }
.platform:hover .platform__btn { gap: 12px; background: #fff; }
.platform:hover .platform__btn i { transform: translateX(3px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer__tag { color: var(--muted); font-size: 14px; }
.footer__links { display: flex; gap: 22px; font-size: 14px; color: var(--muted-2); }
.footer__links a:hover { color: var(--text); }
.footer__copy { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 999px; font-size: 14px;
  background: rgba(20,20,24,0.85); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; transition: opacity 0.4s, transform 0.5s var(--ease); pointer-events: none;
  white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .desktop__steps { gap: 24px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .mobile__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { padding: 12px 14px; }
  .nav__links { display: none; }
  .nav__inner { height: 52px; padding: 0 6px 0 16px; }

  .hero { padding-top: 96px; padding-bottom: 72px; min-height: 100svh; }
  .hero__title { font-size: clamp(48px, 15vw, 84px); }
  .hero__sub { font-size: 16px; }
  .hero__video-wrap { height: clamp(300px, 46vh, 460px); }
  .hero__cta { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .btn--store { height: 56px; justify-content: flex-start; }
  .hero__scroll { display: none; }

  .desktop__steps { grid-template-columns: 1fr; gap: 20px; }
  .chip { font-size: 12px; padding: 8px 12px 8px 10px; }
  .chip--3 { display: none; }
  .chip--1 { left: auto; right: 3%; top: auto; bottom: 10%; }

  .mobile__inner { grid-template-columns: 1fr; gap: 56px; }
  .mobile__stage { order: -1; }
  .phone { width: min(280px, 72vw); }
  .phone__glow { width: 360px; height: 360px; }

  .bento { grid-template-columns: 1fr; }
  .card, .card--wide { grid-column: auto; min-height: 260px; }

  .platforms { grid-template-columns: 1fr; }
  .platform { padding: 26px 22px 22px; }

  .footer__inner { grid-template-columns: 1fr; gap: 16px; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .word { transform: none; }
}
