/* ============================================================
   Ziewise - Cyberpunk / Hologram Upgrade Layer
   Loaded after styles.css to override and enhance the visuals.
   ============================================================ */

:root {
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff2bd6;
    --neon-violet: #8a5bff;
    --neon-amber: #ffb400;
    --neon-lime: #b6ff3c;
    --hud-line: rgba(0, 240, 255, 0.35);
    --hud-line-soft: rgba(0, 240, 255, 0.12);
    --hud-glow: 0 0 12px rgba(0, 240, 255, 0.55), 0 0 28px rgba(138, 91, 255, 0.35);
    --font-mono: 'JetBrains Mono', 'Roboto Mono', 'Consolas', monospace;
}

/* -------- Global Background: deep-space + neon grid + scanlines -------- */
body {
    background-color: #04060f !important;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(0, 240, 255, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 43, 214, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(138, 91, 255, 0.05) 0%, transparent 60%) !important;
    background-attachment: fixed !important;
}

/* Neon perspective grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    animation: gridDrift 18s linear infinite;
}

/* Scanline overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.025) 0px,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 2px,
        transparent 4px
    );
    mix-blend-mode: overlay;
    opacity: 0.6;
}

@keyframes gridDrift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 60px 60px, 60px 60px; }
}

/* keep content above background layers */
section, footer { position: relative; z-index: 2; }
/* .warp-overlay must STAY position:fixed (set in styles.css). Overriding
   it to position:relative makes its 100vh height flow normally and adds
   a phantom 100vh of empty space below the footer. */
.warp-overlay { z-index: 9999; }
/* navbar must stay fixed (defined in styles.css), just lift z-index */
nav.navbar { z-index: 1000; }

/* -------- Glass surfaces: holographic panels -------- */
/* NOTE: do NOT set position here - some .glass elements (satellites) need absolute */
.glass {
    background: linear-gradient(135deg,
        rgba(8, 14, 30, 0.78) 0%,
        rgba(14, 22, 48, 0.55) 50%,
        rgba(8, 14, 30, 0.78) 100%) !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    border-radius: 14px !important;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.05) inset,
        0 0 24px rgba(0, 240, 255, 0.10),
        0 8px 40px rgba(0, 0, 0, 0.55) !important;
    overflow: hidden;
}
/* Re-add relative positioning only to surfaces that need it (not satellites, not navbar) */
.about-container.glass, .solution-card.glass, .tech-card.glass, .footer.glass {
    position: relative;
}
/* Navbar must remain fixed at top (defined in styles.css) */
.navbar.glass {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
}

/* Animated holographic edge */
.glass::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(125deg,
        transparent 0%,
        rgba(0, 240, 255, 0.55) 25%,
        rgba(255, 43, 214, 0.55) 50%,
        rgba(138, 91, 255, 0.55) 75%,
        transparent 100%);
    background-size: 300% 300%;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: holoEdge 6s linear infinite;
    pointer-events: none;
    opacity: 0.85;
}

/* HUD corner brackets on cards */
.solution-card.glass::after,
.tech-card.glass::after {
    content: "";
    position: absolute;
    inset: 8px;
    pointer-events: none;
    border-image: linear-gradient(45deg, var(--neon-cyan), transparent 30%, transparent 70%, var(--neon-magenta)) 1;
    border: 1px solid transparent;
    clip-path: polygon(
        0 0, 24px 0, 24px 2px, 2px 2px, 2px 24px, 0 24px,
        0 100%, 24px 100%, 24px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 24px), 0 calc(100% - 24px),
        100% 100%, calc(100% - 24px) 100%, calc(100% - 24px) calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) calc(100% - 24px), 100% calc(100% - 24px),
        100% 0, calc(100% - 24px) 0, calc(100% - 24px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 24px, 100% 24px
    );
    opacity: 0.55;
}

@keyframes holoEdge {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* -------- Navbar: HUD strip -------- */
.navbar.glass {
    border-radius: 0 0 14px 14px !important;
    border-top: none !important;
    background: linear-gradient(180deg, rgba(4, 8, 20, 0.92) 0%, rgba(4, 8, 20, 0.55) 100%) !important;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.12), 0 1px 0 rgba(0, 240, 255, 0.35) inset !important;
}

/* ============================================================
   NAVBAR LAYOUT — logo far-left, lang far-right, menu centered
   3-column grid: logo | centered menu | lang switch
   ============================================================ */
.navbar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 18px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    width: min(94%, 1320px) !important;
    max-width: 1320px !important;
    box-sizing: border-box !important;
}
.navbar .logo-link {
    justify-self: start !important;
    margin-left: 4px !important;
    min-width: 0 !important;
}
.navbar .lang-switch {
    justify-self: end !important;
    margin-right: 4px !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
}
.navbar .nav-links {
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
}
.navbar .nav-links li {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
}
.navbar .nav-links a {
    font-size: 0.74rem !important;
    padding: 8px 10px !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
}
.navbar .logo-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet), var(--neon-magenta));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent !important;
    text-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
    letter-spacing: 1.5px;
    font-size: 1.5rem !important;
}
.navbar .logo-symbol {
    height: 34px !important;
    margin-right: -3px !important;
}
.navbar .logo-link { gap: 8px !important; }
.nav-links a {
    position: relative;
    font-family: var(--font-mono);
    text-transform: none;
    font-size: 0.78rem !important;
    letter-spacing: 1.5px;
    color: #cfe9ff !important;
}
/* Hover: VERY subtle - just a small color shift, NO glow, NO box */
.nav-links a:hover {
    color: #e8f4ff !important;
}
.lang-btn {
    font-family: var(--font-mono) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}
.lang-btn.active {
    background: rgba(0, 240, 255, 0.18) !important;
    color: var(--neon-cyan) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

/* -------- Hero -------- */
.hero-section h1 {
    font-family: var(--font-heading) !important;
    letter-spacing: -1px;
    position: relative;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.25);
}
.hero-section h1 .highlight {
    background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-violet) 50%, var(--neon-magenta) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent !important;
    filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.55));
    animation: hueShift 8s ease-in-out infinite;
}
@keyframes hueShift {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.55)) hue-rotate(0deg); }
    50%      { filter: drop-shadow(0 0 22px rgba(255, 43, 214, 0.55)) hue-rotate(35deg); }
}

/* Glitch on hero title */
.hero-section h1::before,
.hero-section h1::after {
    content: attr(data-glitch);
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    pointer-events: none;
    opacity: 0.6;
}
.hero-section h1::before {
    color: var(--neon-magenta);
    transform: translate(2px, 0);
    mix-blend-mode: screen;
    clip-path: inset(0 0 60% 0);
    animation: glitchA 3.6s steps(1) infinite;
}
.hero-section h1::after {
    color: var(--neon-cyan);
    transform: translate(-2px, 0);
    mix-blend-mode: screen;
    clip-path: inset(60% 0 0 0);
    animation: glitchB 4.2s steps(1) infinite;
}
@keyframes glitchA {
    0%, 92%, 100% { transform: translate(0,0); opacity: 0; }
    93% { transform: translate(3px, -1px); opacity: 0.8; }
    95% { transform: translate(-2px, 1px); opacity: 0.6; }
    97% { transform: translate(1px, 0); opacity: 0; }
}
@keyframes glitchB {
    0%, 90%, 100% { transform: translate(0,0); opacity: 0; }
    91% { transform: translate(-3px, 1px); opacity: 0.8; }
    94% { transform: translate(2px, -1px); opacity: 0.6; }
    96% { transform: translate(0, 0); opacity: 0; }
}

.subtitle {
    font-family: var(--font-mono) !important;
    color: #9fdcff !important;
    border-left: 2px solid var(--neon-cyan);
    padding-left: 14px !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
}

/* Master brain ring tinting */
.master-brain .pulse-ring {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6), 0 0 60px rgba(138, 91, 255, 0.45) !important;
}
.brain-img {
    filter:
        drop-shadow(0 0 18px rgba(0, 240, 255, 0.55))
        drop-shadow(0 0 32px rgba(138, 91, 255, 0.45))
        hue-rotate(-10deg) saturate(1.2);
}

/* Satellites become HUD chips */
.satellite.glass {
    font-family: var(--font-mono) !important;
    text-transform: uppercase;
    font-size: 0.72rem !important;
    letter-spacing: 1.5px;
    color: var(--neon-cyan) !important;
    border: 1px solid rgba(0, 240, 255, 0.45) !important;
    background: rgba(4, 12, 26, 0.7) !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}
.satellite.glass::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
    pointer-events: none;
}

/* Flow lines */
.flow-line {
    stroke: var(--neon-cyan) !important;
    stroke-width: 1.5 !important;
    filter: drop-shadow(0 0 6px var(--neon-cyan));
}

/* -------- Section titles -------- */
.section-title h2,
.about-container h2 {
    font-family: var(--font-heading) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffffff 0%, var(--neon-cyan) 50%, var(--neon-violet) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent !important;
    text-shadow: none !important;
    position: relative;
    display: inline-block;
}
.section-title h2::after,
.about-container h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 10px var(--neon-cyan);
}
.section-title p,
.about-container .desc {
    color: #b4cce6 !important;
}
.highlight-text {
    font-family: var(--font-mono) !important;
    color: var(--neon-amber) !important;
    text-shadow: 0 0 10px rgba(255, 180, 0, 0.5);
}

/* -------- Card headers -------- */
.card-header h3 {
    font-family: var(--font-heading) !important;
    color: #ffffff !important;
    text-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
    letter-spacing: 0.5px;
}
.card-header .sub {
    font-family: var(--font-mono) !important;
    color: var(--neon-magenta) !important;
    text-shadow: 0 0 8px rgba(255, 43, 214, 0.5);
    border-top: 1px dashed rgba(255, 43, 214, 0.3);
    border-bottom: 1px dashed rgba(255, 43, 214, 0.3);
    padding: 4px 0;
    display: inline-block !important;
}
.differentiator {
    color: #b4cce6 !important;
    border-left: 2px solid var(--neon-cyan);
    padding-left: 12px;
}
.differentiator strong { color: var(--neon-cyan) !important; text-shadow: 0 0 8px var(--neon-cyan); }

/* -------- Interactive card hover: holo lift -------- */
.interactive-card {
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.4s ease !important;
}
.interactive-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(0, 240, 255, 0.7) !important;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.25) inset,
        0 0 28px rgba(0, 240, 255, 0.35),
        0 0 60px rgba(138, 91, 255, 0.25),
        0 18px 50px rgba(0, 0, 0, 0.65) !important;
}

/* -------- Badges -------- */
.certification-badges .badge {
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 10px;
    padding: 12px;
    background: rgba(4, 10, 24, 0.55);
    transition: all 0.3s ease;
}
.certification-badges .badge:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
    transform: translateY(-3px);
}
.certification-badges .badge span {
    font-family: var(--font-mono);
    color: #cfe9ff !important;
    letter-spacing: 0.5px;
}

/* -------- Footer -------- */
.footer.glass {
    border-radius: 14px 14px 0 0 !important;
    border-bottom: none !important;
}
.footer-logo-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent !important;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(4, 10, 24, 0.6) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    color: #e6f4ff !important;
    font-family: var(--font-mono) !important;
    transition: all 0.25s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18), 0 0 18px rgba(0, 240, 255, 0.35) !important;
    outline: none !important;
}
.submit-btn {
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.18), rgba(138, 91, 255, 0.18)) !important;
    border: 1px solid var(--neon-cyan) !important;
    color: #ffffff !important;
    font-family: var(--font-mono) !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.submit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.submit-btn:hover::before { transform: translateX(100%); }
.submit-btn:hover {
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.55);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.32), rgba(255, 43, 214, 0.28)) !important;
    border-color: var(--neon-magenta) !important;
}

.copyright {
    font-family: var(--font-mono);
    color: #6f8aa6 !important;
    border-top: 1px dashed rgba(0, 240, 255, 0.2);
    padding-top: 16px;
}

/* legacy hud-ticker hidden (replaced by .live-status panel below) */
.hud-ticker { display: none !important; }
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.85); }
}

/* -------- Live System Status Panel (REMOVED) -------- */
.live-status { display: none !important; }
.live-status_unused {
    position: relative;
    margin: 22px auto 0;
    width: 100%;
    max-width: 280px;
    font-family: var(--font-mono);
    color: #cfe7ff;
    background: linear-gradient(165deg,
        rgba(6, 12, 28, 0.92) 0%,
        rgba(10, 18, 42, 0.85) 60%,
        rgba(6, 12, 28, 0.92) 100%);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(0, 240, 255, 0.32);
    border-radius: 10px;
    padding: 12px 14px 10px;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.08) inset,
        0 0 22px rgba(0, 240, 255, 0.18),
        0 12px 36px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    overflow: hidden;
}
.live-status::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: lsScan 4.5s linear infinite;
}
@keyframes lsScan {
    0%   { left: -100%; }
    100% { left: 100%; }
}

.ls-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.18);
}
.ls-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--neon-lime, #b6ff3c);
    box-shadow: 0 0 10px var(--neon-lime, #b6ff3c), 0 0 20px rgba(182, 255, 60, 0.5);
    animation: pulseDot 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
.ls-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    flex: 1;
}
.ls-badge {
    font-size: 0.55rem;
    letter-spacing: 1px;
    padding: 2px 6px;
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 3px;
}

.ls-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.62rem;
    letter-spacing: 0.6px;
    padding: 3px 0;
}
.ls-label {
    color: #7a93b3;
    text-transform: uppercase;
}
.ls-value {
    color: #d8ecff;
    font-weight: 500;
}
.ls-value b {
    color: var(--neon-cyan);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
    margin-right: 2px;
}
.ls-value.ls-on {
    color: var(--neon-lime, #b6ff3c);
    text-shadow: 0 0 8px rgba(182, 255, 60, 0.6);
    font-weight: 700;
}

.ls-bar {
    margin-top: 9px;
    height: 3px;
    background: rgba(0, 240, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}
.ls-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet, #8a5bff));
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: lsLoad 3.2s ease-in-out infinite;
}
@keyframes lsLoad {
    0%   { width: 0%; }
    50%  { width: 100%; }
    100% { width: 0%; }
}

@media (max-width: 900px) {
    .live-status { max-width: 320px; }
}

/* -------- Selection -------- */
::selection {
    background: rgba(0, 240, 255, 0.35);
    color: #ffffff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* -------- Scrollbar -------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #04060f; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet));
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

/* -------- Reduced motion accessibility -------- */
@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
    .glass::before { animation: none; }
    .hero-section h1 .highlight { animation: none; }
    .hero-section h1::before, .hero-section h1::after { animation: none; opacity: 0; }
}

/* -------- Mobile tweaks -------- */
@media (max-width: 768px) {
    .hud-ticker { display: none; }
    body::before { background-size: 40px 40px; }
}

/* ============================================================
   BRAIN ORBITAL SYSTEM v2 - Cyberpunk redesign
   ============================================================ */

/* Hide legacy satellites if any remain */
.brain-orbit .satellite { display: none !important; }
.brain-orbit .synapses { display: none !important; }
.brain-orbit .packet { display: none !important; }

.brain-orbit {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 2rem auto 0;
    transform-style: preserve-3d;
    perspective: 1400px;
}

/* 3D Saturn-style tilted rings around the brain */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.25);
    pointer-events: none;
    transform-style: preserve-3d;
}
.orbit-ring.ring-1 {
    width: 260px; height: 260px;
    margin: -130px 0 0 -130px;
    border-color: rgba(0, 240, 255, 0.55);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.35), inset 0 0 30px rgba(0, 240, 255, 0.18);
    animation: spinX1 18s linear infinite;
}
.orbit-ring.ring-1::before,
.orbit-ring.ring-1::after {
    content: ""; position: absolute;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 14px var(--neon-cyan), 0 0 24px var(--neon-cyan);
}
.orbit-ring.ring-1::before { top: -4px; left: 50%; margin-left: -4px; }
.orbit-ring.ring-1::after  { bottom: -4px; left: 50%; margin-left: -4px; }

