:root {
    --bg: #05070d;
    --bg-alt: #080c17;
    --surface: #0c1220;
    --surface-2: #101a2e;

    --blue: #0585ff;
    --blue-bright: #2f9dff;
    --blue-deep: #021c3d;
    --blue-glow: #29c2ff;

    --text: #eef3fb;
    --text-secondary: #8fa1c4;

    --white: #ffffff;

    --border: #1c2941;
    --border-bright: #2a3c5c;

    --soft-blue: rgba(5, 133, 255, 0.10);
    --soft-blue-strong: rgba(5, 133, 255, 0.16);

    --max-width: 1380px;

    --shadow-sm:
        0 2px 12px rgba(0, 0, 0, 0.45);

    --shadow-md:
        0 18px 44px rgba(0, 0, 0, 0.55);

    --shadow-lg:
        0 30px 90px rgba(0, 0, 0, 0.6);

    --glow-sm:
        0 0 24px rgba(5, 133, 255, 0.18);

    --glow-md:
        0 0 55px rgba(5, 133, 255, 0.22);

    --glow-lg:
        0 0 120px rgba(5, 133, 255, 0.28);
}

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

html {
    scroll-behavior: smooth;
}

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

    color: var(--text);
    background: var(--bg);

    line-height: 1.6;
}

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

img {
    display: block;
    max-width: 100%;
}

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


/* ================================================
   HEADER
================================================ */

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

    background: rgba(5, 7, 13, 0.86);
    backdrop-filter: blur(16px);

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

    box-shadow:
        0 2px 20px rgba(0, 0, 0, 0.35);
}

.nav {
    min-height: 82px;

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

    gap: 40px;
}

.brand {
    display: flex;
    align-items: center;
    height: 82px;
}

.brand-logo {
    display: block;
    width: auto;
    height: 80px;
    max-width: 280px;
    object-fit: contain;
}

.mobile-nav {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 50px;

    list-style: none;

    color: var(--text);

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

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--blue-bright);
}

.nav-cta {
    padding: 14px 28px;

    color: var(--white) !important;
    background: var(--blue);

    border-radius: 7px;

    box-shadow: var(--glow-sm);
}

.nav-cta:hover {
    background: var(--blue-bright);
    box-shadow: var(--glow-md);
}


/* ================================================
   HERO
================================================ */

.hero {
    position: relative;
    overflow: hidden;

    padding: 62px 0 64px;

    background:
        radial-gradient(
            circle at 93% 20%,
            rgba(5, 133, 255, 0.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 8% 100%,
            rgba(41, 194, 255, 0.10),
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #05070d 0%,
            #05070d 55%,
            #060a15 100%
        );
}

.hero::before {
    content: "";

    position: absolute;

    width: 620px;
    height: 620px;

    right: -280px;
    top: -220px;

    border-radius: 50%;

    border: 1px solid rgba(5, 133, 255, 0.16);
}

.hero::after {
    content: "";

    position: absolute;

    width: 470px;
    height: 470px;

    right: -210px;
    top: -145px;

    border-radius: 50%;

    border: 1px solid rgba(5, 133, 255, 0.12);
}

.hero-grid {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1.06fr)
        minmax(500px, 0.94fr);

    gap: 78px;

    align-items: center;
}

.eyebrow {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 20px;

    color: var(--blue-bright);

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";

    width: 38px;
    height: 2px;

    background: var(--blue-glow);

    box-shadow: 0 0 8px rgba(41, 194, 255, 0.7);
}

h1 {
    max-width: 730px;

    color: var(--text);

    font-size: clamp(46px, 4.5vw, 66px);
    font-weight: 750;

    line-height: 1.1;
    letter-spacing: -0.045em;
}

h1 span {
    display: block;

    color: var(--blue-bright);
}

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

    margin-top: 24px;

    color: var(--text-secondary);

    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 30px;
}

.button {
    min-height: 54px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 0 28px;

    border-radius: 6px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

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

.button-primary {
    color: var(--white);

    background: var(--blue);

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

    box-shadow: var(--glow-sm);
}

.button-primary:hover {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
    box-shadow: var(--glow-md);
}

.button-secondary {
    color: var(--text);

    background: transparent;

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

.button-secondary:hover {
    color: var(--blue-bright);

    border-color: var(--blue);
    box-shadow: var(--glow-sm);
}


/* ================================================
   HERO LOGO PANEL
================================================ */

.hero-visual {
    position: relative;
}

.hero-card {
    position: relative;

    min-height: 360px;

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

    overflow: hidden;

    padding: 38px 50px;

    background:
        linear-gradient(
            160deg,
            var(--surface) 0%,
            #070c17 100%
        );

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

    box-shadow: var(--shadow-lg), var(--glow-lg);
}

.hero-card::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -60px;
    top: -60px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(5, 133, 255, 0.30),
            transparent 70%
        );
}

.hero-card-logo {
    position: relative;
    z-index: 1;

    width: 380px;
}

.hero-badge {
    position: absolute;

    left: -75px;
    bottom: -28px;

    min-width: 300px;

    padding: 15px 24px;

    display: flex;
    align-items: center;

    gap: 14px;

    color: var(--white);
    background: var(--surface-2);

    border: 1px solid var(--border-bright);
    border-radius: 7px;

    box-shadow: var(--shadow-md), var(--glow-sm);
}

.hero-badge-icon {
    width: 40px;
    height: 40px;

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

    flex: 0 0 auto;

    border-radius: 8px;

    color: var(--blue-glow);

    background:
        var(--soft-blue-strong);

    font-size: 21px;
}

.hero-badge strong {
    display: block;

    margin-bottom: 2px;

    font-size: 13px;
}

