:root {
    --green: #7FB407;
    --green-light: #8FCE00;
    --green-dark: #6A9806;
    --green-glow: rgba(127, 180, 7, 0.25);
    --purple-deep: #0C0118;
    --purple-dark: #1A0A2E;
    --purple-mid: #2D1B4E;
    --purple-light: #5a4a6e;
    --bg-light: #F5F5F8;
    --white: #FFFFFF;
    --text-dark: #1C1C1E;
    --text-secondary: #6B7280;
    --text-on-dark: rgba(255, 255, 255, 0.92);
    --text-on-dark-dim: rgba(255, 255, 255, 0.55);
    --luck-1: #EE5449;
    --luck-2: #F98178;
    --luck-3: #78909C;
    --luck-4: #6B9805;
    --luck-5: #8FCE00;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.08);
    --transition: .3s ease;
    --max-w: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65; color: var(--text-dark); background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(12, 1, 24, .82);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background var(--transition);
}
.nav .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.1rem; color: var(--white);
}
.nav-brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    color: var(--text-on-dark-dim); font-size: .9rem; font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--green-light); }
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 28px; height: 20px; position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: ''; display: block; width: 100%; height: 2px;
    background: var(--white); border-radius: 2px;
    position: absolute; left: 0; transition: var(--transition);
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle::before { top: 0; }
.nav-toggle::after { bottom: 0; }

/* ---- Hero ---- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 24px 80px;
    background: linear-gradient(160deg, var(--purple-deep) 0%, var(--purple-dark) 35%, var(--purple-mid) 70%, var(--purple-light) 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    top: 30%; left: 50%; transform: translate(-50%, -50%);
    pointer-events: none; animation: glow-pulse 6s ease-in-out infinite;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-logo {
    width: 120px; height: 120px; margin: 0 auto 28px;
    border-radius: 28px;
    box-shadow: 0 0 60px var(--green-glow), 0 8px 32px rgba(0,0,0,.3);
    animation: logo-float 5s ease-in-out infinite;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800;
    color: var(--white); line-height: 1.15; margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.hero h1 span { color: var(--green-light); }
.hero-tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem); font-weight: 500;
    color: var(--green-light); margin-bottom: 16px;
}
.hero-sub {
    font-size: 1.05rem; color: var(--text-on-dark-dim);
    max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--green); color: var(--white);
    padding: 14px 32px; border-radius: 50px;
    font-weight: 600; font-size: 1.05rem;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(127, 180, 7, .35);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(127, 180, 7, .45); }
.hero-cta svg { width: 22px; height: 22px; }

/* ---- Section common ---- */
.section { padding: 100px 24px; }
.section-dark {
    background: linear-gradient(170deg, var(--purple-dark), var(--purple-mid));
    color: var(--text-on-dark);
}
.section-light { background: var(--bg-light); }
.section-white { background: var(--white); }
.section-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800;
    text-align: center; margin-bottom: 12px; letter-spacing: -0.01em;
}
.section-subtitle {
    text-align: center; max-width: 560px; margin: 0 auto 56px;
    font-size: 1.05rem; line-height: 1.7;
}
.section-dark .section-subtitle { color: var(--text-on-dark-dim); }
.section-light .section-subtitle,
.section-white .section-subtitle { color: var(--text-secondary); }

/* ---- Features ---- */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px; max-width: 960px; margin: 0 auto;
}
.feature-card {
    background: var(--white); border-radius: var(--radius); padding: 32px 28px;
    box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(0,0,0,.04);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: var(--white); font-size: 1.3rem;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .92rem; color: var(--text-secondary); line-height: 1.6; }

/* ---- How it works ---- */
.steps { display: flex; gap: 32px; max-width: 900px; margin: 0 auto; }
.step {
    flex: 1; text-align: center; position: relative; padding: 0 12px;
}
.step-num {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800;
    background: var(--green); color: var(--white);
    box-shadow: 0 0 30px var(--green-glow);
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.step p { font-size: .95rem; color: var(--text-on-dark-dim); line-height: 1.6; }
.step + .step::before {
    content: ''; position: absolute; top: 28px; right: 100%; width: 32px; height: 2px;
    background: rgba(255,255,255,.15);
}

/* ---- Luck scale ---- */
.luck-scale {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    max-width: 700px; margin: 0 auto;
}
.luck-item {
    flex: 1; min-width: 110px; text-align: center; padding: 24px 16px;
    border-radius: var(--radius); background: var(--white);
    box-shadow: var(--shadow); transition: transform var(--transition);
}
.luck-item:hover { transform: translateY(-3px); }
.luck-dot {
    width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--white); font-size: 1.1rem;
}
.luck-item:nth-child(1) .luck-dot { background: var(--luck-1); }
.luck-item:nth-child(2) .luck-dot { background: var(--luck-2); }
.luck-item:nth-child(3) .luck-dot { background: var(--luck-3); }
.luck-item:nth-child(4) .luck-dot { background: var(--luck-4); }
.luck-item:nth-child(5) .luck-dot { background: var(--luck-5); }
.luck-label { font-size: .82rem; color: var(--text-secondary); font-weight: 500; }