.orbit-ring.ring-2 {
    width: 380px; height: 380px;
    margin: -190px 0 0 -190px;
    border-color: rgba(138, 91, 255, 0.4);
    border-style: dashed;
    animation: spinX2 32s linear infinite reverse;
}
.orbit-ring.ring-2::before {
    content: ""; position: absolute;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--neon-violet);
    box-shadow: 0 0 16px var(--neon-violet);
    top: 50%; right: -5px; margin-top: -5px;
}

.orbit-ring.ring-3 {
    width: 480px; height: 480px;
    margin: -240px 0 0 -240px;
    border-color: rgba(255, 43, 214, 0.28);
    animation: spinX3 50s linear infinite;
}
.orbit-ring.ring-3::before {
    content: ""; position: absolute;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--neon-magenta);
    box-shadow: 0 0 14px var(--neon-magenta);
    top: 50%; right: -4px; margin-top: -4px;
}
.orbit-ring.ring-dashed {
    width: 560px; height: 560px;
    margin: -280px 0 0 -280px;
    border: 1px dashed rgba(0, 240, 255, 0.18);
    animation: spinFlat 70s linear infinite reverse;
}

/* 3D rotation keyframes with tilted axes (Saturn-ring effect) */
@keyframes spinX1 {
    from { transform: rotateX(72deg) rotateY(0deg) rotateZ(0deg); }
    to   { transform: rotateX(72deg) rotateY(0deg) rotateZ(360deg); }
}
@keyframes spinX2 {
    from { transform: rotateX(60deg) rotateY(15deg) rotateZ(0deg); }
    to   { transform: rotateX(60deg) rotateY(15deg) rotateZ(360deg); }
}
@keyframes spinX3 {
    from { transform: rotateX(78deg) rotateY(-10deg) rotateZ(0deg); }
    to   { transform: rotateX(78deg) rotateY(-10deg) rotateZ(360deg); }
}
@keyframes spinFlat {
    from { transform: rotateX(0deg) rotateZ(0deg); }
    to   { transform: rotateX(0deg) rotateZ(360deg); }
}

/* Synapse SVG container */
.synapses-v2 {
    position: absolute;
    top: 0; left: 0;
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 2;
}
.syn-line {
    stroke-dasharray: 4 6;
    animation: dashFlow 1.5s linear infinite;
    filter: drop-shadow(0 0 4px var(--neon-cyan));
}
@keyframes dashFlow {
    to { stroke-dashoffset: -20; }
}

/* Animated packets travelling each line */
.syn-packet {
    filter: drop-shadow(0 0 6px currentColor);
}
.syn-packet.p-top    { animation: travelTop    2.4s ease-in-out infinite; }
.syn-packet.p-right  { animation: travelRight  2.6s ease-in-out infinite 0.5s; }
.syn-packet.p-bottom { animation: travelBottom 2.8s ease-in-out infinite 1s; }
.syn-packet.p-left   { animation: travelLeft   2.5s ease-in-out infinite 1.5s; }

@keyframes travelTop {
    0%   { transform: translateY(0);     opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(220px); opacity: 0; }
}
@keyframes travelRight {
    0%   { transform: translateX(0);      opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(-220px); opacity: 0; }
}
@keyframes travelBottom {
    0%   { transform: translateY(0);      opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-220px); opacity: 0; }
}
@keyframes travelLeft {
    0%   { transform: translateX(0);     opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(220px); opacity: 0; }
}

/* Orbit nodes (satellites in compass positions) */
.orbit-node {
    position: absolute;
    width: 130px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(4, 12, 26, 0.92), rgba(14, 22, 48, 0.85));
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 10px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.1) inset,
        0 0 20px rgba(0, 240, 255, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 5;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    animation: nodeFloat 5s ease-in-out infinite;
}
.orbit-node:hover {
    animation-play-state: paused;
    border-color: var(--neon-cyan);
    box-shadow:
        0 0 0 1px var(--neon-cyan) inset,
        0 0 30px rgba(0, 240, 255, 0.7),
        0 12px 30px rgba(0, 0, 0, 0.7);
    z-index: 10;
}
.node-icon {
    font-size: 1.4rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
    margin-bottom: 4px;
    line-height: 1;
}
.node-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}
.node-meta {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--neon-magenta);
    margin-top: 2px;
    letter-spacing: 0.5px;
}
/* HUD corner brackets on each node */
.orbit-node::before, .orbit-node::after {
    content: "";
    position: absolute;
    width: 10px; height: 10px;
    border: 1px solid var(--neon-cyan);
}
.orbit-node::before {
    top: -2px; left: -2px;
    border-right: none; border-bottom: none;
}
.orbit-node::after {
    bottom: -2px; right: -2px;
    border-left: none; border-top: none;
}

/* Compass positioning + INDIVIDUAL float animations (each node has its own gentle drift) */
.node-top {
    top: 40px;
    left: 50%;
    margin-left: -65px;
    animation: floatTop 6s ease-in-out infinite;
}
.node-right {
    top: 50%;
    right: 30px;
    margin-top: -36px;
    animation: floatRight 7s ease-in-out infinite;
}
.node-bottom {
    bottom: 40px;
    left: 50%;
    margin-left: -65px;
    animation: floatBottom 5.5s ease-in-out infinite;
}
.node-left {
    top: 50%;
    left: 30px;
    margin-top: -36px;
    animation: floatLeft 6.5s ease-in-out infinite;
}

/* Each node drifts in its own gentle pattern */
@keyframes floatTop {
    0%, 100% { transform: translate(0, 0); filter: brightness(1); }
    25%      { transform: translate(-6px, -8px); filter: brightness(1.15); }
    50%      { transform: translate(0, -14px); filter: brightness(1.25); }
    75%      { transform: translate(6px, -8px); filter: brightness(1.15); }
}
@keyframes floatRight {
    0%, 100% { transform: translate(0, 0); filter: brightness(1); }
    25%      { transform: translate(8px, -6px); filter: brightness(1.18); }
    50%      { transform: translate(14px, 0); filter: brightness(1.25); }
    75%      { transform: translate(8px, 6px); filter: brightness(1.18); }
}
@keyframes floatBottom {
    0%, 100% { transform: translate(0, 0); filter: brightness(1); }
    25%      { transform: translate(6px, 8px); filter: brightness(1.15); }
    50%      { transform: translate(0, 14px); filter: brightness(1.25); }
    75%      { transform: translate(-6px, 8px); filter: brightness(1.15); }
}
@keyframes floatLeft {
    0%, 100% { transform: translate(0, 0); filter: brightness(1); }
    25%      { transform: translate(-8px, 6px); filter: brightness(1.18); }
    50%      { transform: translate(-14px, 0); filter: brightness(1.25); }
    75%      { transform: translate(-8px, -6px); filter: brightness(1.18); }
}

/* Brain itself bobs gently */
.master-brain-v2 {
    animation: brainBob 5s ease-in-out infinite;
}
@keyframes brainBob {
    0%, 100% { transform: translate(-50%, -50%); }
    50%      { transform: translate(-50%, calc(-50% - 8px)); }
}

/* Master brain v2 */
.master-brain-v2 {
    z-index: 6;
}
.master-brain-v2 .core-label {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
    white-space: nowrap;
}

/* ============================================================
   GLOBAL SPACING OVERRIDE - kill empty whitespace + go wide
   ============================================================ */
html {
    scroll-snap-type: none !important;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}
/* Force all sections visible - override app.js display:none */
#about, #solutions, #simulator, #technology, #contact { display: flex !important; }
/* Hero must be GRID (3-col text/brain/cube) not flex */
#hero { display: grid !important; }
section {
    min-height: auto !important;
    scroll-snap-align: none !important;
    justify-content: flex-start !important;
    padding: 60px 2.5% 40px !important;
}
.hero-section {
    min-height: auto !important;
    padding-top: 110px !important;
    padding-bottom: 30px !important;
}

/* Wider container limits */
.solutions-section, .tech-section { max-width: 1700px !important; margin: 0 auto !important; }
.about-container { max-width: 1700px !important; }
.usecase-section, .perf-dashboard, .timeline-wrap, .value-grid, .process-strip {
    max-width: 1700px !important;
}

/* Solutions cards: 3 across on desktop, full width usage */
.grid-container {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
}
.tech-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
}
@media (max-width: 1200px) {
    .grid-container { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 760px) {
    .grid-container, .tech-grid { grid-template-columns: 1fr !important; }
}
.solution-card, .tech-card { height: auto !important; min-height: 420px; }

/* ============================================================
   HERO: WIDE 3-COLUMN LAYOUT (text · brain · cube)
   ============================================================ */
.hero-section {
    display: grid !important;
    grid-template-columns: 1.05fr 1.25fr 0.95fr !important;
    align-items: center !important;
    gap: 28px !important;
    max-width: 1850px !important;
    margin: 0 auto !important;
    padding: 110px 3% 30px !important;
    min-height: auto !important;
    text-align: left !important;
}
.hero-content {
    max-width: 100% !important;
    padding-right: 10px !important;
    text-align: left !important;
}
.hero-content h1 {
    text-align: left !important;
}
.hero-content .subtitle {
    text-align: left !important;
    margin-left: 0 !important;
}
.brain-orbit {
    margin: 0 auto !important;
    transform: scale(0.88);
    transform-origin: center center;
}
.hero-cube {
    margin: 0 auto !important;
    max-width: 340px;
    text-align: center;
    padding: 10px 0 !important;
}
.hero-cube .cube-title { font-size: 0.72rem; margin-bottom: 6px; }
.hero-cube .cube-h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.15rem;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.55);
}
.hero-cube .cube-sub {
    font-size: 0.74rem;
    margin-bottom: 28px;
    color: #9fbed8;
}
.hero-cube .cube-stage {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto;
}
.hero-cube .cube-face {
    width: 180px !important;
    height: 180px !important;
    padding: 14px;
}
.hero-cube .cube-face.cf-front  { transform: translateZ(90px) !important; }
.hero-cube .cube-face.cf-back   { transform: rotateY(180deg) translateZ(90px) !important; }
.hero-cube .cube-face.cf-right  { transform: rotateY(90deg)  translateZ(90px) !important; }
.hero-cube .cube-face.cf-left   { transform: rotateY(-90deg) translateZ(90px) !important; }
.hero-cube .cube-face.cf-top    { transform: rotateX(90deg)  translateZ(90px) !important; }
.hero-cube .cube-face.cf-bottom { transform: rotateX(-90deg) translateZ(90px) !important; }
.hero-cube .cube-face .cf-icon { font-size: 1.85rem; margin-bottom: 6px; }
.hero-cube .cube-face .cf-name { font-size: 0.88rem; }
.hero-cube .cube-face .cf-tag  { font-size: 0.58rem; }
.hero-cube .cube-floor {
    width: 230px;
    height: 12px;
    margin: 28px auto 0;
}

@media (max-width: 1280px) {
    .hero-section { grid-template-columns: 1fr 1fr !important; }
    .hero-cube { grid-column: 1 / -1; margin-top: 10px; }
}
@media (max-width: 900px) {
    .hero-section { grid-template-columns: 1fr !important; gap: 14px !important; text-align: center !important; }
    .hero-content, .hero-content h1, .hero-content .subtitle { text-align: center !important; }
    .brain-orbit { transform: scale(0.7); margin-top: -40px !important; }
    .hero-cube { margin-top: -20px !important; }
}

/* ============================================================
   ENHANCED CONTENT SECTIONS
   ============================================================ */

/* About: stats counters strip */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px dashed rgba(0, 240, 255, 0.2);
}
.stat-item {
    text-align: center;
    padding: 12px 8px;
    border-left: 1px solid rgba(0, 240, 255, 0.15);
    position: relative;
}
.stat-item:first-child { border-left: none; }
.stat-num {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
    line-height: 1;
}
.stat-num .stat-suffix {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    margin-left: 2px;
    -webkit-text-fill-color: var(--neon-cyan);
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #a8c0d8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(3) { border-left: none; }
}

/* Solution detail block (expanded copy under each card title) */
.card-detail-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #b4cce6;
}
.card-detail-list li {
    padding: 4px 0 4px 18px;
    position: relative;
    border-bottom: 1px dashed rgba(0, 240, 255, 0.08);
}
.card-detail-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    text-shadow: 0 0 6px var(--neon-cyan);
}

/* Section intro text (long descriptions) */
.section-intro {
    max-width: 820px;
    margin: 18px auto 50px;
    text-align: center;
    font-size: 0.95rem;
    color: #b4cce6;
    line-height: 1.8;
    font-family: var(--font-body);
}
.section-intro strong {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* Process / pipeline strip (horizontal flow visualization) */
.process-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 24px;
    background: rgba(4, 10, 24, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.process-strip::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-violet), var(--neon-magenta), transparent);
    box-shadow: 0 0 14px var(--neon-cyan);
    z-index: 0;
}
.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}
.process-step .ps-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(4, 12, 26, 0.95);
    border: 2px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    animation: pulseDot 2.5s ease-in-out infinite;
}
.process-step .ps-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.process-step .ps-desc {
    font-size: 0.72rem;
    color: #8ea7c2;
    line-height: 1.5;
    padding: 0 6px;
}

@media (max-width: 768px) {
    .process-strip { flex-direction: column; gap: 20px; }
    .process-strip::before { left: 50%; right: auto; top: 5%; bottom: 5%; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--neon-cyan), transparent); }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.25s; }
.reveal.delay-3 { transition-delay: 0.4s; }
.reveal.delay-4 { transition-delay: 0.55s; }

/* About-section paragraph upgrade */
.about-container .desc {
    line-height: 1.9 !important;
    font-size: 1.02rem !important;
}

/* ============================================================
   3D ENHANCEMENTS - Cards, Tilts, Depth
   ============================================================ */