.hero-badge span {
    font-size: 12px;

    color: var(--text-secondary);
}


/* ================================================
   CAPABILITIES BAR
================================================ */

.capability-bar {
    color: var(--white);

    background:
        linear-gradient(
            90deg,
            #03142c,
            #04203f,
            #03142c
        );

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

.capability-inner {
    min-height: 74px;

    display: flex;
    align-items: center;

    gap: 30px;
}

.capability-label {
    padding-right: 24px;

    color: var(--blue-glow);

    border-right:
        1px solid rgba(255, 255, 255, 0.12);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    white-space: nowrap;
}

.capability-list {
    width: 100%;

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

    gap: 24px;

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

.capability-item {
    display: flex;
    align-items: center;

    gap: 23px;

    white-space: nowrap;
}

.capability-item::before {
    content: "•";

    color: var(--blue-glow);

    font-size: 18px;
}


/* ================================================
   SECTIONS
================================================ */

section.content-section {
    padding: 90px 0;
}

.section-heading {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: end;

    margin-bottom: 40px;
}

.section-label {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 12px;

    color: var(--blue-bright);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
}

.section-label::before {
    content: "";

    width: 36px;
    height: 2px;

    background: var(--blue-glow);

    box-shadow: 0 0 8px rgba(41, 194, 255, 0.7);
}

h2 {
    max-width: 650px;

    color: var(--text);

    font-size: clamp(34px, 3.5vw, 48px);

    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-description {
    max-width: 640px;

    padding-bottom: 5px;

    color: var(--text-secondary);

    font-size: 16px;
    line-height: 1.7;
}


/* ================================================
   SERVICES
================================================ */

.services {
    background: var(--bg);
}

.service-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;
}

.service-card {
    min-height: 300px;

    padding: 25px;

    background: var(--surface);

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

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    border-color: var(--border-bright);
    box-shadow: var(--shadow-md), var(--glow-sm);
}

.service-top {
    display: flex;
    align-items: flex-start;

    gap: 18px;

    margin-bottom: 18px;
}

.service-icon {
    width: 58px;
    height: 58px;

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

    flex: 0 0 auto;

    color: var(--blue-bright);

    background: var(--soft-blue);

    border-radius: 8px;

    font-size: 24px;
}

.service-card:nth-child(even)
.service-icon {
    color: var(--blue-glow);

    background: var(--soft-blue-strong);
}

.service-card h3 {
    color: var(--text);

    font-size: 18px;
    line-height: 1.25;
}

.service-card p {
    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.75;
}


/* ================================================
   RESPONSIVE
================================================ */

@media (max-width: 1150px) {

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

    .nav-links {
        gap: 25px;
    }

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

        gap: 45px;
    }

    .hero-badge {
        left: -25px;
    }

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

    .capability-list {
        flex-wrap: wrap;
        justify-content: flex-start;

        padding: 18px 0;
    }
}

@media (max-width: 850px) {

    .site-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .mobile-nav .nav-links {
        flex-wrap: wrap;

        gap: 14px 25px;
    }

    .mobile-nav .nav-links li:not(:last-child) {
        display: none;
    }

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

    .hero-visual {
        margin-top: 20px;
    }

    .hero-badge {
        position: relative;

        left: auto;
        bottom: auto;

        margin-top: 14px;

        width: fit-content;
    }

    .section-heading {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .capability-inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;

        padding: 20px 0;
    }

    .capability-label {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 620px) {

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

    .nav {
        min-height: 68px;
    }

    .brand {
        display: flex;
        align-items: center;
        height: 82px;
    }

    .brand-logo {
        display: block;
        width: auto;
        height: 46px;
        max-width: 220px;
        object-fit: contain;
    }

    .nav-cta {
        padding: 10px 14px;

        font-size: 12px;
    }

    .hero {
        padding: 55px 0;
    }

    h1 {
        font-size: 44px;
    }

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

        padding: 28px;
    }

    .hero-card-logo {
        width: 260px;
    }

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

    .capability-item {
        width: 100%;
    }

}


/* ================================================
   CONTACT MODAL
================================================ */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;

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

    padding: 24px;
}

.contact-modal[hidden] {
    display: none;
}

.contact-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(2, 4, 9, 0.78);
}

.contact-modal-dialog {
    position: relative;

    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    box-shadow: var(--shadow-lg), var(--glow-md);

    padding: 40px;
}

.contact-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 36px;
    height: 36px;

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

    border: none;
    border-radius: 6px;
    background: transparent;

    color: var(--text-secondary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease;
}

.contact-modal-close:hover {
    background: var(--surface-2);
    color: var(--blue-bright);
}

.contact-modal-header {
    margin-bottom: 22px;
}

.contact-modal-header h3 {
    margin-top: 6px;
    color: var(--text);
}

.contact-form-row {
    margin-bottom: 16px;
}

.contact-form-row label {
    display: block;

    margin-bottom: 6px;

    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.contact-form-row .optional {
    font-weight: 400;
    color: var(--text-secondary);
}

.contact-form-row input,
.contact-form-row textarea {
    width: 100%;

    padding: 12px 14px;

    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;

    font-size: 14px;
    font-family: inherit;
    color: var(--text);

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-row input:focus,
.contact-form-row textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: var(--glow-sm);
}

.contact-form-row textarea {
    resize: vertical;
}

.contact-form-status {
    margin-bottom: 16px;

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

.contact-form-status[data-state="error"] {
    color: #ff6b6b;
}

.contact-form-status[data-state="success"] {
    color: #3ddc84;
}

.contact-form-actions {
    display: flex;
    justify-content: flex-end;
}

.contact-form-actions .button {
    width: 100%;
}

.contact-form-actions .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
