:root {
    --dark: #101820;
    --dark-light: #192631;
    --gold: #f5a623;
    --white: #ffffff;
    --muted: #aab6c0;
    --light-bg: #f5f6f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--dark);
    line-height: 1.7;
}

h1, h2, h3, .brand {
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.15;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

.section-padding {
    padding: 100px 8%;
}

.eyebrow,
.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.eyebrow {
    color: #b97708;
    margin-bottom: 20px;
}

.section-label {
    color: #8a949d;
    padding-bottom: 24px;
    border-bottom: 1px solid #dfe3e6;
    margin-bottom: 55px;
}

/* Header */

.site-header {
    min-height: 88px;
    padding: 15px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: var(--white);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand small {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    letter-spacing: 4px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    background: var(--gold);
    color: var(--dark);
    font-size: 27px;
    font-weight: 700;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    padding-top: 8px;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 13px;
    font-weight: 600;
}

.site-header nav a:hover {
    color: #b97708;
}

.nav-contact {
    background: var(--dark);
    color: var(--white);
    padding: 12px 18px;
}

/* Hero */

.hero {
    min-height: 680px;
    display: flex;
    align-items: center;
    padding: 90px 8%;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(9, 16, 22, .96) 0%,
            rgba(9, 16, 22, .82) 50%, rgba(9, 16, 22, .32) 100%),
        url("images/apex-hero.jpg") center/cover no-repeat,
        var(--dark);
}

.hero ::after {
    backdrop-filter: blur(80px);

}

.hero-content {
    max-width: 780px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    letter-spacing: -3px;
    margin-bottom: 28px;
}

.hero h1 span,
.about h2 span,
.section-heading h2 span,
.contact h2 span {
    color: var(--gold);
}

.hero-description {
    color: #d2d8dd;
    max-width: 580px;
    font-size: 16px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.primary-btn,
.secondary-btn {
    min-height: 49px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 700;
    transition: .3s ease;
}

.primary-btn {
    background: var(--gold);
    color: var(--dark);
}

.primary-btn:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.secondary-btn {
    border: 1px solid #71808b;
    color: var(--white);
}

.secondary-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.hero-bottom {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    border-top: 1px solid #58616a;
    padding-top: 25px;
    margin-top: 80px;
    color: #bdc6cd;
    font-size: 10px;
    letter-spacing: 2px;
}

/* About */

.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.about h2,
.section-heading h2,
.contact h2 {
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -1.5px;
}

.about h2 span {
    color: #b97708;
}

.about-text p {
    color: #596570;
    font-size: 14px;
    margin-bottom: 22px;
}

.text-link {
    display: inline-block;
    color: #9b6508;
    font-weight: 700;
    font-size: 13px;
    margin-top: 10px;
}

/* Expertise */

.expertise {
    background: var(--light-bg);
}

.section-heading {
    margin-bottom: 45px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.expertise-card {
    position: relative;
    background: var(--white);
    padding: 35px 28px;
    border: 1px solid #e6e9ec;
    transition: .3s ease;
}

.expertise-card:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-7px);
}

.card-number {
    position: absolute;
    right: 24px;
    top: 25px;
    color: #a0a9b0;
    font-size: 12px;
}

.card-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    background: #fff0d2;
    color: #a66b00;
    font-size: 27px;
    margin-bottom: 35px;
}

.expertise-card h3 {
    font-size: 21px;
    margin-bottom: 18px;
}

.expertise-card p {
    color: #77818a;
    font-size: 13px;
    margin-bottom: 25px;
}

.expertise-card:hover p {
    color: #c5cdd3;
}

.expertise-card a {
    font-size: 12px;
    font-weight: 700;
    color: #a66b00;
}

/* Statistics */

.stats-section {
    background: var(--gold);
    padding: 55px 8%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-item strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(27px, 3vw, 40px);
    color: var(--dark);
}

.stat-item span {
    font-size: 12px;
    font-weight: 600;
}

/* Contact */

.contact {
    background: var(--dark);
    color: var(--white);
}

.contact-content {
    max-width: 750px;
}

.contact h2 {
    margin-bottom: 25px;
}

.contact-content>p:not(.eyebrow) {
    max-width: 580px;
    color: #bdc6cd;
    font-size: 14px;
    margin-bottom: 30px;
}

.contact-content small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 15px;
}

/* Footer */

footer {
    padding: 30px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: #0b1117;
    color: var(--white);
}