/* Enable 3D context where needed */
.solutions-section, .tech-section, .about-section {
    perspective: 1600px;
}

/* 3D tilt cards (driven by JS data attrs) */
.tilt-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.tilt-3d > * {
    transform: translateZ(20px);
}

/* ============================================================
   WHY ZIEWISE - Value Pillars (3D cards)
   ============================================================ */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 60px auto 50px;
    perspective: 1400px;
}
.value-card {
    position: relative;
    padding: 36px 28px 28px;
    background: linear-gradient(155deg, rgba(8, 16, 32, 0.92) 0%, rgba(14, 22, 48, 0.7) 100%);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 16px;
    text-align: center;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.08) inset,
        0 0 30px rgba(0, 240, 255, 0.18),
        0 14px 40px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.value-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.06) 100%);
    pointer-events: none;
}
.value-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-violet), var(--neon-magenta), transparent);
    box-shadow: 0 0 14px var(--neon-cyan);
}
.value-card:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(-3deg) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow:
        0 0 0 1px var(--neon-cyan) inset,
        0 0 50px rgba(0, 240, 255, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.7);
}
.value-icon-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(40px);
}
.value-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.6));
    animation: valueFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.value-img.badge-style {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.6)) contrast(1.05) saturate(1.1);
}
.value-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.45) 0%, transparent 60%);
    filter: blur(14px);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 1;
}
.value-glow.magenta { background: radial-gradient(circle, rgba(255, 43, 214, 0.45) 0%, transparent 60%); }
.value-glow.violet  { background: radial-gradient(circle, rgba(138, 91, 255, 0.5) 0%, transparent 60%); }
@keyframes valueFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 0.95; transform: scale(1.15); }
}
.value-card h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #ffffff;
    margin: 0 0 14px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
    transform: translateZ(25px);
}
.value-card p {
    color: #b4cce6;
    font-size: 0.88rem;
    line-height: 1.75;
    transform: translateZ(15px);
}
.value-tag {
    display: inline-block;
    margin-top: 18px;
    padding: 5px 14px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.08);
    transform: translateZ(30px);
}
.value-tag.tag-magenta { color: var(--neon-magenta); border-color: var(--neon-magenta); background: rgba(255, 43, 214, 0.08); }
.value-tag.tag-violet  { color: var(--neon-violet);  border-color: var(--neon-violet);  background: rgba(138, 91, 255, 0.08); }

@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TIMELINE - Company Milestones
   ============================================================ */
.timeline-wrap {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 36px 28px;
    background: rgba(4, 10, 24, 0.55);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.timeline-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 240, 255, 0.04) 50%, transparent 100%);
    pointer-events: none;
}
.timeline-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-align: center;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 28px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    position: relative;
    padding-top: 30px;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet), var(--neon-magenta));
    box-shadow: 0 0 12px var(--neon-cyan);
}
.t-item {
    text-align: center;
    position: relative;
    padding-top: 28px;
}
.t-dot {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(4, 12, 26, 0.95);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan);
}
.t-item.active .t-dot {
    background: var(--neon-cyan);
    box-shadow: 0 0 18px var(--neon-cyan), 0 0 32px var(--neon-cyan);
    animation: pulseDot 1.6s ease-in-out infinite;
}
.t-year {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: 0 0 10px var(--neon-cyan);
    margin: 8px 0 4px;
}
.t-text {
    font-size: 0.78rem;
    color: #a8c0d8;
    line-height: 1.5;
    padding: 0 6px;
}
.t-item.active .t-year { color: var(--neon-cyan); }

@media (max-width: 768px) {
    .timeline { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .timeline::before { display: none; }
}

/* ============================================================
   INDUSTRY USE CASES (under Solutions)
   ============================================================ */
.usecase-section {
    max-width: 1300px;
    margin: 80px auto 20px;
    padding: 0 20px;
}
.usecase-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.usecase-sub {
    text-align: center;
    color: #b4cce6;
    margin-bottom: 36px;
    font-size: 0.95rem;
}
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    perspective: 1400px;
}
@media (max-width: 980px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .usecase-grid { grid-template-columns: 1fr; } }
.uc-card {
    position: relative;
    padding: 26px 22px;
    background: linear-gradient(160deg, rgba(8, 16, 32, 0.92), rgba(14, 22, 48, 0.7));
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s, border-color 0.4s;
    cursor: default;
}
.uc-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(0, 240, 255, 0.18) 0%, transparent 50%);
    pointer-events: none;
}
.uc-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-4deg);
    border-color: var(--neon-cyan);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.4);
}
.uc-icon {
    font-size: 2.4rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 16px var(--neon-cyan);
    margin-bottom: 14px;
    display: block;
    transform: translateZ(20px);
    animation: iconBob 4s ease-in-out infinite;
}
.uc-card h5 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.05rem;
    margin: 0 0 8px;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    transform: translateZ(15px);
}
.uc-card p {
    color: #a8c0d8;
    font-size: 0.78rem;
    line-height: 1.6;
    margin: 0 0 12px;
}
.uc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.uc-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    padding: 3px 8px;
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 3px;
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.06);
}
@keyframes iconBob {
    0%, 100% { transform: translateZ(20px) translateY(0); }
    50%      { transform: translateZ(20px) translateY(-6px); }
}

/* ============================================================
   PERFORMANCE DASHBOARD (under Technology)
   ============================================================ */
.perf-dashboard {
    max-width: 1300px;
    margin: 70px auto 20px;
    padding: 36px;
    background: linear-gradient(135deg, rgba(4, 10, 24, 0.95) 0%, rgba(10, 18, 40, 0.85) 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.18), 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}
.perf-dashboard::before {
    content: "PERFORMANCE METRICS // LIVE";
    position: absolute;
    top: 14px;
    left: 24px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}
.perf-dashboard::after {
    content: "● LIVE";
    position: absolute;
    top: 14px;
    right: 24px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-lime);
    text-shadow: 0 0 8px var(--neon-lime);
    animation: pulseDot 1.4s infinite;
}
.perf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.perf-card {
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.perf-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}
.perf-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #8ea7c2;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.perf-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 14px var(--neon-cyan);
    line-height: 1;
}
.perf-value .perf-unit {
    font-size: 0.9rem;
    color: var(--neon-violet);
    margin-left: 4px;
}
.perf-bar {
    margin-top: 12px;
    height: 4px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.perf-bar-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet));
    box-shadow: 0 0 10px var(--neon-cyan);
    border-radius: 2px;
    animation: barFill 3s ease-out forwards;
    transform-origin: left;
}
@keyframes barFill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(var(--bar-target, 0.85)); }
}
.perf-mini-graph {
    margin-top: 30px;
    height: 80px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.perf-mini-graph svg {
    width: 100%; height: 100%;
}
.perf-mini-graph .pmg-line {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 2;
    filter: drop-shadow(0 0 6px var(--neon-cyan));
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-out forwards;
}
.perf-mini-graph .pmg-fill {
    fill: url(#pmgGrad);
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 0.5; } }

@media (max-width: 768px) {
    .perf-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   3D ROTATING CUBE - Solutions Showcase
   ============================================================ */
.cube-section {
    max-width: 1200px;
    margin: 60px auto;
    text-align: center;
    perspective: 1200px;
    perspective-origin: center 30%;
}
.cube-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.cube-sub {
    color: #b4cce6;
    margin-bottom: 50px;
    font-size: 0.95rem;
}
.cube-stage {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 18s linear infinite;
}
.cube-face {
    position: absolute;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(8, 16, 32, 0.92), rgba(14, 22, 48, 0.85));
    border: 2px solid var(--neon-cyan);
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.2) inset,
        0 0 30px rgba(0, 240, 255, 0.4),
        0 0 60px rgba(0, 240, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}
.cube-face::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(0, 240, 255, 0.3);
}
.cube-face .cf-icon {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 14px var(--neon-cyan);
    margin-bottom: 10px;
}
.cube-face .cf-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
    letter-spacing: 1px;
}
.cube-face .cf-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-magenta);
    margin-top: 6px;
    letter-spacing: 1px;
}
.cube-face.cf-front  { transform: translateZ(110px); }
.cube-face.cf-back   { transform: rotateY(180deg) translateZ(110px); border-color: var(--neon-magenta); }
.cube-face.cf-right  { transform: rotateY(90deg)  translateZ(110px); border-color: var(--neon-violet); }
.cube-face.cf-left   { transform: rotateY(-90deg) translateZ(110px); border-color: var(--neon-magenta); }
.cube-face.cf-top    { transform: rotateX(90deg)  translateZ(110px); border-color: var(--neon-violet); }
.cube-face.cf-bottom { transform: rotateX(-90deg) translateZ(110px); }
.cube-face.cf-back   .cf-icon, .cube-face.cf-back   .cf-name { color: var(--neon-magenta); text-shadow: 0 0 14px var(--neon-magenta); }
.cube-face.cf-right  .cf-icon, .cube-face.cf-right  .cf-name { color: var(--neon-violet);  text-shadow: 0 0 14px var(--neon-violet); }
.cube-face.cf-left   .cf-icon, .cube-face.cf-left   .cf-name { color: var(--neon-magenta); text-shadow: 0 0 14px var(--neon-magenta); }
.cube-face.cf-top    .cf-icon, .cube-face.cf-top    .cf-name { color: var(--neon-violet);  text-shadow: 0 0 14px var(--neon-violet); }

@keyframes cubeRotate {
    0%   { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}
.cube-stage:hover { animation-play-state: paused; }

/* Cube floor reflection */
.cube-floor {
    width: 320px;
    height: 16px;
    margin: 50px auto 0;
    background: radial-gradient(ellipse, rgba(0, 240, 255, 0.5) 0%, transparent 70%);
    filter: blur(8px);
    animation: floorPulse 3s ease-in-out infinite;
}
@keyframes floorPulse {
    0%, 100% { opacity: 0.7; transform: scaleX(1); }
    50%      { opacity: 1;   transform: scaleX(1.1); }
}

/* ============================================================
   3D LAYER - Global perspective + 3D card effects
   ============================================================ */
/* Perspective ONLY on specific 3D containers - NOT on html/body
   (perspective on html creates a stacking context that breaks position:fixed navbar) */
/* NOTE: perspective MUST NOT be on .cube-stage because that element
   is the one being rotated (cubeRotate keyframes). When perspective
   sits on the rotating element it spins with it and skews the cube
   faces into non-square shapes. Perspective belongs on the parent
   .cube-section instead (already set there). */
.perf-card, .value-card, .uc-card, .industry-card { perspective: 1400px; }

/* (perspective removed from sections to avoid breaking fixed navbar) */

/* 3D tilt utility - cards that tilt on hover */
.tilt-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s ease;
    will-change: transform;
}
.tilt-3d:hover {
    transform: rotateX(6deg) rotateY(-8deg) translateZ(20px) scale(1.03);
}

/* Apply subtle 3D depth to all main glass cards */
.solution-card, .tech-card {
    transform-style: preserve-3d;
}
.solution-card:hover, .tech-card:hover {
    transform: translateY(-8px) rotateX(3deg) rotateY(-3deg) translateZ(10px) !important;
}

/* Brain orbit gets full 3D space */
.brain-orbit {
    transform-style: preserve-3d;
    perspective: 1200px;
}
.orbit-ring {
    transform-style: preserve-3d;
}
/* Tilt the rings into 3D planes */
.orbit-ring.ring-2 {
    transform: translate(-50%, -50%) rotateX(70deg);
    animation: spin3d-x 30s linear infinite;
}
.orbit-ring.ring-3 {
    transform: translate(-50%, -50%) rotateY(70deg);
    animation: spin3d-y 50s linear infinite;
}
@keyframes spin3d-x {
    from { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
    to   { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}
@keyframes spin3d-y {
    from { transform: translate(-50%, -50%) rotateY(70deg) rotateZ(0deg); }
    to   { transform: translate(-50%, -50%) rotateY(70deg) rotateZ(360deg); }
}

/* Brain core - lifted forward in 3D */
.master-brain-v2 {
    transform: translate(-50%, -50%) translateZ(40px);
}
@keyframes brainBob {
    0%, 100% { transform: translate(-50%, -50%) translateZ(40px) rotateY(0deg); }
    50%      { transform: translate(-50%, -50%) translateZ(50px) rotateY(8deg); }
}

/* Orbit nodes lifted forward */
.orbit-node {
    transform-style: preserve-3d;
}

/* ============================================================
   ABOUT - Value cards (3D with imagery)
   ============================================================ */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 60px auto 0;
    perspective: 1500px;
}
.value-card {
    position: relative;
    padding: 30px 24px 26px;
    background: linear-gradient(160deg,
        rgba(8, 16, 34, 0.95) 0%,
        rgba(14, 22, 48, 0.7) 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 16px;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1), box-shadow 0.6s ease, border-color 0.6s ease;
    overflow: hidden;
}
.value-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.18), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}
.value-card:hover {
    transform: rotateX(8deg) rotateY(-8deg) translateZ(30px) scale(1.04);
    border-color: var(--neon-cyan);
    box-shadow:
        0 0 0 1px var(--neon-cyan) inset,
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 240, 255, 0.4);
}
.value-icon-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(40px);
}
.value-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.6));
    animation: valueFloat 5s ease-in-out infinite;
    z-index: 2;
    position: relative;
}
.value-img.badge-style {
    width: 90%;
    height: 90%;
    border-radius: 50%;
}
.value-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.5), transparent 60%);
    filter: blur(20px);
    animation: glowPulse 3.5s ease-in-out infinite;
}
.value-glow.magenta {
    background: radial-gradient(circle, rgba(255, 43, 214, 0.5), transparent 60%);
}
.value-glow.violet {
    background: radial-gradient(circle, rgba(138, 91, 255, 0.5), transparent 60%);
}
@keyframes valueFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-10px) rotate(3deg); }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.15); }
}
.value-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    transform: translateZ(20px);
    text-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
}
.value-card p {
    font-size: 0.88rem;
    color: #b4cce6;
    line-height: 1.7;
    margin-bottom: 16px;
    transform: translateZ(10px);
}
.value-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 12px;
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(0, 240, 255, 0.08);
    transform: translateZ(15px);
}
.value-tag.tag-magenta { border-color: var(--neon-magenta); color: var(--neon-magenta); background: rgba(255, 43, 214, 0.08); }
.value-tag.tag-violet  { border-color: var(--neon-violet); color: var(--neon-violet); background: rgba(138, 91, 255, 0.08); }

@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }

/* Timeline */
.timeline-wrap {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 30px;
    background: rgba(4, 10, 24, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 14px;
}
.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: center;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
}
.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 12px;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-violet), transparent);
    box-shadow: 0 0 10px var(--neon-cyan);
}
.t-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 32px;
}
.t-dot {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #04060f;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan);
    transition: all 0.3s ease;
}
.t-item.active .t-dot {
    background: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
    animation: pulseDot 1.6s ease-in-out infinite;
}
.t-year {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--neon-cyan);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}
.t-text {
    font-size: 0.78rem;
    color: #b4cce6;
    margin-top: 6px;
    line-height: 1.5;
    padding: 0 6px;
}

