:root {
    --bg: #050914;
    --bg-soft: #09101f;
    --bg-card: #0c1424;
    --bg-card-light: #111b2d;

    --gold: #f5b942;
    --gold-light: #ffd878;

    --blue: #1769ff;
    --blue-light: #4b8cff;

    --white: #ffffff;
    --text: #f5f7fb;
    --muted: #9ba7ba;

    --border: rgba(255, 255, 255, 0.09);

    --container: 1180px;
}


/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}


/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    border-bottom: 1px solid transparent;

    transition: 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 9, 20, 0.94);

    backdrop-filter: blur(15px);

    border-color: var(--border);
}

.nav-container {
    width: min(var(--container), calc(100% - 40px));

    min-height: 82px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    font-size: 19px;
    font-weight: 700;

    white-space: nowrap;
}

.logo strong {
    color: var(--gold);
}

.logo-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--gold);
    color: #111;

    font-size: 23px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 30px;
}

.nav-links a {
    color: var(--muted);

    font-size: 14px;
    font-weight: 500;

    transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a.active {
    color: var(--gold);
}

.desktop-auth {
    display: flex;
    align-items: center;

    gap: 20px;
}

.login-link {
    color: var(--muted);

    font-size: 14px;
    font-weight: 500;

    transition: 0.25s ease;
}

.login-link:hover {
    color: var(--white);
}

.nav-button {
    padding: 11px 19px;

    background: var(--gold);
    color: #111;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.25s ease;
}

.nav-button:hover {
    background: var(--gold-light);

    transform: translateY(-1px);
}

.mobile-auth {
    display: none;
}

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    background: transparent;

    border: 1px solid var(--border);
    border-radius: 8px;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    margin: 4px auto;

    background: var(--white);
}


/* ================= HERO ================= */

.affiliate-hero {
    position: relative;

    min-height: 780px;

    display: flex;
    align-items: center;

    padding: 145px 0 100px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 78% 40%,
            rgba(23, 105, 255, 0.13),
            transparent 33%
        ),
        var(--bg);
}

.hero-container {
    position: relative;
    z-index: 2;

    width: min(var(--container), calc(100% - 40px));

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;
}

.hero-glow {
    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;
}

.glow-one {
    top: 120px;
    right: -200px;

    background: rgba(23, 105, 255, 0.12);
}

.glow-two {
    bottom: -250px;
    left: -180px;

    background: rgba(245, 185, 66, 0.06);
}

.section-tag {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 20px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.3px;
}

.tag-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--gold);

    box-shadow: 0 0 12px rgba(245, 185, 66, 0.5);
}

.hero-content h1 {
    max-width: 650px;

    margin-bottom: 25px;

    font-size: clamp(46px, 5.2vw, 70px);

    line-height: 1.05;

    letter-spacing: -3px;
}

.hero-content h1 span {
    display: block;

    color: var(--gold);
}

.hero-content > p {
    max-width: 580px;

    margin-bottom: 32px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 23px;
}

.primary-button,
.secondary-button {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 0 22px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.25s ease;
}

.primary-button {
    background: var(--gold);

    color: #111;
}

.primary-button:hover {
    background: var(--gold-light);

    transform: translateY(-2px);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border);

    color: var(--white);
}

.secondary-button:hover {
    border-color: rgba(245, 185, 66, 0.45);

    background: rgba(245, 185, 66, 0.05);
}

.hero-note {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #7f8ca1;

    font-size: 12px;
}

.hero-note span {
    color: var(--gold);
}


/* ================= NETWORK VISUAL ================= */

.network-visual {
    display: flex;
    justify-content: center;
}

.network-card {
    width: 100%;
    max-width: 520px;

    padding: 25px;

    background: rgba(12, 20, 36, 0.92);

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35),
        0 0 80px rgba(23, 105, 255, 0.06);
}

.network-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.network-header span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    letter-spacing: 1.3px;
}

.network-header strong {
    display: block;

    margin-top: 5px;

    font-size: 15px;
}

.network-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(245, 185, 66, 0.12);

    color: var(--gold);

    font-size: 24px;
    font-weight: 800;
}


/* ================= NETWORK MAP ================= */

.network-map {
    position: relative;

    height: 330px;

    margin: 10px 0;
}

.person {
    position: absolute;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    color: var(--muted);

    font-size: 9px;
}

.person-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(245, 185, 66, 0.12);

    border: 1px solid rgba(245, 185, 66, 0.25);

    color: var(--gold);

    font-size: 22px;
    font-weight: 800;

    box-shadow: 0 0 25px rgba(245, 185, 66, 0.05);
}

.person-icon.small {
    width: 45px;
    height: 45px;

    background: rgba(23, 105, 255, 0.1);

    border-color: rgba(23, 105, 255, 0.25);

    color: var(--blue-light);

    font-size: 19px;
}

.person-top {
    top: 30px;
    left: 50%;

    transform: translateX(-50%);
}

.person-left {
    top: 145px;
    left: 14%;
}

