:root {
    --bg: #0d081e;
    --bg-soft: #150e2e;
    --surface: #1d1240;
    --border: #3b2a70;
    --text: #eef1ff;
    --text-dim: #9aa3c7;
    --primary: #7c5cff;
    --primary-2: #5a3df5;
    --gold: #ffd166;
    --danger: #ff5470;
    --radius: 14px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100dvh;
    color: var(--text);
    font-family: var(--font);
    background:
        radial-gradient(900px 480px at 50% -10%, rgba(124, 92, 255, .35), transparent 60%),
        radial-gradient(700px 420px at 100% 20%, rgba(216, 74, 255, .18), transparent 55%),
        var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.app-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    background: linear-gradient(180deg, rgba(8, 6, 18, .72), transparent);
}
.brand img { height: 44px; width: auto; display: block; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.hello {
    font-size: .82rem;
    color: var(--gold);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    text-align: center;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: .78rem; }
.btn-lg { width: 100%; height: 52px; font-size: 1rem; border-radius: 14px; }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 8px 24px rgba(124, 92, 255, .4);
}
.btn-accent {
    color: #042818;
    background: linear-gradient(135deg, #00ff88, #00e055);
    box-shadow: 0 8px 24px rgba(0, 255, 120, .35);
}
.btn-ghost {
    color: var(--text);
    background: transparent;
    border: 1px solid rgba(238, 241, 255, .28);
}
.btn:active { transform: translateY(1px); }

.lp-hero {
    position: relative;
    overflow: hidden;
    padding: calc(78px + env(safe-area-inset-top, 0px)) 16px 28px;
}
.lp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 6, 20, .35) 0%, rgba(13, 8, 30, .55) 42%, #0d081e 100%),
        url('../bg/background.png') center top / cover no-repeat;
    pointer-events: none;
}
.lp-hero-inner { position: relative; max-width: 480px; margin: 0 auto; text-align: center; }
.lp-title {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: -.04em;
    white-space: nowrap;
    font-size: clamp(0.86rem, 3.55vw, 1.45rem);
    font-weight: 900;
    line-height: 1.05;
}
.lp-title-break { display: none; }
.lp-title-accent { color: var(--gold); text-shadow: 0 0 18px rgba(255, 209, 102, .45); }
.lp-title-money { color: #00e5a8; text-shadow: 0 0 18px rgba(0, 229, 168, .45); }

.phone-frame {
    position: relative;
    display: block;
    width: min(280px, 78vw);
    margin: 30px auto 24px;
    border-radius: 24px;
    isolation: isolate;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
}
.phone-frame::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 29px;
    padding: 5px;
    background: conic-gradient(from var(--card-spin), #8b5cf6 0deg, #d84aff 70deg, #ff69dc 135deg, #ffd166 190deg, #f05bd8 245deg, #a855f7 305deg, #8b5cf6 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: card-border-spin 2.2s linear infinite;
    pointer-events: none;
    z-index: 2;
}
.phone-frame::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 30px;
    z-index: -1;
    box-shadow: 0 0 14px rgba(168, 85, 247, .55), 0 0 30px rgba(216, 74, 255, .38);
}
@property --card-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes card-border-spin { to { --card-spin: 360deg; } }
.phone-frame video {
    display: block;
    width: 100%;
    border-radius: 22px;
    background: #12062b;
    position: relative;
    z-index: 1;
}
.lp-video-badge {
    z-index: 6;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    background: #12062b;
    border: 3px solid #f05bd8;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: .76rem;
    font-weight: 900;
    box-shadow: 0 0 0 5px #12062b, 0 0 18px rgba(240, 91, 216, .8);
}
.lp-video-badge strong { color: #f05bd8; }
.lp-video-badge-icon { fill: #fff; width: 1.05em; height: 1.05em; vertical-align: -.14em; margin-right: 5px; }

.hero-actions { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto 8px; }
.lp-btn-primary {
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 255, 120, .45);
}
.lp-btn-link { color: var(--text-dim); font-size: .9rem; font-weight: 600; padding: 8px; }

.lp-howto {
    background: rgba(0, 0, 0, .22);
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 44px 0 48px;
}
.lp-howto-head { text-align: center; margin-bottom: 28px; padding: 0 16px; }
.lp-howto-icon { width: 36px; height: 36px; color: #00e5a8; display: inline-flex; justify-content: center; margin-bottom: 10px; }
.lp-howto-icon svg { width: 28px; height: 28px; }
.lp-howto-head h2 { margin: 0; text-transform: uppercase; letter-spacing: .04em; font-size: 1.55rem; }
.lp-howto-head p { margin: 8px 0 0; color: var(--text-dim); font-size: .9rem; }
.section-title {
    margin: 0 0 8px;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.55rem;
    font-weight: 900;
}
.section-sub { margin: 0 0 22px; text-align: center; color: var(--text-dim); }
.howto-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 16px 8px;
}
.howto-row::-webkit-scrollbar { display: none; }
.howto-card {
    flex: 0 0 min(72vw, 260px);
    scroll-snap-align: start;
    background: rgba(14, 18, 34, .92);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    overflow: hidden;
}
.howto-visual { aspect-ratio: 3; background: #0a0e1a; position: relative; overflow: hidden; }
.howto-visual img { width: 100%; height: 100%; object-fit: contain; display: block; }
.howto-visual.is-board { background: radial-gradient(circle at 50% 30%, rgba(168, 85, 247, .22), transparent 55%), #0a0818; }
.howto-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #00e5a8;
    color: #041510;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(0, 229, 168, .45);
}
.board {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    padding: 8px 10px;
    align-content: center;
}
.board b {
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: inset -4px -6px 8px rgba(0, 0, 0, .25), 0 4px 8px rgba(0, 0, 0, .25);
}
.howto-card h3 { margin: 10px 12px 2px; font-size: .95rem; }
.howto-card p { margin: 0 12px 12px; color: var(--text-dim); font-size: .82rem; }

.lp-social { padding: 8px 16px 28px; max-width: 720px; margin: 0 auto; }
.reviews { display: flex; flex-direction: column; gap: 12px; }
.review {
    background: rgba(20, 14, 42, .9);
    border: 1px solid rgba(124, 92, 255, .25);
    border-radius: 16px;
    padding: 14px 14px 12px;
}
.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.review p { margin: 0 0 16px; font-size: .92rem; line-height: 1.55; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author strong { display: block; font-size: .9rem; }
.review-author small { color: #00e5a8; font-size: .75rem; }
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #00c2ff);
}

.lp-cta {
    max-width: 480px;
    margin: 0 auto;
    padding: 36px 16px 48px;
    text-align: center;
}
.lp-cta h2 { margin: 0 0 10px; font-size: 1.5rem; }
.lp-cta p { margin: 0 0 22px; color: var(--text-dim); }
.lp-cta .btn { max-width: 360px; margin: 0 auto; }

.site-footer {
    padding: 28px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    color: var(--text-dim);
    font-size: .82rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-footer img { height: 56px; width: auto; margin-bottom: 14px; }
.site-footer p { margin: 4px 0; }
.site-footer p:last-child { font-size: .75rem; opacity: .8; }

@media (min-width: 768px) {
    .lp-title { white-space: normal; font-size: 3.4rem; letter-spacing: -.02em; }
    .lp-title-break { display: initial; }
    .lp-hero-inner, .lp-social, .lp-cta { max-width: 720px; }
}

.auth-shell { min-height: 100dvh; display: flex; position: relative; }
.auth-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 24, .28), rgba(8, 12, 24, .48)),
        url('../bg/background.png') center top / cover no-repeat;
}
.auth-page {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: calc(32px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px));
}
.auth-logo img {
    height: 84px;
    width: auto;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}
.auth-card {
    width: min(420px, 100%);
    background: rgba(24, 13, 46, .85);
    border: 1px solid rgba(216, 74, 255, .28);
    border-radius: 14px;
    padding: 22px 18px 18px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .35);
}
.auth-card h1 { margin: 0 0 6px; font-size: 1.6rem; }
.muted { margin: 0 0 16px; color: var(--text-dim); }
.auth-card form { display: flex; flex-direction: column; gap: 10px; }
.input {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 17px;
    border-radius: 10px;
    outline: none;
    padding: 13px 14px;
}
.input:focus { border-color: var(--primary); }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 48px; }
.eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #c9d0f0;
    cursor: pointer;
}
.form-error {
    margin: 0;
    color: var(--danger);
    font-size: .82rem;
}
.auth-switch { margin: 14px 0 0; text-align: center; color: #d5dbf5; }
.auth-switch a { color: #fff; font-weight: 800; }
.ok-box { text-align: center; }
.ok-box h1 { color: var(--gold); }