@media (max-width: 768px) {
    .timeline { flex-direction: column; gap: 24px; }
    .timeline::before { display: none; }
}

/* ============================================================
   SOLUTIONS - Industry use cases (3D)
   ============================================================ */
.industry-section {
    max-width: 1300px;
    margin: 80px auto 0;
}
.industry-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #ffffff, var(--neon-cyan));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.industry-sub {
    text-align: center;
    color: #8ea7c2;
    margin-bottom: 36px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    perspective: 1500px;
}
.industry-card {
    padding: 26px 22px;
    background: linear-gradient(160deg, rgba(8, 16, 34, 0.92), rgba(14, 22, 48, 0.6));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 14px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(.2,.8,.2,1), border-color 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
}
.industry-card::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: left 0.8s ease;
}
.industry-card:hover {
    transform: rotateX(5deg) rotateY(-6deg) translateZ(20px);
    border-color: var(--neon-cyan);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(0, 240, 255, 0.35);
}
.industry-card:hover::before { left: 100%; }
.ind-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 0 12px var(--neon-cyan));
    animation: indFloat 4s ease-in-out infinite;
    transform: translateZ(30px);
}
.industry-card:nth-child(2) .ind-icon { animation-delay: 0.5s; }
.industry-card:nth-child(3) .ind-icon { animation-delay: 1s; }
.industry-card:nth-child(4) .ind-icon { animation-delay: 1.5s; }
.industry-card:nth-child(5) .ind-icon { animation-delay: 2s; }
.industry-card:nth-child(6) .ind-icon { animation-delay: 2.5s; }
@keyframes indFloat {
    0%, 100% { transform: translateZ(30px) translateY(0) rotate(0deg); }
    50%      { transform: translateZ(30px) translateY(-8px) rotate(5deg); }
}
.industry-card h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    transform: translateZ(15px);
}
.industry-card p {
    font-size: 0.83rem;
    color: #a8c0d8;
    line-height: 1.65;
    margin-bottom: 14px;
}
.ind-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ind-stats span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.12);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
}
.industry-card:nth-child(even) .ind-stats span:first-child {
    background: rgba(255, 43, 214, 0.12);
    color: var(--neon-magenta);
    border-color: rgba(255, 43, 214, 0.3);
}

@media (max-width: 1000px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .industry-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TECHNOLOGY - Performance dashboard (3D)
   ============================================================ */
.perf-dashboard {
    max-width: 1300px;
    margin: 80px auto 0;
}
.perf-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #ffffff, var(--neon-violet));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.perf-sub {
    text-align: center;
    color: #8ea7c2;
    margin-bottom: 36px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
.perf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    perspective: 1500px;
}
.perf-card {
    padding: 26px 24px;
    background: linear-gradient(160deg,
        rgba(8, 16, 34, 0.95) 0%,
        rgba(14, 22, 48, 0.7) 100%);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.perf-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.18), transparent 70%);
    pointer-events: none;
}
.perf-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #8ea7c2;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.perf-value {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    line-height: 1;
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    margin-bottom: 16px;
}
.perf-value span {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    -webkit-text-fill-color: var(--neon-cyan);
    margin-left: 4px;
}
.perf-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}
.perf-bar-fill {
    width: var(--w);
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    border-radius: 3px;
    box-shadow: 0 0 12px var(--neon-cyan);
    animation: barFlow 3s ease-in-out infinite;
}
@keyframes barFlow {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.4); }
}
.perf-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

@media (max-width: 1000px) { .perf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .perf-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Allow sections to grow with new content (override 100vh constraint)
   ============================================================ */
section {
    min-height: auto !important;
    padding: 50px 4% 30px !important;
    justify-content: flex-start !important;
}
.hero-section {
    min-height: auto !important;
    justify-content: center !important;
    padding: 110px 3% 20px !important;
}
.about-section { padding-top: 30px !important; padding-bottom: 30px !important; }
.solutions-section { padding-top: 30px !important; padding-bottom: 30px !important; }
.tech-section { padding-top: 30px !important; padding-bottom: 30px !important; }
html { scroll-snap-type: none !important; }

/* Subtle 3D depth on all glass card hovers (already declared above but reinforced) */
@media (prefers-reduced-motion: reduce) {
    .tilt-3d:hover, .value-card:hover, .industry-card:hover { transform: none; }
    .orbit-ring.ring-2, .orbit-ring.ring-3 { animation: none; }
}

/* ============================================================
   INTERACTIVE 3D SIMULATOR SECTION
   ============================================================ */
.simulator-section {
    max-width: 1400px;
    margin: 0 auto;
}

/* Tab menu */
.sim-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 30px auto 24px;
    max-width: 1200px;
    padding: 8px;
    background: rgba(4, 10, 24, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}
.sim-tab {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 10px;
    padding: 14px 8px;
    color: #b4cce6;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    overflow: hidden;
}
.sim-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(138, 91, 255, 0.12));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sim-tab:hover { color: var(--neon-cyan); border-color: rgba(0, 240, 255, 0.5); }
.sim-tab:hover::before { opacity: 0.6; }
.sim-tab.active {
    border-color: var(--neon-cyan);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), inset 0 0 12px rgba(0, 240, 255, 0.15);
}
.sim-tab.active::before { opacity: 1; }
.tab-num {
    font-size: 0.65rem;
    color: var(--neon-cyan);
    letter-spacing: 1px;
    position: relative;
}
.tab-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: inherit;
    position: relative;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}
.tab-meta {
    font-size: 0.62rem;
    color: var(--neon-magenta);
    letter-spacing: 0.5px;
    position: relative;
}

@media (max-width: 900px) { .sim-tabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .sim-tabs { grid-template-columns: repeat(2, 1fr); } }

/* Stage */
.sim-stage {
    position: relative;
    background: linear-gradient(160deg, rgba(8, 14, 30, 0.92), rgba(4, 8, 20, 0.95));
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 18px;
    overflow: hidden;
    min-height: 480px;
    padding: 40px;
    box-shadow:
        0 0 40px rgba(0, 240, 255, 0.15),
        inset 0 0 60px rgba(0, 0, 0, 0.6);
}
.sim-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.sim-scene {
    display: none;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: center;
    animation: sceneIn 0.6s ease;
    perspective: 1500px;
    position: relative;
    z-index: 1;
}
.sim-scene.active { display: grid; }
@keyframes sceneIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.scene-info { padding: 10px; }
.scene-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
    letter-spacing: 1.5px;
    background: rgba(0, 240, 255, 0.08);
}
.scene-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 14px;
    text-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
    letter-spacing: 0.5px;
}
.scene-info p {
    color: #b4cce6;
    line-height: 1.75;
    margin-bottom: 22px;
    font-size: 0.93rem;
}
.scene-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.scene-stats > div {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    min-width: 90px;
}
.ss-num {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    line-height: 1;
}
.ss-lbl {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #8ea7c2;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.scene-3d {
    position: relative;
    height: 380px;
    transform-style: preserve-3d;
    transform: rotateX(8deg) rotateY(-6deg);
}

@media (max-width: 900px) {
    .sim-scene { grid-template-columns: 1fr; }
    .scene-3d { transform: none; height: 320px; }
}

/* ============================================================
   SCENE 01 - VISION AI
   ============================================================ */
.vision-3d .cam-feed {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%) translateZ(0);
    width: 92%;
    height: 280px;
    background: #000;
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.4), inset 0 0 60px rgba(0, 240, 255, 0.05);
}
.cam-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px);
    background-size: 25px 25px;
}
.cam-scan {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 18px var(--neon-cyan);
    animation: scanDown 2.5s linear infinite;
}
@keyframes scanDown {
    0%   { top: 0; }
    100% { top: 100%; }
}
.detected-obj {
    position: absolute;
    animation: objDrift 4s ease-in-out infinite;
}
.detected-obj .bbox {
    width: 70px; height: 90px;
    border: 2px solid var(--neon-lime);
    box-shadow: 0 0 14px var(--neon-lime);
}
.detected-obj .bbox.alt    { width: 100px; height: 60px; border-color: var(--neon-cyan); box-shadow: 0 0 14px var(--neon-cyan); }
.detected-obj .bbox.warn   { width: 60px; height: 60px; border-color: var(--neon-amber); box-shadow: 0 0 14px var(--neon-amber); border-style: dashed; }
.detected-obj .label {
    position: absolute;
    top: -20px; left: 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-lime);
    background: rgba(0, 0, 0, 0.85);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}
.detected-obj .label.alt  { color: var(--neon-cyan); }
.detected-obj .label.warn { color: var(--neon-amber); }
.obj-1 { top: 60px; left: 30px;  animation-delay: 0s; }
.obj-2 { top: 130px; left: 200px; animation-delay: 0.8s; }
.obj-3 { top: 30px; right: 40px; animation-delay: 1.6s; }
@keyframes objDrift {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(8px, -6px); }
}
.cam-overlay-text {
    position: absolute;
    top: 10px; left: 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 6px var(--neon-cyan);
}
.cam-rec-dot {
    position: absolute;
    top: 14px; right: 14px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ff3344;
    box-shadow: 0 0 12px #ff3344;
    animation: pulseDot 1.2s ease-in-out infinite;
}
.learn-pipeline {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 92%;
    justify-content: center;
}
.pipe-step {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: rgba(4, 10, 24, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #b4cce6;
}
.pipe-step.active {
    background: rgba(0, 240, 255, 0.2);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
    animation: stepPulse 2s ease-in-out infinite;
}
.pipe-arrow {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    position: relative;
}
.pipe-arrow::after {
    content: "▶";
    position: absolute;
    right: -4px; top: -8px;
    color: var(--neon-cyan);
    font-size: 0.7rem;
}
@keyframes stepPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* ============================================================
   SCENE 02 - ENERGY / VPP
   ============================================================ */
.energy-3d .grid-floor {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%) rotateX(50deg);
    width: 360px;
    height: 280px;
    transform-style: preserve-3d;
}
.energy-node {
    position: absolute;
    width: 80px;
    padding: 10px 6px;
    background: rgba(4, 12, 26, 0.95);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #ffffff;
    transform: rotateX(-50deg);
}
.energy-node span { font-size: 1.5rem; display: block; margin-bottom: 4px; color: var(--neon-cyan); }
.energy-node b { font-size: 0.65rem; letter-spacing: 1px; color: var(--neon-cyan); }
.n-solar { top: 30px;  left: 20px;  animation: nodeFlt 4s ease-in-out infinite; }
.n-wind  { top: 30px;  right: 20px; animation: nodeFlt 4s ease-in-out infinite 1s; }
.n-ess   { bottom: 20px; left: 20px;  animation: nodeFlt 4s ease-in-out infinite 2s; }
.n-ev    { bottom: 20px; right: 20px; animation: nodeFlt 4s ease-in-out infinite 3s; }
@keyframes nodeFlt {
    0%, 100% { transform: rotateX(-50deg) translateY(0); }
    50%      { transform: rotateX(-50deg) translateY(-6px); }
}
.energy-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateX(-50deg);
    width: 80px; height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--neon-cyan), transparent 70%);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 30px var(--neon-cyan), inset 0 0 20px rgba(0, 240, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    animation: corePulse 2s ease-in-out infinite;
}
@keyframes corePulse {
    0%, 100% { box-shadow: 0 0 30px var(--neon-cyan), inset 0 0 20px rgba(0, 240, 255, 0.5); }
    50%      { box-shadow: 0 0 50px var(--neon-cyan), inset 0 0 30px rgba(0, 240, 255, 0.8); }
}
.energy-lines {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.energy-lines line {
    stroke: var(--neon-cyan);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
    filter: drop-shadow(0 0 4px var(--neon-cyan));
    animation: dashFlow 1.5s linear infinite;
}
.e-particle {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--neon-amber);
    box-shadow: 0 0 12px var(--neon-amber);
}
.ep1 { animation: epMove1 3s linear infinite; }
.ep2 { animation: epMove2 3s linear infinite 0.7s; }
.ep3 { animation: epMove3 3s linear infinite 1.4s; }
.ep4 { animation: epMove4 3s linear infinite 2.1s; }
@keyframes epMove1 { 0%{top:30px;left:50px;opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{top:140px;left:170px;opacity:0} }
@keyframes epMove2 { 0%{top:30px;right:50px;opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{top:140px;right:170px;opacity:0} }
@keyframes epMove3 { 0%{bottom:30px;left:50px;opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{bottom:140px;left:170px;opacity:0} }
@keyframes epMove4 { 0%{bottom:30px;right:50px;opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{bottom:140px;right:170px;opacity:0} }

.block-strip {
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.block {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 6px 12px;
    background: rgba(4, 10, 24, 0.9);
    border: 1px solid var(--neon-lime);
    color: var(--neon-lime);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(182, 255, 60, 0.4);
    animation: blockSlide 4s ease-in-out infinite;
}
.block:nth-child(2) { animation-delay: 0.5s; }
.block:nth-child(3) { animation-delay: 1s; }
@keyframes blockSlide {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50%      { opacity: 1; transform: translateY(-4px); }
}

/* ============================================================
   SCENE 03 - COMMERCE / M-PULSE
   ============================================================ */
.commerce-3d .phone-3d {
    position: absolute;
    top: 20px; left: 50px;
    width: 180px;
    height: 320px;
    background: linear-gradient(160deg, #1a1a2e, #0d0d1f);
    border-radius: 24px;
    border: 3px solid #2a3550;
    box-shadow:
        0 0 0 2px rgba(0, 240, 255, 0.3),
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(0, 240, 255, 0.3);
    transform: rotateY(-15deg) rotateX(8deg);
    transform-style: preserve-3d;
    animation: phoneFloat 4s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%, 100% { transform: rotateY(-15deg) rotateX(8deg) translateY(0); }
    50%      { transform: rotateY(-12deg) rotateX(6deg) translateY(-12px); }
}
.phone-screen {
    position: absolute;
    inset: 14px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.15), #000);
    overflow: hidden;
}
.ar-face {
    position: absolute;
    top: 30px; left: 50%;
    transform: translateX(-50%);
    width: 110px; height: 130px;
}
.ar-mesh {
    position: absolute;
    inset: 0;
    border: 1px solid var(--neon-cyan);
    border-radius: 50%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    animation: meshRotate 6s linear infinite;
}
@keyframes meshRotate {
    0%, 100% { transform: rotateY(0deg); }
    50%      { transform: rotateY(15deg); }
}
.ar-pt {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--neon-magenta);
    box-shadow: 0 0 8px var(--neon-magenta);
}
.ar-pt.p1 { top: 30%; left: 25%; animation: ptBlink 1.5s ease-in-out infinite; }
.ar-pt.p2 { top: 30%; right: 25%; animation: ptBlink 1.5s ease-in-out infinite 0.3s; }
.ar-pt.p3 { top: 50%; left: 50%; transform: translateX(-50%); animation: ptBlink 1.5s ease-in-out infinite 0.6s; }
.ar-pt.p4 { top: 70%; left: 35%; animation: ptBlink 1.5s ease-in-out infinite 0.9s; }
.ar-pt.p5 { top: 70%; right: 35%; animation: ptBlink 1.5s ease-in-out infinite 1.2s; }
@keyframes ptBlink {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.5); }
}
.exit-popup {
    position: absolute;
    bottom: 18px; left: 12px; right: 12px;
    background: rgba(255, 43, 214, 0.15);
    border: 1px solid var(--neon-magenta);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 0 14px rgba(255, 43, 214, 0.5);
    animation: popupBounce 2.5s ease-in-out infinite;
}
@keyframes popupBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
.ep-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-magenta);
    text-shadow: 0 0 6px var(--neon-magenta);
    font-weight: 700;
}
.ep-desc {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #ffffff;
    margin-top: 3px;
}
.cvr-chart {
    position: absolute;
    top: 60px; right: 30px;
    width: 220px;
    padding: 16px;
    background: rgba(4, 10, 24, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 10px;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
    transform: rotateY(8deg);
}
.cvr-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    margin-bottom: 8px;
}
.cvr-chart svg { width: 100%; height: 60px; }
.cvr-line {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 2;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    filter: drop-shadow(0 0 6px var(--neon-cyan));
    animation: drawLine 3s ease-out infinite;
}
@keyframes drawLine {
    0%   { stroke-dashoffset: 400; }
    60%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 0; }
}
.cvr-pct {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--neon-lime);
    text-shadow: 0 0 10px var(--neon-lime);
    font-weight: 700;
    margin-top: 6px;
}

