* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg: #07111f;
    --bg-soft: #0b1728;
    --card: #101d30;
    --card-hover: #14243a;

    --text: #f5f8ff;
    --muted: #8fa2ba;

    --accent: #31e6b7;
    --accent2: #46a6ff;

    --border: rgba(255,255,255,.08);

    --max-width: 1180px;
}

body {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(circle at 80% 10%, rgba(70,166,255,.12), transparent 35%),
        radial-gradient(circle at 15% 30%, rgba(49,230,183,.09), transparent 30%),
        var(--bg);

    line-height: 1.55;
}

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

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


/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(18px);

    background: rgba(7,17,31,.82);

    border-bottom: 1px solid var(--border);
}

.nav {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 23px;
    font-weight: 800;
}

.logo > span:last-child,
.logo span {
    color: inherit;
}

.logo > span:not(.logo-icon) {
    color: var(--accent);
}

.logo-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.logo-icon span {
    width: 16px;
    height: 9px;

    border-bottom: 3px solid #07111f;
    border-radius: 50%;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;

    color: var(--muted);
}

nav a {
    transition: .2s;
}

nav a:hover {
    color: white;
}


/* BUTTONS */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 26px;

    border-radius: 14px;

    color: #06131c;

    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #48d7ff
        );

    box-shadow:
        0 10px 35px rgba(49,230,183,.16);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

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

    box-shadow:
        0 14px 42px rgba(49,230,183,.24);
}

.button-small {
    min-height: 42px;
    padding: 0 19px;
    border-radius: 11px;
}

.button-secondary {
    color: white;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    box-shadow: none;
}

.button-full {
    width: 100%;
}


/* HERO */

.hero {
    padding: 105px 0 75px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 75px;
    align-items: center;
}

.eyebrow {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 23px;

    padding: 8px 13px;

    border: 1px solid rgba(49,230,183,.18);
    border-radius: 999px;

    color: #a9f7e5;

    background: rgba(49,230,183,.06);

    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 0 5px rgba(49,230,183,.12);
}

.hero h1 {
    margin: 0;

    font-size: clamp(46px, 5.2vw, 73px);
    line-height: 1.06;

    letter-spacing: -.045em;
}

.hero h1 span {
    display: block;

    margin-top: 9px;

    color: var(--accent);
}

.hero-description {
    max-width: 670px;

    margin: 28px 0 32px;

    color: var(--muted);

    font-size: 18px;
}

.hero-buttons {
    display: flex;
    gap: 13px;
}

.hero-note {
    margin-top: 22px;

    color: #72879e;
    font-size: 14px;
}


/* HERO NETWORK CARD */

.hero-visual {
    position: relative;

    min-height: 480px;

    display: grid;
    place-items: center;
}

.visual-glow {
    position: absolute;

    width: 370px;
    height: 370px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(49,230,183,.15),
            transparent 67%
        );
}

.gateway-card {
    position: relative;
    z-index: 2;

    width: min(100%, 410px);

    padding: 23px;

    border: 1px solid var(--border);
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(18,34,55,.98),
            rgba(9,22,39,.97)
        );

    box-shadow:
        0 35px 80px rgba(0,0,0,.28);
}

.gateway-top {
    display: flex;
    justify-content: space-between;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);

    color: var(--muted);
    font-size: 13px;
}

.online {
    color: var(--accent);
}

