/* ============================================================
   sim-ai.com -- holographic 3d product
   Palette: #08080f (Void), #00aaff (Holo Blue), #00ffdd (Holo Cyan),
            #e0f0ff (Glow White), #151530 (Grid), #ffaa00 (Amber Alert)
   Type:    Orbitron (Display), Exo 2 (Body), Share Tech Mono (Data),
            Space**: Space Grotesk fallback for legacy nodes.
   Layout:  Content exists at multiple z-levels with perspective
            transforms; floating panels tilt around the holographic
            base in three depth bands.
   ============================================================ */

:root {
    --void: #08080f;
    --void-2: #0c0c18;
    --grid: #151530;
    --holo-blue: #00aaff;
    --holo-cyan: #00ffdd;
    --glow-white: #e0f0ff;
    --amber: #ffaa00;

    --holo-blue-soft: rgba(0, 170, 255, 0.5);
    --holo-blue-faint: rgba(0, 170, 255, 0.3);
    --holo-blue-veil: rgba(0, 170, 255, 0.08);
    --holo-blue-mist: rgba(0, 170, 255, 0.05);
    --holo-cyan-soft: rgba(0, 255, 221, 0.5);
    --holo-cyan-faint: rgba(0, 255, 221, 0.3);

    --grid-step: 40px;
    --bevel: 14px;
    --maxw: 1440px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Exo 2", "Inter", system-ui, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.65;
    color: var(--glow-white);
    background: var(--void);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ----------------------------------------
   Background layers: grid + scan + vignette
   ---------------------------------------- */

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: var(--void);
    background-image:
        linear-gradient(rgba(0, 170, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 170, 255, 0.06) 1px, transparent 1px),
        radial-gradient(ellipse at 20% 10%, rgba(0, 170, 255, 0.10), transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(0, 255, 221, 0.07), transparent 55%);
    background-size: var(--grid-step) var(--grid-step), var(--grid-step) var(--grid-step), 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0, 0 0;
    animation: gridDrift 60s linear infinite;
}

@keyframes gridDrift {
    0%   { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: var(--grid-step) var(--grid-step), -1px var(--grid-step), 0 0, 0 0; }
}

.scanline {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(0, 170, 255, 0.02) 0,
            rgba(0, 170, 255, 0.02) 1px,
            transparent 1px,
            transparent 3px
        ),
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 170, 255, 0.06) 49%,
            rgba(0, 255, 221, 0.05) 51%,
            transparent 100%
        );
    background-size: 100% 100%, 100% 220%;
    background-position: 0 0, 0 -100%;
    mix-blend-mode: screen;
    animation: scanSweep 9s linear infinite;
}

@keyframes scanSweep {
    0%   { background-position: 0 0, 0 -100%; }
    100% { background-position: 0 0, 0 100%; }
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(8, 8, 15, 0.9) 100%);
}

/* ----------------------------------------
   Topbar / Brand
   ---------------------------------------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 14px clamp(16px, 3vw, 40px);
    background: linear-gradient(180deg, rgba(8, 8, 15, 0.92) 0%, rgba(8, 8, 15, 0.6) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--holo-blue-faint);
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: "Orbitron", "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-mark {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-block;
}

.brand-dot {
    position: absolute;
    inset: 0;
    border: 1px solid var(--holo-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.6);
    animation: brandPulse 2.4s ease-in-out infinite;
}

.brand-dot-2 {
    inset: 5px;
    border-color: var(--holo-cyan);
    animation-delay: -0.8s;
}

.brand-dot-3 {
    inset: 10px;
    background: var(--holo-blue);
    border-color: transparent;
    box-shadow: 0 0 10px var(--holo-blue);
    animation-delay: -1.6s;
}

@keyframes brandPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.92); }
}

.brand-name {
    color: var(--glow-white);
    font-size: 1.15rem;
    text-shadow: 0 0 10px rgba(224, 240, 255, 0.5);
}

.brand-divider {
    color: var(--holo-cyan);
    margin: 0 2px;
}

.brand-tag {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.7rem;
    color: var(--holo-blue);
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.nav {
    display: flex;
    gap: 28px;
    justify-content: center;
}

.nav-link {
    font-family: "Orbitron", "Inter", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--glow-white);
    text-decoration: none;
    display: inline-flex;
    gap: 8px;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

.nav-link:hover {
    color: var(--holo-cyan);
    border-bottom-color: var(--holo-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 221, 0.6);
}

.nav-num {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.65rem;
    color: var(--holo-blue);
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.72rem;
    color: var(--holo-cyan);
    letter-spacing: 0.08em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--holo-cyan);
    box-shadow: 0 0 8px var(--holo-cyan);
    animation: statusBlink 1.6s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.status-text { color: var(--glow-white); opacity: 0.75; }

.status-clock {
    color: var(--holo-blue);
    background: rgba(0, 170, 255, 0.08);
    padding: 3px 8px;
    border: 1px solid var(--holo-blue-faint);
    border-radius: 2px;
}

/* ----------------------------------------
   Stage / general layout
   ---------------------------------------- */