/* ============================================================
   SCENE 04 - OFFICE / SIGMING
   ============================================================ */
.office-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.paper-stack {
    position: relative;
    width: 130px;
    height: 280px;
    transform-style: preserve-3d;
}
.paper-3d {
    position: absolute;
    width: 110px;
    height: 140px;
    background: linear-gradient(160deg, #f0f4f8, #d8e0ec);
    color: #1a2438;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    font-weight: 700;
    text-align: center;
}
.p-a { top: 0;   left: 0;  transform: rotateZ(-6deg) translateZ(20px); animation: paperFloat 4s ease-in-out infinite; }
.p-b { top: 40px; left: 15px; transform: rotateZ(2deg) translateZ(10px); animation: paperFloat 4s ease-in-out infinite 0.5s; }
.p-c { top: 80px; left: 5px; transform: rotateZ(-3deg); animation: paperFloat 4s ease-in-out infinite 1s; }
@keyframes paperFloat {
    0%, 100% { transform: translateY(0) rotateZ(-6deg); }
    50%      { transform: translateY(-8px) rotateZ(-4deg); }
}
.office-arrow {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
    animation: arrowSlide 1.8s ease-in-out infinite;
}
@keyframes arrowSlide {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50%      { transform: translateX(8px); opacity: 1; }
}
.erp-screen {
    width: 280px;
    background: rgba(4, 10, 24, 0.95);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.4), inset 0 0 24px rgba(0, 240, 255, 0.05);
    transform: rotateY(-8deg);
}
.erp-row {
    padding: 8px 4px;
    color: #b4cce6;
    border-bottom: 1px dashed rgba(0, 240, 255, 0.15);
    opacity: 0;
    animation: erpAppear 6s ease-in-out infinite;
}
.erp-row span { display: inline-block; width: 20px; }
.erp-row.ok span { color: var(--neon-lime); }
.erp-row.warn span { color: var(--neon-amber); }
.erp-row:nth-child(1) { animation-delay: 0s; }
.erp-row:nth-child(2) { animation-delay: 1.2s; }
.erp-row:nth-child(3) { animation-delay: 2.4s; }
.erp-row.typing { animation: caretBlink 0.8s steps(1) infinite; opacity: 1; color: var(--neon-cyan); }
@keyframes erpAppear {
    0%   { opacity: 0; transform: translateX(-10px); }
    10%  { opacity: 1; transform: translateX(0); }
    90%  { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; }
}
@keyframes caretBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================================
   SCENE 05 - PRINT / ZIEW PRINT
   ============================================================ */
.print-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.auth-pad {
    width: 110px;
    padding: 16px;
    background: rgba(4, 10, 24, 0.9);
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.4);
    transform: rotateY(15deg);
    animation: padBob 4s ease-in-out infinite;
}
@keyframes padBob {
    0%, 100% { transform: rotateY(15deg) translateY(0); }
    50%      { transform: rotateY(15deg) translateY(-8px); }
}
.qr-3d {
    width: 70px; height: 70px;
    margin: 0 auto 10px;
    background-image:
        linear-gradient(45deg, var(--neon-cyan) 25%, transparent 25%),
        linear-gradient(-45deg, var(--neon-cyan) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--neon-cyan) 75%),
        linear-gradient(-45deg, transparent 75%, var(--neon-cyan) 75%);
    background-size: 14px 14px;
    background-position: 0 0, 0 7px, 7px -7px, -7px 0;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 16px var(--neon-cyan);
    animation: qrPulse 2s ease-in-out infinite;
}
@keyframes qrPulse {
    0%, 100% { box-shadow: 0 0 16px var(--neon-cyan); }
    50%      { box-shadow: 0 0 26px var(--neon-cyan), 0 0 40px var(--neon-cyan); }
}
.auth-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 6px var(--neon-cyan);
    line-height: 1.4;
}
.auth-arrow {
    font-size: 2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    animation: arrowSlide 1.8s ease-in-out infinite;
}
.printer-3d {
    position: relative;
    width: 200px;
    transform-style: preserve-3d;
    transform: rotateY(-10deg);
}
.printer-top {
    width: 200px;
    height: 12px;
    background: linear-gradient(180deg, #2a3550, #1a2438);
    border-radius: 6px 6px 0 0;
    border: 1px solid var(--neon-cyan);
    border-bottom: none;
}
.printer-body-3d {
    width: 200px;
    height: 110px;
    background: linear-gradient(160deg, #1a2438, #0d1421);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.printer-screen {
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid var(--neon-cyan);
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 6px var(--neon-cyan);
    border-radius: 4px;
}
.paper-out {
    width: 160px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(180deg, #f0f4f8 0%, #d8e0ec 100%);
    border-radius: 0 0 4px 4px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    animation: paperOut 3s ease-in-out infinite;
    overflow: hidden;
}
@keyframes paperOut {
    0%, 100% { transform: translateY(-30px); }
    50%      { transform: translateY(0); }
}
.paper-watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 43, 214, 0.6);
    letter-spacing: 2px;
}
.toner-bubble {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: rgba(4, 10, 24, 0.95);
    border: 1px solid var(--neon-amber);
    color: var(--neon-amber);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    box-shadow: 0 0 16px rgba(255, 180, 0, 0.4);
    animation: bubblePop 4s ease-in-out infinite;
}
@keyframes bubblePop {
    0%, 80%, 100% { opacity: 0; transform: translateY(10px); }
    20%, 60%      { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SCENE 06 - OBSERVER
   ============================================================ */
.observer-3d .topo-3d {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%) rotateX(20deg);
    width: 400px;
    height: 240px;
    transform-style: preserve-3d;
}
.srv {
    position: absolute;
    width: 70px;
    height: 50px;
    background: linear-gradient(160deg, rgba(8, 16, 34, 0.95), rgba(14, 22, 48, 0.7));
    border: 1px solid var(--neon-cyan);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
    font-weight: 700;
    transform: translateZ(20px);
    animation: srvFloat 4s ease-in-out infinite;
}
.srv-web  { top: 100px; left: 30px; }
.srv-app  { top: 30px;  left: 50%; transform: translateX(-50%) translateZ(30px); animation-delay: 0.5s; }
.srv-db   { top: 100px; right: 30px; animation-delay: 1s; }
.srv-edge { top: 170px; left: 50%; transform: translateX(-50%) translateZ(15px); animation-delay: 1.5s; }
.srv-ai   { display: none; }
@keyframes srvFloat {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.3); }
}
.topo-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
.topo-svg line {
    stroke: var(--neon-cyan);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
    filter: drop-shadow(0 0 4px var(--neon-cyan));
    animation: dashFlow 1.5s linear infinite;
}
.op {
    fill: var(--neon-magenta);
    filter: drop-shadow(0 0 8px var(--neon-magenta));
}
.op.p1 { animation: opMove1 2.5s linear infinite; }
.op.p2 { animation: opMove2 2.5s linear infinite 0.6s; }
.op.p3 { animation: opMove3 2.5s linear infinite 1.2s; }
@keyframes opMove1 { 0%{cx:80;cy:150;opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{cx:200;cy:80;opacity:0} }
@keyframes opMove2 { 0%{cx:320;cy:150;opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{cx:200;cy:80;opacity:0} }
@keyframes opMove3 { 0%{cx:200;cy:80;opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{cx:200;cy:220;opacity:0} }
.metric-strip {
    position: absolute;
    bottom: 10px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.m-box {
    background: rgba(4, 10, 24, 0.92);
    border: 1px solid var(--neon-cyan);
    padding: 8px 14px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-align: center;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}
.m-box span { color: #8ea7c2; display: block; margin-bottom: 4px; }
.m-box b { color: var(--neon-cyan); font-size: 0.85rem; text-shadow: 0 0 6px var(--neon-cyan); }
.m-box.alert { border-color: var(--neon-magenta); animation: alertFlash 1.2s ease-in-out infinite; }
.m-box.alert b { color: var(--neon-magenta); text-shadow: 0 0 8px var(--neon-magenta); }
@keyframes alertFlash {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 43, 214, 0.4); }
    50%      { box-shadow: 0 0 24px rgba(255, 43, 214, 0.8); }
}

/* ============================================================
   FINAL OVERRIDE: Tight Spacing (wide-hero override rolled back)
   ============================================================ */
section { min-height: auto !important; }

/* SECTION SPACING: tight everywhere */
.about-section,
.solutions-section,
.tech-section {
    min-height: auto !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* Reduce gaps between content blocks within sections */
.about-container { padding: 36px 36px 30px !important; }
.about-stats { margin-top: 24px !important; padding-top: 22px !important; }
.value-grid { margin: 36px auto 24px !important; }
.timeline-wrap { margin: 24px auto 0 !important; padding: 28px 24px !important; }
.section-intro { margin: 12px auto 26px !important; }
.process-strip { margin: 20px auto 30px !important; padding: 20px !important; }
.usecase-section { margin: 36px auto 10px !important; }
.perf-dashboard { margin: 36px auto 10px !important; }
.grid-container, .tech-grid { margin-top: 6px !important; }

/* Footer: kill 100vh min-height + center justification (creates empty space) */
.footer {
    padding: 60px 4% 30px !important;
    min-height: auto !important;
    height: auto !important;
    justify-content: flex-start !important;
}

/* Hero: kill the styles.css `height: 100vh` (different prop than min-height) */
.hero-section {
    height: auto !important;
}

/* Kill any leftover full-viewport min-height that creates empty space */
html, body { min-height: 0 !important; height: auto !important; }
section, .footer { min-height: 0 !important; }
#simulator { min-height: 0 !important; }
body { overflow-x: hidden; padding-bottom: 0 !important; margin-bottom: 0 !important; }
html { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* CRITICAL: Kill scroll-snap which causes "blank stops" between sections */
html { scroll-snap-type: none !important; }
section, .footer { scroll-snap-align: none !important; scroll-snap-stop: normal !important; }

/* Force every section visible (override app.js inline display:none) */
#hero { display: grid !important; }
#about, #solutions, #simulator, #technology { display: flex !important; }
#contact.footer { display: block !important; }

/* ============================================================
   FINAL HERO GRID OVERRIDE (uses #hero ID to beat all rules)
   ============================================================ */
#hero.hero-section {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.95fr) !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 24px !important;
    width: min(94%, 1380px) !important;
    max-width: 1380px !important;
    margin: 0 auto !important;
    padding: 130px 0 40px !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: auto !important;
    text-align: left !important;
    justify-content: center !important;
    overflow: hidden !important;
}
#hero .hero-content {
    text-align: left !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-right: 0 !important;
    overflow-wrap: break-word !important;
    word-break: keep-all !important;
}
#hero .hero-content h1 {
    text-align: left !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: auto !important;
    font-size: clamp(2rem, 3.4vw, 3.4rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 14px !important;
}
#hero .hero-content .subtitle {
    font-size: clamp(0.92rem, 1.05vw, 1.08rem) !important;
    line-height: 1.55 !important;
}
#hero .hero-content .subtitle {
    text-align: left !important;
    margin-left: 0 !important;
    overflow-wrap: break-word !important;
}
#hero .brain-container { min-width: 0 !important; }
#hero .cube-section.hero-cube,
#hero > * { min-width: 0 !important; }
#hero .brain-container.brain-orbit { margin: 0 auto !important; }
#hero .cube-section.hero-cube {
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    height: 100%;
    padding: 0 !important;
    width: 100% !important;
    max-width: 320px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
#hero .cube-section.hero-cube .cube-h3,
#hero .cube-section.hero-cube .cube-sub,
#hero .cube-section.hero-cube .cube-title {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 0 6px !important;
}
#hero .cube-section.hero-cube .cube-h3 {
    font-size: clamp(0.92rem, 1.05vw, 1.12rem) !important;
    line-height: 1.25 !important;
}
#hero .cube-section.hero-cube .cube-sub {
    font-size: clamp(0.68rem, 0.82vw, 0.78rem) !important;
    line-height: 1.45 !important;
}
#hero .cube-section.hero-cube .cube-stage { margin: 0 auto !important; }
#hero .cube-section.hero-cube .cube-floor { margin: 30px auto 0 !important; }

@media (max-width: 1280px) {
    #hero.hero-section { grid-template-columns: 1fr 1fr !important; }
    #hero .cube-section.hero-cube { grid-column: 1 / -1 !important; }
}
@media (max-width: 900px) {
    #hero.hero-section { grid-template-columns: 1fr !important; text-align: center !important; }
    #hero .hero-content, #hero .hero-content h1, #hero .hero-content .subtitle { text-align: center !important; }
}

/* ============================================================
   TRANSPARENT NAVBAR + ACTIVE FLOATING INDICATOR
   ============================================================ */
.navbar.glass {
    background: rgba(4, 8, 20, 0.25) !important;
    backdrop-filter: blur(14px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
    border: 1px solid rgba(0, 240, 255, 0.18) !important;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.05) inset,
        0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

/* Reset hover/text colors with !important to override earlier rules */
.nav-links a {
    position: relative;
    display: inline-block !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.3s ease, background 0.3s ease, text-shadow 0.3s ease !important;
}

/* Active state: clean subtle glow, no floating transform
   (the old floating + scale animation created layout artifacts
    on the first nav item when combined with the nav-try button) */
.nav-links a.active-nav,
.nav-links a.is-active {
    color: var(--neon-cyan) !important;
    background: rgba(0, 240, 255, 0.1) !important;
    text-shadow: 0 0 12px var(--neon-cyan), 0 0 22px rgba(0, 240, 255, 0.5) !important;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.35) !important;
}

