:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --page-bg: #f2f5fb;
    --surface: #ffffff;
    --surface-soft: #eef3fb;
    --text-main: #121828;
    --text-muted: #5b657d;
    --border: rgba(15, 52, 96, 0.18);
    --shadow-lg: 0 24px 70px rgba(12, 23, 47, 0.25);
    --shadow-md: 0 14px 35px rgba(16, 32, 62, 0.14);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --container: 1240px;
    --nav-height: 86px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background: var(--page-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.05rem 0;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
    background: rgba(14, 23, 43, 0.88);
    backdrop-filter: blur(16px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(10, 18, 36, 0.42);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
}

.brand-mark {
    width: 14px;
    height: 38px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--highlight-color), #c0374f 90%);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    letter-spacing: 0.15em;
    line-height: 1;
}

.brand-text strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.brand-text small {
    margin-top: 0.34rem;
    font-size: 0.64rem;
    opacity: 0.74;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.45rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.28s ease;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.32rem;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
    background: var(--highlight-color);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1.2rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--highlight-color), #cf4257);
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(233, 69, 96, 0.35);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 3.6rem);
    padding-bottom: 4.2rem;
    min-height: min(950px, 100svh);
    color: #fff;
    background:
        radial-gradient(circle at 88% 7%, rgba(233, 69, 96, 0.24), transparent 36%),
        radial-gradient(circle at 14% 85%, rgba(15, 52, 96, 0.46), transparent 52%),
        linear-gradient(140deg, #101a34 0%, #121f3c 42%, #0e1a34 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 70px 70px;
    opacity: 0.2;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 2.8rem;
    align-items: center;
}

.eyebrow {
    margin-bottom: 1.05rem;
    color: var(--highlight-color);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
}

