* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

        :root {
            --bg: #0b1020;
            --bg-soft: #121a30;
            --card: rgba(255, 255, 255, 0.08);
            --card-border: rgba(255, 255, 255, 0.12);
            --text: #f4f7ff;
            --muted: #b8c1d9;
            --accent: #ffd54a;
            --accent-2: #ff9f1a;
            --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
            --radius: 24px;
            --max-width: 1180px;
        }

        body {
            font-family: Arial, Helvetica, sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at top left, rgba(255, 213, 74, 0.14), transparent 30%),
                radial-gradient(circle at top right, rgba(255, 159, 26, 0.12), transparent 28%),
                linear-gradient(180deg, #0a0f1e 0%, #10182b 100%);
            line-height: 1.5;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        img {
            max-width: 100%;
            display: block;
        }

        .container {
            width: min(calc(100% - 32px), var(--max-width));
            margin: 0 auto;
        }

       



        .hero {
            padding: 72px 0 48px;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 36px;
            align-items: center;
        }

        .eyebrow {
            display: inline-block;
            padding: 8px 14px;
            border-radius: 999px;
            background: rgba(255, 213, 74, 0.12);
            color: var(--accent);
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.4px;
            margin-bottom: 18px;
            border: 1px solid rgba(255, 213, 74, 0.18);
        }

        h1 {
            font-size: clamp(40px, 6vw, 72px);
            line-height: 0.98;
            margin-bottom: 18px;
            max-width: 700px;
        }

        .hero p {
            color: var(--muted);
            font-size: 18px;
            max-width: 620px;
            margin-bottom: 28px;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            margin-bottom: 26px;
        }

        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 54px;
            padding: 0 22px;
            border-radius: 16px;
            font-weight: 700;
            transition: 0.2s ease;
            border: 1px solid transparent;
        }

.screen-image {
    width: 100%;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-phone-image {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    display: block;
    margin: 0 auto;
    filter:
        drop-shadow(0 0 26px rgba(255, 196, 64, 0.45))
        drop-shadow(0 0 58px rgba(255, 159, 26, 0.28))
        drop-shadow(0 24px 34px rgba(0, 0, 0, 0.30));
    animation: heroPhoneFloat 4.6s ease-in-out infinite;
    transition: filter 0.3s ease;
    will-change: transform, filter;
}

.hero-card {
    position: relative;
    min-height: 0;
    height: 100%;
    border-radius: 32px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 213, 74, 0.65) 0%, rgba(255, 189, 64, 0.42) 24%, rgba(255, 159, 26, 0.24) 46%, rgba(255, 159, 26, 0.10) 62%, transparent 78%);
    filter: blur(58px);
    opacity: 0.95;
    z-index: 0;
    pointer-events: none;
    animation: heroGlowPulse 3.8s ease-in-out infinite;
}

.hero-card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 245, 210, 0.22) 0%, rgba(255, 214, 120, 0.12) 42%, transparent 72%);
    filter: blur(34px);
    opacity: 0.95;
    z-index: 0;
    pointer-events: none;
    animation: heroGlowFloat 4.8s ease-in-out infinite;
}

.hero-phone-image:hover {
    filter:
        drop-shadow(0 0 34px rgba(255, 210, 90, 0.62))
        drop-shadow(0 0 70px rgba(255, 159, 26, 0.34))
        drop-shadow(0 30px 42px rgba(0, 0, 0, 0.34));
}


@keyframes heroGlowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.94);
        opacity: 0.78;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 1;
    }
}

@keyframes heroGlowFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) scale(0.96);
        opacity: 0.62;
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px) scale(1.04);
        opacity: 0.95;
    }
}

@keyframes heroPhoneFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


        .button-primary {
            background: linear-gradient(135deg, var(--accent), var(--accent-2));
            color: #151515;
            box-shadow: var(--shadow);
        }

        .button-primary:hover {
            transform: translateY(-2px);
        }

        .button-secondary {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.12);
            color: var(--text);
        }

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
}

        .stat {
            min-width: 140px;
            padding: 16px 18px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 18px;
        }

        .stat strong {
            display: block;
            font-size: 24px;
            margin-bottom: 4px;
        }

.stat span {
    color: var(--muted);
    font-size: 14px;
}

.stat-link {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.stat-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 213, 74, 0.18);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}




        

        section {
            padding: 34px 0;
        }

        .section-head {
            margin-bottom: 24px;
        }

        .section-head h2 {
            font-size: clamp(28px, 4vw, 42px);
            margin-bottom: 8px;
        }

        .section-head p {
            color: var(--muted);
            max-width: 700px;
        }

        .features-grid,
        .screens-grid {
            display: grid;
            gap: 20px;
        }

        .features-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

        .feature-card,
        .screen-card,
        .cta-box {
            background: var(--card);
            border: 1px solid var(--card-border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            backdrop-filter: blur(10px);
        }

        .feature-card {
    position: relative;
    padding: 28px;
    min-height: 210px;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

       
        .feature-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    font-size: 26px;
    line-height: 1.1;
    max-width: 18ch;
}

       .feature-card p {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
    max-width: 34ch;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    pointer-events: none;
}

.feature-card::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -30px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 213, 74, 0.14), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 213, 74, 0.22);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.features-grid .feature-card:nth-child(1) {
    grid-column: span 7;
    min-height: 250px;
}