/* Active indicator: soft underline pulse — no absolute pseudo-element
   which could render oddly when the parent is transformed */
.nav-links a.active-nav::after,
.nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 22px;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 8px var(--neon-cyan);
    border-radius: 2px;
    animation: navUnderlinePulse 1.8s ease-in-out infinite;
}
@keyframes navUnderlinePulse {
    0%, 100% { opacity: 0.9; transform: translateX(-50%) scaleX(1); }
    50%      { opacity: 1;   transform: translateX(-50%) scaleX(1.3); }
}

/* Explicitly neutralize any ::before we used to have */
.nav-links a.active-nav::before,
.nav-links a.is-active::before { content: none !important; }

/* Make sure nav-try button never gets the active treatment overriding
   its gradient background */
.nav-links a.nav-try-btn.active-nav,
.nav-links a.nav-try-btn.is-active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(255, 43, 214, 0.3)) !important;
}

/* ============================================================
   LANGUAGE BUTTON FLAG EMOJIS
   ============================================================ */
.lang-btn .flag-img {
    display: inline-block;
    width: 20px;
    height: auto;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 240, 255, 0.45),
                0 1px 3px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.lang-btn.active .flag-img {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.85),
                0 0 14px rgba(0, 240, 255, 0.6);
    transform: scale(1.06);
}

/* ============================================================
   CERTIFICATION BADGES — vertical centering
   Force every cert card to the same height so labels line up
   and images are centered within their fixed icon area.
   ============================================================ */
.certification-badges {
    align-items: stretch !important;
}
.certification-badges .badge {
    justify-content: space-between !important;
    min-height: 320px;
}
.certification-badges .badge-icon {
    flex: 1 1 auto;
    width: 220px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.certification-badges .badge-img {
    max-width: 200px;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ============================================================
   CONTACT (footer) — fill viewport so previous section
   doesn't show through when nav-link scrolls to it.
   Navbar height ~80px → 100vh - 80px guarantees full coverage.
   ============================================================ */
#contact.footer {
    /* Was: min-height calc(100vh - 80px) which caused a large empty
       black band below the copyright. The new scroll-spy keeps the
       active state correct without needing the section to be a full
       viewport tall, so we let the footer size to its content. */
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding-bottom: 30px !important;
    margin-bottom: 0 !important;
}
/* Belt-and-suspenders: nothing should add space below the footer.
   Force every sibling AFTER the footer to be invisible & zero-size
   unless it is currently the open simulator modal. */
#contact.footer ~ *:not(.warp-overlay):not(#scroll-streak):not(#matrix-top-mask) {
    margin: 0 !important;
}
#sim-root[aria-hidden="true"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
html, body {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ============================================================
   SWOOSH SCROLL — speed-streak overlay
   Activated by cyberpunk.js smoothScrollTo()
   ============================================================ */
#scroll-streak {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.18s ease-out;
    background:
        radial-gradient(ellipse at center,
            rgba(0, 240, 255, 0) 35%,
            rgba(0, 240, 255, 0.06) 70%,
            rgba(0, 240, 255, 0.14) 100%),
        repeating-linear-gradient(
            to bottom,
            rgba(0, 240, 255, 0) 0px,
            rgba(0, 240, 255, 0) 14px,
            rgba(0, 240, 255, 0.18) 15px,
            rgba(180, 240, 255, 0.32) 16px,
            rgba(0, 240, 255, 0) 17px,
            rgba(0, 240, 255, 0) 60px
        );
    background-size: 100% 100%, 100% 220px;
    background-repeat: no-repeat, repeat-y;
}

#scroll-streak.active {
    opacity: 1;
}

#scroll-streak.down {
    animation: streakDown 0.55s linear infinite;
}
#scroll-streak.up {
    animation: streakUp 0.55s linear infinite;
}

@keyframes streakDown {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 0, 0 220px; }
}
@keyframes streakUp {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 0, 0 -220px; }
}

/* Vignette flash on edges to sell the speed */
#scroll-streak::before,
#scroll-streak::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 22vh;
    pointer-events: none;
}
#scroll-streak::before {
    top: 0;
    background: linear-gradient(to bottom,
        rgba(0, 240, 255, 0.22) 0%,
        rgba(0, 240, 255, 0.05) 60%,
        rgba(0, 240, 255, 0) 100%);
}
#scroll-streak::after {
    bottom: 0;
    background: linear-gradient(to top,
        rgba(255, 0, 200, 0.20) 0%,
        rgba(255, 0, 200, 0.05) 60%,
        rgba(255, 0, 200, 0) 100%);
}

@media (prefers-reduced-motion: reduce) {
    #scroll-streak { display: none !important; }
}

/* ============================================================
   ORBIT RINGS — clean final override
   Earlier in the file two different centering methods
   (negative-margin vs translate(-50%,-50%)) were combined
   which put every ring off-center. Reset both and unify on
   translate(-50%,-50%) + concentric rotateX axes so the rings
   look like proper Saturn-style orbits around the brain core.
   ============================================================ */
.brain-orbit {
    width: 600px !important;
    height: 600px !important;
    position: relative !important;
    margin: 2rem auto 0 !important;
    transform-style: preserve-3d;
    perspective: 1600px;
}

.orbit-ring {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
    border-radius: 50% !important;
    pointer-events: none;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Ring 1 — tight cyan ring around the brain */
.orbit-ring.ring-1 {
    width: 280px !important;
    height: 280px !important;
    border: 1.5px solid rgba(0, 240, 255, 0.7) !important;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.35),
                inset 0 0 24px rgba(0, 240, 255, 0.18);
    animation: orbitSpin1 18s linear infinite !important;
}

/* Ring 2 — mid violet dashed ring */
.orbit-ring.ring-2 {
    width: 400px !important;
    height: 400px !important;
    border: 1.5px dashed rgba(138, 91, 255, 0.55) !important;
    box-shadow: 0 0 18px rgba(138, 91, 255, 0.25);
    animation: orbitSpin2 32s linear infinite reverse !important;
}

/* Ring 3 — wide magenta ring */
.orbit-ring.ring-3 {
    width: 520px !important;
    height: 520px !important;
    border: 1.5px solid rgba(255, 43, 214, 0.35) !important;
    box-shadow: 0 0 20px rgba(255, 43, 214, 0.22);
    animation: orbitSpin3 50s linear infinite !important;
}

/* Ring dashed — outermost flat faint ring */
.orbit-ring.ring-dashed {
    width: 580px !important;
    height: 580px !important;
    border: 1px dashed rgba(0, 240, 255, 0.18) !important;
    animation: orbitSpinFlat 70s linear infinite reverse !important;
}

/* Traveling nodes on ring-1 (cyan dots) */
.orbit-ring.ring-1::before,
.orbit-ring.ring-1::after {
    content: "";
    position: absolute;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--neon-cyan, #00f0ff);
    box-shadow: 0 0 14px var(--neon-cyan, #00f0ff),
                0 0 26px var(--neon-cyan, #00f0ff);
}
.orbit-ring.ring-1::before { top: -5px;    left: 50%; margin-left: -4.5px; }
.orbit-ring.ring-1::after  { bottom: -5px; left: 50%; margin-left: -4.5px; }

/* Traveling node on ring-2 (violet) */
.orbit-ring.ring-2::before {
    content: "";
    position: absolute;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--neon-violet, #8a5bff);
    box-shadow: 0 0 16px var(--neon-violet, #8a5bff);
    top: 50%; right: -5.5px; margin-top: -5.5px;
}

/* Traveling node on ring-3 (magenta) */
.orbit-ring.ring-3::before {
    content: "";
    position: absolute;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--neon-magenta, #ff2bd6);
    box-shadow: 0 0 14px var(--neon-magenta, #ff2bd6);
    top: 50%; right: -4.5px; margin-top: -4.5px;
}

/* Unified rotation keyframes — every ring uses
   translate(-50%,-50%) and a tilted X axis for
   consistent Saturn-ring appearance */
@keyframes orbitSpin1 {
    from { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg); }
    to   { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); }
}
@keyframes orbitSpin2 {
    from { transform: translate(-50%, -50%) rotateX(68deg) rotateY(12deg) rotateZ(0deg); }
    to   { transform: translate(-50%, -50%) rotateX(68deg) rotateY(12deg) rotateZ(360deg); }
}
@keyframes orbitSpin3 {
    from { transform: translate(-50%, -50%) rotateX(76deg) rotateY(-10deg) rotateZ(0deg); }
    to   { transform: translate(-50%, -50%) rotateX(76deg) rotateY(-10deg) rotateZ(360deg); }
}
@keyframes orbitSpinFlat {
    from { transform: translate(-50%, -50%) rotateX(0deg) rotateZ(0deg); }
    to   { transform: translate(-50%, -50%) rotateX(0deg) rotateZ(360deg); }
}

/* ============================================================
   HERO CUBE — sub title no-wrap + wider container
   Prevents "ZiewCore가 6대 핵심 AI를 동시 오케스트레이션"
   from wrapping above the 3D cube.
   ============================================================ */
.hero-cube {
    max-width: 520px !important;
}
.hero-cube .cube-h3 {
    white-space: nowrap;
    font-size: 1.05rem !important;
    letter-spacing: 0.2px !important;
}
.hero-cube .cube-sub {
    white-space: nowrap;
    font-size: 0.72rem !important;
    letter-spacing: 0.1px;
    margin-bottom: 58px !important;
}
.hero-cube .cube-stage {
    margin-top: 10px !important;
}
@media (max-width: 900px) {
    .hero-cube .cube-h3,
    .hero-cube .cube-sub {
        white-space: normal;
    }
}

/* ============================================================
   NAV "TRY DEMO" BUTTON — glowing CTA style
   ============================================================ */
.nav-links li a.nav-try-btn {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(138, 91, 255, 0.22));
    border: 1px solid rgba(0, 240, 255, 0.55);
    padding: 7px 16px !important;
    border-radius: 22px;
    color: #b6f4ff !important;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.3), inset 0 0 14px rgba(0, 240, 255, 0.08);
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    position: relative;
    /* Continuous attention-grabbing float + glow pulse, even at rest */
    animation: navTryFloat 2.6s ease-in-out infinite, navTryGlow 2.6s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform, box-shadow;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.nav-links li a.nav-try-btn:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(255, 43, 214, 0.35));
    border-color: rgba(255, 255, 255, 0.95);
    color: #fff !important;
    animation-play-state: paused;
}
.nav-links li a.nav-try-btn::after { display: none !important; }
/* Pulsing aura ring around the button */
.nav-links li a.nav-try-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 26px;
    border: 1px solid rgba(0, 240, 255, 0.6);
    pointer-events: none;
    animation: navTryRing 2.6s ease-out infinite;
    opacity: 0;
}
@keyframes navTryFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-3px) scale(1.04); }
}
@keyframes navTryGlow {
    0%, 100% {
        box-shadow:
            0 0 14px rgba(0, 240, 255, 0.35),
            0 0 28px rgba(0, 240, 255, 0.18),
            inset 0 0 14px rgba(0, 240, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 24px rgba(0, 240, 255, 0.75),
            0 0 46px rgba(255, 43, 214, 0.45),
            0 0 70px rgba(138, 91, 255, 0.3),
            inset 0 0 22px rgba(0, 240, 255, 0.2);
    }
}
@keyframes navTryRing {
    0%   { transform: scale(0.92); opacity: 0.85; border-color: rgba(0, 240, 255, 0.7); }
    70%  { transform: scale(1.18); opacity: 0;    border-color: rgba(255, 43, 214, 0.4); }
    100% { transform: scale(1.18); opacity: 0; }
}

/* ============================================================
   ZIEWCORE EXPERIENCE SIMULATOR MODAL
   ============================================================ */
#sim-root[aria-hidden="true"] { display: none; }
#sim-root[aria-hidden="false"] { display: block; }

.sim-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: radial-gradient(ellipse at center, rgba(5, 12, 28, 0.88) 0%, rgba(0, 2, 8, 0.96) 70%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.28s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}
.sim-overlay.open { opacity: 1; }

.sim-modal {
    position: relative;
    width: min(1180px, 100%);
    max-height: 92vh;
    background: linear-gradient(180deg, rgba(10, 18, 40, 0.96), rgba(4, 8, 20, 0.98));
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 18px;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.18),
                0 0 120px rgba(138, 91, 255, 0.12),
                inset 0 0 60px rgba(0, 240, 255, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.96) translateY(10px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.2, 1, 0.3, 1);
}
.sim-overlay.open .sim-modal { transform: scale(1) translateY(0); opacity: 1; }

/* Grid scanlines background */
.sim-modal::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.sim-header {
    position: relative;
    padding: 26px 32px 18px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.18);
    z-index: 2;
}
.sim-title-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #00f0ff, transparent);
    margin-bottom: 10px;
}
.sim-title {
    margin: 0 0 6px;
    font-size: 1.55rem;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 16px rgba(0, 240, 255, 0.45);
}
.sim-sub {
    margin: 0;
    font-size: 0.88rem;
    color: #8fb8d8;
    max-width: 720px;
}
.sim-close {
    position: absolute;
    top: 20px; right: 24px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #b6f4ff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sim-close:hover {
    background: rgba(255, 43, 214, 0.2);
    border-color: #ff2bd6;
    color: #fff;
    transform: rotate(90deg);
}

.sim-stepper {
    display: flex;
    gap: 10px;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.12);
    flex-wrap: wrap;
    z-index: 2;
    position: relative;
}
.sim-step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: #6a8298;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}
.sim-step-pill .sim-step-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.sim-step-pill.active {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.6);
    color: #fff;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}
.sim-step-pill.active .sim-step-dot {
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
}
.sim-step-pill.done { color: #b6f4ff; border-color: rgba(0, 240, 255, 0.3); }
.sim-step-pill.done .sim-step-dot { background: rgba(0, 240, 255, 0.5); }

.sim-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px 32px;
    position: relative;
    z-index: 2;
}
.sim-body::-webkit-scrollbar { width: 8px; }
.sim-body::-webkit-scrollbar-track { background: rgba(0, 240, 255, 0.05); }
.sim-body::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, 0.25); border-radius: 4px; }

.sim-step-h {
    margin: 0 0 8px;
    font-size: 1.4rem;
    color: #fff;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    text-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
}
.sim-step-p {
    margin: 0 0 24px;
    color: #8aa7c0;
    font-size: 0.92rem;
}