.gateway-center {
    min-height: 225px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gateway-center strong {
    margin-top: 17px;

    font-size: 26px;
}

.gateway-center span {
    color: var(--muted);
}

.gateway-pulse {
    width: 74px;
    height: 74px;

    border-radius: 50%;

    border: 1px solid rgba(49,230,183,.35);

    background:
        radial-gradient(
            circle,
            var(--accent) 0 10%,
            rgba(49,230,183,.13) 11% 48%,
            transparent 49%
        );

    box-shadow:
        0 0 40px rgba(49,230,183,.2);
}

.gateway-routes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gateway-routes div {
    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: rgba(255,255,255,.025);
}

.gateway-routes strong,
.gateway-routes span {
    display: block;
}

.gateway-routes span {
    margin-top: 3px;

    color: var(--muted);
    font-size: 12px;
}

.protocol {
    position: absolute;
    z-index: 3;

    padding: 8px 13px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: rgba(10,24,41,.94);

    color: #a9b8c9;

    font-size: 12px;

    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.protocol-1 {
    top: 38px;
    left: 5px;
}

.protocol-2 {
    top: 135px;
    right: -10px;
}

.protocol-3 {
    bottom: 95px;
    left: -10px;
}

.protocol-4 {
    right: 10px;
    bottom: 30px;
}


/* STATS */

.stats {
    padding-bottom: 90px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: rgba(255,255,255,.025);
}

.stat {
    padding: 27px;

    text-align: center;

    border-right: 1px solid var(--border);
}

.stat:last-child {
    border: 0;
}

.stat strong {
    display: block;

    font-size: 29px;
}

.stat span {
    color: var(--muted);
}


/* GENERIC SECTION */

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 720px;

    margin-bottom: 50px;
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}

.section-heading > span {
    color: var(--accent);

    font-size: 13px;
    font-weight: 800;
    letter-spacing: .15em;
}

.section-heading h2 {
    margin: 14px 0 16px;

    font-size: clamp(34px,4vw,52px);
    line-height: 1.12;

    letter-spacing: -.035em;
}

.section-heading p {
    color: var(--muted);

    font-size: 17px;
}


/* FEATURES */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 17px;
}

.feature-card {
    min-height: 260px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: 19px;

    background: rgba(255,255,255,.025);

    transition: .25s;
}

.feature-card:hover {
    transform: translateY(-4px);

    border-color: rgba(49,230,183,.2);

    background: var(--card-hover);
}

.feature-icon {
    width: 47px;
    height: 47px;

    display: grid;
    place-items: center;

    margin-bottom: 27px;

    border-radius: 13px;

    color: var(--accent);

    background: rgba(49,230,183,.08);

    font-size: 21px;
    font-weight: bold;
}

.feature-card h3 {
    margin: 0 0 12px;

    font-size: 20px;
}

.feature-card p {
    margin: 0;

    color: var(--muted);
}


/* NETWORK */

.network-section {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255,255,255,.018),
            transparent
        );
}

.network-diagram {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 65px;
}

.network-node {
    min-width: 195px;

    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--card);
}

.network-node small,
.network-node strong,
.network-node span {
    display: block;
}

.network-node small {
    margin-bottom: 26px;

    color: var(--accent);
}

.network-node strong {
    font-size: 18px;
}

.network-node span {
    margin-top: 4px;

    color: var(--muted);
    font-size: 13px;
}

.main-node {
    position: relative;

    border-color: rgba(49,230,183,.32);

    box-shadow:
        0 0 45px rgba(49,230,183,.08);
}

.node-status {
    position: absolute;

    top: 19px;
    right: 19px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--accent);
}

.line {
    width: 90px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--border),
            var(--accent),
            var(--border)
        );
}

.exit-nodes {
    display: flex;
    gap: 12px;
}

.protocols-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 40px;
}

.protocols-list span {
    padding: 8px 13px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--muted);

    background: rgba(255,255,255,.02);

    font-size: 12px;
}


/* PRICING */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.price-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 32px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: rgba(255,255,255,.025);
}

.price-card.popular {
    border-color: rgba(49,230,183,.36);

    background:
        linear-gradient(
            180deg,
            rgba(49,230,183,.07),
            rgba(255,255,255,.025)
        );
}

.popular-label {
    position: absolute;

    top: 18px;
    right: 18px;

    padding: 6px 9px;

    border-radius: 7px;

    color: var(--accent);

    background: rgba(49,230,183,.1);

    font-size: 10px;
    font-weight: 800;
}

.price-name {
    color: var(--muted);

    font-weight: 700;
}

.price-card h3 {
    margin: 22px 0 2px;

    font-size: 39px;
}

.price-card h3 span {
    color: var(--muted);

    font-size: 14px;
    font-weight: 500;
}

.price-description {
    margin: 0 0 25px;

    color: var(--muted);
}

.price-card ul {
    flex: 1;

    margin: 0 0 28px;
    padding: 0;

    list-style: none;
}

.price-card li {
    position: relative;

    margin: 12px 0;

    padding-left: 26px;

    color: #b9c6d5;
}

.price-card li::before {
    content: "✓";

    position: absolute;
    left: 0;

    color: var(--accent);

    font-weight: 800;
}


/* HOW */

