/* =========================================================
   NetSpeedCheck.website
   Premium Dark UI
   ========================================================= */

:root {
    --bg: #050816;
    --bg-soft: #080d1d;
    --card: rgba(255, 255, 255, 0.055);
    --card-hover: rgba(255, 255, 255, 0.085);

    --text: #f8fbff;
    --muted: #9aa7bb;
    --muted-light: #c5cede;

    --blue: #4da3ff;
    --cyan: #35e0ff;
    --purple: #8067ff;
    --green: #38e6a5;

    --border: rgba(255, 255, 255, 0.09);

    --radius: 22px;

    --max-width: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(77, 163, 255, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(128, 103, 255, 0.10),
            transparent 28%
        ),
        var(--bg);

    line-height: 1.5;
    overflow-x: hidden;
}

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;
    z-index: -1;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 75%
    );
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5%;

    background: rgba(5, 8, 22, 0.72);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-icon {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--blue),
            var(--purple)
        );

    box-shadow:
        0 0 30px rgba(53, 224, 255, 0.20);

    font-size: 19px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 17px;
    letter-spacing: -0.3px;
}

.brand-text span {
    color: #75839a;
    font-size: 10px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: #aab6c8;
    font-size: 14px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.main-nav a:hover {
    color: white;
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-btn,
.menu-btn {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.045);

    color: #d8e0ec;

    cursor: pointer;

    transition: 0.25s ease;
}

.theme-btn:hover,
.menu-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 760px;
    max-width: var(--max-width);

    margin: auto;

    padding:
        105px 30px
        90px;

    display: grid;

    grid-template-columns:
        1fr 0.9fr;

    align-items: center;

    gap: 50px;
}

.hero-background {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 25% 40%,
            rgba(53, 224, 255, 0.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 78% 50%,
            rgba(128, 103, 255, 0.15),
            transparent 30%
        );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 8px 14px;

    border:
        1px solid rgba(53, 224, 255, 0.15);

    border-radius: 999px;

    background:
        rgba(53, 224, 255, 0.055);

    color: #aeefff;

    font-size: 12px;
    letter-spacing: 0.2px;

    margin-bottom: 25px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 12px rgba(56, 230, 165, 0.8);
}

.hero h1 {
    max-width: 720px;

    font-size:
        clamp(50px, 6.3vw, 84px);

    line-height: 0.98;

    letter-spacing: -4.5px;

    font-weight: 800;

    margin-bottom: 27px;
}

.hero h1 span {
    display: block;

    background:
        linear-gradient(
            100deg,
            #ffffff 10%,
            var(--cyan) 52%,
            #8f82ff 90%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-description {
    max-width: 610px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.8;

    margin-bottom: 34px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 23px;
}

.primary-btn,
.secondary-btn {
    min-height: 53px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-weight: 700;
    font-size: 14px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.primary-btn {
    gap: 11px;

    padding: 0 23px;

    background:
        linear-gradient(
            135deg,
            #2ca9ff,
            #536cff 60%,
            #7961ff
        );

    box-shadow:
        0 14px 40px rgba(61, 120, 255, 0.25);
}

.primary-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 20px 50px rgba(61, 120, 255, 0.38);
}

.secondary-btn {
    padding: 0 21px;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    background:
        rgba(255, 255, 255, 0.045);

    color: #dce5f2;
}

.secondary-btn:hover {
    transform: translateY(-3px);

    background:
        rgba(255, 255, 255, 0.08);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    color: #75839a;

    font-size: 12px;
}

.trust-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* =========================================================
   SPEED GAUGE
   ========================================================= */

.hero-gauge {
    position: relative;

    display: grid;
    place-items: center;

    min-height: 470px;
}

.gauge-glow {
    position: absolute;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(53, 224, 255, 0.13),
            rgba(80, 80, 255, 0.07),
            transparent 70%
        );

    filter: blur(20px);
}

.gauge {
    position: relative;

    width: min(410px, 85vw);
    aspect-ratio: 1;

    display: grid;
    place-items: center;
}

