@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/Fredoka_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter_600SemiBold.ttf') format('truetype'); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #070a16; --bg2: #0d1226; --card: #121936; --card2: #172043; --line: rgba(255,255,255,.08);
  --text: #f4f6ff; --muted: #a3aed3; --teal: #2fd6c2; --teal2: #5bf0dc; --gold: #ffc96b; --coral: #ff6f61; --lilac: #9b7bff; --mint: #5fd68d; --blue: #5e94ff;
  --radius: 24px; --shadow: 0 30px 80px rgba(0,0,0,.45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans JP', sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a1200; padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
h1, h2, h3, .brand { font-family: 'Fredoka', 'Inter', system-ui, sans-serif; font-weight: 700; letter-spacing: -.5px; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(47,214,194,.12); border: 1px solid rgba(47,214,194,.3); color: var(--teal2); font-size: 13px; font-weight: 600; }
.sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 38em; margin: 14px 0 0; }
.center { text-align: center; } .center .sub { margin-inline: auto; }

/* smart app banner (phones only) */
.appbar { display: none; position: sticky; top: 0; z-index: 60; background: rgba(13,18,38,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 10px 14px; align-items: center; gap: 12px; }
html[data-platform="ios"] .appbar.on, html[data-platform="android"] .appbar.on { display: flex; }
.appbar img { width: 42px; height: 42px; border-radius: 11px; }
.appbar b { display: block; font-size: 14px; line-height: 1.2; } .appbar small { color: var(--muted); font-size: 12px; }
.appbar .grow { flex: 1; min-width: 0; }
.appbar button.x { background: none; border: 0; color: var(--muted); font-size: 22px; padding: 6px 10px; cursor: pointer; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: linear-gradient(135deg, var(--teal2), var(--teal)); color: #04201d; font-weight: 700; border: 0; text-decoration: none; cursor: pointer; font-size: 15px; box-shadow: 0 10px 30px rgba(47,214,194,.28); transition: transform .2s, box-shadow .2s; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(47,214,194,.4); }

header.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(7,10,22,.72); border-bottom: 1px solid var(--line); }
html[data-platform="ios"] .appbar.on ~ header.top, html[data-platform="android"] .appbar.on ~ header.top { top: 63px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-size: 28px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { color: var(--teal); }
.links { display: flex; gap: 26px; }
.links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; } .links a:hover { color: var(--text); }
.navr { display: flex; align-items: center; gap: 12px; }
.lang select { appearance: none; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a3aed3' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 9px 34px 9px 14px; font: 600 14px 'Inter', sans-serif; cursor: pointer; }
html[dir="rtl"] .lang select { background-position: left 12px center; padding: 9px 14px 9px 34px; }

/* hero */
.hero { padding-top: clamp(36px, 6vw, 80px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto -10%; height: 90%; background: radial-gradient(60% 60% at 70% 30%, rgba(47,214,194,.22), transparent 60%), radial-gradient(50% 50% at 15% 10%, rgba(155,123,255,.2), transparent 60%); pointer-events: none; }
.herogrid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 7vw, 82px); margin: 18px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--teal2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 22px 8px 16px; border-radius: 16px; background: #000; border: 1px solid rgba(255,255,255,.22); text-decoration: none; transition: transform .2s, border-color .2s; position: relative; }
.store:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.5); }
.store svg { width: 30px; height: 30px; flex: none; }
.store small { display: block; font-size: 11px; color: #cfd6f3; line-height: 1.1; } .store strong { display: block; font-size: 19px; line-height: 1.15; font-family: 'Fredoka', sans-serif; letter-spacing: 0; }
.store .soon { position: absolute; top: -9px; inset-inline-end: 12px; background: var(--gold); color: #2a1b00; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.store.rel .soon { display: none; }
html[data-platform="ios"] .store-as { order: -1; } html[data-platform="android"] .store-gp { order: -1; }
html[data-platform="ios"] .store-gp, html[data-platform="android"] .store-as { opacity: .78; }
.note { margin-top: 16px; color: var(--muted); font-size: 14px; }

.phones { position: relative; height: min(640px, 92vw); display: flex; justify-content: center; align-items: center; }
.phone { position: absolute; width: min(250px, 46vw); aspect-ratio: 1290/2796; border-radius: 34px; overflow: hidden; border: 3px solid rgba(255,255,255,.18); box-shadow: var(--shadow); background: #0a0d1a; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.p1 { transform: translateX(-62%) rotate(-8deg) scale(.88); z-index: 1; animation: float 7s ease-in-out infinite; }
.phone.p2 { z-index: 3; animation: float 6s ease-in-out -2s infinite; }
.phone.p3 { transform: translateX(62%) rotate(8deg) scale(.88); z-index: 1; animation: float 8s ease-in-out -4s infinite; }
html[dir="rtl"] .phone.p1 { transform: translateX(62%) rotate(8deg) scale(.88); } html[dir="rtl"] .phone.p3 { transform: translateX(-62%) rotate(-8deg) scale(.88); }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.gem { position: absolute; width: 38px; height: 38px; border-radius: 10px; opacity: .85; animation: drift 9s ease-in-out infinite; box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), inset 0 5px 0 rgba(255,255,255,.35); }
.g1 { background: var(--teal); top: 6%; inset-inline-start: 2%; } .g2 { background: var(--gold); top: 70%; inset-inline-start: 4%; animation-delay: -3s; width: 28px; height: 28px; }
.g3 { background: var(--coral); top: 12%; inset-inline-end: 4%; animation-delay: -5s; width: 30px; height: 30px; } .g4 { background: var(--lilac); top: 78%; inset-inline-end: 8%; animation-delay: -2s; }
@keyframes drift { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(8deg); } }

/* stats */
.stats { padding: 0; }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg2); padding: 28px 18px; text-align: center; }
.stat b { display: block; font-family: 'Fredoka', sans-serif; font-size: clamp(34px, 5vw, 52px); background: linear-gradient(120deg, var(--teal2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 44px; }
.card { background: linear-gradient(160deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(47,214,194,.4); }
.card h3 { font-size: 22px; margin: 16px 0 8px; } .card p { color: var(--muted); margin: 0; font-size: 15px; }
.ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.07); }
.ic svg { width: 24px; height: 24px; stroke-width: 2; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.b2 { grid-column: span 2; } .b3 { grid-column: span 3; }
.c-teal .ic { color: var(--teal); background: rgba(47,214,194,.14); } .c-gold .ic { color: var(--gold); background: rgba(255,201,107,.14); } .c-coral .ic { color: var(--coral); background: rgba(255,111,97,.14); } .c-lilac .ic { color: var(--lilac); background: rgba(155,123,255,.16); } .c-mint .ic { color: var(--mint); background: rgba(95,214,141,.14); } .c-blue .ic { color: var(--blue); background: rgba(94,148,255,.16); }

/* modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.mode { text-align: start; }
/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg2); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; inset-inline-start: 24px; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(135deg, var(--teal2), var(--teal)); color: #04201d; display: grid; place-items: center; font: 700 20px 'Fredoka', sans-serif; }
.step h3 { font-size: 22px; margin: 10px 0 6px; } .step p { margin: 0; color: var(--muted); }
/* shots */
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 34px 4px 20px; margin-top: 12px; scrollbar-width: thin; }
.shots figure { margin: 0; flex: none; width: min(260px, 62vw); scroll-snap-align: center; }
.shots img { width: 100%; border-radius: 28px; border: 2px solid rgba(255,255,255,.14); box-shadow: var(--shadow); aspect-ratio: 1290/2796; object-fit: cover; }
/* themes */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.theme { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.theme .sw { display: flex; gap: 8px; margin-bottom: 18px; } .theme .sw i { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), inset 0 4px 0 rgba(255,255,255,.3); }
.theme h3 { font-size: 20px; }
/* faq */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 24px; line-height: 1; } .faq details[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; } .faq p { margin: 0 0 18px; color: var(--muted); }
/* cta */
.cta { border-radius: 36px; padding: clamp(32px, 6vw, 64px); background: radial-gradient(70% 90% at 80% 0%, rgba(47,214,194,.25), transparent 60%), linear-gradient(160deg, #1c2760, #0f1636); border: 1px solid rgba(47,214,194,.3); display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(32px, 5vw, 56px); }
.qr { background: #fff; border-radius: 22px; padding: 14px; width: 190px; justify-self: center; text-align: center; color: #0a0d1a; display: none; }
html[data-platform="desktop"] .qr { display: block; } .qr svg { width: 100%; height: auto; } .qr small { display: block; font-size: 12px; font-weight: 600; margin-top: 6px; line-height: 1.3; }
footer.foot { border-top: 1px solid var(--line); padding: 48px 0 60px; color: var(--muted); font-size: 14px; }
.footgrid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 32px; }
.footgrid h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; }
.footgrid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .footgrid ul.langs { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; }
.footgrid a { text-decoration: none; } .footgrid a:hover { color: var(--text); }
.legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; } .reveal.in { opacity: 1; transform: none; }
.opening { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.opening img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 22px; box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .links { display: none; } .herogrid, .cta { grid-template-columns: 1fr; } .phones { height: 520px; }
  .statgrid, .modes, .themes { grid-template-columns: repeat(2, 1fr); } .bento { grid-template-columns: 1fr 1fr; } .b2, .b3 { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; } .footgrid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .bento, .modes { grid-template-columns: 1fr; } .store { flex: 1 1 100%; } .navr .pill { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }
.b6 { grid-column: 1 / -1; }