.stage {
    position: relative;
    z-index: 10;
    perspective: 1400px;
    perspective-origin: 50% 30%;
}

section {
    padding: clamp(48px, 6vw, 96px) clamp(16px, 4vw, 48px);
    position: relative;
}

.section-head {
    max-width: 920px;
    margin: 0 auto 56px;
    position: relative;
}

.section-head-right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    padding-right: clamp(0px, 4vw, 64px);
}

.section-num {
    font-family: "Share Tech Mono", monospace;
    color: var(--holo-blue);
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.section-title {
    font-family: "Orbitron", "Inter", sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--glow-white);
    text-shadow:
        0 0 20px rgba(0, 170, 255, 0.5),
        0 0 40px rgba(0, 170, 255, 0.2);
    margin-bottom: 16px;
}

.section-rule {
    height: 1px;
    width: 120px;
    background: linear-gradient(90deg, var(--holo-blue), var(--holo-cyan), transparent);
    margin: 0 0 20px;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.5);
}

.section-head-right .section-rule {
    margin-left: auto;
    background: linear-gradient(270deg, var(--holo-blue), var(--holo-cyan), transparent);
}

.section-sub {
    font-size: 1.02rem;
    color: rgba(224, 240, 255, 0.78);
    max-width: 60ch;
}

.section-head-right .section-sub {
    margin-left: auto;
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */

.hero {
    min-height: calc(100vh - 64px);
    padding: clamp(40px, 5vw, 72px) clamp(16px, 3vw, 48px) clamp(40px, 5vw, 72px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-corner {
    position: absolute;
    font-family: "Share Tech Mono", monospace;
    color: var(--holo-cyan);
    font-size: 1.4rem;
    text-shadow: 0 0 8px var(--holo-cyan);
    opacity: 0.7;
}
.hero-corner-tl { top: 24px; left: 24px; }
.hero-corner-tr { top: 24px; right: 24px; }
.hero-corner-bl { bottom: 24px; left: 24px; }
.hero-corner-br { bottom: 24px; right: 24px; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr minmax(180px, 220px);
    gap: clamp(20px, 3vw, 48px);
    align-items: center;
    max-width: var(--maxw);
    margin: 0 auto;
    width: 100%;
    transform-style: preserve-3d;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 22px;
    transform-style: preserve-3d;
}

.hero-meta-left {
    transform: perspective(1400px) rotateY(8deg) translateZ(-30px);
}

.hero-meta-right {
    transform: perspective(1400px) rotateY(-8deg) translateZ(-30px);
}

.meta-block {
    background: var(--holo-blue-mist);
    border: 1px solid var(--holo-blue-faint);
    border-left: 2px solid var(--holo-blue);
    padding: 14px 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.08), inset 0 0 30px rgba(0, 170, 255, 0.04);
    position: relative;
}

.meta-block::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--holo-cyan);
    box-shadow: 0 0 6px var(--holo-cyan);
    animation: blink 2s linear infinite;
}

@keyframes blink {
    0%, 70%, 100% { opacity: 1; }
    80%, 90%      { opacity: 0.2; }
}

.meta-key {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--holo-blue);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.meta-val {
    font-family: "Orbitron", "Inter", sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--glow-white);
    letter-spacing: 0.04em;
    text-shadow: 0 0 8px rgba(224, 240, 255, 0.3);
}

.mono-cyan { color: var(--holo-cyan); text-shadow: 0 0 8px rgba(0, 255, 221, 0.5); }
.mono-amber { color: var(--amber); text-shadow: 0 0 8px rgba(255, 170, 0, 0.5); }