.gauge::before {
    content: "";

    position: absolute;
    inset: 5%;

    border-radius: 50%;

    background:
        conic-gradient(
            from 220deg,
            transparent 0deg,
            rgba(53, 224, 255, 0.15) 60deg,
            rgba(53, 224, 255, 0.7) 150deg,
            rgba(128, 103, 255, 0.75) 220deg,
            transparent 300deg
        );

    filter: blur(1px);

    opacity: 0.9;
}

.gauge-ring {
    position: relative;

    width: 74%;
    aspect-ratio: 1;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 50% 40%,
            #101a31,
            #080d1d 68%,
            #050816
        );

    border:
        1px solid rgba(255, 255, 255, 0.10);

    box-shadow:
        inset 0 0 50px rgba(53, 224, 255, 0.04),
        0 25px 80px rgba(0, 0, 0, 0.35);
}

.gauge-ring::before {
    content: "";

    position: absolute;
    inset: -12px;

    border-radius: 50%;

    border:
        1px solid rgba(255, 255, 255, 0.06);
}

.gauge-content {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.gauge-label {
    color: #728098;

    font-size: 11px;

    letter-spacing: 2px;
}

.gauge-content strong {
    margin-top: 4px;

    font-size:
        clamp(55px, 6vw, 78px);

    line-height: 1;

    letter-spacing: -4px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            var(--cyan)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.gauge-unit {
    color: #91a0b7;

    font-size: 13px;

    margin-top: 5px;
}

.gauge-content small {
    color: #5e6c82;

    font-size: 8px;

    letter-spacing: 1.5px;

    margin-top: 13px;
}


/* =========================================================
   SECTION COMMON
   ========================================================= */

section {
    position: relative;
}

.speed-section,
.tools-section,
.learn-section,
.about-section {
    max-width: var(--max-width);

    margin: auto;

    padding:
        110px 30px;
}

.section-heading {
    max-width: 680px;

    margin-bottom: 45px;
}

.section-heading .section-label {
    display: block;

    color: var(--cyan);

    font-size: 10px;

    letter-spacing: 2.5px;

    font-weight: 800;

    margin-bottom: 13px;
}

.section-heading h2 {
    font-size:
        clamp(34px, 4vw, 53px);

    letter-spacing: -2.5px;

    line-height: 1.05;

    margin-bottom: 15px;
}

.section-heading p {
    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   SPEED TEST PANEL
   ========================================================= */

.test-panel {
    padding: 35px;

    border:
        1px solid var(--border);

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.065),
            rgba(255,255,255,0.025)
        );

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(15px);
}

.test-status {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #8d9bb0;

    font-size: 12px;

    margin-bottom: 35px;
}

.status-indicator {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #526075;
}

.test-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.live-speed {
    text-align: center;

    margin-bottom: 30px;
}

.live-speed span {
    display: block;

    color: #728098;

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 9px;
}

.live-speed strong {
    font-size: clamp(65px, 9vw, 110px);

    line-height: 0.9;

    letter-spacing: -6px;

    background:
        linear-gradient(
            135deg,
            white,
            var(--cyan)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.live-speed small {
    color: #8190a7;

    font-size: 13px;

    margin-left: 7px;
}

.test-button {
    width: 180px;
    height: 54px;

    border: none;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--purple)
        );

    color: white;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 15px 35px rgba(77, 130, 255, 0.22);

    transition: 0.25s ease;
}

.test-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 20px 45px rgba(77, 130, 255, 0.35);
}

.test-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.test-progress {
    width: min(500px, 90%);

    height: 4px;

    margin-top: 28px;

    border-radius: 99px;

    overflow: hidden;

    background:
        rgba(255,255,255,0.06);
}

.progress-bar {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--cyan),
            var(--blue),
            var(--purple)
        );

    transition: width 0.3s ease;
}


/* =========================================================
   METRICS
   ========================================================= */

.metrics-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 12px;

    margin-top: 38px;
}