/* ---- Premium ---- */
.premium-card {
    max-width: 720px; margin: 0 auto; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
    padding: 52px 48px; color: var(--white); position: relative; overflow: hidden;
}
.premium-card::before {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--green-glow), transparent 70%);
    pointer-events: none;
}
.premium-card h3 {
    font-size: 1.6rem; font-weight: 800; margin-bottom: 8px;
    display: flex; align-items: center; gap: 10px;
}
.premium-badge {
    display: inline-block; background: var(--green); color: var(--white);
    font-size: .7rem; font-weight: 700; padding: 3px 10px;
    border-radius: 50px; text-transform: uppercase; letter-spacing: .05em;
}
.premium-card > p { color: var(--text-on-dark-dim); margin-bottom: 28px; font-size: 1rem; }
.premium-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-bottom: 32px; }
.premium-list li {
    display: flex; align-items: center; gap: 10px;
    font-size: .95rem; color: var(--text-on-dark);
}
.premium-list li::before {
    content: ''; display: inline-block; width: 20px; height: 20px; flex-shrink: 0;
    border-radius: 50%; background: var(--green);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 11.5L3 8l1-1 2.5 2.5 5-5 1 1z'/%3E%3C/svg%3E");
    background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.premium-plans {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.premium-plan {
    flex: 1; min-width: 140px; text-align: center;
    padding: 16px; border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05); transition: border-color var(--transition);
}
.premium-plan:hover { border-color: var(--green); }
.premium-plan strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.premium-plan span { font-size: .82rem; color: var(--text-on-dark-dim); }

/* ---- Privacy highlight ---- */
.privacy-highlights {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px; max-width: 800px; margin: 0 auto;
}
.privacy-item {
    text-align: center; padding: 28px 20px;
}
.privacy-item svg {
    width: 40px; height: 40px; margin: 0 auto 14px; display: block;
    stroke: var(--green); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.privacy-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.privacy-item p { font-size: .9rem; color: var(--text-secondary); }

/* ---- Languages ---- */
.lang-bar {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    max-width: 700px; margin: 0 auto;
}
.lang-tag {
    padding: 8px 18px; border-radius: 50px; font-size: .85rem; font-weight: 500;
    background: rgba(255,255,255,.08); color: var(--text-on-dark-dim);
    border: 1px solid rgba(255,255,255,.08);
}

/* ---- Footer ---- */
.footer {
    background: var(--purple-deep); color: var(--text-on-dark-dim);
    padding: 48px 24px 32px; text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--green-light); }
.footer-copy { font-size: .82rem; }

/* ---- Legal pages ---- */
.legal-page {
    padding: 100px 24px 60px;
    max-width: 800px; margin: 0 auto;
}
.legal-page h1 {
    font-size: 2rem; font-weight: 800; margin-bottom: 8px;
}
.legal-page .effective { color: var(--text-secondary); margin-bottom: 32px; font-size: .95rem; }
.legal-content { line-height: 1.8; }
.legal-content b, .legal-content strong { font-weight: 700; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { margin-bottom: 8px; list-style: disc; }
.legal-content a { color: var(--green-dark); text-decoration: underline; }
.legal-content a:hover { color: var(--green); }
.legal-content h2 {
    font-size: 1.3rem; font-weight: 700; margin: 36px 0 12px;
}
.legal-back {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 40px; padding: 10px 24px; border-radius: 50px;
    background: var(--bg-light); font-weight: 600; font-size: .9rem;
    transition: background var(--transition);
}
.legal-back:hover { background: #e8e8ec; }

/* ---- Animations ---- */
@keyframes glow-pulse {
    0%, 100% { opacity: .5; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: .8; transform: translate(-50%, -50%) scale(1.15); }
}
@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(12, 1, 24, .96); padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .nav-links.open a { padding: 14px 24px; display: block; }
    .steps { flex-direction: column; gap: 40px; }
    .step + .step::before { display: none; }
    .premium-card { padding: 36px 28px; }
    .premium-list { grid-template-columns: 1fr; }
    .section { padding: 72px 20px; }
    .hero { padding: 100px 20px 60px; }
    .hero-logo { width: 96px; height: 96px; border-radius: 22px; }
    .premium-plans { flex-direction: column; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .luck-scale { flex-direction: column; align-items: center; }
    .luck-item { min-width: 200px; }
}