:root {
    --primary: #1B5E9E;
    --indigo: #4F46E5;
    --violet: #7C3AED;
    --cyan: #06B6D4;
    --accent: #FFB300;
    --success: #0E7A3B;
    --error: #B42318;
    --pending: #8A6D00;
    --processing: #0B5FFF;

    --bg: #F6F8FB;
    --surface: #FFFFFF;
    --surface-variant: #EEF2F8;
    --outline: #D4DBE6;
    --ink: #0E1726;
    --muted: #5B6678;

    --dark-bg: #0B0F17;
    --dark-surface: #141A24;
    --dark-variant: #1D2531;
    --dark-outline: #2C3645;
    --dark-ink: #EAF0F8;
    --dark-muted: #9AA8BC;

    --grad: linear-gradient(120deg, #1B5E9E, #4F46E5 38%, #7C3AED 68%, #06B6D4);
    --grad-warm: linear-gradient(100deg, #FFD68A, #FBCFE8 50%, #A5F3FC);

    --r-card: 12px;
    --r-input: 8px;
    --r-pill: 20px;
    --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--outline);
    transition: transform .35s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .inner {
    max-width: var(--maxw);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.site-header nav a:hover { color: var(--primary); text-decoration: none; }
.site-header nav .nav-cta {
    color: #fff;
    background: var(--grad);
    padding: 9px 18px;
    border-radius: var(--r-card);
    font-size: 14px;
}
.site-header nav .nav-cta:hover { color: #fff; filter: brightness(1.08); }
.legal-nav a { margin-left: 16px; }

/* ---------- WebGL stage ---------- */
.stage {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}
html.webgl .stage { opacity: 1; transition: opacity .7s ease; }

main { position: relative; }
main section { position: relative; z-index: auto; }

/* ---------- Shared type ---------- */
.eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--primary);
    margin: 0 0 14px;
}
.eyebrow.light { color: rgba(255, 255, 255, 0.85); }
h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.3rem);
    line-height: 1.06;
    letter-spacing: -0.028em;
    font-weight: 700;
    margin: 0 0 20px;
}
h2 {
    font-size: clamp(1.9rem, 3.8vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.024em;
    font-weight: 700;
    margin: 0 0 16px;
}
.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.grad-warm {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead { font-size: 19px; max-width: 560px; margin: 0 0 30px; color: rgba(255, 255, 255, 0.93); }
.sub { font-size: 17.5px; color: var(--muted); max-width: 620px; margin: 0 0 26px; }
.copy.centered { text-align: center; }
.copy.centered .sub { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    padding: 90px 0 110px;
    background: linear-gradient(125deg, #1B5E9E 0%, #4F46E5 38%, #7C3AED 68%, #06B6D4 100%);
    background-size: 240% 240%;
    animation: gradientShift 18s ease infinite;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(52px);
    opacity: 0.5;
    pointer-events: none;
}
.glow-1 { width: 420px; height: 420px; top: -120px; left: -80px; background: radial-gradient(circle, var(--cyan), transparent 70%); animation: floatSlow 14s ease-in-out infinite; }
.glow-2 { width: 340px; height: 340px; bottom: -100px; right: -60px; background: radial-gradient(circle, #EC4899, transparent 70%); animation: floatSlow 18s ease-in-out infinite reverse; }
.glow-3 { width: 240px; height: 240px; top: 38%; right: 26%; background: radial-gradient(circle, var(--accent), transparent 70%); animation: float 12s ease-in-out infinite; opacity: 0.35; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-buttons.center { justify-content: center; }
.store-badge { display: inline-block; position: relative; transition: transform .18s ease; }
.store-badge img { height: 56px; width: auto; display: block; }
a.store-badge:hover { transform: translateY(-3px); }
.store-badge.soon img { opacity: 0.6; }
.store-badge.soon em {
    position: absolute;
    top: -9px;
    right: -8px;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: rgba(14, 23, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 2px 9px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}
html.plat-android .store-badge.soon { display: none; }
html.plat-ios .store-badge:not(.soon) { display: none; }
html.plat-ios .mobile-cta { display: none !important; }

.trust-strip {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 26px 0 0;
}
.trust-strip li {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    padding: 7px 14px;
    border-radius: var(--r-pill);
    backdrop-filter: blur(4px);
}
.scroll-cue {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 38px 0 0;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}
.cue-line {
    width: 44px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-warm);
    display: inline-block;
}

/* ---------- Hero phone mock (no-JS / no-WebGL tier) ---------- */
.hero-stage { position: relative; display: flex; justify-content: center; min-height: 520px; align-items: center; }
.phone-mock {
    display: none;
    width: 290px;
    background: #10192B;
    border-radius: 38px;
    padding: 14px 12px 18px;
    box-shadow: 0 34px 80px rgba(5, 10, 30, 0.45);
    color: var(--ink);
    animation: float 7s ease-in-out infinite;
}
html.no3d .phone-mock { display: block; }
.pm-notch { width: 90px; height: 16px; background: #060B16; border-radius: 10px; margin: 0 auto 10px; }
.pm-screen {
    position: relative;
    background: var(--bg);
    border-radius: 24px;
    overflow: hidden;
}
.pm-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
    transform: translateX(-100%);
    animation: mockShine 3.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes mockShine { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
.pm-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px 8px;
}
.pm-menu, .pm-cart { width: 18px; height: 18px; border-radius: 6px; background: var(--surface-variant); display: inline-block; }
.pm-word {
    font-weight: 700;
    font-size: 17px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pm-banner {
    margin: 0 10px;
    padding: 10px 12px;
    font-size: 10.5px;
    line-height: 1.45;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--r-card);
}
.pm-title { padding: 12px 14px 6px; font-weight: 700; font-size: 14px; }
.pm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 10px 14px;
}
.pm-tile {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--r-card);
    padding: 10px;
    overflow: hidden;
}
.pm-dot {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
}
.pm-tile b { display: block; font-size: 11px; font-weight: 600; }
.pm-tile i { display: block; font-style: normal; font-size: 11px; color: var(--primary); font-weight: 700; margin-top: 2px; }
.pm-tile em {
    position: absolute;
    top: 7px; right: -22px;
    transform: rotate(38deg);
    background: var(--success);
    color: #fff;
    font-style: normal;
    font-size: 7.5px;
    font-weight: 700;
    padding: 2px 24px;
}

/* ---------- Chapters ---------- */
.chapter { padding: 130px 0; }
.split {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 48px;
    align-items: center;
    min-height: 78vh;
}
.stage-slot { min-height: 560px; position: relative; }
.stage-slot.wide { min-height: 620px; }
.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.bullets li {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    color: var(--ink);
}
.bullets li::before {
    content: '';
    position: absolute;
    left: 0; top: 7px;
    width: 16px; height: 16px;
    border-radius: 5px;
    background: var(--grad);
    opacity: 0.9;
}
.telco-rail { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; }
.telco-rail li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--r-card);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.telco-rail li.active { border-color: transparent; box-shadow: 0 14px 34px rgba(16, 30, 60, 0.12); }
.tbar { width: 4px; min-height: 40px; border-radius: 2px; background: var(--c); flex-shrink: 0; align-self: stretch; }
.telco-rail b { font-size: 16.5px; }
.telco-rail p { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }

.step-rail { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.step-rail li {
    counter-increment: step;
    position: relative;
    padding: 16px 18px 16px 58px;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: var(--r-card);
    font-size: 15.5px;
    color: var(--muted);
    transition: color .3s ease, border-color .3s ease, box-shadow .3s ease, opacity .3s ease;
    opacity: 0.55;
}
.step-rail li::before {
    content: counter(step);
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--surface-variant);
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    transition: background .3s ease, color .3s ease;
}
.step-rail li.active { opacity: 1; color: var(--ink); border-color: transparent; box-shadow: 0 14px 34px rgba(16, 30, 60, 0.12); }
.step-rail li.active::before { background: var(--grad); color: #fff; }
html:not(.js) .step-rail li { opacity: 1; color: var(--ink); }

/* ---------- Security (dark chapter) ---------- */
.chapter.dark {
    background: var(--dark-bg);
    color: var(--dark-ink);
    padding: 150px 0 150px;
}
.chapter.dark .eyebrow { color: var(--cyan); }
.chapter.dark .sub { color: var(--dark-muted); }
.sec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 54px;
}
.sec-grid.three { max-width: 940px; margin-left: auto; margin-right: auto; }
.sec-card {
    background: var(--dark-surface);
    border: 1px solid var(--dark-outline);
    border-radius: var(--r-card);
    padding: 24px;
}
.sec-card h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; color: var(--dark-ink); }
.sec-card h3::before {
    content: '';
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 3px;
    background: var(--cyan);
    margin-right: 10px;
}
.sec-card p { margin: 0; font-size: 14.5px; color: var(--dark-muted); }

/* ---------- Everyday ---------- */
.container.narrow { max-width: 760px; }
.lang-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 30px 0 0;
}
.lang-pills li {
    padding: 10px 20px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--outline);
    font-weight: 600;
    font-size: 15px;
}

/* ---------- Finale ---------- */
.chapter.finale {
    position: relative;
    color: #fff;
    background: linear-gradient(125deg, #1B5E9E 0%, #4F46E5 38%, #7C3AED 68%, #06B6D4 100%);
    background-size: 240% 240%;
    animation: gradientShift 16s ease infinite;
    overflow: hidden;
    padding: 200px 0 420px;
}
.chapter.finale .sub { color: rgba(255, 255, 255, 0.92); }
.light-copy .sub { color: rgba(255, 255, 255, 0.92); }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    z-index: 3;
    background: var(--dark-bg);
    color: var(--dark-muted);
}
.footer-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 56px 24px 32px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: 40px;
}
.footer-col .brand { display: inline-block; margin-bottom: 14px; }
.footer-col p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: var(--dark-muted); }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 16px; }
.footer-col a {
    display: block;
    color: #AEBCD0;
    font-size: 14.5px;
    margin-bottom: 11px;
    transition: color .15s ease;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom .inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #7E90AC;
}
.footer-bottom p { margin: 0; }