.metric-card {
    padding: 20px 15px;

    text-align: center;

    border:
        1px solid rgba(255,255,255,0.07);

    border-radius: 16px;

    background:
        rgba(255,255,255,0.035);

    transition: 0.25s ease;
}

.metric-card:hover {
    transform: translateY(-4px);

    background:
        rgba(255,255,255,0.06);

    border-color:
        rgba(53,224,255,0.18);
}

.metric-card span {
    display: block;

    color: #718097;

    font-size: 8px;

    letter-spacing: 1.3px;

    margin-bottom: 8px;
}

.metric-card strong {
    font-size: 22px;
}

.metric-card small {
    color: #718097;

    font-size: 9px;

    margin-left: 3px;
}


/* =========================================================
   QUALITY
   ========================================================= */

.quality-section {
    max-width: var(--max-width);

    margin: auto;

    padding: 30px;
}

.quality-card {
    display: grid;

    grid-template-columns:
        0.7fr 1.3fr;

    align-items: center;

    gap: 30px;

    padding: 38px;

    border:
        1px solid rgba(53,224,255,0.10);

    border-radius: 25px;

    background:
        linear-gradient(
            120deg,
            rgba(53,224,255,0.08),
            rgba(128,103,255,0.07),
            rgba(255,255,255,0.025)
        );
}

.quality-score span {
    display: block;

    color: #8795aa;

    font-size: 12px;

    margin-bottom: 8px;
}

.quality-score strong {
    font-size: 65px;

    line-height: 1;

    letter-spacing: -4px;

    color: var(--green);
}

.quality-score small {
    color: #78869b;

    margin-left: 5px;
}

.quality-info .quality-status {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 99px;

    background:
        rgba(56,230,165,0.08);

    color: var(--green);

    font-size: 11px;
}

.quality-info p {
    color: var(--muted);

    max-width: 570px;

    margin-top: 12px;

    font-size: 14px;

    line-height: 1.7;
}

.experience-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    margin-top: 14px;
}

.experience-card {
    padding: 21px;

    border:
        1px solid rgba(255,255,255,0.07);

    border-radius: 17px;

    background:
        rgba(255,255,255,0.035);
}

.experience-card span {
    display: block;

    font-size: 23px;

    margin-bottom: 12px;
}

.experience-card strong {
    display: block;

    font-size: 14px;
}

.experience-card small {
    color: #718097;

    font-size: 11px;

    display: block;

    margin-top: 4px;
}


/* =========================================================
   TOOLS
   ========================================================= */

.tools-grid {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 13px;
}

.tool-card {
    min-height: 235px;

    padding: 24px;

    border:
        1px solid rgba(255,255,255,0.075);

    border-radius: 20px;

    background:
        rgba(255,255,255,0.035);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(77,163,255,0.22);

    background:
        rgba(255,255,255,0.06);
}

.tool-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(53,224,255,0.14),
            rgba(128,103,255,0.14)
        );

    color: var(--cyan);

    font-weight: 800;

    font-size: 12px;

    margin-bottom: 25px;
}

.tool-card h3 {
    font-size: 16px;

    margin-bottom: 9px;
}

.tool-card p {
    color: #7f8ca0;

    font-size: 12px;

    line-height: 1.65;

    margin-bottom: 18px;
}

.tool-card a {
    color: #a9dfff;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   LEARN
   ========================================================= */

.learn-section {
    padding-top: 80px;
}

.learn-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 13px;
}

.learn-grid article {
    padding: 26px;

    border-top:
        1px solid rgba(255,255,255,0.10);

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.035),
            transparent
        );
}

.learn-grid article > span {
    color: var(--cyan);

    font-size: 10px;

    letter-spacing: 2px;
}

.learn-grid h3 {
    margin-top: 18px;

    margin-bottom: 10px;

    font-size: 17px;
}

.learn-grid p {
    color: #7f8ca0;

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   SUPPORT
   ========================================================= */

.support-section {
    max-width: var(--max-width);

    margin: auto;

    padding: 45px 30px 100px;
}

.support-content {
    display: flex;

    align-items: center;

    gap: 22px;

    padding: 34px;

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 24px;

    background:
        linear-gradient(
            115deg,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.025)
        );
}