.footer-brand {
    font-size: 16px;
}

.footer-brand .brand-icon {
    width: 35px;
    height: 35px;
    font-size: 20px;
}

footer p {
    color: #aab6c0;
    font-size: 11px;
}

/* Popup */

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(5, 10, 15, .82);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    position: relative;
    width: 100%;
    max-width: 850px;
    max-height: 92vh;
    overflow-y: auto;
    /* display: grid;
    grid-template-columns: .85fr 1.15fr; */
    background: var(--white);
    box-shadow: 0 25px 90px rgba(0, 0, 0, .4);
    transform: translateY(25px) scale(.98);
    transition: transform .35s ease;
    text-align: center;
}

.popup-overlay.show .popup-box {
    transform: translateY(0) scale(1);
}

.popup-close {
    position: absolute;
    z-index: 2;
    right: 14px;
    top: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #edf0f2;
    color: var(--dark);
    font-size: 27px;
    cursor: pointer;
}

.popup-close:hover {
    background: var(--gold);
}

.popup-image {
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    background:
        linear-gradient(0deg, rgba(9, 16, 22, .75), transparent 70%),
        url("images/apex-popup.jpg") center/cover no-repeat,
        var(--dark);
}

.popup-tag {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.popup-content {
    padding: 48px 35px 38px;
}

.popup-content .eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.popup-content h2 {
    font-size: clamp(26px, 3vw, 37px);
    margin-bottom: 18px;
}

.popup-content h2 span {
    color: #b97708;
}

.popup-content>p:not(.eyebrow) {
    color: #65717b;
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.popup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
    padding: 20px 0;
    margin-bottom: 20px;
    border-top: 1px solid #e2e6e9;
    border-bottom: 1px solid #e2e6e9;
}

.popup-stats div {
    display: flex;
    flex-direction: column;
}

.popup-stats strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    color: var(--dark);
}

.popup-stats small {
    font-size: 10px;
    color: #7b858d;
}

.popup-content .primary-btn {
    width: 100%;
}

/* Responsive */