.features-grid .feature-card:nth-child(2) {
    grid-column: span 5;
    min-height: 250px;
}

.features-grid .feature-card:nth-child(n + 3) {
    grid-column: span 4;
    min-height: 210px;
}

.features-grid .feature-card:nth-child(1) h3,
.features-grid .feature-card:nth-child(2) h3 {
    font-size: 32px;
    max-width: 14ch;
}

.features-grid .feature-card:nth-child(1) p,
.features-grid .feature-card:nth-child(2) p {
    font-size: 17px;
    max-width: 38ch;
}
        .screens-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .screen-card {
            padding: 16px;
        }


        .screen-card p {
            margin-top: 14px;
            color: var(--muted);
            font-size: 15px;
        }

     
.contact-box {
    padding: 26px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-box p,
.contact-box li {
    color: var(--muted);
}
       
        .cta {
            padding: 46px 0 70px;
        }

        .cta-box {
            padding: 34px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .cta-box p {
            color: var(--muted);
            margin-top: 8px;
            max-width: 640px;
        }

        .site-footer {
            padding: 26px 0 36px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--muted);
        }

        .footer-row {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.language-label {
    color: var(--muted);
    font-size: 13px;
}

.language-link {
    min-width: 36px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.language-link:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.language-link.is-active {
    background: rgba(255, 213, 74, 0.10);
    border-color: rgba(255, 213, 74, 0.20);
}

        @media (max-width: 980px) {
            .hero-grid,
.cta-box,
.cta-box-split {
                grid-template-columns: 1fr;
                display: grid;
            }

            .features-grid {
    grid-template-columns: 1fr 1fr;
}

.features-grid .feature-card,
.features-grid .feature-card:nth-child(1),
.features-grid .feature-card:nth-child(2),
.features-grid .feature-card:nth-child(n + 3) {
    grid-column: span 1;
    min-height: 220px;
}

.features-grid .feature-card:nth-child(1) h3,
.features-grid .feature-card:nth-child(2) h3 {
    font-size: 28px;
}

.features-grid .feature-card:nth-child(1) p,
.features-grid .feature-card:nth-child(2) p {
    font-size: 16px;
}

.screens-grid {
    grid-template-columns: 1fr 1fr;
}

            .hero-card {
                min-height: auto;
            }
        }

        @media (max-width: 720px) {
           

            .hero {
                padding-top: 42px;
            }

            .hero p {
                font-size: 16px;
            }

            .features-grid,
.screens-grid {
    grid-template-columns: 1fr;
}

.feature-card,
.features-grid .feature-card,
.features-grid .feature-card:nth-child(1),
.features-grid .feature-card:nth-child(2),
.features-grid .feature-card:nth-child(n + 3) {
    grid-column: span 1;
    min-height: auto;
    padding: 22px;
}

.feature-card h3,
.features-grid .feature-card:nth-child(1) h3,
.features-grid .feature-card:nth-child(2) h3 {
    font-size: 24px;
    max-width: none;
}

.feature-card p,
.features-grid .feature-card:nth-child(1) p,
.features-grid .feature-card:nth-child(2) p {
    font-size: 15px;
    max-width: none;
}

            .cta-box {
                padding: 24px;
            }

            .button {
                width: 100%;
            }

            .hero-actions {
                flex-direction: column;
            }
            
            .hero-phone-image {
                width: min(100%, 260px);
                filter:
                    drop-shadow(0 0 20px rgba(255, 196, 64, 0.40))
                    drop-shadow(0 0 42px rgba(255, 159, 26, 0.24))
                    drop-shadow(0 18px 26px rgba(0, 0, 0, 0.28));
            }

            .hero-card::before {
                width: 360px;
                height: 360px;
                filter: blur(40px);
            }

            .hero-card::after {
                width: 250px;
                height: 250px;
                filter: blur(24px);
            }

            .hero-phone-image:hover {
                filter:
                    drop-shadow(0 0 24px rgba(255, 210, 90, 0.52))
                    drop-shadow(0 0 48px rgba(255, 159, 26, 0.28))
                    drop-shadow(0 22px 30px rgba(0, 0, 0, 0.30));
            }
        }
.legal-page {
            max-width: 800px;
            margin: 80px auto;
            padding: 0 20px;
        }

        .legal-page h1 {
            font-size: 36px;
            margin-bottom: 10px;
        }

        .legal-page h2 {
            margin-top: 32px;
            margin-bottom: 10px;
            font-size: 22px;
        }

        .legal-page p {
            margin-bottom: 12px;
            line-height: 1.6;
            color: var(--muted);
        }

        .legal-page ul {
            margin: 12px 0 20px 20px;
        }

        .legal-page li {
            margin-bottom: 6px;
            color: var(--muted);
        }

        .back-link {
            display: inline-block;
            margin-bottom: 30px;
            color: var(--accent);
            text-decoration: none;
        }

        .back-link:hover {
            text-decoration: underline;
        }

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
    overflow: visible;
}

.rules-grid-refined {
    align-items: stretch;
}

.rules-card {
    position: relative;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 36px rgba(0,0,0,0.22);
    backdrop-filter: blur(12px);
    overflow: visible;
}

.rules-card-featured {
    min-height: 220px;
    overflow: visible;
}



.rules-card-signals {
    grid-column: span 1;
}

.rules-card-finish {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 190px;
}

.rules-card h3 {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.rules-card p {
    color: var(--muted);
    line-height: 1.65;
}


.rules-step-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 140px;
    font-weight: 900;
    letter-spacing: -4px;
    color: rgba(255, 255, 255, 0.045);
    text-shadow:
        0 0 26px rgba(255, 213, 74, 0.06),
        0 0 52px rgba(255, 159, 26, 0.06);
    pointer-events: none;
    z-index: 0;
}

.rules-card > *:not(.rules-step-badge) {
    position: relative;
    z-index: 1;
}

.rules-signal-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.rules-signal-row + .rules-signal-row {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.rules-signal-row strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.rules-signal-row p {
    margin: 0;
}

.rules-card-example {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rules-example-lights {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.rules-card .light {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex: 0 0 14px;
}

.rules-card .light::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    opacity: 0.5;
}

.rules-card .light.green {
    background: #4cd964;
}

.rules-card .light.green::after {
    background: radial-gradient(circle, rgba(76,217,100,0.6), transparent 70%);
}

.rules-card .light.red {
    background: #ff3b30;
}

.rules-card .light.red::after {
    background: radial-gradient(circle, rgba(255,59,48,0.6), transparent 70%);
}

.cta-box-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 22px;
    align-items: stretch;
}

.cta-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.cta-main .button,
.cta-main .appstore-button {
    align-self: flex-start;
}

.appstore-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 62px;
    padding: 12px 18px;
    border-radius: 18px;
    background: #0b0b0f;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.appstore-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
    border-color: rgba(255, 255, 255, 0.22);
}

.appstore-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex: 0 0 32px;
    filter: brightness(0) invert(1);
}

.appstore-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.appstore-small {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.2px;
    margin-bottom: 5px;
}

.appstore-big {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.support-card {
    margin: 0;
    max-width: none;
}

#rules .contact-box,
.cta-support {
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

#rules .contact-box a,
.cta-support a {
    color: var(--accent);
    font-weight: 600;
}

.support-title {
    margin-bottom: 14px;
    font-size: 24px;
}

.support-text {
    margin-bottom: 12px;
}

.support-email {
    color: var(--accent);
}

.rules-example-text {
    margin-top: 10px;
}

/* Modal styles for language modal */
.language-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
}

.language-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.72);
    backdrop-filter: blur(8px);
}

