:root {
    /* HUD Core - NUCLEAR GRADE DESIGNER PALETTE */
    --p-50: #eef2ff;
    --p-100: #e0e7ff;
    --p-200: #c7d2fe;
    --p-300: #a5b4fc;
    --p-400: #818cf8;
    --p-500: #6366f1;
    --p-600: #4f46e5;
    --p-700: #4338ca;

    --primary: var(--p-500);
    --primary-glow: rgba(99, 102, 241, 0.4);
    --primary-dim: rgba(99, 102, 241, 0.15);

    /* Semantic Colors */
    --crit: #f43f5e;
    --high: #fb923c;
    --med: #facc15;
    --low: #22c55e;

    /* Surfaces */
    --bg-0: #020617;
    --bg-1: #070b1d;
    --bg-2: #0f172a;
    --panel-bg: rgba(15, 23, 42, 0.7);

    /* Typography */
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #475569;

    /* Accents */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shimmer: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, rgba(255, 255, 255, 0.02) 100%);
    --accent-glow: 0 0 20px rgba(99, 102, 241, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-0);
}

body {
    background-color: var(--bg-0);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.2), transparent 70%),
        radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.08), transparent 50%),
        radial-gradient(circle at 100% 50%, rgba(79, 70, 229, 0.05), transparent 40%);
    background-attachment: fixed;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
    background-size: 100% 3px, 3px 100%;
    opacity: 0.4;
}

/* Typography Hub */
h1,
h2,
h3,
h4 {
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.label {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 700;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .section-container {
        padding: 0 1.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/*  NUCLEAR GRID ENGINE                                                       */
/* -------------------------------------------------------------------------- */
.grid-engine {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 1.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 6rem auto;
    padding: 0 2rem;
}

@media (max-width: 1400px) {
    .grid-engine {
        max-width: 100%;
        padding: 0 1.5rem;
    }
}

.col-2 {
    grid-column: span 2 !important;
}

.col-3 {
    grid-column: span 3 !important;
}

.col-4 {
    grid-column: span 4 !important;
}

.col-6 {
    grid-column: span 6 !important;
}

.col-12 {
    grid-column: span 12 !important;
}

@media (max-width: 1024px) {

    .col-2,
    .col-3,
    .col-4 {
        grid-column: span 6 !important;
    }
}

@media (max-width: 640px) {

    .col-2,
    .col-3,
    .col-4,
    .col-6 {
        grid-column: span 12 !important;
    }
}

/* -------------------------------------------------------------------------- */
/*  HIGH-FIDELITY HUD PANELS                                                  */
/* -------------------------------------------------------------------------- */
.hud-p {
    background: var(--panel-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    position: relative;
    position: relative;
    padding: 2.5rem 2rem !important;
    height: auto !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    perspective: 1200px;
}

.hud-p::before,
.hud-p::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--primary);
    opacity: 0.4;
    pointer-events: none;
}

.hud-p::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.hud-p::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.hud-p:hover {
    border-color: var(--p-300);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 15px var(--primary-dim);
    background: rgba(15, 23, 42, 0.98);
}

.shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-shimmer);
    pointer-events: none;
    opacity: 0.3;
}

/* -------------------------------------------------------------------------- */
/*  WORKFLOW ENGINE                                                           */
/* -------------------------------------------------------------------------- */
.step-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2.5rem;
    margin: 5rem 0;
}

@media (max-width: 1024px) {
    .step-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .step-row {
        grid-template-columns: 1fr !important;
    }
}

.v-node {
    text-align: center;
}

.orb-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-0);
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    transition: 0.4s;
    box-shadow: 0 0 15px var(--primary-dim);
}

.v-node:hover .orb-icon {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--primary);
}

/* -------------------------------------------------------------------------- */
/*  INTERACTIVE ELEMENTS                                                      */
/* -------------------------------------------------------------------------- */
.btn-core {
    background: var(--primary);
    color: white;
    padding: 1.25rem 3.5rem;
    border-radius: 2px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-core:hover {
    background: var(--p-600);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: scale(1.02);
}

.code-monitor {
    background: #000;
    border: 1px solid #1e293b;
    padding: 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* -------------------------------------------------------------------------- */
/*  ANIMATIONS & CORE HUD ELEMENTS                                            */
/* -------------------------------------------------------------------------- */
.hud-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.logo-orbit {
    animation: rotateHub 60s linear infinite;
}

@keyframes rotateHub {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes tacticalFlicker {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--primary);
    }

    95% {
        opacity: 1;
    }

    96% {
        opacity: 0.7;
    }

    97% {
        opacity: 1;
    }

    98% {
        opacity: 0.8;
    }

    99% {
        opacity: 1;
    }
}

.brand-quote {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--p-300);
    letter-spacing: 5px;
    text-transform: uppercase;
    animation: tacticalFlicker 8s infinite;
    margin-top: 4rem;
    opacity: 0.8;
}

.hero-grad {
    background: linear-gradient(135deg, #fff 0%, var(--p-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* -------------------------------------------------------------------------- */
/*  RESPONSIVE TUNING                                                         */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grad {
        font-size: 4rem !important;
    }

    h2 {
        font-size: 3rem !important;
    }
}

/* -------------------------------------------------------------------------- */
/*  SCROLL REVEAL ANIMATIONS                                                  */
/* -------------------------------------------------------------------------- */
.reveal-node {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-node.active {
    opacity: 1;
    transform: translateY(0);
}