/* ---------- Mobile CTA bar ---------- */
.mobile-cta {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 18px;
    background: rgba(14, 23, 38, 0.94);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(5, 10, 30, 0.4);
    backdrop-filter: blur(10px);
}
.mobile-cta[hidden] { display: none; }
.mc-word { color: #fff; font-weight: 700; font-size: 15px; flex: 1; }
.mc-btn {
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: var(--r-card);
}
.mc-btn:hover { color: #fff; text-decoration: none; }
.mc-close {
    background: none;
    border: 0;
    color: var(--dark-muted);
    font-size: 22px;
    line-height: 1;
    padding: 6px 8px;
    cursor: pointer;
}

/* ---------- Animations ---------- */
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes floatSlow { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(26px, -34px) scale(1.06); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

@supports (animation-timeline: view()) {
    html:not(.js) .chapter .copy > *, html:not(.js) .sec-card {
        animation: fadeUp linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 24%;
    }
}

/* ---------- Legal pages ---------- */
body.legal { background: var(--surface); }
.legal .site-header { background: #fff; }
.legal-content { max-width: 760px; margin: 0 auto; padding: 36px 24px 72px; }
.legal-content h1 {
    font-size: 32px; line-height: 1.2; margin: 8px 0 18px;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal-content h2 { font-size: 21px; margin: 38px 0 12px; padding-top: 8px; }
.legal-content h3 { font-size: 17px; margin: 24px 0 10px; }
.legal-content p { margin: 12px 0; color: #25303f; }
.legal-content ul { margin: 12px 0; padding-left: 22px; }
.legal-content li { margin: 6px 0; color: #25303f; }
.legal-content a { word-break: break-word; }
.legal-content hr { border: 0; border-top: 1px solid var(--outline); margin: 30px 0; }
.legal-content strong { color: var(--ink); }

/* ---------- Form (delete account) ---------- */
.form-card { max-width: 560px; margin: 24px auto 64px; padding: 0 24px; }
.form-card label { display: block; font-weight: 600; margin: 16px 0 6px; }
.form-card input, .form-card textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--outline); border-radius: 11px;
    font-size: 15px; font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-card input:focus, .form-card textarea:focus {
    outline: none; border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}
.form-card button {
    margin-top: 22px; color: #fff; border: 0;
    border-radius: var(--r-card); padding: 14px 24px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    background: var(--grad);
    transition: transform .16s ease, box-shadow .16s ease;
}
.form-card button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79, 70, 229, 0.32); }
.note { font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .site-header nav:not(.legal-nav) a:not(.nav-cta) { display: none; }
    .hero { min-height: 0; padding: 64px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .trust-strip, .store-buttons { justify-content: center; }
    .scroll-cue { justify-content: center; }
    .hero-stage { min-height: 480px; }
    .split { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
    .split .stage-slot { order: -1; min-height: 46vh; }
    .stage-slot.wide { min-height: 50vh; }
    html.no3d .split .stage-slot { min-height: 0; }
    .chapter { padding: 84px 0; }
    .sec-grid, .sec-grid.three { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (min-width: 881px) {
    .mobile-cta { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