.language-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(21, 28, 49, 0.96), rgba(13, 18, 34, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.language-modal-eyebrow {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.language-modal-card h2 {
    margin-bottom: 10px;
    font-size: 34px;
    line-height: 1.05;
}

.language-modal-text {
    color: var(--muted);
    line-height: 1.6;
}

.language-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.language-modal-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.language-modal-button:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 213, 74, 0.18);
}

@media (max-width: 720px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rules-card,
    .rules-card-wide,
    .rules-card-signals {
        grid-column: span 1;
        padding: 20px;
        border-radius: 20px;
    }

    .rules-card h3 {
        font-size: 22px;
    }

    .rules-step-badge {
        inset: 0;
        top: auto;
        left: auto;
        font-size: 92px;
        letter-spacing: -3px;
    }

    .rules-card-featured,
    .rules-card-finish {
        min-height: auto;
    }

    .rules-signal-row strong {
        font-size: 17px;
    }

    .cta-box-split {
        grid-template-columns: 1fr;
    }

    .cta-main .button,
    .cta-main .appstore-button {
        align-self: stretch;
    }
    .appstore-button {
        justify-content: center;
    }

    .support-card {
        margin-top: 0;
    }

    #rules .contact-box,
    .cta-support {
        padding: 18px;
        border-radius: 20px;
    }
    .language-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }

    .language-modal-card {
        padding: 22px;
        border-radius: 22px;
    }

    .language-modal-card h2 {
        font-size: 28px;
    }
.language-modal[hidden] {
    display: none !important;
}
.language-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.3);
}
    .language-modal-actions {
        grid-template-columns: 1fr;
    }
}