.support-icon {
    width: 53px;
    height: 53px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 16px;

    background:
        rgba(255,255,255,0.06);
}

.support-content .section-label {
    color: #77869b;

    font-size: 9px;

    letter-spacing: 2px;
}

.support-content h2 {
    font-size: 25px;

    letter-spacing: -1px;

    margin: 5px 0;
}

.support-content p {
    color: #7f8ca0;

    font-size: 12px;
}

.support-btn {
    margin-left: auto;

    flex: 0 0 auto;

    padding: 13px 20px;

    border:
        1px solid rgba(255,255,255,0.11);

    border-radius: 12px;

    background:
        rgba(255,255,255,0.06);

    color: white;

    cursor: pointer;

    transition: 0.25s ease;
}

.support-btn:hover {
    transform: translateY(-2px);

    background:
        rgba(255,255,255,0.10);
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
    padding-top: 50px;
    padding-bottom: 90px;
}

.about-section .section-heading {
    margin-bottom: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    max-width: var(--max-width);

    margin: auto;

    padding:
        60px 30px
        30px;

    border-top:
        1px solid rgba(255,255,255,0.07);
}

.site-footer {
    display: grid;

    grid-template-columns:
        1fr 1.5fr;

    gap: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    font-size: 18px;
}

.footer-brand span {
    color: #69778b;

    font-size: 9px;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    margin-top: 3px;
}

.footer-brand p {
    max-width: 250px;

    color: #657388;

    font-size: 11px;

    line-height: 1.7;

    margin-top: 18px;
}

.footer-links {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}

.footer-links div {
    display: flex;
    flex-direction: column;
}

.footer-links h4 {
    color: #c8d2e1;

    font-size: 11px;

    margin-bottom: 14px;
}

.footer-links a {
    color: #68768b;

    font-size: 11px;

    margin-bottom: 9px;

    transition: 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    grid-column: 1 / -1;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-top: 28px;

    margin-top: 15px;

    border-top:
        1px solid rgba(255,255,255,0.06);

    color: #58667a;

    font-size: 10px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 18px;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-gauge {
        min-height: 390px;
    }

    .metrics-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .tools-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .learn-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


@media (max-width: 760px) {

    .site-header {
        height: 68px;
        padding: 0 5%;
    }

    .main-nav {
        display: none;
    }

    .menu-btn {
        display: grid;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .hero {
        min-height: auto;

        padding:
            75px 20px
            60px;
    }

    .hero h1 {
        font-size: clamp(44px, 13vw, 64px);

        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        width: min(320px, 100%);
    }

    .trust-row {
        justify-content: center;

        font-size: 10px;
    }

    .hero-gauge {
        min-height: 350px;
    }

    .speed-section,
    .tools-section,
    .learn-section,
    .about-section {
        padding:
            75px 20px;
    }

    .quality-section {
        padding: 20px;
    }

    .test-panel {
        padding: 22px 15px;

        border-radius: 22px;
    }

    .metrics-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .quality-card {
        grid-template-columns: 1fr;

        padding: 27px;
    }

    .experience-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .tools-grid {
        grid-template-columns:
            1fr;
    }

    .learn-grid {
        grid-template-columns:
            1fr;
    }

    .support-section {
        padding:
            30px 20px
            75px;
    }

    .support-content {
        flex-direction: column;

        align-items: flex-start;
    }

    .support-btn {
        margin-left: 0;
    }

    .site-footer {
        grid-template-columns: 1fr;

        padding:
            50px 20px
            25px;
    }

    .footer-links {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
    }
}


@media (max-width: 450px) {

    .brand-icon {
        width: 35px;
        height: 35px;
    }

    .theme-btn {
        display: none;
    }

    .hero {
        padding-top: 55px;
    }

    .hero h1 {
        font-size: 43px;

        letter-spacing: -2.5px;
    }

    .hero-gauge {
        min-height: 310px;
    }

    .gauge {
        width: 330px;
    }

    .gauge-content strong {
        font-size: 57px;
    }

    .live-speed strong {
        font-size: 67px;
    }

    .metrics-grid {
        gap: 8px;
    }

    .metric-card {
        padding: 17px 10px;
    }

    .metric-card strong {
        font-size: 19px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   NETSPEEDCHECK - RESULT COLORS
   ========================================================= */

/* Download */
#downloadMetric {
    color: #35e0ff !important;
}

/* Upload */
#uploadMetric {
    color: #4da3ff !important;
}

/* Ping */
#pingMetric {
    color: #38e6a5 !important;
}

/* Jitter */
#jitterMetric {
    color: #ffd166 !important;
}