/* ---- Industry grid (step 1) ---- */
.sim-industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.sim-industry-card {
    padding: 22px 18px;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 12px;
    color: #c8dce8;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.sim-industry-card:hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 240, 255, 0.22);
}
.sim-industry-card.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(138, 91, 255, 0.2));
    border-color: #00f0ff;
    box-shadow: 0 0 26px rgba(0, 240, 255, 0.5), inset 0 0 24px rgba(0, 240, 255, 0.12);
    color: #fff;
}
.sim-ind-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}
.sim-ind-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.sim-ind-desc { font-size: 0.78rem; color: #7ea4bc; }

/* ---- Systems grid (step 2) ---- */
.sim-systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.sim-system-card {
    position: relative;
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #c0d2e0;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s ease;
    --sys-color: #00f0ff;
    font-family: inherit;
}
.sim-system-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--sys-color);
    transform: translateY(-3px);
}
.sim-system-card.active {
    background: color-mix(in srgb, var(--sys-color) 15%, transparent);
    border-color: var(--sys-color);
    box-shadow: 0 0 22px color-mix(in srgb, var(--sys-color) 40%, transparent);
    color: #fff;
}
.sim-sys-check {
    position: absolute;
    top: 8px; right: 8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--sys-color);
    color: #000;
    font-size: 0.85rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.2s ease;
    box-shadow: 0 0 14px var(--sys-color);
}
.sim-system-card.active .sim-sys-check { opacity: 1; transform: scale(1); }
.sim-sys-icon { font-size: 1.9rem; margin-bottom: 6px; }
.sim-sys-name {
    font-weight: 700; font-size: 1rem; letter-spacing: 0.5px;
    color: #fff;
}
.sim-sys-desc { font-size: 0.72rem; color: #8aa7c0; margin-top: 2px; }

/* ---- Training arena (step 3) ---- */
.sim-arena {
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr 280px;
    gap: 20px;
    height: 420px;
    padding: 16px;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.06), transparent 70%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
}
.sim-modules {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: center;
}
.sim-module {
    padding: 10px 12px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid var(--sys-color, #00f0ff);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 18px color-mix(in srgb, var(--sys-color, #00f0ff) 30%, transparent);
    animation: simModulePulse 1.6s ease-in-out infinite;
    animation-delay: 0s;
}
.sim-m-icon { font-size: 1.2rem; }
@keyframes simModulePulse {
    0%, 100% { box-shadow: 0 0 12px color-mix(in srgb, var(--sys-color, #00f0ff) 25%, transparent); }
    50%      { box-shadow: 0 0 26px color-mix(in srgb, var(--sys-color, #00f0ff) 65%, transparent); }
}

.sim-arena-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sim-wires {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.sim-wire {
    stroke-dashoffset: 0;
    animation: simWireDash 1s linear infinite;
}
@keyframes simWireDash {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -32; }
}
.sim-core {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sim-core-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 240, 255, 0.35);
    transform: translate(-50%, -50%);
}
.sim-core-ring.ring-a {
    width: 140px; height: 140px;
    border-color: rgba(0, 240, 255, 0.65);
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.4), inset 0 0 22px rgba(0, 240, 255, 0.2);
    animation: simRingSpin 6s linear infinite;
}
.sim-core-ring.ring-b {
    width: 180px; height: 180px;
    border-style: dashed;
    border-color: rgba(138, 91, 255, 0.5);
    animation: simRingSpin 11s linear infinite reverse;
}
.sim-core-ring.ring-c {
    width: 220px; height: 220px;
    border-color: rgba(255, 43, 214, 0.3);
    animation: simRingSpin 18s linear infinite;
}
@keyframes simRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.sim-core-orb {
    position: relative;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #b6f4ff, #00a4c9 40%, #0b2a3d 100%);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.8),
                0 0 80px rgba(0, 240, 255, 0.4),
                inset 0 0 30px rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: simCoreBreath 2.4s ease-in-out infinite;
    z-index: 3;
}
@keyframes simCoreBreath {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); box-shadow: 0 0 60px rgba(0, 240, 255, 1), 0 0 120px rgba(0, 240, 255, 0.5); }
}
.sim-core-orb.hit { animation: simCoreHit 0.4s ease-out; }
@keyframes simCoreHit {
    0%   { box-shadow: 0 0 40px rgba(0, 240, 255, 0.8); }
    40%  { box-shadow: 0 0 80px rgba(255, 43, 214, 1), 0 0 140px rgba(0, 240, 255, 0.9); transform: scale(1.1); }
    100% { box-shadow: 0 0 40px rgba(0, 240, 255, 0.8); transform: scale(1); }
}
.sim-core-label {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 0.7rem;
    color: #001520;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.sim-arena-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: stretch;
}
.sim-progress-label {
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: #7ea4bc;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.sim-progress-bar {
    height: 10px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.sim-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f0ff, #8a5bff, #ff2bd6);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.8);
    transition: width 0.1s linear;
}
.sim-progress-pct {
    margin-top: 6px;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 1.3rem;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}
.sim-log {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    color: #7adfff;
    line-height: 1.55;
}
.sim-log-line {
    opacity: 0;
    animation: simLogIn 0.3s ease-out forwards;
}
@keyframes simLogIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---- Results (step 4) ---- */
.sim-metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.sim-metric-card {
    padding: 18px 16px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(138, 91, 255, 0.08));
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.18);
    animation: simMetricIn 0.6s ease-out;
}
@keyframes simMetricIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sim-metric-label {
    font-size: 0.78rem;
    color: #8fb8d8;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.sim-metric-value {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 2.2rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 18px rgba(0, 240, 255, 0.7);
}
.sim-metric-delta {
    margin-top: 4px;
    font-size: 0.76rem;
    color: #4ade80;
}
.sim-metric-delta.down { color: #f87171; }

.sim-insight-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sim-insight-h {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    margin: 8px 0 4px;
    letter-spacing: 0.3px;
}
.sim-insight-h.syn { color: #ff2bd6; text-shadow: 0 0 14px rgba(255, 43, 214, 0.5); margin-top: 16px; }

.sim-insight-line {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--sys-color, #00f0ff);
    border-radius: 6px;
    color: #d5e4f0;
    font-size: 0.88rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(-12px);
    animation: simInsightIn 0.5s ease-out forwards;
}
.sim-insight-line.syn {
    border-left-color: #ff2bd6;
    background: linear-gradient(90deg, rgba(255, 43, 214, 0.12), transparent);
    color: #fff;
    font-weight: 500;
}
.sim-ins-icon { margin-right: 6px; }
@keyframes simInsightIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.sim-footer {
    padding: 18px 32px;
    border-top: 1px solid rgba(0, 240, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(0, 8, 20, 0.6);
    z-index: 2;
}
.sim-footer-hint {
    font-size: 0.82rem;
    color: #7ea4bc;
    flex: 1;
    text-align: center;
}
.sim-btn {
    padding: 10px 22px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 22px;
    color: #b6f4ff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
}
.sim-btn:hover:not(:disabled) {
    background: rgba(0, 240, 255, 0.18);
    border-color: #00f0ff;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}
.sim-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.sim-btn.sim-primary {
    background: linear-gradient(135deg, #00f0ff, #8a5bff);
    border: none;
    color: #001a28;
    font-weight: 700;
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.5);
}
.sim-btn.sim-primary:hover:not(:disabled) {
    box-shadow: 0 0 32px rgba(0, 240, 255, 0.8), 0 0 48px rgba(255, 43, 214, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 960px) {
    .sim-arena { grid-template-columns: 1fr; height: auto; }
    .sim-modules { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .sim-core { margin: 20px auto; }
    .sim-industry-grid, .sim-systems-grid { grid-template-columns: repeat(2, 1fr); }
    .sim-metric-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   STAT COUNTER — dramatic glow + pulse while counting
   ============================================================ */
.stat-num.counting .stat-counter {
    color: #00f0ff;
    text-shadow: 0 0 12px #00f0ff, 0 0 28px rgba(0, 240, 255, 0.7), 0 0 50px rgba(0, 240, 255, 0.3);
    animation: statCountPulse 0.5s ease-in-out infinite;
}
.stat-num.counting .stat-suffix {
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}
@keyframes statCountPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50%      { transform: scale(1.05); filter: brightness(1.35); }
}
.stat-num.counted .stat-counter {
    transition: text-shadow 0.8s ease;
    text-shadow: 0 0 14px rgba(0, 240, 255, 0.5), 0 0 24px rgba(0, 240, 255, 0.25);
}

/* ============================================================
   SIMULATOR RESULTS — enhanced visualizations
   ============================================================ */

/* ROI hero block */
.sim-roi-hero {
    display: grid;
    grid-template-columns: 1.4fr auto 1fr;
    gap: 24px;
    align-items: stretch;
    padding: 22px 26px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 43, 214, 0.06) 60%, rgba(138, 91, 255, 0.08));
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 0 36px rgba(0, 240, 255, 0.15), inset 0 0 60px rgba(0, 240, 255, 0.05);
    position: relative;
    overflow: hidden;
    animation: simRoiIn 0.7s ease-out;
}
.sim-roi-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.18), transparent 50%);
    pointer-events: none;
}
@keyframes simRoiIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.sim-roi-left, .sim-roi-right { position: relative; z-index: 1; }
.sim-roi-tag {
    font-size: 0.82rem;
    color: #8fb8d8;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.sim-roi-amount-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}
.sim-roi-currency {
    font-size: 1.6rem;
    color: #00f0ff;
    font-weight: 700;
    text-shadow: 0 0 14px rgba(0, 240, 255, 0.7);
}
.sim-roi-amount {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 3.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00f0ff 0%, #8a5bff 60%, #ff2bd6 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.55));
}
.sim-roi-unit {
    font-size: 1rem;
    color: #b6f4ff;
    letter-spacing: 0.5px;
}
.sim-roi-sub {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #7ea4bc;
}
.sim-roi-pills {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.sim-roi-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 14px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    font-size: 0.75rem;
    color: #cfe9ff;
}
.sim-roi-pill i { font-style: normal; }
.sim-roi-pill b { color: #00f0ff; font-weight: 700; }
.sim-roi-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.4), transparent);
}
.sim-roi-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}
.sim-roi-payback {
    text-align: right;
}
.sim-roi-payback-num {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
}
.sim-roi-payback-unit {
    font-size: 1rem;
    color: #8fb8d8;
    margin-left: 4px;
}
.sim-roi-payback-label {
    font-size: 0.78rem;
    color: #8fb8d8;
    margin-top: 4px;
}
.sim-roi-spark {
    width: 100%;
    max-width: 220px;
    height: 56px;
    margin-top: 8px;
}
.sim-roi-trend-label {
    font-size: 0.7rem;
    color: #6b8aa3;
    margin-top: 2px;
}

