:root {
    --bg: #0a0f26;
    --surface: #101835;
    --surface-alt: #0e1530;
    --text: #f2f6ff;
    --text-soft: #c1cde8;
    --accent-red: #ff0022;
    --accent-blue: #0091ff;
    --border: rgba(0, 145, 255, 0.36);
    --radius-sm: 0.6rem;
    --radius-md: 1rem;
    --radius-lg: 1.4rem;
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --header-h: 4.5rem;
    --mobile-bottom-h: 3.5rem;
    --container: min(1180px, 92vw);
    --focus-ring: 0 0 0 3px rgba(255, 0, 34, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    max-width: 100%;
    overflow-x: clip;
    padding-bottom: calc(var(--mobile-bottom-h) + env(safe-area-inset-bottom) + 1rem);
}

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

a {
    color: inherit;
}

.container {
    width: var(--container);
    max-width: 100%;
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: 0;
    left: -9999px;
    z-index: 2000;
    background: #ffffff;
    color: #071129;
    font-weight: 700;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0.75rem 1rem;
}

.skip-link:focus-visible {
    left: 1rem;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1200;
    background: rgba(10, 15, 38, 0.84);
    border-bottom: 1px solid rgba(0, 145, 255, 0.25);
    backdrop-filter: blur(8px);
}

.nav {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    text-decoration: none;
}

.brand img {
    max-height: 2.5rem;
    width: auto;
}

.brand__fallback {
    display: none;
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand.is-missing img {
    display: none;
}

.brand.is-missing .brand__fallback {
    display: inline;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 4vw;
    right: 4vw;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 50, 0.98);
    box-shadow: 0 0 1.2rem rgba(0, 145, 255, 0.28);
}

.nav-links.is-open {
    display: block;
}

.nav-links a {
    display: block;
    padding: 0.95rem 1.1rem;
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-soft);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
    color: var(--text);
    background: rgba(0, 145, 255, 0.14);
}

.hero {
    position: relative;
    min-height: min(56rem, 100vh);
    padding: calc(var(--header-h) + 5rem) 0 4rem;
    display: grid;
    align-items: center;
    overflow: hidden;
    contain: paint;
    background: #0b1129;
}

.hero__tech-layer,
.hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__tech-layer {
    background:
        linear-gradient(130deg, rgba(5, 9, 23, 0.72), rgba(6, 12, 28, 0.62)),
        url("../img/background.png") center / cover no-repeat;
    filter: blur(3px);
    opacity: 0.55;
    transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.08);
    will-change: transform;
}

.hero__overlay {
    background:
        radial-gradient(circle at 14% 26%, rgba(255, 0, 34, 0.24), transparent 45%),
        radial-gradient(circle at 82% 18%, rgba(0, 145, 255, 0.24), transparent 44%),
        rgba(5, 9, 25, 0.58);
}

.hero__neon-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.neon-line {
    position: absolute;
    border-radius: 999px;
}

.neon-line--red {
    width: 220%;
    height: 2px;
    top: 30%;
    left: -60%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 34, 0.6) 30%, rgba(255, 0, 34, 0.15) 70%, transparent 100%);
    box-shadow: 0 0 12px 2px rgba(255, 0, 34, 0.25);
    transform: rotate(-8deg);
    animation: neon-drift-h 18s ease-in-out infinite;
}

.neon-line--blue {
    width: 2px;
    height: 180%;
    top: -40%;
    right: 18%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 145, 255, 0.5) 30%, rgba(0, 145, 255, 0.12) 70%, transparent 100%);
    box-shadow: 0 0 14px 2px rgba(0, 145, 255, 0.2);
    transform: rotate(6deg);
    animation: neon-drift-v 22s ease-in-out infinite;
}

.neon-line--red-2 {
    width: 200%;
    height: 1px;
    bottom: 22%;
    left: -50%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 34, 0.3) 40%, rgba(255, 0, 34, 0.08) 75%, transparent 100%);
    box-shadow: 0 0 8px 1px rgba(255, 0, 34, 0.15);
    transform: rotate(4deg);
    animation: neon-drift-h 26s ease-in-out infinite reverse;
}

.neon-line--blue-2 {
    width: 1px;
    height: 160%;
    top: -30%;
    left: 12%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 145, 255, 0.35) 35%, rgba(0, 145, 255, 0.08) 70%, transparent 100%);
    box-shadow: 0 0 10px 1px rgba(0, 145, 255, 0.15);
    transform: rotate(-5deg);
    animation: neon-drift-v 20s ease-in-out infinite reverse;
}

@keyframes neon-drift-h {
    0%, 100% { transform: rotate(-8deg) translateX(0); }
    50% { transform: rotate(-6deg) translateX(5%); }
}

@keyframes neon-drift-v {
    0%, 100% { transform: rotate(6deg) translateY(0); }
    50% { transform: rotate(4deg) translateY(4%); }
}