/* Packet Loss */
#packetLossMetric {
    color: #38e6a5 !important;
}


/* =========================================================
   QUALITY COLORS
   ========================================================= */

#qualityMetric,
#qualityScore {
    font-weight: 800;
}


/* Excellent */
.quality-excellent {
    color: #38e6a5 !important;
}


/* Good */
.quality-good {
    color: #35e0ff !important;
}


/* Fair */
.quality-fair {
    color: #ffd166 !important;
}


/* Poor */
.quality-poor {
    color: #ff5c7a !important;
}


/* =========================================================
   USE CASE RESULT COLORS
   ========================================================= */

#gamingQuality,
#streamingQuality,
#callsQuality,
#workQuality {
    font-weight: 700;
}


/* =========================================================
   TOOLS SECTION
   ========================================================= */

.tool-card h3 {
    color: #f8fbff !important;
}

.tool-card p {
    color: #9aa7bb !important;
}

.tool-card a {
    color: #35e0ff !important;
    font-weight: 700;
    transition: color 0.2s ease;
}

.tool-card a:hover {
    color: #ffffff !important;
}


/* Tool icons */
.tool-icon {
    color: #35e0ff !important;

    background:
        linear-gradient(
            135deg,
            rgba(53,224,255,0.14),
            rgba(128,103,255,0.14)
        );
}


/* =========================================================
   LEARN SECTION
   ========================================================= */

.learn-grid article > span {
    color: #35e0ff !important;
}

.learn-grid h3 {
    color: #f8fbff !important;
}

.learn-grid p {
    color: #9aa7bb !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer-brand strong {
    color: #f8fbff !important;
}

.footer-brand span {
    color: #75839a !important;
}

.footer-brand p {
    color: #7f8ca0 !important;
}

.footer-links h4 {
    color: #dce5f2 !important;
}

.footer-links a {
    color: #8492a8 !important;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #35e0ff !important;
}

.footer-bottom {
    color: #68768b !important;
}


/* =========================================================
   METRIC CARD
   ========================================================= */

.metric-card strong {
    font-weight: 800;
}

.metric-card:hover {
    border-color:
        rgba(53,224,255,0.25);
}


/* =========================================================
   QUALITY SCORE
   ========================================================= */

.quality-score strong {
    font-weight: 800;
}


/* =========================================================
   STATUS
   ========================================================= */

.test-status {
    color: #aab6c8;
}

.status-indicator {
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease;
}
/* Quality colors */

/* Quality score */

#qualityScore {
    font-weight: 800;
}


/* Tools / Learn / Company */

.tools-title,
.learn-title,
.company-title {
    color: #35e0ff;
}

.footer-links h4 {
    color: #35e0ff !important;
}

.footer-links a {
    color: #9aa7bb !important;
}

.footer-links a:hover {
    color: #35e0ff !important;
}
/* =========================================
   FIXED DONATION BUTTON
   ========================================= */

.fixed-donate {
    position: fixed;

    right: 24px;
    top: 50%;

    width: 105px;
    height: 105px;

    transform: translateY(-50%);

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    animation: donatePulse 2.2s ease-in-out infinite;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.fixed-donate img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    transition:
        filter 0.25s ease,
        transform 0.25s ease;
}


/* Big → Small → Big */

@keyframes donatePulse {

    0% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(0.82);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}