.how-section {
    background: rgba(255,255,255,.014);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.step {
    padding: 28px;

    border-top: 1px solid var(--border);
}

.step-number {
    margin-bottom: 45px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 800;
}

.step h3 {
    font-size: 22px;
}

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


/* FAQ */

.faq-container {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 70px;
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    padding: 23px 5px;

    cursor: pointer;

    font-size: 17px;
    font-weight: 700;
}

.faq details p {
    margin: 0;
    padding: 0 5px 22px;

    color: var(--muted);
}


/* CTA */

.cta {
    padding: 60px 0 110px;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 45px;

    border: 1px solid rgba(49,230,183,.2);
    border-radius: 24px;

    background:
        radial-gradient(circle at 80%, rgba(49,230,183,.11), transparent 35%),
        var(--card);
}

.cta-box > div > span {
    color: var(--accent);

    font-weight: 800;
}

.cta h2 {
    margin: 6px 0;

    font-size: 35px;
}

.cta p {
    margin: 0;

    color: var(--muted);
}


/* FOOTER */

footer {
    padding: 55px 0;

    border-top: 1px solid var(--border);
}

.footer {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    gap: 50px;
    align-items: center;
}

.footer p {
    max-width: 330px;

    color: var(--muted);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 30px;

    color: var(--muted);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #657991;
    font-size: 13px;
}


/* MOBILE */

@media (max-width: 1000px) {

    nav {
        display: none;
    }

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

    .hero-visual {
        min-height: 430px;
    }

    .features-grid {
        grid-template-columns: repeat(2,1fr);
    }

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

    .network-diagram {
        flex-direction: column;
    }

    .line {
        width: 1px;
        height: 50px;
    }

    .exit-nodes {
        width: 100%;

        justify-content: center;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .copyright {
        grid-column: 1 / -1;
    }

}


@media (max-width: 650px) {

    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .header .button-small {
        display: none;
    }

    .hero {
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

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

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

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

    .exit-nodes {
        flex-direction: column;
    }

    .exit-nodes .network-node {
        width: 100%;
    }

    .network-node {
        width: 100%;
    }

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

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .protocol {
        display: none;
    }

}

/* ===== PAYMENT MODAL ===== */

button.button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

body.modal-open {
    overflow: hidden;
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

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

.payment-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(2, 8, 15, .78);
    backdrop-filter: blur(8px);
}

.payment-modal-card {
    position: relative;
    z-index: 1;

    width: min(100%, 500px);

    padding: 34px;

    border: 1px solid rgba(49,230,183,.22);
    border-radius: 24px;

    background: #0d1a2b;

    box-shadow: 0 40px 100px rgba(0,0,0,.45);
}

.payment-modal-close {
    position: absolute;
    top: 17px;
    right: 20px;

    border: 0;
    background: transparent;
    color: #8fa2ba;

    font-size: 31px;
    cursor: pointer;
}

.payment-modal-label {
    color: #31e6b7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.payment-modal-card h2 {
    margin: 10px 0 3px;
    font-size: 32px;
}

.payment-modal-subtitle {
    margin: 0 0 25px;
    color: #8fa2ba;
}

.period-options {
    display: grid;
    gap: 10px;
}

.period-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;

    padding: 17px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;

    cursor: pointer;

    background: rgba(255,255,255,.025);

    transition: .2s;
}

.period-option:hover {
    border-color: rgba(49,230,183,.3);
}

.period-option:has(input:checked) {
    border-color: #31e6b7;
    background: rgba(49,230,183,.06);
}

.period-option input {
    accent-color: #31e6b7;
}

.period-main strong,
.period-main small {
    display: block;
}

.period-main small {
    margin-top: 3px;
    color: #8fa2ba;
}

.period-main .discount {
    color: #31e6b7;
}

.period-option b {
    font-size: 19px;
}

.payment-summary {
    display: flex;
    justify-content: space-between;

    margin: 25px 0 18px;

    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,.08);
}

.payment-summary span {
    color: #8fa2ba;
}

.payment-summary strong {
    font-size: 24px;
}

.payment-safe {
    margin: 14px 0 0;

    color: #657991;

    font-size: 12px;
    text-align: center;
}

@media (max-width: 550px) {
    .payment-modal-card {
        padding: 27px 20px;
    }
}


.legal-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 16px;
    color: #657991;
    font-size: 13px;
}

.legal-info span:last-child {
    color: #8fa2ba;
}
