:root {
    --ink: #0a1720;
    --navy: #071e2b;
    --steel: #153747;
    --cyan: #20d3c2;
    --lime: #b9e34b;
    --paper: #ffffff;
    --muted: #a9bbc2;
    --line: #d4dedf;
    --white: #fff;
    --max: 1180px;
    --shadow: 0 22px 60px #00151f22
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, Segoe UI, Arial, sans-serif;
    line-height: 1.55
}

.skip {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 100;
    background: #fff;
    padding: .8rem
}

.skip:focus {
    top: 1rem
}

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

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

.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #071e2bf2;
    color: #fff;
    border-bottom: 1px solid #ffffff18;
    backdrop-filter: blur(16px)
}

.head-row {
    height: 78px;
    display: flex;
    align-items: center;
    gap: 28px
}

.brand {
    font-weight: 850;
    letter-spacing: .16em;
    font-size: 1.05rem
}

.brand i {
    color: var(--cyan);
    font-style: normal
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto
}

.nav-trigger {
    font: inherit;
    color: #fff;
    background: none;
    border: 0;
    padding: 28px 10px;
    cursor: pointer
}

.nav-trigger:hover,
.nav-trigger:focus {
    color: var(--cyan)
}

.active {
    color: inherit
}

.mega {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 77px;
    background: #0b2734;
    color: #fff;
    border-top: 1px solid #ffffff1c;
    box-shadow: var(--shadow)
}

.has-mega:hover .mega,
.has-mega:focus-within .mega,
.has-mega.mega-open .mega {
    display: block
}

/* Ensure .has-mega fills header height for continuous hover zone */
.has-mega {
    position: static;
    display: flex;
    align-items: center;
    height: 100%;
}

.mega-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 28px;
    padding: 34px 0
}

.mega h3 {
    font-size: 1.45rem;
    margin: 0
}

.mega p {
    color: var(--muted)
}

.mega a {
    display: block;
    padding: 6px 0;
    color: #fff}

.mega a:hover {
    color: var(--cyan)
}

.head-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--cyan);
    color: #05242c;
    border: 0;
    padding: 13px 18px;
    font-weight: 780;
    cursor: pointer
}

.btn.secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #ffffff55
}

.menu-btn {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid #ffffff44;
    color: #fff;
    padding: 8px 11px;
    font-size: 1.4rem
}

.mobile-panel {
    display: none;
    background: var(--navy);
    padding: 12px 20px 28px
}

.mobile-panel.open {
    display: grid
}

.mobile-panel a {
    padding: 11px;
    border-bottom: 1px solid #ffffff15
}

.hero {
    min-height: 690px;
    background: radial-gradient(circle at 78% 25%, #20d3c226, transparent 28%), linear-gradient(125deg, #061b27 0%, #0b3442 68%, #0e4b4b 100%);
    color: #fff;
    overflow: hidden
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    align-items: center;
    min-height: 690px;
    gap: 60px
}

.eyebrow {
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .77rem;
    font-weight: 800
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.7rem, 6vw, 5.7rem);
    line-height: .98;
    letter-spacing: -.05em;
    margin: 18px 0 24px;
    max-width: 850px
}

.hero p,
.page-hero p {
    font-size: 1.15rem;
    color: #fff;
    max-width: 650px
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px
}

.system-visual {
    position: relative;
    height: 420px
}

.ring {
    position: absolute;
    border: 1px solid #20d3c255;
    border-radius: 50%;
    inset: 10%
}

.ring:nth-child(2) {
    inset: 22%
}

.core {
    position: absolute;
    inset: 37%;
    border-radius: 8px;
    background: var(--cyan);
    box-shadow: 0 0 70px #20d3c299
}

.node {
    position: absolute;
    background: #102f3c;
    border: 1px solid #20d3c266;
    color: #fff;
    padding: 10px 14px;
    font-size: .8rem
}

.n1 {
    top: 10%;
    left: 2%
}

.n2 {
    top: 22%;
    right: 0
}

.n3 {
    bottom: 15%;
    left: 3%
}

.n4 {
    right: 10%;
    bottom: 4%
}