/* Mouse hover */

.fixed-donate:hover {
    transform: translateY(-50%) scale(1.08);
}

.fixed-donate:hover img {
    filter:
        drop-shadow(0 0 8px #38e6a5)
        drop-shadow(0 0 18px #38e6a5);
}


/* Mobile */

@media (max-width: 600px) {

    .fixed-donate {
        right: 10px;
        width: 75px;
        height: 75px;
    }

}

.fixed-donate {
    position: fixed;
    right: 24px;
    top: 50%;

    width: 90px;
    height: 90px;

    transform: translateY(-50%);

    border-radius: 50%;

    background: #ff3b30;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    z-index: 99999;
    

    animation: donatePulse 2.2s ease-in-out infinite;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.fixed-donate img {
    width: 72px;
    height: 72px;

    object-fit: contain;

    display: block;

    border-radius: 1%;
    overflow: hidden;

}

.fixed-donate:hover {
    background: #38e6a5;

    transform:
        translateY(-50%)
        scale(1.08);

    box-shadow:
        0 0 20px rgba(56, 230, 165, 0.8);
}

@keyframes donatePulse {

    0% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(0.86);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

/* =========================================
   SUPPORT / DONATION SCROLLING BAR
   ========================================= */

.support-ticker {
    width: 100%;
    overflow: hidden;

    background: rgba(10, 18, 38, 0.95);

    border-top: 1px solid rgba(53, 224, 255, 0.12);
    border-bottom: 1px solid rgba(53, 224, 255, 0.12);

    padding: 9px 0;

    white-space: nowrap;
}

.support-ticker-track {
    display: inline-block;

    padding-left: 100%;

    color: #d9f8ff;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;

    animation: supportScroll 32s linear infinite;
}

@keyframes supportScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.support-ticker:hover .support-ticker-track {
    animation-play-state: paused;
}

.metric-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #67e8f9;
    text-transform: uppercase;
}


/* =========================================
   METRIC LABELS — SIZE + COLORS
   ========================================= */

.metric-card > span {
    display: block;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase;
    margin-bottom: 9px;
}

/* DOWNLOAD */
.metric-card:nth-child(1) > span {
    color: #38bdf8 !important;
}

/* UPLOAD */
.metric-card:nth-child(2) > span {
    color: #a78bfa !important;
}

/* PING */
.metric-card:nth-child(3) > span {
    color: #34d399 !important;
}

/* JITTER */
.metric-card:nth-child(4) > span {
    color: #fbbf24 !important;
}

/* PACKET LOSS */
.metric-card:nth-child(5) > span {
    color: #fb7185 !important;
}

/* QUALITY */
.metric-card:nth-child(6) > span {
    color: #60a5fa !important;
}

.fixed-donate {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 78px;
    height: 78px;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}

.fixed-donate img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
/* ================= SUPPORT TICKER ================= */

.support-ticker {
    position: fixed !important;
    top: 70px;
    left: 0;
    width: 100%;
    height: 36px;
    overflow: hidden;
    z-index: 9999;
    background: rgba(5, 8, 22, 0.95);
    display: flex;
    align-items: center;
}

.support-ticker-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: supportScroll 20s linear infinite;
}

@keyframes supportScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }

}

/* ================= DONATION PAGE ================= */

.donation-page {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 60px;
}

.donation-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 45px 35px;
    text-align: center;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.donation-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
    background: rgba(239, 68, 68, 0.12);
}

.donation-card h1 {
    margin: 14px 0 12px;
    font-size: 38px;
    line-height: 1.15;
}

.donation-description {
    margin: 0 auto;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
}

.donation-subtext {
    max-width: 440px;
    margin: 10px auto 28px;
    opacity: 0.7;
    line-height: 1.6;
}

.donation-amounts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.donation-amount {
    min-width: 82px;
    padding: 13px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.donation-amount:hover {
    transform: translateY(-2px);
}

.donation-amount.active {
    border-color: #ef4444;
    background: #ef4444;
    color: white;
}

.donation-primary-btn {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 10px auto 15px;
    padding: 16px 24px;
    border-radius: 15px;
    background: #ef4444;
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: 0.25s ease;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.25);
}