.person-right {
    top: 145px;
    right: 14%;
}

.person-bottom-left {
    bottom: 8px;
    left: 26%;
}

.person-bottom-right {
    bottom: 8px;
    right: 26%;
}


/* ================= CONNECTIONS ================= */

.connection {
    position: absolute;

    height: 1px;

    background: linear-gradient(
        90deg,
        rgba(245, 185, 66, 0.05),
        rgba(245, 185, 66, 0.45),
        rgba(23, 105, 255, 0.2)
    );

    transform-origin: left center;
}

.connection-one {
    width: 150px;

    top: 95px;
    left: 50%;

    transform: rotate(150deg);
}

.connection-two {
    width: 150px;

    top: 95px;
    left: 50%;

    transform: rotate(30deg);
}

.connection-three {
    width: 115px;

    top: 190px;
    left: 29%;

    transform: rotate(55deg);
}

.connection-four {
    width: 115px;

    top: 190px;
    right: 29%;

    transform: rotate(125deg);
}

.network-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 18px;

    border-top: 1px solid var(--border);
}

.network-footer span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    letter-spacing: 1px;
}

.network-footer strong {
    display: block;

    margin-top: 4px;

    color: #d8dfeb;

    font-size: 12px;
}

.status-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #35d07f;

    box-shadow: 0 0 12px rgba(53, 208, 127, 0.4);
}


/* ================= INTRO ================= */

.affiliate-intro {
    padding: 110px 0;

    background: var(--bg-soft);
}

.intro-heading {
    max-width: 720px;

    margin-bottom: 55px;
}

.intro-heading h2,
.section-heading h2 {
    margin-bottom: 18px;

    font-size: clamp(35px, 4vw, 52px);

    line-height: 1.1;

    letter-spacing: -2px;
}

.intro-heading h2 span,
.section-heading h2 span,
.network-text h2 span,
.cta-content h2 span {
    color: var(--gold);
}

.intro-heading > p,
.section-heading > p {
    max-width: 650px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;
}


/* ================= FEATURES ================= */

.feature-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}

.feature-card {
    padding: 30px 25px;

    background: var(--bg-card);

    border: 1px solid var(--border);

    border-radius: 13px;

    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);

    border-color: rgba(245, 185, 66, 0.22);
}

.feature-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 23px;

    border-radius: 10px;

    background: rgba(245, 185, 66, 0.09);

    color: var(--gold);

    font-size: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;

    font-size: 16px;
}

.feature-card p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


/* ================= HOW IT WORKS ================= */

.how-section {
    padding: 115px 0;

    background: var(--bg);
}

.section-heading.centered {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 70px;

    text-align: center;
}

.affiliate-steps {
    max-width: 900px;

    margin: auto;
}

.affiliate-step {
    display: grid;

    grid-template-columns: 90px 1fr;

    align-items: center;

    gap: 30px;

    padding: 20px 0;
}

.step-number {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(245, 185, 66, 0.08);

    border: 1px solid rgba(245, 185, 66, 0.2);

    color: var(--gold);

    font-size: 16px;
    font-weight: 800;
}

.step-content h3 {
    margin-bottom: 6px;

    font-size: 18px;
}

.step-content p {
    max-width: 650px;

    color: var(--muted);

    font-size: 14px;
}

.step-connector {
    width: 1px;
    height: 35px;

    margin-left: 35px;

    background: linear-gradient(
        to bottom,
        rgba(245, 185, 66, 0.35),
        transparent
    );
}


/* ================= NETWORK SECTION ================= */

.network-section {
    padding: 105px 0;

    background: var(--bg-soft);
}

.network-content {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;
}

.network-text h2 {
    max-width: 560px;

    margin-bottom: 20px;

    font-size: clamp(34px, 4vw, 50px);

    line-height: 1.1;

    letter-spacing: -2px;
}

.network-text > p {
    max-width: 550px;

    margin-bottom: 30px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.8;
}

.network-points {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.network-points div {
    display: flex;
    align-items: center;

    gap: 9px;
}

.network-points span {
    color: var(--gold);
}

.network-points p {
    color: #d6dce7;

    font-size: 13px;
}


/* ================= DASHBOARD ================= */

.dashboard-preview {
    padding: 22px;

    background: rgba(12, 20, 36, 0.95);

    border: 1px solid var(--border);

    border-radius: 17px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(23, 105, 255, 0.05);
}

.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.dashboard-title {
    display: flex;
    align-items: center;

    gap: 10px;
}

.dashboard-title > span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--gold);
}

.dashboard-title strong {
    display: block;

    font-size: 13px;
}

.dashboard-title small {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;
}

.dashboard-menu {
    color: var(--muted);

    font-size: 13px;
}

.dashboard-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin: 20px 0;
}

.stat-box {
    padding: 17px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(255, 255, 255, 0.05);

    border-radius: 8px;
}

.stat-box span {
    display: block;

    color: var(--muted);

    font-size: 8px;

    letter-spacing: 1px;
}

