:root {
    color-scheme: dark;
    --bg: #08111f;
    --panel: rgba(255, 255, 255, 0.07);
    --panel-strong: rgba(13, 18, 42, 0.72);
    --line: rgba(255, 255, 255, 0.11);
    --fog: rgba(196, 210, 255, 0.78);
    --neon: #64e3c3;
    --flare: #6f86ff;
    --ember: #ff9e7a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", sans-serif;
    background:
        radial-gradient(circle at 18% 18%, rgba(100, 227, 195, 0.1), transparent 26%),
        radial-gradient(circle at 82% 12%, rgba(111, 134, 255, 0.14), transparent 28%),
        radial-gradient(circle at 55% 78%, rgba(255, 158, 122, 0.06), transparent 24%),
        var(--bg);
    overflow-x: hidden;
}

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

.logo-holder {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.25rem;
    height: 3.5rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: 0 10px 24px rgba(2, 8, 28, 0.2);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.logo-holder::before {
    content: "";
    position: absolute;
    inset: -18%;
    border-radius: inherit;
    background:
        radial-gradient(circle at left center, rgba(255, 255, 255, 0.26), transparent 34%),
        radial-gradient(circle at right center, rgba(255, 255, 255, 0.18), transparent 34%);
    opacity: 0.45;
    pointer-events: none;
}

.logo-holder::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 28px rgba(8, 17, 31, 0.26);
    pointer-events: none;
}

.logo-image {
    position: relative;
    z-index: 1;
    height: 2.3rem;
    width: auto;
    object-fit: contain;
    filter: saturate(1.02);
}

.site-shell {
    position: relative;
    isolation: isolate;
}

.ambient {
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
    z-index: -2;
}

.ambient-a {
    top: 7rem;
    left: -6rem;
    width: 19rem;
    height: 19rem;
    background: rgba(124, 247, 212, 0.18);
}

.ambient-b {
    right: -5rem;
    top: 28rem;
    width: 22rem;
    height: 22rem;
    background: rgba(124, 140, 255, 0.18);
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
    pointer-events: none;
    z-index: -1;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 8%, var(--neon) 44%, #aeb9ff 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-menu.is-open {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: rgba(7, 10, 24, 0.95);
    backdrop-filter: blur(22px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #fff;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

#navbar.is-scrolled {
    background: rgba(7, 10, 24, 0.74);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    content: "";
}

.menu-lines::before {
    position: absolute;
    top: -6px;
}

.menu-lines::after {
    position: absolute;
    top: 6px;
}

.section-kicker {
    margin: 0;
    color: rgba(100, 227, 195, 0.84);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 1.5rem;
    font-family: "Outfit", sans-serif;
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    padding: 0 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.cta-primary {
    color: #04101f;
    background: linear-gradient(135deg, var(--neon), #b7fff0);
    box-shadow: 0 16px 32px rgba(100, 227, 195, 0.16);
}

.cta-secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}

.cta-primary:hover,
.cta-secondary:hover {
    transform: translateY(-2px);
}

.metric-card,
.hero-panel,
.system-card,
.program-card,
.glass-note,
.vision-card,
.testimonial-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    box-shadow: 0 24px 64px rgba(2, 8, 28, 0.28);
    backdrop-filter: blur(22px);
}

.metric-card {
    padding: 1.2rem 1.15rem;
    border-radius: 1.35rem;
}

.metric-value {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.metric-label {
    margin: 0.4rem 0 0;
    color: var(--fog);
    font-size: 0.92rem;
    line-height: 1.6;
}

.hero-visual {
    position: relative;
    min-height: 42rem;
}

.hero-panel {
    position: absolute;
    border-radius: 1.9rem;
}

.hero-panel-main {
    top: 4rem;
    right: 2rem;
    left: 4rem;
    padding: 1.4rem;
}

.hero-panel-float {
    width: min(18rem, 70%);
    padding: 1.2rem;
    background: linear-gradient(180deg, rgba(15, 24, 48, 0.86), rgba(11, 18, 37, 0.76));
}

.hero-image {
    width: 100%;
    height: 22rem;
    object-fit: cover;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-chip {
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.hero-chip-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(196, 210, 255, 0.68);
}

.hero-orbit {
    position: absolute;
    inset: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    pointer-events: none;
}

.hero-orbit-a {
    top: 2rem;
    left: 0;
    width: 24rem;
    height: 24rem;
    transform: rotate(20deg);
}

.hero-orbit-b {
    right: -1rem;
    bottom: 2rem;
    width: 18rem;
    height: 18rem;
    transform: rotate(-14deg);
}

.system-card,
.program-card,
.feature-screen,
.vision-card,
.testimonial-card {
    border-radius: 2rem;
}

.system-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
}

.system-card::before,
.program-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(100, 227, 195, 0.07), transparent 50%, rgba(111, 134, 255, 0.06));
    pointer-events: none;
}

.system-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.system-tag,
.program-tag {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(124, 247, 212, 0.22);
    background: rgba(124, 247, 212, 0.1);
    padding: 0.45rem 0.85rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(124, 247, 212, 0.92);
}

.system-title,
.program-title,
.testimonial-title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.8rem;
    line-height: 1.05;
}

.system-copy,
.program-copy,
.testimonial-copy {
    margin: 0;
    color: var(--fog);
    line-height: 1.8;
}

.system-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.system-meta span {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.program-card {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
}

.program-list {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.program-list li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    color: rgba(255, 255, 255, 0.76);
}

.program-list li::before {
    content: "";
    position: absolute;
    top: 0.6rem;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--neon);
    box-shadow: 0 0 20px rgba(124, 247, 212, 0.6);
}

.feature-wall {
    position: relative;
    min-height: 100%;
}