.donation-primary-btn:hover {
    transform: translateY(-2px);
    background: #dc2626;
}

.donation-secure {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.6;
}

.donation-thanks {
    margin-top: 28px;
    font-size: 14px;
    opacity: 0.65;
}


/* ================= MOBILE ================= */

@media (max-width: 600px) {

    .donation-page {
        padding: 90px 15px 40px;
    }

    .donation-card {
        padding: 35px 20px;
        border-radius: 22px;
    }

    .donation-card h1 {
        font-size: 30px;
    }

    .donation-description {
        font-size: 16px;
    }

    .donation-amount {
        min-width: 70px;
        padding: 11px 15px;
    }

}

/* =========================================
   INNER PAGES
   About / Terms / Contact / Collaboration
   ========================================= */

.page-container {
    min-height: calc(100vh - 80px);

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 110px 20px 70px;
}


.page-box {
    width: 100%;

    max-width: 850px;

    margin: 0 auto;

    padding: 50px 55px;

    text-align: center;

    background:
        rgba(15, 23, 42, 0.94);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 26px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.32);
}


.page-box h1 {
    margin: 14px 0 20px;

    font-size: 42px;

    line-height: 1.15;
}


.page-box h2 {
    margin-top: 32px;
    margin-bottom: 10px;

    font-size: 23px;
}


.page-box p {
    max-width: 720px;

    margin: 12px auto;

    line-height: 1.75;

    opacity: 0.78;
}


/* =========================================
   PRIMARY BUTTON
   ========================================= */

.page-primary-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 25px;

    padding: 14px 28px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #22c1ff,
            #6366f1
        );

    color: white;

    text-decoration: none;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.page-primary-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px
        rgba(59, 130, 246, 0.25);
}


/* =========================================
   CONTACT
   ========================================= */

.contact-email-box {

    max-width: 500px;

    margin: 28px auto;

    padding: 22px;

    display: flex;

    flex-direction: column;

    gap: 10px;

    align-items: center;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid rgba(255, 255, 255, 0.07);
}


.contact-email-box span {

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1px;

    opacity: 0.6;
}


.contact-email-box a {

    color: #67e8f9;

    text-decoration: none;

    font-weight: 600;

    word-break: break-word;
}


.contact-email-box a:hover {

    text-decoration: underline;
}


/* =========================================
   COLLABORATION
   ========================================= */

.collaboration-list {

    max-width: 600px;

    margin: 30px auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}


.collaboration-list div {

    padding: 20px 12px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 9px;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid rgba(255, 255, 255, 0.07);
}


.collaboration-list div:first-letter {

    font-size: 24px;
}


.contact-note {

    font-size: 14px;

    opacity: 0.6;
}


.contact-note strong {

    color: #67e8f9;

    font-weight: 600;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .page-container {

        min-height:
            calc(100vh - 70px);

        padding:
            90px 15px 50px;
    }


    .page-box {

        padding:
            35px 22px;

        border-radius:
            22px;
    }


    .page-box h1 {

        font-size:
            31px;
    }


    .page-box h2 {

        font-size:
            21px;
    }


    .page-box p {

        font-size:
            15px;

        line-height:
            1.65;
    }


    .collaboration-list {

        grid-template-columns:
            1fr;

        gap:
            12px;
    }


    .contact-email-box {

        padding:
            18px 12px;
    }


    .contact-email-box a {

        font-size:
            14px;
    }

}


/* =========================================
   SUPPORT PROJECT
   ========================================= */

.support-section {
    padding: 40px 20px;
}


/* ================= SUPPORT BOX ================= */

.support-content {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 22px;

    padding: 38px 45px;

    /* LIGHT BLUE */
    background: #dff3ff;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 24px;

    /* SHADOW */
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.25);

    transition:
        box-shadow 0.25s ease,
        outline 0.25s ease,
        transform 0.25s ease;
}