/* Central display */

.hero-display {
    position: relative;
    transform-style: preserve-3d;
    text-align: center;
    padding: 16px 0;
}

.sphere-stage {
    position: relative;
    width: clamp(260px, 38vw, 380px);
    height: clamp(260px, 38vw, 380px);
    margin: 0 auto 24px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.sphere {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: sphereSpin 28s linear infinite;
    filter: drop-shadow(0 0 12px rgba(0, 170, 255, 0.55)) drop-shadow(0 0 28px rgba(0, 170, 255, 0.25));
}

@keyframes sphereSpin {
    0%   { transform: rotateY(0deg) rotateX(8deg); }
    100% { transform: rotateY(360deg) rotateX(8deg); }
}

.ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 170, 255, 0.4);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.ring-1 { transform: rotateY(0deg);   border-color: rgba(0, 170, 255, 0.55); }
.ring-2 { transform: rotateY(30deg);  }
.ring-3 { transform: rotateY(60deg);  border-color: rgba(0, 255, 221, 0.45); }
.ring-4 { transform: rotateY(90deg);  }
.ring-5 { transform: rotateY(120deg); border-color: rgba(0, 255, 221, 0.35); }
.ring-6 { transform: rotateY(150deg); }

.sphere-equator {
    position: absolute;
    left: -2%;
    right: -2%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--holo-cyan), transparent);
    box-shadow: 0 0 10px var(--holo-cyan);
    transform: translateZ(0);
    animation: equatorPulse 3s ease-in-out infinite;
}

@keyframes equatorPulse {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 0.35; }
}

.sphere-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--holo-cyan);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--holo-cyan), 0 0 28px var(--holo-cyan);
    transform: translate(-50%, -50%);
    animation: coreFlare 2.6s ease-in-out infinite;
}

@keyframes coreFlare {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50%      { transform: translate(-50%, -50%) scale(1.6); opacity: 0.55; }
}

.sphere-pole {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 24px;
    background: var(--holo-cyan);
    box-shadow: 0 0 8px var(--holo-cyan);
    transform: translateX(-50%);
}
.sphere-pole-top { top: -12px; }
.sphere-pole-bot { bottom: -12px; }

.sphere-axis {
    position: absolute;
    background: rgba(0, 170, 255, 0.25);
    pointer-events: none;
}
.sphere-axis-x { left: -12%; right: -12%; top: 50%; height: 1px; }
.sphere-axis-y { top: -12%; bottom: -12%; left: 50%; width: 1px; }

.sphere-label {
    position: absolute;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.7rem;
    color: var(--holo-blue);
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(0, 170, 255, 0.6);
    background: rgba(8, 8, 15, 0.6);
    padding: 2px 6px;
    border-left: 1px solid var(--holo-cyan);
}
.sphere-label-1 { top: 10%;  left: -20%; }
.sphere-label-2 { top: 32%;  right: -22%; }
.sphere-label-3 { bottom: 24%; left: -18%; }
.sphere-label-4 { bottom: 6%; right: -20%; }

/* Headline */

.hero-headline {
    max-width: 780px;
    margin: 0 auto;
    transform-style: preserve-3d;
    transform: perspective(1400px) rotateX(2deg);
}

.kicker {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.8rem;
    color: var(--holo-cyan);
    letter-spacing: 0.18em;
    margin-bottom: 14px;
    text-shadow: 0 0 8px rgba(0, 255, 221, 0.4);
}

.headline {
    font-family: "Orbitron", "Inter", sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--glow-white);
    text-shadow:
        0 0 20px rgba(0, 170, 255, 0.5),
        0 0 40px rgba(0, 170, 255, 0.25);
    margin-bottom: 24px;
}

.headline-line {
    display: block;
}

.headline-cyan {
    color: var(--holo-cyan);
    text-shadow:
        0 0 18px rgba(0, 255, 221, 0.6),
        0 0 36px rgba(0, 255, 221, 0.3);
}

.lede {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(224, 240, 255, 0.82);
    max-width: 60ch;
    margin: 0 auto 28px;
}

.cta-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta {
    font-family: "Orbitron", "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--glow-white);
    padding: 14px 24px;
    border: 1px solid var(--holo-blue);
    background: rgba(0, 170, 255, 0.07);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: inline-flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.18), inset 0 0 18px rgba(0, 170, 255, 0.08);
    position: relative;
}

