:root {
    --ink: #1b1440;
    --ink-2: #2b2170;
    --purple: #7663df;
    --purple-soft: #a99cf0;
    --yellow: #f6b73f;
    --yellow-deep: #e9a01c;
    --green: #00ac80;
    --cream: #fff8ec;
    --muted: #cfc8f5;
    --card: rgba(255, 255, 255, .06);
    --line: rgba(255, 255, 255, .12);
    --radius: 22px;
    --wrap: 1180px;
    --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--cream);
    background: var(--ink);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip {
    position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
    background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

/* ---------- nav ---------- */
.nav {
    position: fixed; inset-inline: 0; top: 0; z-index: 50;
    transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
.nav.is-solid {
    background: rgba(27, 20, 64, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
.nav__row { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; }
.brand img { border-radius: 11px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.nav__links { display: flex; gap: 28px; margin-inline-start: auto; font-weight: 500; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--cream); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang {
    font: inherit; font-weight: 600; font-size: .85rem; color: var(--cream);
    background: transparent; border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px; cursor: pointer; transition: background .2s, border-color .2s;
}
.lang:hover { background: var(--card); border-color: rgba(255, 255, 255, .3); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--yellow); color: var(--ink); font-weight: 700;
    border-radius: 999px; padding: 12px 22px;
    box-shadow: 0 10px 26px rgba(246, 183, 63, .28);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: #ffc85c; box-shadow: 0 14px 30px rgba(246, 183, 63, .38); }
.btn--small { padding: 9px 18px; font-size: .92rem; }

/* ---------- hero ---------- */
.hero {
    position: relative; min-height: min(100svh, 980px); display: flex; align-items: center;
    padding: 120px 0 90px; isolation: isolate; overflow: hidden;
    background:
        radial-gradient(1200px 700px at 78% 30%, rgba(118, 99, 223, .55), transparent 60%),
        radial-gradient(900px 600px at 10% 90%, rgba(0, 172, 128, .18), transparent 60%),
        linear-gradient(180deg, #241b5c 0%, var(--ink) 100%);
}
[dir="ltr"] .hero {
    background:
        radial-gradient(1200px 700px at 22% 30%, rgba(118, 99, 223, .55), transparent 60%),
        radial-gradient(900px 600px at 90% 90%, rgba(0, 172, 128, .18), transparent 60%),
        linear-gradient(180deg, #241b5c 0%, var(--ink) 100%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s ease; }
.hero__canvas.is-ready { opacity: 1; }
.hero__glow {
    position: absolute; z-index: -2; width: 520px; height: 520px; border-radius: 50%;
    inset-inline-end: 8%; top: 18%; filter: blur(90px); opacity: .35;
    background: radial-gradient(circle, var(--yellow), transparent 65%);
}
.hero__content { max-width: var(--wrap); }
.hero__content > * { max-width: 560px; }
.hero__content > h1 { max-width: 760px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: 999px;
    padding: 6px 14px; font-size: .9rem; color: var(--muted); margin-bottom: 22px;
    backdrop-filter: blur(6px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 172, 128, .25); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -.01em; }
[dir="ltr"] .hero h1 { letter-spacing: -.035em; }
.hero h1 span { display: block; }
.accent {
    color: var(--yellow);
    background: linear-gradient(90deg, #ffd27a, var(--yellow) 40%, #ff9f43);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); margin: 22px 0 32px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
    display: inline-flex; align-items: center; gap: 10px; min-width: 176px;
    padding: 10px 18px; border-radius: 16px;
    background: rgba(255, 255, 255, .96); color: var(--ink);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    transition: transform .2s, box-shadow .2s;
}
.store:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0, 0, 0, .32); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; }
.store__text small { font-size: .72rem; opacity: .7; }
.store__text b { font-size: 1.08rem; }

.rating { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.stars { color: var(--yellow); letter-spacing: 2px; }

.scroll-cue {
    position: absolute; bottom: 26px; inset-inline-start: 50%; translate: -50% 0;
    width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 20px;
}
[dir="rtl"] .scroll-cue { translate: 50% 0; }
.scroll-cue span {
    position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
    border-radius: 2px; background: var(--cream); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 130px) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, rgba(118, 99, 223, .1), rgba(118, 99, 223, .02)); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker { color: var(--yellow); font-weight: 600; margin-bottom: 12px; }
.section h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
    position: relative; padding: 28px 24px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line);
    transition: transform .35s ease, border-color .35s ease, background .35s ease;
    overflow: hidden;
}
.card::after {
    content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 183, 63, .18), transparent 70%); opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(246, 183, 63, .45); background: rgba(255, 255, 255, .08); }
.card:hover::after { opacity: 1; }
.card__icon {
    width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-deep)); color: var(--ink);
    box-shadow: 0 10px 24px rgba(246, 183, 63, .25);
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: rgba(27, 20, 64, .6); border: 1px solid var(--line); }
.step__num {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    font-weight: 700; font-size: 1.2rem; margin-bottom: 18px;
    color: var(--ink); background: var(--cream);
}
.step:nth-child(2) .step__num { background: var(--yellow); }
.step:nth-child(3) .step__num { background: var(--green); color: #fff; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

.cta {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: clamp(32px, 5vw, 64px); border-radius: 32px;
    background:
        radial-gradient(600px 300px at 85% 20%, rgba(246, 183, 63, .35), transparent 70%),
        linear-gradient(135deg, var(--purple), #5b49c9);
    box-shadow: 0 30px 80px rgba(46, 33, 140, .45);
    overflow: hidden;
}
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 8px; }
.cta p { color: #efeaff; margin-bottom: 26px; font-size: 1.1rem; }
.cta__icon { width: clamp(140px, 20vw, 220px); border-radius: 22%; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); rotate: -8deg; transition: rotate .5s ease; }
.cta:hover .cta__icon { rotate: 0deg; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: #150f35; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h3 { font-size: 1rem; margin-bottom: 14px; color: var(--cream); }
.footer__tag { color: var(--muted); margin-top: 14px; max-width: 320px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.footer__list a:hover { color: var(--yellow); }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: rgba(207, 200, 245, .7); font-size: .9rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .nav__links { display: none; }
    .nav__actions { margin-inline-start: auto; }
    .hero { align-items: flex-end; padding-bottom: 110px; }
    .hero__content > * { max-width: none; }
    .steps, .cards { grid-template-columns: 1fr; }
    .cta { flex-direction: column-reverse; text-align: center; }
    .cta .stores { justify-content: center; }
    .footer__grid { grid-template-columns: 1fr; }
    .store { flex: 1 1 160px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-cue span { animation: none; }
}
