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

:root {
    --bg-dark: #0a0a12;
    --bg-gradient: linear-gradient(135deg, #0a0a12 0%, #1a1a2e 50%, #16213e 100%);
    --accent: #9d4edd;
    --accent-light: #c77dff;
    --text: #e8e8e8;
    --text-muted: #a0a0a0;
    --gold: #ffd700;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    position: relative;
}

/* Animated stars background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, white, transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 350px 200px, white, transparent),
        radial-gradient(2px 2px at 420px 50px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 500px 180px, white, transparent),
        radial-gradient(2px 2px at 580px 90px, rgba(255, 255, 255, 0.9), transparent);
    background-size: 600px 300px;
    animation: twinkle 8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.05em;
}

main {
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 400px;
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 48px;
    width: 100%;
    max-width: 360px;
}

.features li {
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(157, 78, 221, 0.15);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 12px;
}

.features li:last-child {
    border-bottom: none;
}

.cta-text {
    font-size: 1.2rem;
    color: var(--accent-light);
    margin-bottom: 24px;
    font-weight: 500;
}

.cta-button {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, #7b2cbf 100%);
    color: white;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(157, 78, 221, 0.4);
    margin-bottom: 12px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(157, 78, 221, 0.6);
}

.telegram-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.cta-button .arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(4px);
}

.how-it-works {
    width: 100%;
    max-width: 500px;
    text-align: left;
    margin-top: 40px;
}

.how-it-works h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: var(--accent-light);
}

.steps {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(157, 78, 221, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(157, 78, 221, 0.2);
}

.step-number {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent) 0%, #7b2cbf 100%);
    color: white;
    border-radius: 50%;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

footer {
    text-align: center;
    padding-top: 60px;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    gap: 24px;
}

footer .cta-text {
    margin-bottom: 0;
}

.cta-button.secondary {
    background: rgba(157, 78, 221, 0.15);
    border: 2px solid var(--accent);
    color: var(--accent-light);
    box-shadow: 0 4px 16px rgba(157, 78, 221, 0.2);
}

.cta-button.secondary:hover {
    background: rgba(157, 78, 221, 0.25);
    box-shadow: 0 6px 24px rgba(157, 78, 221, 0.4);
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 32px 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .features li {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .how-it-works h2 {
        font-size: 1.5rem;
    }

    .step {
        padding: 16px;
    }

    .step-content h3 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    .example-section h2 {
        font-size: 1.5rem;
    }

    .example-preview {
        max-height: 300px;
    }

    .example-preview .example-img {
        max-height: 300px;
    }
}

/* Proxy hint */
.proxy-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 8px;
    margin-bottom: 44px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    line-height: 1.4;
    -webkit-align-self: center;
    align-self: center;
}

footer .proxy-hint {
    margin-top: 8px;
    margin-bottom: 24px;
}

/* Example section */
.example-section {
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
    -webkit-align-self: center;
    align-self: center;
}

.example-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-light);
}

.example-preview {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(157, 78, 221, 0.25);
    max-height: 400px;
    -webkit-transition: max-height 0.5s ease;
    transition: max-height 0.5s ease;
}

.example-preview .example-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    object-position: top;
    max-height: 400px;
    -webkit-transition: max-height 0.5s ease;
    transition: max-height 0.5s ease;
}

.example-preview.expanded {
    max-height: 9999px;
}

.example-preview.expanded .example-img {
    max-height: 9999px;
    object-fit: contain;
}

.example-preview.expanded .example-hint {
    display: none;
}

.example-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 0 12px;
    background: linear-gradient(transparent, rgba(10, 10, 18, 0.95));
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Alt platform buttons */
.alt-platforms {
    display: -webkit-flex;
    display: flex;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 24px;
}

.platform-btn {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text);
}

.platform-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 1000;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.popup-overlay.active {
    display: -webkit-flex;
    display: flex;
}

.popup-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.popup-close:hover {
    color: var(--text);
}

.popup-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--accent-light);
    margin-bottom: 28px;
}

.popup-content .cta-button {
    margin-bottom: 0;
    font-size: 1rem;
    padding: 14px 32px;
}

.popup-emoji {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.popup-subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}