.stat-box strong {
    display: block;

    margin-top: 5px;

    color: var(--gold);

    font-size: 13px;
}

.dashboard-chart {
    position: relative;

    height: 190px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.05);

    border-radius: 9px;
}

.chart-lines {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.chart-lines span {
    height: 1px;

    width: 100%;

    background: rgba(255, 255, 255, 0.04);
}

.bars {
    position: absolute;

    left: 7%;
    right: 7%;
    bottom: 0;

    height: 150px;

    display: flex;
    align-items: flex-end;

    justify-content: space-around;

    gap: 12px;
}

.bars i {
    width: 25px;

    border-radius: 4px 4px 0 0;

    background: linear-gradient(
        to top,
        rgba(23, 105, 255, 0.3),
        rgba(245, 185, 66, 0.75)
    );
}

.dashboard-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top: 17px;

    color: var(--muted);

    font-size: 10px;
}

.dashboard-status {
    padding: 5px 9px;

    border-radius: 20px;

    background: rgba(53, 208, 127, 0.08);

    color: #58d88f;
}


/* ================= NOTICE ================= */

.affiliate-notice {
    padding: 70px 0;

    background: var(--bg);
}

.notice-box {
    display: grid;

    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 20px;

    padding: 25px 28px;

    background: rgba(245, 185, 66, 0.045);

    border: 1px solid rgba(245, 185, 66, 0.14);

    border-radius: 12px;
}

.notice-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(245, 185, 66, 0.1);

    color: var(--gold);

    font-weight: 800;
}

.notice-box h3 {
    margin-bottom: 4px;

    font-size: 15px;
}

.notice-box p {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;
}

.notice-box > a {
    color: var(--gold);

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}


/* ================= CTA ================= */

.affiliate-cta {
    padding: 50px 0 110px;

    background: var(--bg);
}

.cta-card {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 55px;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(23, 105, 255, 0.13),
            transparent 40%
        ),
        var(--bg-card);

    border: 1px solid var(--border);

    border-radius: 18px;
}

.cta-content h2 {
    max-width: 620px;

    margin-bottom: 12px;

    font-size: clamp(31px, 3.5vw, 45px);

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.cta-content p {
    color: var(--muted);

    font-size: 14px;
}

.cta-buttons {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}


/* ================= FOOTER ================= */

.footer {
    padding: 75px 0 25px;

    background: #03060d;

    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 50px;
}

.footer-brand p {
    max-width: 350px;

    margin-top: 18px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.footer-column h4 {
    margin-bottom: 6px;

    color: var(--white);

    font-size: 13px;
}

.footer-column a {
    color: var(--muted);

    font-size: 12px;

    transition: 0.2s ease;
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-top: 22px;

    border-top: 1px solid var(--border);

    color: #687386;

    font-size: 11px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1050px) {

    .nav-links {
        gap: 18px;
    }

    .hero-container {
        gap: 40px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 850px) {

    .desktop-auth {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 82px;

        left: 20px;
        right: 20px;

        display: none;

        flex-direction: column;
        align-items: stretch;

        padding: 20px;

        background: rgba(9, 16, 31, 0.98);

        border: 1px solid var(--border);

        border-radius: 12px;

        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > a {
        padding: 9px 0;
    }

    .mobile-auth {
        display: flex;

        align-items: center;

        gap: 15px;

        padding-top: 12px;

        margin-top: 5px;

        border-top: 1px solid var(--border);
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;

        text-align: center;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .network-visual {
        width: 100%;
    }

    .network-content {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .network-text {
        text-align: center;
    }

    .network-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .network-points {
        text-align: left;
    }

    .cta-card {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .container,
    .nav-container,
    .hero-container {
        width: min(100% - 28px, var(--container));
    }

    .affiliate-hero {
        min-height: auto;

        padding-top: 125px;
        padding-bottom: 70px;
    }

    .hero-content h1 {
        font-size: 43px;
    }

    .hero-buttons {
        width: 100%;

        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .network-card {
        padding: 16px;
    }

    .network-map {
        height: 280px;
    }

    .person-left {
        left: 5%;
    }

    .person-right {
        right: 5%;
    }

    .person-bottom-left {
        left: 18%;
    }

    .person-bottom-right {
        right: 18%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .affiliate-intro,
    .how-section,
    .network-section {
        padding: 80px 0;
    }

    .affiliate-step {
        grid-template-columns: 65px 1fr;

        gap: 18px;
    }

    .step-number {
        width: 58px;
        height: 58px;

        font-size: 14px;
    }

    .step-connector {
        margin-left: 28px;
    }

    .network-points {
        grid-template-columns: 1fr;
    }

    .notice-box {
        grid-template-columns: auto 1fr;
    }

    .notice-box > a {
        grid-column: 2;
    }

    .cta-card {
        padding: 35px 25px;
    }

    .cta-buttons {
        width: 100%;

        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;

        gap: 35px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }

}


@media (max-width: 400px) {

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;

        font-size: 20px;
    }

    .hero-content h1 {
        font-size: 37px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

}