.signal {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    width: 90%;
    left: 5%;
    top: 50%;
    transform: rotate(-28deg)
}

section {
    padding: 90px 0
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 36px
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    margin: 8px 0
}

.section-head p {
    max-width: 540px;
    color: #49616a
}

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

.card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 28px;
    min-height: 240px;
    transition: .25s
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--cyan)
}

.card .num {
    font-size: .75rem;
    color: #5b747d;
    font-weight: 800;
    letter-spacing: .14em
}

.card h3 {
    font-size: 1.35rem;
    margin: 26px 0 10px
}

.card p {
    color: #52666d
}

.card .link {
    color: #087c75;
    font-weight: 760
}

.dark {
    background: var(--navy);
    color: #fff
}

.dark .section-head p {
    color: #fff}

.path {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #ffffff18
}

.step {
    background: #0d2b38;
    padding: 30px;
    min-height: 210px
}

.step b {
    color: var(--cyan);
    font-size: .78rem
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.stat {
    padding: 35px 20px;
    text-align: center;
    border-right: 1px solid var(--line)
}

.stat:last-child {
    border: 0
}

.stat strong {
    display: block;
    font-size: 2.2rem
}

.page-hero {
    padding: 100px 0 80px;
    background: linear-gradient(120deg, #071e2b, #114957);
    color: #fff
}

.page-hero h1 {
    font-size: clamp(2.6rem, 5vw, 5rem)
}

.detail {
    display: grid;
    grid-template-columns: .38fr .62fr;
    gap: 55px
}

.side-nav {
    position: sticky;
    top: 105px;
    height: max-content;
    border-left: 2px solid var(--cyan);
    padding-left: 20px
}

.side-nav a {
    display: block;
    padding: 8px 0;
    color: #4b6269
}

.feature {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 300px
}

.feature h2 {
    font-size: 2rem;
    margin: 0 0 12px
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0
}

.chip {
    background: #dce8e7;
    padding: 7px 10px;
    font-size: .8rem
}

.resource-card {
    background: linear-gradient(145deg, #0a2733, #135060);
    color: #fff;
    min-height: 300px
}

.resource-card p {
    color: #bed0d4
}

.contact-band {
    background: var(--lime);
    padding: 58px 0
}

.contact-band .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.contact-band h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0;
    line-height: 1.05
}

.contact-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px
}

.form {
    background: #fff;
    padding: 34px;
    box-shadow: var(--shadow)
}

label {
    display: block;
    font-weight: 700;
    margin: 15px 0 6px
}

input,
select,
textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #b8c8ca;
    background: #f9fbfb;
    font: inherit
}

textarea {
    min-height: 130px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.success {
    display: none;
    background: #e5f8ef;
    border-left: 4px solid #198754;
    padding: 15px;
    margin-top: 16px
}

.site-foot {
    background: #000000;
    color: #fff;
    padding: 55px 0 25px
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 38px
}

.site-foot h4 {
    color: #fff
}

.site-foot a {
    display: block;
    padding: 4px 0
}

.legal {
    border-top: 1px solid #ffffff19;
    margin-top: 35px;
    padding-top: 20px;
    font-size: .8rem
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: .6s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

@media(max-width:920px) {

    .desktop-nav,
    .head-cta {
        display: none
    }

    .menu-btn {
        display: block
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 90px 0
    }

    .system-visual {
        height: 300px
    }

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

    .path {
        grid-template-columns: 1fr 1fr
    }

    .detail {
        grid-template-columns: 1fr
    }

    .side-nav {
        position: static
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:620px) {
    .wrap {
        width: min(100% - 28px, var(--max))
    }

    .head-row {
        height: 66px
    }

    .hero h1 {
        font-size: 3rem
    }

    .hero {
        min-height: auto
    }

    .system-visual {
        height: 260px
    }

    .grid,
    .stats,
    .path,
    .contact-layout,
    .form-row,
    .foot-grid {
        grid-template-columns: 1fr
    }

    .section-head,
    .contact-band .wrap {
        align-items: start;
        flex-direction: column
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    section {
        padding: 65px 0
    }

    .page-hero {
        padding: 72px 0
    }

    .card {
        min-height: auto
    }
}