:root {
    --bg: #0a0e1a;
    --bg-alt: #0e1424;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #e8ecf8;
    --muted: #9aa3bd;
    --accent: #22d3ee;
    --accent-2: #8b5cf6;
    --danger: #f87171;
    --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(10px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    max-width: 440px;
    width: 100%;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.modal p {
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.5;
}

.modal p a {
    color: var(--accent);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 26, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.logo span {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu {
    display: flex;
    gap: 32px;
    font-size: 15px;
}

.menu a {
    color: var(--muted);
    transition: color 0.2s;
}

.menu a:hover {
    color: var(--text);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

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

.btn-small {
    padding: 9px 18px;
    font-size: 14px;
    border-radius: 10px;
}

.btn-primary {
    background: var(--grad);
    color: #04121a;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35);
}

.btn-accent {
    background: var(--grad);
    color: #04121a;
}

.btn-ghost {
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
}

.btn-block {
    width: 100%;
    margin-top: 18px;
}

/* Hero */
.hero {
    position: relative;
    padding: 120px 0 90px;
    text-align: center;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    z-index: 1;
}

.orb-1 {
    width: 480px;
    height: 480px;
    background: var(--accent);
    top: -140px;
    left: -80px;
    animation: drift 14s ease-in-out infinite alternate;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: var(--accent-2);
    bottom: -140px;
    right: -60px;
    animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(40px, 30px); }
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--card-border);
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-title span {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 620px;
    margin: 22px auto 36px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 26px;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* Sections */
.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: clamp(30px, 4vw, 42px);
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 520px;
    margin: 14px auto 50px;
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

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

/* Pricing */
.pricing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 760px;
    margin: 0 auto;
}

.plan {
    position: relative;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
}

.plan-popular {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

.plan-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: #04121a;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
}

.plan-name {
    font-size: 16px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 18px;
}

.plan-period {
    font-size: 18px;
    font-weight: 600;
    color: var(--muted);
}

.plan-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    color: var(--muted);
    flex: 1;
}

.plan-list li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
}

.pricing-addon {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 760px;
    margin: 22px auto 0;
    background: var(--card);
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    padding: 22px 26px;
}

.pricing-addon h3 {
    font-size: 18px;
}

.pricing-addon p {
    color: var(--muted);
    margin-top: 4px;
}

.addon-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--grad);
    color: #04121a;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-note {
    text-align: center;
    color: var(--muted);
    margin-top: 26px;
    font-size: 15px;
}

.pricing-note a {
    color: var(--accent);
}

/* Tabs & steps */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tab {
    padding: 10px 22px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--card-border);
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab.active {
    background: var(--grad);
    color: #04121a;
    border-color: transparent;
}

.tab-content {
    display: none;
    max-width: 720px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 34px;
}

.tab-content.active {
    display: block;
}

.steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 44px;
    font-size: 16px;
    color: var(--text);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--grad);
    color: #04121a;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.steps li a {
    color: var(--accent);
    word-break: break-word;
}

/* Telegram CTA */
.cta-telegram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 50px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 32px;
}

.cta-telegram h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.cta-telegram p {
    color: var(--muted);
}

/* Footer */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 50px 0 24px;
    background: var(--bg-alt);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

.footer-brand p {
    color: var(--muted);
    margin-top: 10px;
    max-width: 280px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--muted);
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-contact p {
    color: var(--muted);
}

.footer-contact a {
    color: var(--accent);
}

.footer-copy {
    border-top: 1px solid var(--card-border);
    padding-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .menu {
        display: none;
    }

    .menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--card-border);
        padding: 20px 24px;
        gap: 18px;
    }

    .nav .btn-small {
        display: none;
    }

    .burger {
        display: flex;
    }

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

    .pricing-addon {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        gap: 30px;
    }

    .cta-telegram {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding: 80px 0 60px;
    }
}