.hero-copy h1 {
    max-width: 14ch;
    font-size: clamp(2.2rem, 5.1vw, 4.3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero-summary {
    max-width: 56ch;
    color: rgba(233, 238, 248, 0.85);
    font-size: 1.03rem;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn {
    min-height: 47px;
    padding: 0 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--highlight-color), #ce4055);
    color: #fff;
    box-shadow: 0 12px 28px rgba(233, 69, 96, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(233, 69, 96, 0.35);
}

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-trust {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.hero-trust article {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    background: rgba(11, 20, 42, 0.36);
    backdrop-filter: blur(6px);
}

.hero-trust h3 {
    font-size: 0.85rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.hero-trust p {
    color: rgba(234, 239, 247, 0.82);
    font-size: 0.86rem;
}

.hero-visual {
    position: relative;
    max-width: 520px;
    margin-left: auto;
}

.hero-image-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 12, 24, 0.7) 100%);
}

.hero-image-frame::after {
    content: "";
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 17px;
    pointer-events: none;
}

.hero-float {
    position: absolute;
    min-width: 185px;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: rgba(15, 24, 46, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 30px rgba(8, 16, 34, 0.45);
}

.hero-float p {
    margin-bottom: 0.25rem;
    font-size: 0.71rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(225, 233, 244, 0.75);
}

.hero-float strong {
    font-size: 0.94rem;
    letter-spacing: 0.02em;
}

.hero-float-top {
    top: 1.2rem;
    left: -3.2rem;
}

.hero-float-bottom {
    right: -1.5rem;
    bottom: 1.4rem;
}

.section {
    position: relative;
    padding: 6rem 0;
}

.section-light {
    background: var(--page-bg);
}

.section-dark {
    color: #f2f5fc;
    background:
        radial-gradient(circle at 78% 12%, rgba(233, 69, 96, 0.17), transparent 42%),
        linear-gradient(140deg, var(--primary-color), #14284a 62%, #122c52 100%);
}

.section-head {
    max-width: 760px;
    margin-bottom: 2.6rem;
}

.section-head h2 {
    font-size: clamp(1.9rem, 2.6vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.14;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 1.6rem;
    align-items: start;
}

.about-story {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 2.6vw, 2.5rem);
    box-shadow: var(--shadow-md);
}

.about-story p {
    color: var(--text-muted);
    font-size: 1rem;
}

.about-story p + p {
    margin-top: 1.1rem;
}

.about-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    min-height: 136px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}

.metric-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.metric-card strong {
    font-size: 1.3rem;
    color: var(--primary-color);
    line-height: 1.1;
}

.capability-section {
    overflow: hidden;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.capability-card {
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    padding: 1.45rem 1.35rem;
}

.capability-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: var(--highlight-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.capability-card h3 {
    margin-bottom: 0.7rem;
    font-size: 1.24rem;
}

.capability-card p {
    color: rgba(236, 243, 252, 0.78);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.system-card {
    overflow: hidden;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.system-card:hover {
    transform: translateY(-8px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 20px 44px rgba(20, 35, 62, 0.2);
}

.system-card img {
    height: 210px;
    object-fit: cover;
}

.system-content {
    padding: 1.2rem 1.2rem 1.35rem;
}

.system-domain {
    margin-bottom: 0.4rem;
    color: var(--highlight-color);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 700;
}

.system-content h3 {
    margin-bottom: 0.6rem;
    font-size: 1.28rem;
    color: var(--primary-color);
}

.system-content p:last-child {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.lattice-section {
    color: #ecf2fb;
    background:
        radial-gradient(circle at 92% 2%, rgba(233, 69, 96, 0.22), transparent 35%),
        linear-gradient(145deg, #111c34, #13264a 58%, #12335e);
}

.lattice-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.lattice-copy h2 {
    font-size: clamp(1.9rem, 2.7vw, 3rem);
    line-height: 1.16;
    margin-bottom: 1rem;
}

.lattice-copy > p {
    max-width: 60ch;
    color: rgba(229, 237, 250, 0.82);
    margin-bottom: 1rem;
}

.lattice-list {
    display: grid;
    gap: 0.75rem;
}

.lattice-list li {
    position: relative;
    padding-left: 1.1rem;
    color: rgba(232, 240, 252, 0.9);
}

.lattice-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--highlight-color);
}

.lattice-visual {
    position: relative;
}

.lattice-visual img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.lattice-badges {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.lattice-badges span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 700;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.program-card {
    background: linear-gradient(160deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    box-shadow: var(--shadow-md);
    border-left: 5px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.program-card:hover {
    border-left-color: var(--highlight-color);
    transform: translateY(-4px);
}

.program-card h3 {
    margin-bottom: 0.55rem;
    color: var(--primary-color);
    font-size: 1.16rem;
}

.program-card p {
    color: var(--text-muted);
}

.manufacturing-section {
    padding-top: 1.2rem;
}

.manufacturing-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    overflow: hidden;
}

.manufacturing-image img {
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.manufacturing-copy {
    padding: clamp(1.5rem, 3vw, 2.4rem);
}

.manufacturing-copy h2 {
    color: var(--primary-color);
    font-size: clamp(1.7rem, 2.6vw, 2.7rem);
    line-height: 1.13;
    margin-bottom: 0.9rem;
}

.manufacturing-copy > p {
    color: var(--text-muted);
}

.manufacturing-points {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.65rem;
}

.manufacturing-points p {
    padding: 0.76rem 0.86rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text-main);
}

.cta-section {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
}

.cta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-wrap h2 {
    font-size: clamp(1.8rem, 2.8vw, 3rem);
    line-height: 1.12;
    margin-bottom: 0.7rem;
}

.cta-wrap p {
    max-width: 55ch;
    color: rgba(232, 240, 251, 0.84);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.1rem;
}

.contact-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.6rem;
    box-shadow: var(--shadow-md);
}

.contact-card h2 {
    color: var(--primary-color);
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    line-height: 1.16;
    margin-bottom: 0.8rem;
}

.contact-card > p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-card ul {
    display: grid;
    gap: 0.65rem;
}

.contact-card li {
    color: var(--text-main);
    font-size: 0.95rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.85rem;
}

.contact-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    min-height: 100%;
}

.contact-image img {
    height: 100%;
    min-height: 350px;
    object-fit: cover;
}

.footer {
    background: linear-gradient(160deg, #121d36, #10172d);
    color: rgba(237, 244, 255, 0.84);
    padding-top: 2.6rem;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
    padding-bottom: 2rem;
}

.footer-brand {
    margin-bottom: 0.9rem;
}

.footer-wrap p {
    max-width: 54ch;
    color: rgba(221, 232, 248, 0.72);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.35rem 1.6rem;
}

.footer-links a {
    color: rgba(239, 245, 255, 0.76);
    font-size: 0.88rem;
    transition: color 0.24s ease;
}

.footer-links a:hover {
    color: var(--highlight-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0 1.5rem;
    color: rgba(219, 228, 245, 0.68);
    font-size: 0.84rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .hero-grid,
    .about-grid,
    .lattice-grid,
    .manufacturing-wrap,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-left: 0;
        max-width: 100%;
    }

    .hero-image-frame img {
        max-height: 480px;
        object-fit: cover;
    }

    .hero-float-top {
        left: 1rem;
        top: 1rem;
    }

    .hero-float-bottom {
        right: 1rem;
        bottom: 1rem;
    }

    .about-metrics,
    .systems-grid,
    .capability-grid,
    .program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .navbar {
        background: rgba(14, 23, 43, 0.9);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu {
        position: absolute;
        left: 1.5rem;
        right: 1.5rem;
        top: calc(100% + 0.55rem);
        display: grid;
        gap: 0;
        padding: 0.45rem;
        border-radius: 16px;
        background: rgba(14, 23, 43, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 18px 35px rgba(7, 13, 27, 0.4);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .nav-menu.is-open {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu a {
        display: block;
        font-size: 0.85rem;
        padding: 0.78rem 0.85rem;
        border-radius: 10px;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a.active,
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.09);
    }

    .hero {
        padding-top: calc(var(--nav-height) + 2.4rem);
        min-height: auto;
    }

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

    .cta-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-wrap {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--container), calc(100% - 2rem));
    }

    .about-metrics,
    .systems-grid,
    .capability-grid,
    .program-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4.5rem 0;
    }

    .hero-copy h1 {
        max-width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-float {
        position: static;
        margin-top: 0.8rem;
    }

    .hero-image-frame {
        border-radius: 20px;
    }

    .system-card img {
        height: 200px;
    }

    .contact-image img {
        min-height: 280px;
    }
}