.cta::before {
    content: "";
    position: absolute;
    inset: -1px;
    border: 1px solid transparent;
    pointer-events: none;
    transition: border-color 0.25s ease;
}

.cta-primary { background: rgba(0, 170, 255, 0.14); }

.cta-bracket { color: var(--holo-cyan); }
.cta-arrow { color: var(--holo-cyan); transition: transform 0.25s ease; }

.cta:hover {
    background: rgba(0, 255, 221, 0.18);
    box-shadow: 0 0 28px rgba(0, 255, 221, 0.4), inset 0 0 22px rgba(0, 255, 221, 0.12);
    border-color: var(--holo-cyan);
    color: var(--glow-white);
    transform: translateY(-1px);
}

.cta:hover .cta-arrow { transform: translateX(4px); }

.cta-ghost {
    background: transparent;
    border-color: var(--holo-blue-faint);
    box-shadow: none;
}

/* Hero readout */

.hero-readout {
    margin: 32px auto 0;
    max-width: var(--maxw);
    width: 100%;
    padding: 10px 18px;
    background: rgba(0, 170, 255, 0.05);
    border: 1px solid var(--holo-blue-faint);
    border-left: 2px solid var(--holo-cyan);
    font-family: "Share Tech Mono", monospace;
    font-size: 0.78rem;
    color: var(--holo-blue);
    letter-spacing: 0.04em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: 0 0 22px rgba(0, 170, 255, 0.1);
}

.readout-key { color: var(--holo-cyan); margin-right: 8px; }
.readout-stream { color: rgba(224, 240, 255, 0.7); }

/* ----------------------------------------
   Ticker band
   ---------------------------------------- */

.ticker-band {
    padding: 0;
    border-top: 1px solid var(--holo-blue-faint);
    border-bottom: 1px solid var(--holo-blue-faint);
    background: rgba(0, 170, 255, 0.04);
    overflow: hidden;
    height: 56px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 24px rgba(0, 170, 255, 0.06);
}

.ticker-track {
    display: inline-flex;
    gap: 56px;
    white-space: nowrap;
    will-change: transform;
    animation: tickerFlow 38s linear infinite;
    padding-left: 100%;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.82rem;
    color: var(--glow-white);
    letter-spacing: 0.06em;
}

@keyframes tickerFlow {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker-item { display: inline-flex; align-items: center; gap: 10px; }

.ti-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--holo-blue);
    box-shadow: 0 0 8px var(--holo-blue);
}
.ti-dot-cyan { background: var(--holo-cyan); box-shadow: 0 0 8px var(--holo-cyan); }
.ti-dot-amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

/* ----------------------------------------
   Engine panels
   ---------------------------------------- */

.panels {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 36px);
    transform-style: preserve-3d;
    perspective: 1600px;
}

.panel {
    position: relative;
    background: rgba(0, 170, 255, 0.05);
    border: 1px solid var(--holo-blue-faint);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 28px 28px 24px;
    box-shadow:
        0 0 24px rgba(0, 170, 255, 0.10),
        inset 0 0 32px rgba(0, 170, 255, 0.04);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
    overflow: hidden;
    min-height: 280px;
}

.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--holo-cyan), transparent);
    box-shadow: 0 0 8px var(--holo-cyan);
    opacity: 0.6;
}

.panel::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(0, 170, 255, 0.08);
    pointer-events: none;
}

.panel-a { transform: perspective(1600px) rotateY(2deg) translateZ(0); }
.panel-b { transform: perspective(1600px) rotateY(-2deg) translateZ(-12px); }
.panel-c { transform: perspective(1600px) rotateY(2deg) translateZ(-24px); }
.panel-d { transform: perspective(1600px) rotateY(-2deg) translateZ(-12px); }

.panel:hover {
    transform: perspective(1600px) rotateY(0deg) translateZ(20px);
    box-shadow:
        0 0 36px rgba(0, 170, 255, 0.28),
        inset 0 0 36px rgba(0, 170, 255, 0.08);
    border-color: var(--holo-cyan);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.72rem;
    color: var(--holo-blue);
    letter-spacing: 0.08em;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--holo-blue-faint);
}

.panel-id { letter-spacing: 0.14em; }

