:root {
    --bg: #05060a;
    --bg-soft: #0a0f1b;
    --panel: rgba(12, 18, 32, 0.72);
    --panel-strong: rgba(6, 9, 17, 0.88);
    --border: rgba(125, 190, 255, 0.14);
    --border-strong: rgba(125, 190, 255, 0.26);
    --text: #e9f2ff;
    --text-soft: #c3d2e6;
    --muted: #8a9fbd;
    --input-bg: rgba(4, 7, 13, 0.7);
    --neon-1: #38f0ff;
    --neon-2: #9d6bff;
    --neon-3: #ff4ecd;
    --on-accent: #041018;
    --bg-rgb: 5, 6, 10;
    --text-rgb: 233, 242, 255;
    --muted-rgb: 138, 159, 189;
    --accent-rgb: 56, 240, 255;
    --accent2-rgb: 157, 107, 255;
    --accent3-rgb: 255, 78, 205;
    --grid-rgb: 120, 190, 255;
    --success: #3ee6a8;
    --error: #ff6b81;
    --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
    --radius: 20px;
    --radius-sm: 12px;
    --content-max: 1200px;
    --header-h: 78px;
    --sidebar-w: 288px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --shadow-panel: 0 30px 60px -40px #000;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --orbital-r: clamp(88px, 20vw, 148px);
    --orbital-trigger: clamp(58px, 7vw, 68px);
    --orbital-r-closed: calc(var(--orbital-trigger) + 16px);
    --orbital-offset: calc(var(--orbital-r) + 56px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    background:
        radial-gradient(1200px 800px at 82% -8%, rgba(var(--accent2-rgb), 0.16), transparent 62%),
        radial-gradient(1000px 700px at -5% 100%, rgba(var(--accent-rgb), 0.1), transparent 60%),
        radial-gradient(900px 600px at 55% 120%, rgba(var(--accent3-rgb), 0.07), transparent 60%),
        var(--bg);
}

body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: transparent;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

ul,
ol {
    list-style: none;
    padding: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 6.2vw, 4.4rem);
}

h2 {
    font-size: clamp(1.65rem, 3.1vw, 2.45rem);
}

h3 {
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

p {
    text-wrap: pretty;
}

::selection {
    background: var(--neon-1);
    color: #021016;
}

:focus-visible {
    outline: 2px solid var(--neon-1);
    outline-offset: 3px;
    border-radius: 4px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #04060b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--neon-2), var(--neon-1));
    border-radius: 999px;
    border: 2px solid #04060b;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 200;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--neon-1), var(--neon-2));
    color: var(--on-accent);
    font-weight: 600;
    font-size: 0.85rem;
    transform: translateY(-200%);
    transition: transform 0.25s var(--ease-out);
}

.skip-link:focus {
    transform: none;
}

.text-gradient {
    background: linear-gradient(100deg, var(--neon-1) 5%, #b8c4ff 45%, var(--neon-2) 75%, var(--neon-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.eyebrow__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon-1);
    box-shadow: 0 0 10px var(--neon-1);
    flex: none;
}

.lead {
    max-width: 62ch;
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    line-height: 1.72;
    color: var(--text-soft);
}

.muted {
    color: var(--muted);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    white-space: nowrap;
    transition: color 0.2s, gap 0.2s;
}

.link-arrow:hover {
    color: var(--neon-1);
    gap: 0.65rem;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-1);
    box-shadow: 0 0 10px var(--neon-1);
    flex: none;
    animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45);
    }
    50% {
        opacity: 0.55;
        box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-center {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes core-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.06);
        filter: brightness(1.18);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero__copy {
        animation: rise 0.8s var(--ease-out) both;
    }

    .hero__visual {
        animation: rise 1s var(--ease-out) 0.1s both;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