.feature-screen {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 31rem;
    padding: 1.4rem;
}

.feature-screen-top {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.55rem 0.95rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--neon);
    box-shadow: 0 0 18px rgba(124, 247, 212, 0.8);
}

.insight-card {
    padding: 1.2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.insight-image {
    width: 100%;
    height: 12.5rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.insight-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    line-height: 1.45;
}

.insight-card p {
    margin: 0;
    color: var(--fog);
    line-height: 1.7;
}

.glass-stack {
    display: grid;
    gap: 1rem;
}

.glass-note {
    padding: 1.25rem 1.3rem;
    border-radius: 1.4rem;
}

.glass-note-label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(124, 247, 212, 0.84);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.vision-card,
.testimonial-card {
    padding: 1.6rem;
}

.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

.mobile-stack > * {
    min-width: 0;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    will-change: transform, opacity;
}

[data-reveal="left"] {
    transform: translateX(-56px) translateY(12px) scale(0.98);
}

[data-reveal="right"] {
    transform: translateX(56px) translateY(12px) scale(0.98);
}

[data-reveal="up"] {
    transform: translateY(54px) scale(0.98);
}

[data-reveal="down"] {
    transform: translateY(-54px) scale(0.98);
}

[data-reveal="zoom"] {
    transform: scale(0.9) translateY(24px);
}

.system-card,
.program-card,
.insight-card,
.testimonial-card,
.vision-card,
.hero-panel,
.metric-card,
.glass-note {
    transform-style: preserve-3d;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
    will-change: transform, opacity;
}

.scroll-reactive {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.system-card:hover,
.program-card:hover,
.insight-card:hover,
.testimonial-card:hover,
.vision-card:hover,
.glass-note:hover {
    transform: translateY(-6px);
    border-color: rgba(100, 227, 195, 0.22);
    box-shadow: 0 28px 68px rgba(2, 8, 28, 0.34);
}

.feature-screen::before,
.hero-panel-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.08) 32%, transparent 44%),
        linear-gradient(180deg, rgba(100, 227, 195, 0.05), transparent 32%, rgba(111, 134, 255, 0.04));
    transform: translateX(-55%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.feature-screen::after,
.hero-panel-main::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.system-card::after,
.program-card::after,
.insight-card::after {
    content: "";
    position: absolute;
    inset: auto 1.25rem 1rem 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 227, 195, 0.4), transparent);
    opacity: 0.55;
    pointer-events: none;
}

@media (max-width: 1024px) {
    #navbar {
        border-radius: 1.5rem;
    }

    .hero-visual {
        min-height: 36rem;
    }

    .hero-panel-main {
        top: 2rem;
        right: 1rem;
        left: 1rem;
    }

    .hero-panel-float {
        width: min(16rem, 62%);
    }
}

@media (max-width: 767px) {
    .ambient-a,
    .ambient-b,
    .grid-overlay {
        opacity: 0.65;
    }

    #navbar {
        width: calc(100% - 1rem);
        margin-top: 0.5rem;
        padding: 0.8rem 0.9rem;
        border-radius: 1.25rem;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .logo-holder {
        min-width: 4.35rem;
        height: 3rem;
        padding: 0.3rem 0.65rem;
        border-radius: 0.9rem;
    }

    .logo-image {
        height: 1.95rem;
    }

    .nav-menu.is-open {
        top: calc(100% + 0.6rem);
        gap: 0.4rem;
        padding: 0.8rem;
        border-radius: 1.1rem;
    }

    .nav-menu.is-open .nav-link,
    .nav-menu.is-open a.rounded-full {
        display: block;
        width: 100%;
        padding: 0.85rem 0.95rem;
        border-radius: 0.9rem;
        background: rgba(255, 255, 255, 0.04);
    }

    .nav-menu.is-open .nav-link::after {
        display: none;
    }

    .section-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.24em;
    }

    .section-title {
        font-size: clamp(2rem, 9vw, 2.9rem);
        line-height: 1.02;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
    }

    .metric-card,
    .system-card,
    .program-card,
    .insight-card,
    .glass-note,
    .vision-card,
    .testimonial-card,
    .feature-screen {
        border-radius: 1.35rem;
    }

    .hero-visual {
        display: grid;
        gap: 1rem;
        min-height: auto;
        margin-top: 1rem;
    }

    .hero-panel-main {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        padding: 1rem;
    }

    .hero-panel-float {
        position: relative;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100%;
        padding: 1rem;
    }

    .hero-panel,
    .hero-orbit {
        position: relative;
    }

    .hero-image {
        height: 13rem;
    }

    .hero-orbit {
        display: none;
    }

    .hero-chip {
        padding: 0.9rem 1rem;
    }

    .system-image,
    .insight-image {
        height: 11rem;
    }

    .system-title,
    .program-title,
    .testimonial-title {
        font-size: 1.45rem;
    }

    .system-meta {
        gap: 0.5rem;
    }

    .system-meta span {
        font-size: 0.74rem;
        padding: 0.38rem 0.65rem;
    }

    .feature-screen {
        min-height: auto;
        padding: 1rem;
    }

    .feature-screen::after,
    .hero-panel-main::after {
        inset: 0.75rem;
        border-radius: 1rem;
    }

    .testimonial-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    footer .grid {
        gap: 1rem;
    }

    .section-block {
        overflow: clip;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .logo-holder {
        min-width: 3.95rem;
        height: 2.8rem;
    }

    .logo-image {
        height: 1.75rem;
    }

    .hero-image {
        height: 11rem;
    }

    .system-image,
    .insight-image {
        height: 9.5rem;
    }

    .metric-value {
        font-size: 1.7rem;
    }
}