.panel-status { color: var(--holo-cyan); text-shadow: 0 0 6px var(--holo-cyan); }
.panel-status-amber { color: var(--amber); text-shadow: 0 0 6px var(--amber); }

.panel-title {
    font-family: "Orbitron", "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--glow-white);
    text-shadow: 0 0 16px rgba(0, 170, 255, 0.4);
    margin-bottom: 12px;
}

.panel-body {
    color: rgba(224, 240, 255, 0.78);
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.panel-stats {
    list-style: none;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px dashed var(--holo-blue-faint);
    padding-top: 14px;
    margin-top: auto;
}

.panel-stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ps-key {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.65rem;
    color: var(--holo-blue);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ps-val {
    font-family: "Orbitron", "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--holo-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 221, 0.4);
}

/* Scan line element added by JS for panel reveal */
.panel .scan-fx {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 60%;
    top: -60%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 221, 0.18) 45%, rgba(0, 170, 255, 0.22) 55%, transparent 100%);
    pointer-events: none;
    animation: panelScan 1.4s ease-out forwards;
}

@keyframes panelScan {
    0%   { top: -60%; opacity: 0; }
    20%  { opacity: 1; }
    100% { top: 120%; opacity: 0; }
}

/* ----------------------------------------
   Worlds rail (horizontal scroll)
   ---------------------------------------- */

.worlds-rail {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px clamp(16px, 4vw, 48px) 32px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--holo-blue) transparent;
    perspective: 1400px;
}

.worlds-rail::-webkit-scrollbar { height: 6px; }
.worlds-rail::-webkit-scrollbar-track { background: rgba(0, 170, 255, 0.05); }
.worlds-rail::-webkit-scrollbar-thumb { background: var(--holo-blue-faint); }

.world-card {
    flex: 0 0 clamp(260px, 28vw, 340px);
    scroll-snap-align: center;
    background: rgba(0, 170, 255, 0.05);
    border: 1px solid var(--holo-blue-faint);
    padding: 24px 22px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.10), inset 0 0 28px rgba(0, 170, 255, 0.04);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    transform: perspective(1400px) rotateY(-3deg);
}

.world-card:hover {
    transform: perspective(1400px) rotateY(0deg) translateZ(16px);
    border-color: var(--holo-cyan);
    box-shadow: 0 0 32px rgba(0, 255, 221, 0.28);
}

.wc-glyph {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
}

.wc-glyph .wc-ring {
    position: absolute;
    inset: 0;
    border: 1px solid var(--holo-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.4);
}

.wc-glyph .wc-ring-2 { inset: 8px; transform: rotateZ(30deg) scaleX(0.7); }
.wc-glyph .wc-ring-3 { inset: 16px; transform: rotateZ(60deg) scaleX(0.4); }

.wc-glyph .wc-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--holo-cyan);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--holo-cyan);
}

.wc-glyph-cyan .wc-ring { border-color: var(--holo-cyan); box-shadow: 0 0 8px rgba(0, 255, 221, 0.5); }
.wc-glyph-cyan .wc-core { background: var(--holo-blue); box-shadow: 0 0 10px var(--holo-blue); }