/* Enhanced metric cards with circular gauges */
.sim-metric-row.enhanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.sim-metric-card.enhanced {
    padding: 20px 14px 18px;
    background: linear-gradient(155deg, rgba(0, 16, 32, 0.65), rgba(10, 4, 30, 0.5));
    border: 1px solid rgba(0, 240, 255, 0.32);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 0 26px rgba(0, 240, 255, 0.12);
    position: relative;
    overflow: hidden;
    animation: simMetricIn 0.7s ease-out backwards;
}
.sim-metric-card.enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--m-color, #00f0ff), transparent 70%);
    opacity: 0.08;
    pointer-events: none;
}
.sim-metric-gauge-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 10px;
}
.sim-metric-gauge {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.sim-gauge-fill {
    filter: drop-shadow(0 0 6px var(--m-color, #00f0ff)) drop-shadow(0 0 14px rgba(0, 240, 255, 0.5));
    transition: stroke-dashoffset 0.05s linear;
}
.sim-metric-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}
.sim-metric-card.enhanced .sim-metric-label {
    font-size: 0.78rem;
    color: #8fb8d8;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.sim-metric-card.enhanced .sim-metric-value {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 2.2rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 0 18px var(--m-color, #00f0ff), 0 0 32px rgba(0, 240, 255, 0.4);
}
.sim-metric-prepost {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    font-size: 0.72rem;
    color: #8fb8d8;
    font-family: var(--font-mono, monospace);
}
.sim-prepost-prev { color: #f87171; text-decoration: line-through; opacity: 0.75; }
.sim-prepost-arrow { color: #6b8aa3; }
.sim-prepost-now { color: #4ade80; font-weight: 700; text-shadow: 0 0 10px rgba(74, 222, 128, 0.45); }

/* Per-system result cards */
.sim-sys-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}
.sim-sys-result {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0, 16, 32, 0.5), rgba(10, 4, 30, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--sys-color, #00f0ff);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(10px);
    animation: simInsightIn 0.5s ease-out forwards;
}
.sim-sys-result-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.sim-sys-result-icon { font-size: 1.2rem; }
.sim-sys-result-name { color: #fff; font-size: 0.95rem; flex: 1; }
.sim-sys-result-delta {
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #4ade80;
    font-size: 0.74rem;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}
.sim-sys-result-bars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}
.sim-bar-row {
    display: grid;
    grid-template-columns: 50px 1fr 42px;
    align-items: center;
    gap: 8px;
}
.sim-bar-tag {
    font-size: 0.7rem;
    color: #6b8aa3;
    font-family: var(--font-mono, monospace);
}
.sim-bar-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}
.sim-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 1.2s cubic-bezier(.2, .85, .25, 1);
    position: relative;
}
.sim-bar-fill.before {
    background: linear-gradient(90deg, #5a3636, #f87171);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.45);
}
.sim-bar-fill.after {
    background: linear-gradient(90deg, var(--sys-color, #00f0ff), #4ade80);
    box-shadow: 0 0 14px var(--sys-color, #00f0ff), 0 0 22px rgba(74, 222, 128, 0.4);
}
.sim-bar-fill.after::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7));
    animation: simBarShine 1.6s ease-in-out infinite;
}
@keyframes simBarShine {
    0%, 100% { opacity: 0; transform: translateX(-4px); }
    50%      { opacity: 1; transform: translateX(0); }
}
.sim-bar-num {
    font-size: 0.78rem;
    color: #cfe9ff;
    text-align: right;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
}
.sim-sys-result-note {
    font-size: 0.78rem;
    color: #8fb8d8;
    line-height: 1.4;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Synergy pills grid */
.sim-syn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 4px;
}
.sim-syn-pill {
    padding: 12px 14px;
    background: linear-gradient(90deg, rgba(255, 43, 214, 0.18), rgba(138, 91, 255, 0.1));
    border: 1px solid rgba(255, 43, 214, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: 0 0 18px rgba(255, 43, 214, 0.2);
    opacity: 0;
    transform: translateX(-12px);
    animation: simInsightIn 0.5s ease-out forwards;
}

@media (max-width: 960px) {
    .sim-roi-hero { grid-template-columns: 1fr; }
    .sim-roi-divider { display: none; }
    .sim-roi-right { align-items: flex-start; }
    .sim-sys-result-grid { grid-template-columns: 1fr; }
    .sim-syn-grid { grid-template-columns: 1fr; }
    .sim-metric-row.enhanced { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SCROLL BLEED / BLUR — dynamic motion-blur while sliding
   Driven by CSS variables set from cyberpunk.js smoothScrollTo()
   ============================================================ */
:root {
    --scroll-blur: 0px;
    --scroll-hue: 0deg;
    --scroll-velocity: 0;
    --scroll-stretch: 1;
    --scroll-skew: 0deg;
}

body.scroll-bleeding main,
body.scroll-bleeding #about,
body.scroll-bleeding #solutions,
body.scroll-bleeding #simulator,
body.scroll-bleeding #technology,
body.scroll-bleeding #contact,
body.scroll-bleeding #hero {
    filter:
        blur(var(--scroll-blur))
        hue-rotate(var(--scroll-hue))
        brightness(calc(1 + var(--scroll-velocity) * 0.32))
        saturate(calc(1 + var(--scroll-velocity) * 0.95))
        contrast(calc(1 + var(--scroll-velocity) * 0.22));
    transform: scaleY(var(--scroll-stretch)) skewY(var(--scroll-skew));
    transform-origin: 50% 50%;
    transition: filter 0.04s linear, transform 0.04s linear;
    will-change: filter, transform;
}

/* Keep navbar crisp during the bleed */
body.scroll-bleeding .navbar { filter: none !important; transform: none !important; }

/* Velocity-driven chromatic aberration on headings — extremely strong */
body.scroll-bleeding h1,
body.scroll-bleeding h2,
body.scroll-bleeding h3,
body.scroll-bleeding .hero-title {
    text-shadow:
        calc(var(--scroll-velocity) * -14px) 0 rgba(255, 43, 214, 0.95),
        calc(var(--scroll-velocity) *  14px) 0 rgba(0, 240, 255, 0.95),
        calc(var(--scroll-velocity) * -7px) calc(var(--scroll-velocity) *  4px) rgba(138, 91, 255, 0.8),
        calc(var(--scroll-velocity) *  7px) calc(var(--scroll-velocity) * -4px) rgba(74, 222, 128, 0.5),
        0 0 28px rgba(0, 240, 255, 0.55) !important;
}

/* Body-wide doubled-image ghost smear for stronger motion feel */
body.scroll-bleeding::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 8998;
    background:
        repeating-linear-gradient(180deg,
            transparent 0,
            transparent calc(20px - var(--scroll-velocity) * 18px),
            rgba(0, 240, 255, calc(var(--scroll-velocity) * 0.10)) calc(20px - var(--scroll-velocity) * 18px),
            rgba(0, 240, 255, calc(var(--scroll-velocity) * 0.10)) 22px);
    mix-blend-mode: screen;
    opacity: var(--scroll-velocity);
}

/* Card-like elements get extra horizontal smear */
body.scroll-bleeding .stat-item,
body.scroll-bleeding .value-card,
body.scroll-bleeding .uc-card,
body.scroll-bleeding .perf-card,
body.scroll-bleeding .solution-card,
body.scroll-bleeding .tech-card,
body.scroll-bleeding .badge {
    box-shadow:
        0 calc(var(--scroll-velocity) * 18px) calc(var(--scroll-velocity) * 36px) rgba(0, 240, 255, 0.25),
        0 calc(var(--scroll-velocity) * -12px) calc(var(--scroll-velocity) * 28px) rgba(255, 43, 214, 0.2) !important;
}

/* Enhanced streak overlay intensity when bleed is active */
body.scroll-bleeding #scroll-streak {
    opacity: calc(0.65 + var(--scroll-velocity) * 0.35);
}

/* Smear / radial flash on the viewport edges tied to velocity */
body.scroll-bleeding::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 8999;
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%,
            rgba(0, 240, 255, calc(var(--scroll-velocity) * 0.18)), transparent 70%),
        radial-gradient(ellipse 80% 40% at 50% 100%,
            rgba(255, 43, 214, calc(var(--scroll-velocity) * 0.18)), transparent 70%);
    mix-blend-mode: screen;
    transition: opacity 0.1s linear;
}

body.bleed-down::before {
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%,
            rgba(0, 240, 255, calc(var(--scroll-velocity) * 0.22)), transparent 70%),
        radial-gradient(ellipse 80% 40% at 50% 0%,
            rgba(138, 91, 255, calc(var(--scroll-velocity) * 0.14)), transparent 70%);
}
body.bleed-up::before {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%,
            rgba(0, 240, 255, calc(var(--scroll-velocity) * 0.22)), transparent 70%),
        radial-gradient(ellipse 80% 40% at 50% 100%,
            rgba(255, 43, 214, calc(var(--scroll-velocity) * 0.14)), transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
    body.scroll-bleeding * { filter: none !important; }
    body.scroll-bleeding::before { display: none; }
}

/* ============================================================
   Matrix Rain Top Mask - covers the gap above the navbar so
   previous section content can't peek through during scroll.
   ============================================================ */
/* Matrix rain is now a slim "gap line" right below the navbar (not a
   full-width black band that hides the page content). Navbar floats at
   top:20px with ~78-86px total height, so we sit the strip around 100px. */
#matrix-top-mask {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 18px;
    z-index: 998;          /* below navbar (1000) */
    pointer-events: none;
    background: transparent;   /* no dark band — just the rain */
    overflow: hidden;
    border: none;
    box-shadow: none;
    /* Soft fade on top/bottom so the rain blends into the page */
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%, #000 35%, #000 65%, rgba(0,0,0,0) 100%);
            mask-image: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%, #000 35%, #000 65%, rgba(0,0,0,0) 100%);
}
#matrix-top-mask canvas {
    display: block;
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    #matrix-top-mask { top: 92px; height: 22px; width: 95%; }
}
@media (prefers-reduced-motion: reduce) {
    #matrix-top-mask canvas { display: none; }
}

/* ============================================================
   FIX PACK 2026-04-08
   1) Cube h3/sub: force single line (no wrap) and widen container
   2) Hero grid: align with navbar (90% / 1200px) so the left text
      lines up with the logo
   3) Cube faces: box-sizing border-box so padding doesn't break the
      perfect cube proportion during rotation
   4) Navbar: lighten the heavy backdrop and add a glowing bottom gap
      line right under it (paired with the matrix rain strip above)
   ============================================================ */

/* (1) + cube text always single line. Container is bounded so it
   never grows wider than its grid track and never crashes into the
   brain orbit in the middle column. */
#hero .cube-section.hero-cube {
    max-width: 380px !important;
    overflow: visible !important;
}
#hero .cube-section.hero-cube .cube-h3,
#hero .cube-section.hero-cube .cube-sub {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: visible !important;
}
#hero .cube-section.hero-cube .cube-h3 {
    font-size: clamp(0.85rem, 0.95vw, 1.02rem) !important;
}
#hero .cube-section.hero-cube .cube-sub {
    font-size: clamp(0.62rem, 0.7vw, 0.74rem) !important;
}
.hero-cube .cube-h3,
.hero-cube .cube-sub { white-space: nowrap !important; }

/* (2) Hero grid lined up with the navbar container.
   Outer width matches navbar (90% / 1200px max). The 3 columns
   are sized as equal thirds with consistent gaps so the left
   text, the brain, and the cube are evenly spaced. */
#hero.hero-section {
    width: 90% !important;
    max-width: 1200px !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    column-gap: 24px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    align-items: center !important;
    justify-items: center !important;
}
#hero .hero-content {
    justify-self: start !important;
    align-self: center !important;
}

/* Brain orbit sized natively (no transform: scale). Scaling a parent
   with raster <img> children + text labels makes everything look
   blurry because the browser bitmap-scales the rasterized output.
   We instead shrink with `zoom`, which re-rasterizes at native crisp
   resolution. As an extra crispness boost we explicitly tell the
   browser to keep the brain PNG sharp. */
#hero .brain-container.brain-orbit {
    transform: none !important;
    zoom: 0.78;                 /* Chrome/Edge/Safari — crisp shrink */
    margin: -40px auto -40px !important;
    justify-self: center !important;
}
@supports (-moz-appearance: none) {
    /* Firefox doesn't honor `zoom`, so use scale only there */
    #hero .brain-container.brain-orbit {
        zoom: 1;
        transform: scale(0.78) !important;
        transform-origin: center center !important;
    }
}

/* Make the brain PNG render sharp instead of bitmap-blurred and
   strip the heavy `mix-blend-mode: screen` that was washing it out. */
.master-brain .brain-img,
.master-brain-v2 .brain-img,
.brain-img {
    mix-blend-mode: normal !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    width: 180px !important;
    height: 180px !important;
    filter:
        drop-shadow(0 0 8px rgba(0, 240, 255, 0.55))
        drop-shadow(0 0 16px rgba(138, 91, 255, 0.4))
        contrast(1.15)
        saturate(1.25)
        brightness(1.05) !important;
}
.master-brain,
.master-brain-v2 {
    width: 200px !important;
    height: 200px !important;
}

/* Sharper orbit-node HUD chips: kill any blur, raise contrast on the
   dark glass so the text reads cleanly even at 0.78 zoom. */
.orbit-node {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(4, 12, 26, 0.92) !important;
    border: 1px solid rgba(0, 240, 255, 0.75) !important;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.18) inset,
        0 0 14px rgba(0, 240, 255, 0.35) !important;
}
.orbit-node .node-label,
.orbit-node .node-meta,
.master-brain-v2 .core-label {
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    font-weight: 700 !important;
}

/* Cube column: centered in its own third */
#hero .cube-section.hero-cube {
    justify-self: center !important;
}

/* (3) Make every cube face a proper square cube face.
   The perspective MUST live on the parent (.cube-section) and the
   rotating .cube-stage MUST NOT carry its own perspective, otherwise
   the cube spins into a non-square shape. */
.cube-face,
.hero-cube .cube-face {
    box-sizing: border-box !important;
}
#hero .cube-section.hero-cube {
    perspective: 1400px !important;
    perspective-origin: 50% 50% !important;
}
#hero .cube-section.hero-cube .cube-stage {
    perspective: none !important;
    transform-style: preserve-3d !important;
}

/* (2b) Make sure the page never gets horizontally wider when EN
   translations are longer — keeps the EN layout identical to KO. */
html, body { overflow-x: hidden !important; max-width: 100vw !important; }
section, .footer, .about-section, .solutions-section, #technology, #contact {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}
.about-container, .grid-container, .tech-grid, .contact-form, .footer-grid {
    max-width: min(94%, 1200px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* (4) Lighter navbar bg, no heavy bottom shadow / glow line */
.navbar.glass {
    background: rgba(4, 8, 20, 0.18) !important;
    backdrop-filter: blur(10px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(130%) !important;
    border: 1px solid rgba(0, 240, 255, 0.18) !important;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.05) inset,
        0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

/* ============================================================
   FIX PACK 2026-04-08f  —  STRONG NAV ACTIVE STATE
   The previous active style was too subtle against the lighter
   translucent navbar so users couldn't tell which menu item was
   selected. Bump the contrast hard: solid pill fill, bright text,
   and a thick underline bar.
   ============================================================ */
.navbar .nav-links a:not(.nav-try-btn) {
    color: rgba(220, 235, 255, 0.85) !important;
    font-weight: 600 !important;
    transition: color 0.25s ease, background 0.25s ease,
                box-shadow 0.25s ease, text-shadow 0.25s ease !important;
}
.navbar .nav-links a:not(.nav-try-btn):hover {
    color: #ffffff !important;
    background: rgba(0, 240, 255, 0.08) !important;
}

/* ACTIVE state — make it unmistakable */
.navbar .nav-links a.active-nav:not(.nav-try-btn),
.navbar .nav-links a.is-active:not(.nav-try-btn) {
    color: #ffffff !important;
    background: linear-gradient(135deg,
        rgba(0, 240, 255, 0.28),
        rgba(138, 91, 255, 0.28)) !important;
    border: 1px solid rgba(0, 240, 255, 0.85) !important;
    text-shadow:
        0 0 10px rgba(0, 240, 255, 0.95),
        0 0 20px rgba(0, 240, 255, 0.55) !important;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.35) inset,
        0 0 18px rgba(0, 240, 255, 0.55),
        0 0 34px rgba(138, 91, 255, 0.25) !important;
}

/* Thicker, always-visible underline bar under the active item */
.navbar .nav-links a.active-nav:not(.nav-try-btn)::after,
.navbar .nav-links a.is-active:not(.nav-try-btn)::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: -5px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent, #00f0ff 20%, #8a5bff 80%, transparent);
    box-shadow: 0 0 12px #00f0ff, 0 0 22px rgba(138, 91, 255, 0.6);
    border-radius: 3px;
    width: auto;
    transform: none;
    animation: navActivePulse 1.6s ease-in-out infinite;
}
@keyframes navActivePulse {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; }
}

/* ============================================================
   FIX PACK 2026-04-08g  —  HERO FILLS THE FIRST VIEWPORT
   ============================================================ */
#hero.hero-section {
    min-height: 100vh !important;
    grid-template-rows: 1fr auto !important;
    align-content: center !important;
    padding-top: 110px !important;
    padding-bottom: 30px !important;
    row-gap: 24px !important;
}
/* The new hero-bottom block spans all 3 columns */
#hero .hero-bottom {
    grid-column: 1 / -1 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

#hero .hero-bottom-tagline {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    color: rgba(220, 235, 255, 0.78);
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
    max-width: 900px;
    line-height: 1.7;
}
#hero .hero-bottom-tagline .ht-bracket {
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    font-weight: 700;
}

#hero .hero-feature-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1100px;
}
#hero .hero-feature {
    flex: 1 1 200px;
    max-width: 240px;
    background: rgba(4, 12, 26, 0.55);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.08) inset,
        0 0 18px rgba(0, 240, 255, 0.18),
        0 6px 18px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#hero .hero-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 240, 255, 0.85);
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.25) inset,
        0 0 28px rgba(0, 240, 255, 0.4),
        0 10px 28px rgba(0, 0, 0, 0.45);
}
#hero .hero-feature .hf-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.7));
}
#hero .hero-feature .hf-num {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.85),
                 0 0 22px rgba(138, 91, 255, 0.45);
}
#hero .hero-feature .hf-num small {
    font-size: 0.85rem;
    font-weight: 700;
    color: #00f0ff;
    margin-left: 2px;
}
#hero .hero-feature .hf-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: rgba(220, 235, 255, 0.85);
    text-align: center;
    text-transform: uppercase;
}

#hero .hero-scroll-cue {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: rgba(0, 240, 255, 0.85);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
#hero .hero-scroll-cue .hsc-arrow {
    display: inline-block;
    animation: heroScrollBounce 1.6s ease-in-out infinite;
}
@keyframes heroScrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%      { transform: translateY(4px); opacity: 1; }
}

/* On narrow screens, collapse feature row gracefully */
@media (max-width: 900px) {
    #hero.hero-section {
        min-height: auto !important;
        padding-top: 130px !important;
    }
    #hero .hero-feature { flex: 1 1 140px; max-width: 180px; padding: 10px 12px; }
    #hero .hero-feature .hf-num { font-size: 1.3rem; }
}