/* ================= BOX FOCUS ================= */

.support-content:focus-within {
    outline: 3px solid #f97316;

    outline-offset: 5px;

    box-shadow:
        0 0 0 6px rgba(249, 115, 22, 0.15),
        0 20px 50px rgba(0, 0, 0, 0.28);
}


/* ================= HEART ICON ================= */

.support-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #fff3a6;

    font-size: 24px;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.12);
}


/* ================= SUPPORT TEXT ================= */

.support-content > div:not(.support-icon) {
    flex: 1;
}


.support-content .section-label {
    color: #2563eb;
}


.support-content h2 {
    margin: 6px 0 5px;

    color: #07111f;

    font-size: 27px;

    line-height: 1.2;
}


.support-content p {
    margin: 0;

    color: #334155;

    line-height: 1.6;
}


/* ================= SUPPORT BUTTON ================= */

.support-btn {
    margin-left: auto;

    flex-shrink: 0;

    padding: 15px 25px;

    border: 1px solid rgba(0, 0, 0, 0.08);

    border-radius: 14px;

    /* YELLOW */
    background: #ffd84d;

    color: #111827;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.16);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* ================= BUTTON HOVER ================= */

.support-btn:hover {
    /* LIGHT GREEN */
    background: #90ee90;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.18);
}


/* ================= BUTTON CLICK ================= */

.support-btn:active {
    background: #7ee787;

    transform: translateY(1px);
}


/* ================= BUTTON FOCUS ================= */

.support-btn:focus-visible {
    outline: 3px solid #f97316;

    outline-offset: 4px;
}


/* ================= MOBILE ================= */

@media (max-width: 700px) {

    .support-section {
        padding: 30px 15px;
    }


    .support-content {
        flex-direction: column;

        text-align: center;

        padding: 32px 22px;

        border-radius: 20px;
    }


    .support-content > div:not(.support-icon) {
        width: 100%;
    }


    .support-content h2 {
        font-size: 24px;
    }


    .support-content p {
        font-size: 14px;
    }


    .support-btn {
        width: 100%;

        max-width: 260px;

        margin-left: 0;
    }

}

.support-content {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 22px;

    padding: 38px 45px;

    background: #dff3ff;

    border: 2px solid #f97316;

    border-radius: 24px;

    /* ORANGE GLOW - ALL 4 SIDES */
    box-shadow:
        0 0 8px #f97316,
        0 0 18px #f97316,
        0 0 35px rgba(249, 115, 22, 0.65);

    transition: 0.25s ease;
}


#startTestBtn:disabled {
    background: #86efac;
    color: #065f46;
    border: 1px solid #4ade80;
    box-shadow:
        0 6px 18px rgba(34, 197, 94, 0.25),
        0 0 12px rgba(34, 197, 94, 0.20);
    cursor: wait;
}


@keyframes supportColorRound {
    0% {
        background: #ffd84d;
    }

    33% {
        background: #a7f3b8;
    }

    66% {
        background: #9edfff;
    }

    100% {
        background: #ffd84d;
    }
}
.support-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 17px;

    background: #ffd84d;
    color: #111827;

    border: 2px solid #f97316;
    border-radius: 12px;

    font-weight: 700;
    text-decoration: none;

    box-shadow:
        0 0 8px #f97316,
        0 0 18px rgba(249, 115, 22, 0.75),
        0 0 30px rgba(249, 115, 22, 0.45);

    transition: 0.2s ease;
}

.support-header-btn:hover {
    background: #90ee90;

    box-shadow:
        0 0 10px #f97316,
        0 0 22px rgba(249, 115, 22, 0.85),
        0 0 35px rgba(249, 115, 22, 0.55);

    transform: translateY(-2px);
}

.custom-amount-box label {
    font-size: 20px;
    font-weight: 700;
}

.custom-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.custom-input span {
    font-size: 22px;
    font-weight: 700;
}

#customAmount {
    width: 260px;
    height: 46px;
    padding: 8px 12px;

    font-size: 20px;
    border-radius: 8px;
}