.wc-glyph-amber .wc-ring { border-color: var(--amber); box-shadow: 0 0 8px rgba(255, 170, 0, 0.5); }
.wc-glyph-amber .wc-core { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

.wc-tag {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.7rem;
    color: var(--holo-blue);
    letter-spacing: 0.14em;
    margin-bottom: 6px;
}

.wc-name {
    font-family: "Orbitron", "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--glow-white);
    text-shadow: 0 0 12px rgba(0, 170, 255, 0.4);
    margin-bottom: 12px;
}

.wc-desc {
    color: rgba(224, 240, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 18px;
}

.wc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-top: 1px dashed var(--holo-blue-faint);
    padding-top: 14px;
}

.wc-stats div { display: flex; flex-direction: column; gap: 2px; }

.wc-stats dt {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.62rem;
    color: var(--holo-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wc-stats dd {
    font-family: "Orbitron", "Inter", sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--holo-cyan);
    text-shadow: 0 0 6px rgba(0, 255, 221, 0.35);
}

.rail-controls {
    max-width: var(--maxw);
    margin: 12px auto 0;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 clamp(16px, 4vw, 48px);
}

.rail-btn {
    font-family: "Orbitron", "Inter", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--glow-white);
    background: rgba(0, 170, 255, 0.05);
    border: 1px solid var(--holo-blue-faint);
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.rail-btn:hover {
    background: rgba(0, 255, 221, 0.12);
    border-color: var(--holo-cyan);
    color: var(--holo-cyan);
}

.rail-progress {
    flex: 1;
    height: 2px;
    background: rgba(0, 170, 255, 0.15);
    position: relative;
    overflow: hidden;
}

#railProgress {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, var(--holo-blue), var(--holo-cyan));
    box-shadow: 0 0 8px var(--holo-cyan);
    transition: width 0.25s ease;
}

/* ----------------------------------------
   Telemetry
   ---------------------------------------- */

.telemetry-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tcell {
    background: rgba(0, 170, 255, 0.05);
    border: 1px solid var(--holo-blue-faint);
    padding: 18px 18px 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 18px rgba(0, 170, 255, 0.08), inset 0 0 22px rgba(0, 170, 255, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tcell-wide { grid-column: span 2; }

.tcell-amber {
    border-color: rgba(255, 170, 0, 0.45);
    box-shadow: 0 0 18px rgba(255, 170, 0, 0.18), inset 0 0 22px rgba(255, 170, 0, 0.05);
}

.tcell-key {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.7rem;
    color: var(--holo-blue);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tcell-amber .tcell-key { color: var(--amber); }

.tcell-val {
    font-family: "Orbitron", "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--glow-white);
    letter-spacing: 0.04em;
    text-shadow: 0 0 12px rgba(0, 170, 255, 0.45);
}

.tcell-val-cyan { color: var(--holo-cyan); text-shadow: 0 0 12px rgba(0, 255, 221, 0.5); }

.tcell-bar {
    height: 4px;
    background: rgba(0, 170, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.tcell-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--holo-blue), var(--holo-cyan));
    box-shadow: 0 0 8px var(--holo-cyan);
    transition: width 0.6s ease;
}

.tcell-bar-amber span {
    background: linear-gradient(90deg, var(--amber), #ffd24c);
    box-shadow: 0 0 8px var(--amber);
}

.tcell-foot {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.7rem;
    color: rgba(224, 240, 255, 0.55);
    letter-spacing: 0.06em;
}

/* Chart */

.tcell-chart {
    position: relative;
    width: 100%;
    height: 180px;
    background: rgba(0, 170, 255, 0.03);
    border-top: 1px dashed var(--holo-blue-faint);
    margin-top: 4px;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-svg {
    width: 100%;
    height: 100%;
    flex: 1;
    display: block;
}

.chart-grid line {
    stroke: rgba(0, 170, 255, 0.12);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.chart-line {
    fill: none;
    stroke: var(--holo-blue);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 6px rgba(0, 170, 255, 0.7));
}

.chart-line-2 {
    stroke: var(--holo-cyan);
    filter: drop-shadow(0 0 6px rgba(0, 255, 221, 0.7));
}

.chart-area {
    fill: url(#chartFill);
    stroke: none;
}

.chart-area-2 { fill: url(#chartFill2); }

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.62rem;
    color: rgba(0, 170, 255, 0.7);
    letter-spacing: 0.08em;
}

/* Event log */

.tcell-log { gap: 12px; }

.log-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: "Share Tech Mono", monospace;
    font-size: 0.78rem;
    max-height: 168px;
    overflow: hidden;
}

.log-list li {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 4px 8px;
    border-left: 1px solid var(--holo-blue-faint);
    color: rgba(224, 240, 255, 0.78);
    transition: background 0.3s ease;
}

.log-list li.new { background: rgba(0, 255, 221, 0.08); }

.log-t { color: rgba(0, 170, 255, 0.85); }

.log-tag {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid currentColor;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
}

.log-tag-ok { color: var(--holo-cyan); }
.log-tag-cyan { color: var(--holo-blue); }
.log-tag-amber { color: var(--amber); }

/* ----------------------------------------
   Access section
   ---------------------------------------- */

.access {
    padding-bottom: clamp(64px, 8vw, 120px);
}

.access-frame {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    background: rgba(0, 170, 255, 0.05);
    border: 1px solid var(--holo-blue-faint);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.15), inset 0 0 36px rgba(0, 170, 255, 0.05);
    padding: clamp(24px, 4vw, 48px);
    transform: perspective(1400px) rotateX(2deg);
}

.access-corner {
    position: absolute;
    font-family: "Share Tech Mono", monospace;
    color: var(--holo-cyan);
    font-size: 1.2rem;
    text-shadow: 0 0 6px var(--holo-cyan);
}
.access-corner-tl { top: 6px; left: 8px; }
.access-corner-tr { top: 6px; right: 8px; }
.access-corner-bl { bottom: 6px; left: 8px; }
.access-corner-br { bottom: 6px; right: 8px; }

.access-inner { display: flex; flex-direction: column; gap: 20px; }

.access-title {
    font-family: "Orbitron", "Inter", sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--glow-white);
    text-shadow: 0 0 18px rgba(0, 170, 255, 0.4);
}

.access-sub {
    color: rgba(224, 240, 255, 0.78);
    max-width: 60ch;
}

.access-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin-top: 8px;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }

.form-row-wide { grid-column: 1 / -1; }

.form-row label {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--holo-blue);
    text-transform: uppercase;
}

.form-row input,
.form-row textarea {
    background: rgba(0, 170, 255, 0.04);
    border: 1px solid var(--holo-blue-faint);
    color: var(--glow-white);
    font-family: "Share Tech Mono", monospace;
    font-size: 0.92rem;
    padding: 10px 12px;
    letter-spacing: 0.04em;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(224, 240, 255, 0.4); }

.form-row input:hover,
.form-row textarea:hover {
    border-color: var(--holo-blue);
    background: rgba(0, 170, 255, 0.07);
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--holo-cyan);
    box-shadow: 0 0 14px rgba(0, 255, 221, 0.35);
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.form-actions .cta { border: 1px solid var(--holo-cyan); }

.form-note {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.74rem;
    color: var(--holo-blue);
    letter-spacing: 0.06em;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */

.footer {
    position: relative;
    z-index: 10;
    padding: 36px clamp(16px, 4vw, 48px) 28px;
    border-top: 1px solid var(--holo-blue-faint);
    background: rgba(8, 8, 15, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.footer-row {
    max-width: var(--maxw);
    margin: 0 auto 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    border-bottom: 1px dashed var(--holo-blue-faint);
    padding-bottom: 18px;
}

.footer-brand {
    font-family: "Orbitron", "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--glow-white);
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.4);
}

.footer-meta,
.footer-coord {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.74rem;
    color: rgba(0, 170, 255, 0.85);
    letter-spacing: 0.08em;
}

.footer-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }

.fg-key {
    font-family: "Orbitron", "Inter", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    color: var(--holo-cyan);
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 0 8px rgba(0, 255, 221, 0.35);
}

.footer-grid a {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.82rem;
    color: rgba(224, 240, 255, 0.7);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-grid a:hover {
    color: var(--holo-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 221, 0.4);
}

/* ----------------------------------------
   Reveal helper
   ---------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}

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

/* ----------------------------------------
   Responsive
   ---------------------------------------- */

@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-meta-left,
    .hero-meta-right {
        flex-direction: row;
        flex-wrap: wrap;
        transform: none;
        justify-content: center;
    }
    .hero-meta .meta-block { flex: 1 1 200px; }
    .panels { grid-template-columns: 1fr; }
    .panel-a, .panel-b, .panel-c, .panel-d { transform: none; }
    .telemetry-grid { grid-template-columns: repeat(2, 1fr); }
    .tcell-wide { grid-column: span 2; }
}

@media (max-width: 720px) {
    .topbar {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 8px;
    }
    .nav { flex-wrap: wrap; gap: 14px; justify-content: center; }
    .status { justify-content: center; }
    .brand { justify-content: center; }
    .telemetry-grid { grid-template-columns: 1fr; }
    .tcell-wide { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .access-form { grid-template-columns: 1fr; }
    .sphere-label { display: none; }
    .headline { font-size: clamp(2rem, 9vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
    .grid-bg,
    .scanline,
    .sphere,
    .sphere-equator,
    .sphere-core,
    .ticker-track,
    .brand-dot,
    .status-dot,
    .meta-block::after {
        animation: none !important;
    }
    .panel,
    .world-card,
    .cta {
        transition: none !important;
    }
    .panel .scan-fx { display: none; }
}