@keyframes neon-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 48rem;
}

.hero__content--center {
    text-align: center;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    margin: 0 0 1rem;
    font: 800 clamp(2rem, 5.8vw, 3.8rem) / 1.08 "Montserrat", "Inter", sans-serif;
    text-wrap: balance;
}

.hero p {
    margin: 0;
    color: #d8e3ff;
    max-width: 64ch;
}

.hero__subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.7;
}

.hero__actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.section {
    padding: clamp(3rem, 6.5vw, 6rem) 0;
    scroll-margin-top: calc(var(--header-h) + 0.8rem);
}

.section--solid {
    position: relative;
    isolation: isolate;
}

.section--solid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.section--tone-a::before {
    background:
        linear-gradient(var(--surface), var(--surface)),
        radial-gradient(circle at 12% 20%, rgba(0, 145, 255, 0.08), transparent 40%);
}

.section--tone-b::before {
    background:
        linear-gradient(var(--surface-alt), var(--surface-alt)),
        radial-gradient(circle at 84% 22%, rgba(255, 0, 34, 0.08), transparent 44%);
}

.section-intro {
    max-width: 67ch;
    color: var(--text-soft);
}

.cta {
    border: 1px solid rgba(0, 145, 255, 0.45);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(0, 145, 255, 0.13), rgba(255, 0, 34, 0.14));
    text-align: center;
    padding: clamp(1.4rem, 3.5vw, 2.3rem);
    box-shadow: 0 0 1.5rem rgba(0, 145, 255, 0.2);
}

.cta h2 {
    margin: 0 0 0.7rem;
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: clamp(1.55rem, 3.8vw, 2.2rem);
}

.cta p {
    margin: 0 auto 1.4rem;
    max-width: 62ch;
    color: #d5e0ff;
}

.site-footer {
    background: #090f25;
    border-top: 1px solid rgba(0, 145, 255, 0.2);
    padding: 1.4rem 0 calc(1.6rem + var(--mobile-bottom-h));
}

.site-footer__grid {
    display: grid;
    gap: 1rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #c4d3f4;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #f3f7ff;
}

.meta {
    margin: 0;
    color: #a6b6db;
    font-size: 0.95rem;
}

.bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 1250;
    height: calc(var(--mobile-bottom-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(10, 15, 38, 0.96);
    border-top: 1px solid rgba(0, 145, 255, 0.35);
    backdrop-filter: blur(8px);
}

.bottom-nav a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-decoration: none;
    color: #b7c8ee;
    font-size: 0.72rem;
    font-weight: 600;
    min-width: 0;
}

.bottom-nav i {
    font-size: 0.96rem;
}

.bottom-nav a:hover,
.bottom-nav a:focus-visible,
.bottom-nav a.is-active {
    color: #ffffff;
    background: rgba(0, 145, 255, 0.15);
}

.reveal,
.reveal-right {
    opacity: 0;
    transition: opacity 560ms ease, transform 600ms ease;
}

.reveal {
    transform: translateY(1.2rem);
}

.reveal-right {
    transform: translateX(2.4rem);
}

.reveal.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: none;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 0.35rem;
}

@media (min-width: 48rem) {
    .module-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 1.05rem 1.2rem;
    }

    .site-footer {
        padding-bottom: 1.8rem;
    }
}

@media (min-width: 64rem) {
    .nav-links {
        position: static;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .nav-links a {
        padding: 0.6rem 0.9rem;
        font-size: 0.98rem;
        border-radius: 0.45rem;
    }

    .module-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .bottom-nav {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    .site-footer {
        padding-bottom: 1.8rem;
    }
}

@media (max-width: 47.99rem) {
    .hero {
        min-height: 88vh;
        padding-top: calc(var(--header-h) + 3.7rem);
    }

    .hero h1 {
        font-size: clamp(1.7rem, 7vw, 2.6rem);
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 18rem;
    }

    .site-footer__grid {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@keyframes logo-glow {
    0% { filter: drop-shadow(0 0 0 transparent); }
    15% { filter: drop-shadow(0 0 10px rgba(0, 145, 255, 0.7)) drop-shadow(0 0 24px rgba(255, 0, 34, 0.35)); }
    40% { filter: drop-shadow(0 0 6px rgba(0, 145, 255, 0.4)) drop-shadow(0 0 14px rgba(255, 0, 34, 0.2)); }
    100% { filter: drop-shadow(0 0 0 transparent); }
}

@keyframes neon-burst {
    0% { opacity: 0.5; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.5); }
    100% { opacity: 0.5; filter: brightness(1); }
}

.brand img.is-glowing {
    animation: logo-glow 1.8s ease-in-out;
}

.neon-line.is-burst {
    animation-play-state: paused;
    animation: neon-burst 2s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .hero__tech-layer {
        transform: none !important;
    }

    .hero__neon-lines {
        display: none;
    }

    .reveal,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}