@media (max-width: 900px) {
    .site-header {
        padding: 18px 5%;
    }

    .site-header nav {
        gap: 15px;
    }

    .section-padding {
        padding: 75px 6%;
    }

    .about-grid {
        gap: 35px;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .popup-box {
        max-width: 700px;
    }

    .popup-image {
        min-height: 450px;
    }

    .popup-content {
        padding: 45px 25px 30px;
    }
}

@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .site-header nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px 18px;
        font-size: 12px;
    }

    .hero {
        min-height: 600px;
        padding: 70px 6%;
        background-position: center;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -1.8px;
    }

    .hero-bottom {
        margin-top: 55px;
        gap: 15px;
    }

    .about-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 65px 6%;
    }

    .stats-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 40px 6%;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Google Fonts */
    @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

    /* Background Overlay 80% */
    .popup-overlay {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 99999;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        background: rgba(0, 0, 0, 0.80);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .popup-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Main Popup */
    .popup-box {
        position: relative;
        width: 100%;
        max-width: 720px;
        max-height: 92vh;
        overflow-y: auto;
        background:
            radial-gradient(circle at 90% 0%,
                rgba(245, 166, 35, 0.13), transparent 40%),
            linear-gradient(145deg, #172431, #0b121b);
        border: 1px solid rgba(245, 166, 35, 0.25);
        border-radius: 20px;
        color: #fff;
        font-family: 'DM Sans', sans-serif;
        box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
        transform: translateY(35px) scale(0.95);
        transition: transform 0.5s ease;
        scrollbar-width: thin;
    }

    .popup-overlay.show .popup-box {
        transform: translateY(0) scale(1);
    }

    /* Close Button */
    .popup-close {
        position: absolute;
        top: 18px;
        right: 20px;
        z-index: 5;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.07);
        color: #fff;
        font-size: 25px;
        cursor: pointer;
        transition: 0.3s;
    }

    .popup-close:hover {
        background: #f5a623;
        color: #101820;
        transform: rotate(90deg);
    }

    /* Top Label */
    /* .popup-top {
        padding: 24px 30px 0;
    } */

    .popup-live {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 2px;
        color: #f5a623;
    }

    .live-dot,
    .status-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #f5a623;
        box-shadow: 0 0 12px #f5a623;
        animation: pulseDot 1.8s infinite;
    }

    /* Popup Content */
    .popup-content {
        padding: 20px 55px 35px;
        text-align: center;
    }

    .popup-icon {
        width: 64px;
        height: 64px;
        display: grid;
        place-items: center;
        margin: 0 auto 20px;
        background: rgba(245, 166, 35, 0.1);
        border: 1px solid rgba(245, 166, 35, 0.3);
        border-radius: 18px;
        color: #f5a623;
        font-size: 35px;
        animation: floating 3s ease-in-out infinite;
    }

    .popup-label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 3px;
        color: #f5a623;
        margin-bottom: 15px;
    }

    .popup-content h2 {
        font-family: 'Space Grotesk', sans-serif;
        font-size: clamp(34px, 5vw, 54px);
        font-weight: 700;
        line-height: 1.12;
        letter-spacing: -2px;
        color: #fff;
        margin-bottom: 22px;
    }

    .popup-content h2 span {
        color: #f5a623;
    }

    .popup-accent-line {
        width: 65px;
        height: 3px;
        margin: 0 auto 25px;
        border-radius: 10px;
        background: linear-gradient(90deg, #f5a623, #ffe3a5);
    }

    .popup-content h3 {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 19px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 15px;
    }

    .popup-description {
        max-width: 520px;
        margin: 0 auto 25px;
        color: #b8c2cc;
        font-size: 13px;
        line-height: 1.9;
    }

    /* Product Highlights */
    .popup-highlights {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 9px;
        margin-bottom: 30px;
    }

    .popup-highlights span {
        padding: 9px 13px;
        border: 1px solid rgba(245, 166, 35, 0.22);
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.04);
        color: #d7dfe6;
        font-size: 11px;
        transition: 0.3s;
    }

    .popup-highlights span:hover {
        border-color: #f5a623;
        color: #f5a623;
    }

    /* Footer */
    .popup-footer {
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .popup-status {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #b8c2cc;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.5px;
        margin-bottom: 22px;
    }

    /* CTA Button */
    .popup-btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 15px 30px;
        background: #f5a623;
        color: #101820;
        border-radius: 7px;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        transition: 0.3s ease;
    }

    .popup-btn:hover {
        background: #fff;
        color: #101820;
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(245, 166, 35, 0.2);
    }

    .popup-btn span {
        font-size: 18px;
    }

    .popup-thanks {
        color: #8f9ba6;
        font-size: 11px;
        margin-top: 22px;
    }

    /* Bottom Strip */
    .popup-bottom {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 17px 30px;
        background: rgba(0, 0, 0, 0.25);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 9px;
        letter-spacing: 1.5px;
        color: #8995a0;
        margin-left: 50%;
    }

    /* Animations */
    @keyframes pulseDot {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }

        50% {
            opacity: 0.4;
            transform: scale(0.75);
        }
    }

    @keyframes floating {
        0%, 100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }

    /* Tablet */
    @media (max-width: 768px) {
        .popup-box {
            max-width: 600px;
        }

        .popup-content {
            padding: 20px 30px 30px;
        }

        .popup-content h2 {
            font-size: 40px;
        }
    }

    /* Mobile */
    @media (max-width: 480px) {
        .popup-overlay {
            padding: 12px;
        }

        .popup-box {
            max-height: 90vh;
            border-radius: 14px;
        }

        /* .popup-top {
            padding: 22px 20px 0;
        } */

        .popup-live {
            max-width: 85%;
            font-size: 9px;
            letter-spacing: 1px;
        }

        .popup-content {
            padding: 25px 20px;
        }

        .popup-icon {
            width: 52px;
            height: 52px;
            font-size: 28px;
            margin-bottom: 15px;
        }

        .popup-content h2 {
            font-size: 32px;
            letter-spacing: -1px;
        }

        .popup-content h3 {
            font-size: 16px;
        }

        .popup-description {
            font-size: 12px;
            line-height: 1.7;
        }

        .popup-highlights {
            gap: 7px;
        }

        .popup-highlights span {
            padding: 7px 10px;
            font-size: 10px;
        }

        .popup-btn {
            width: 100%;
            padding: 14px;
        }

        .popup-bottom {
            padding: 15px 20px;
            flex-direction: column;
            text-align: center;
            gap: 5px;
        }

    }

    @media (prefers-reduced-motion: reduce) {

        .popup-overlay,
        .popup-box,
        .popup-close,
        .popup-btn,
        .popup-icon,
        .live-dot,
        .status-dot {
            animation: none;
            transition: none;
        }
    }
}