/* ==========================================================================
   LUNJI TRADING - Cyber Dark Theme
   Core Stylesheet | Dark Mode + Futuristic Animations
   ========================================================================== */

/* CSS Variables / Theme Tokens */
:root {
    --bg-primary: #050816;
    --bg-secondary: #0a0e27;
    --bg-tertiary: #0f1535;
    --bg-elevated: #131a3a;
    --bg-overlay: rgba(5, 8, 22, 0.85);

    --neon-cyan: #00f0ff;
    --neon-cyan-soft: rgba(0, 240, 255, 0.4);
    --neon-magenta: #ff00d4;
    --neon-magenta-soft: rgba(255, 0, 212, 0.4);
    --neon-green: #00ff88;
    --neon-purple: #8b5cf6;
    --neon-yellow: #ffd700;
    --neon-red: #ff3860;

    --text-primary: #e6f1ff;
    --text-secondary: #a3b8d8;
    --text-muted: #6b7a99;
    --text-dim: #4a5578;

    --border-color: rgba(0, 240, 255, 0.2);
    --border-strong: rgba(0, 240, 255, 0.6);
    --border-soft: rgba(163, 184, 216, 0.1);

    --shadow-cyan: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.15);
    --shadow-magenta: 0 0 20px rgba(255, 0, 212, 0.3), 0 0 40px rgba(255, 0, 212, 0.15);
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.6);

    --grid-color: rgba(0, 240, 255, 0.08);
    --grid-strong: rgba(0, 240, 255, 0.18);

    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    --font-display: 'Orbitron', 'Rajdhani', 'Inter', sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --container-max: 1320px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Global Animated Background Layers */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridShift 40s linear infinite;
    opacity: 0.6;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 800px 600px at 20% 20%, rgba(0, 240, 255, 0.08), transparent 60%),
        radial-gradient(ellipse 700px 500px at 80% 80%, rgba(255, 0, 212, 0.06), transparent 60%),
        radial-gradient(ellipse 600px 600px at 50% 50%, rgba(139, 92, 246, 0.04), transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: nebulaPulse 15s ease-in-out infinite;
}

@keyframes gridShift {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

@keyframes nebulaPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Scanlines overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 240, 255, 0.02) 0px,
        rgba(0, 240, 255, 0.02) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: overlay;
    opacity: 0.4;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

a:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 8px var(--neon-magenta-soft);
}

code, pre {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--neon-green);
}

::selection {
    background: var(--neon-cyan);
    color: var(--bg-primary);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 8, 22, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-base);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--neon-cyan) 20%,
        var(--neon-magenta) 50%,
        var(--neon-cyan) 80%,
        transparent 100%);
    opacity: 0.6;
    animation: borderFlow 4s linear infinite;
}

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

.nav-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
}

.brand:hover {
    color: var(--neon-cyan);
}

.brand-logo {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 8px var(--neon-cyan-soft));
    animation: logoSpin 12s linear infinite;
}

@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text .brand-main {
    font-size: 1.15rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--neon-cyan-soft);
}

.brand-text .brand-sub {
    font-size: 0.65rem;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    letter-spacing: 0.3em;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.6rem 1.2rem;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 4px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.15), transparent);
    transition: left var(--transition-base);
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-soft);
}

.nav-cta {
    margin-left: 1rem;
    padding: 0.7rem 1.5rem !important;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 212, 0.1));
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    color: var(--neon-cyan) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.nav-cta:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(255, 0, 212, 0.2));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--neon-cyan);
    width: 44px;
    height: 44px;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 1200px 800px at 30% 50%, rgba(0, 240, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 1000px 700px at 70% 60%, rgba(255, 0, 212, 0.08), transparent 60%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 240, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.5); }
}

.hero-tag .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line span {
    display: inline-block;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-title .line:nth-child(1) span { animation-delay: 0.1s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.3s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.5s; }

@keyframes slideUp {
    from { transform: translateY(110%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.glitch {
    position: relative;
    color: var(--neon-cyan);
    text-shadow:
        0 0 10px var(--neon-cyan-soft),
        0 0 20px var(--neon-cyan-soft),
        0 0 30px var(--neon-cyan-soft);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.glitch::before {
    color: var(--neon-magenta);
    animation: glitchTop 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch::after {
    color: var(--neon-green);
    animation: glitchBottom 2.5s infinite linear alternate-reverse;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchTop {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, -1px); }
    80% { transform: translate(2px, 1px); }
}

@keyframes glitchBottom {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 1px); }
    80% { transform: translate(-1px, -2px); }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeIn 1s ease 0.8s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 1s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4), inset 0 0 20px rgba(255,255,255,0.1);
}

.btn-primary:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.5), inset 0 0 20px rgba(255,255,255,0.2);
    text-shadow: none;
}

.btn-ghost {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-ghost:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.btn-magenta {
    background: linear-gradient(135deg, var(--neon-magenta), var(--neon-purple));
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 212, 0.4);
}

.btn-magenta:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 212, 0.5);
}

/* Hero stats / Terminal */
.hero-visual {
    position: relative;
    animation: fadeIn 1s ease 1.2s backwards;
}

.terminal {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-deep), 0 0 40px rgba(0, 240, 255, 0.15);
    backdrop-filter: blur(10px);
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.terminal:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-red);
    box-shadow: 0 0 8px var(--neon-red);
}

.terminal-dot:nth-child(2) { background: var(--neon-yellow); box-shadow: 0 0 8px var(--neon-yellow); }
.terminal-dot:nth-child(3) { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    min-height: 320px;
}

.term-line {
    margin-bottom: 0.4rem;
    opacity: 0;
    animation: termFade 0.4s forwards;
}

@keyframes termFade {
    to { opacity: 1; }
}

.term-prompt {
    color: var(--neon-green);
}

.term-user {
    color: var(--neon-cyan);
}

.term-path {
    color: var(--neon-purple);
}

.term-cmd {
    color: var(--text-primary);
}

.term-out {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

.term-key {
    color: var(--neon-magenta);
}

.term-val {
    color: var(--neon-yellow);
}

.term-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--neon-cyan);
    animation: blink 1s steps(2) infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Floating decorative shapes */
.floating-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
}

.floating-shape.shape-1 {
    top: 10%;
    right: 5%;
    width: 80px;
    height: 80px;
    border: 1px solid var(--neon-cyan);
    transform: rotate(45deg);
    animation: floatRotate 8s ease-in-out infinite;
}

.floating-shape.shape-2 {
    bottom: 15%;
    left: 8%;
    width: 60px;
    height: 60px;
    border: 1px solid var(--neon-magenta);
    border-radius: 50%;
    animation: floatRotate 10s ease-in-out infinite reverse;
}

.floating-shape.shape-3 {
    top: 60%;
    right: 15%;
    width: 40px;
    height: 40px;
    background: var(--neon-green);
    opacity: 0.2;
    filter: blur(8px);
    animation: floatY 5s ease-in-out infinite;
}

@keyframes floatRotate {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(225deg) translate(20px, -20px); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

/* ===== SECTION GENERAL ===== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 3rem;
}

.center-header {
    text-align: center;
    margin: 0 auto 4rem;
    max-width: 800px;
}

.center-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== CARDS / GRIDS ===== */
.card-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

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

.cyber-card {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 21, 53, 0.6), rgba(10, 14, 39, 0.4));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    overflow: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.cyber-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 240, 255, 0.05) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    pointer-events: none;
}

.cyber-card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.2);
}

.cyber-card:hover::before,
.cyber-card:hover::after {
    transform: translateX(100%);
}

.cyber-card .corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--neon-cyan);
    transition: all var(--transition-base);
    opacity: 0.6;
}

.cyber-card .corner.tl { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; }
.cyber-card .corner.tr { top: 8px; right: 8px; border-top: 2px solid; border-right: 2px solid; }
.cyber-card .corner.bl { bottom: 8px; left: 8px; border-bottom: 2px solid; border-left: 2px solid; }
.cyber-card .corner.br { bottom: 8px; right: 8px; border-bottom: 2px solid; border-right: 2px solid; }

.cyber-card:hover .corner {
    opacity: 1;
    width: 20px;
    height: 20px;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 0, 212, 0.15));
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: var(--neon-cyan);
    transition: all var(--transition-base);
}

.cyber-card:hover .card-icon {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(255, 0, 212, 0.3));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: rotate(-5deg) scale(1.05);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.cyber-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.cyber-card .card-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cyber-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.cyber-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.cyber-card .card-link::after {
    content: '→';
    transition: transform var(--transition-base);
}

.cyber-card:hover .card-link::after {
    transform: translateX(4px);
}

/* ===== APP SHOWCASE GRID ===== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.app-card {
    background: linear-gradient(160deg, rgba(15, 21, 53, 0.7), rgba(5, 8, 22, 0.6));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--neon-cyan-soft), transparent 30%);
    animation: spin 8s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.app-card:hover::before {
    opacity: 0.3;
}

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

.app-card .app-content {
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
    margin: -1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
}

.app-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.3);
    flex-shrink: 0;
}

.app-icon svg { width: 32px; height: 32px; }

.app-head h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.app-head .app-cat {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.app-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* ===== STATS ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 4rem 0;
}

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

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan-soft);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 920px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--neon-cyan), var(--neon-magenta), transparent);
    transform: translateX(-50%);
}

.tl-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 2.5rem;
    margin-bottom: 1rem;
}

.tl-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.tl-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.tl-item::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-cyan);
    z-index: 2;
}

.tl-item:nth-child(odd)::before { right: -8px; }
.tl-item:nth-child(even)::before { left: -8px; }

.tl-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.tl-card {
    background: rgba(15, 21, 53, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.tl-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: scale(1.02);
}

.tl-card h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.tl-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 50px; padding-right: 1rem; }
    .tl-item::before { left: 12px !important; right: auto !important; }
}

/* ===== CONTACT FORM ===== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    margin-top: 3rem;
}

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

.contact-info {
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--neon-cyan), transparent, var(--neon-magenta));
    border-radius: 12px;
    z-index: -1;
    opacity: 0.5;
}

.contact-info h3 {
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-item .label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.2rem;
}

.contact-item .value {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.95rem;
    word-break: break-all;
}

.contact-form {
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.field {
    margin-bottom: 1.25rem;
}

.field.full { grid-column: 1 / -1; }

.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    background: rgba(5, 8, 22, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-base);
    outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15), inset 0 0 10px rgba(0, 240, 255, 0.05);
    background: rgba(5, 8, 22, 0.8);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-body);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-dim);
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.form-status.error {
    display: block;
    background: rgba(255, 56, 96, 0.1);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
}

/* ===== POLICY PAGES ===== */
.policy-content {
    max-width: 980px;
    margin: 0 auto;
}

.policy-content section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(10, 14, 39, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.policy-content section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-magenta));
    border-radius: 12px 0 0 12px;
}

.policy-content h2 {
    color: var(--neon-cyan);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-family: var(--font-display);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.policy-content h3 {
    color: var(--neon-magenta);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.15rem;
}

.policy-content p,
.policy-content li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.policy-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-content ul li::marker {
    color: var(--neon-cyan);
}

.policy-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.toc {
    background: rgba(15, 21, 53, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.toc h3 {
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.toc ol {
    padding-left: 1.25rem;
    column-count: 2;
    column-gap: 2rem;
}

@media (max-width: 700px) {
    .toc ol { column-count: 1; }
}

.toc li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

.toc a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toc a:hover {
    color: var(--neon-cyan);
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 22, 0.95));
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 360px;
    margin-top: 1rem;
}

.footer-col h4 {
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--neon-cyan);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul a::before {
    content: '›';
    color: var(--neon-cyan);
    opacity: 0;
    transition: all var(--transition-base);
}

.footer-col ul a:hover {
    color: var(--neon-cyan);
    padding-left: 8px;
}

.footer-col ul a:hover::before {
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-links a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.legal-links a:hover {
    color: var(--neon-cyan);
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: dotPulse 2s ease-in-out infinite;
}

/* ===== PAGE HEADER ===== */
.page-header {
    position: relative;
    padding: calc(var(--header-height) + 5rem) 0 4rem;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 800px 400px at 50% 0%, rgba(0, 240, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header .breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

.page-header .breadcrumb a {
    color: var(--neon-cyan);
}

.page-header .breadcrumb span {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

/* ===== HEXAGON PATTERN ===== */
.hex-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 1px 1px, var(--neon-cyan) 1px, transparent 0);
    background-size: 30px 30px;
}

/* ===== PAGE-SPECIFIC: SERVICES ===== */
.service-block {
    margin-bottom: 4rem;
}

.service-block-head {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.service-num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--neon-cyan);
    line-height: 1;
    text-shadow: 0 0 20px var(--neon-cyan-soft);
}

.service-block-head h2 {
    margin-bottom: 0.25rem;
}

.service-block-head p {
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== PAGE-SPECIFIC: ADVANTAGES ===== */
.feature-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.feature-large.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-large.reverse .feature-text {
    order: 2;
}

.feature-visual {
    background: linear-gradient(135deg, rgba(15, 21, 53, 0.6), rgba(5, 8, 22, 0.4));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    min-height: 360px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-visual svg {
    width: 100%;
    height: auto;
    max-width: 320px;
}

.feature-text h2 {
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px dashed var(--border-soft);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--neon-green);
    font-weight: bold;
    text-shadow: 0 0 8px var(--neon-green);
}

@media (max-width: 900px) {
    .feature-large,
    .feature-large.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .feature-large.reverse .feature-text { order: 0; }
}

/* ===== PAGE-SPECIFIC: NEWS ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.news-card {
    background: linear-gradient(160deg, rgba(15, 21, 53, 0.6), rgba(5, 8, 22, 0.5));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.2);
}

.news-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-elevated));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(0, 240, 255, 0.1) 50%, transparent 70%),
        repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0, 240, 255, 0.03) 2px, rgba(0, 240, 255, 0.03) 4px);
}

.news-thumb svg {
    width: 60%;
    height: auto;
    max-width: 200px;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 10px var(--neon-cyan-soft));
    z-index: 2;
    position: relative;
}

.news-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.news-meta .tag-news {
    color: var(--neon-cyan);
}

.news-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.news-card .read-more {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ===== ANIMATIONS UTILITIES ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== MATRIX RAIN BACKGROUND (specific to hero) ===== */
.matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

/* ===== PARTICLE LAYER ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-cyan);
    opacity: 0.5;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 2rem;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 1rem;
    border-bottom: 1px solid var(--border-soft);
    font-family: var(--font-display);
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--neon-cyan);
    border-left: 3px solid var(--neon-cyan);
    padding-left: 1.5rem;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .terminal { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .container { padding: 0 1.25rem; }
    .nav-wrap { padding: 0 1.25rem; }
    .section { padding: 4rem 0; }
    .hero { padding-top: calc(var(--header-height) + 2rem); }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .legal-links { justify-content: center; }
    .cyber-card, .contact-form, .contact-info, .policy-content section, .toc { padding: 1.25rem; }
    .form-grid { grid-template-columns: 1fr; }
}

/* ===== LOADING SCREEN ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    animation: logoSpin 2s linear infinite;
    filter: drop-shadow(0 0 15px var(--neon-cyan));
}

.loader-bar {
    width: 240px;
    height: 3px;
    background: rgba(0, 240, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: loaderSlide 1.5s ease-in-out infinite;
}

@keyframes loaderSlide {
    to { left: 100%; }
}

.loader-text {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Print */
@media print {
    body::before, body::after, .scanlines, .particles, .loader, .site-header, .site-footer { display: none !important; }
    body { background: white; color: black; }
}

/* ==========================================================================
   HOME-PAGE REDESIGN EXTRAS
   Mission Control Dashboard, Hero Metrics, Flow, Quotes, CTA Block
   ========================================================================== */

/* Hero inline metrics */
.hero-metrics {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
}
.hm-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 70px;
}
.hm-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-soft);
    line-height: 1;
}
.hm-lab {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}
.hm-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

/* Hero orbit badges */
.orbit-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    background: rgba(10, 14, 39, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 3;
    white-space: nowrap;
}
.orbit-badge svg {
    width: 16px;
    height: 16px;
    color: var(--neon-cyan);
}
.orbit-1 {
    top: 8%;
    left: -20px;
    animation: floatBadge 6s ease-in-out infinite;
}
.orbit-2 {
    bottom: 12%;
    right: -30px;
    animation: floatBadge 7s ease-in-out infinite 1s;
}
.orbit-3 {
    top: 50%;
    right: -50px;
    animation: floatBadge 8s ease-in-out infinite 2s;
}
.orbit-badge:nth-of-type(2) { border-color: rgba(255, 0, 212, 0.4); }
.orbit-badge:nth-of-type(2) svg { color: var(--neon-magenta); }
.orbit-badge:nth-of-type(3) { border-color: rgba(0, 255, 136, 0.4); }
.orbit-badge:nth-of-type(3) svg { color: var(--neon-green); }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 900px) {
    .orbit-badge { display: none; }
    .hero-metrics { gap: 1rem; padding: 1rem; }
    .hm-divider { display: none; }
}

/* Terminal status badge */
.terminal-status {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-green);
    letter-spacing: 0.1em;
}
.terminal-status .status-dot {
    width: 6px;
    height: 6px;
}

/* Mission Control Dashboard */
.dashboard {
    background: linear-gradient(135deg, rgba(15, 21, 53, 0.5), rgba(5, 8, 22, 0.7));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.dashboard::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), var(--neon-cyan), transparent);
    background-size: 200% 100%;
    animation: borderFlow 6s linear infinite;
}
.dashboard::after {
    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: 40px 40px;
    pointer-events: none;
}
.dash-header {
    position: relative;
    z-index: 2;
    margin-bottom: 2.5rem;
}
.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}
@media (max-width: 1024px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .dash-grid { grid-template-columns: 1fr; } }

.dash-tile {
    background: rgba(5, 8, 22, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}
.dash-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}
.dash-tile:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.dash-tile:hover::before { transform: scaleX(1); }

.dash-tile-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.dash-tile-head svg { width: 18px; height: 18px; }

.dash-tile-body { display: flex; flex-direction: column; gap: 0.6rem; }

.kv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
.kv-row span { color: var(--text-muted); }
.kv-row strong {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.led-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.led-row strong {
    margin-left: auto;
    color: var(--neon-green);
    font-weight: 500;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}
.led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-elevated);
    flex-shrink: 0;
}
.led-on {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: dotPulse 2s ease-in-out infinite;
}

.act-row {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.act-time {
    color: var(--neon-cyan);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

/* Flow timeline */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    position: relative;
}
@media (max-width: 1024px) { .flow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .flow-grid { grid-template-columns: 1fr; } }

.flow-step {
    position: relative;
    padding: 2rem 1.5rem;
    background: linear-gradient(160deg, rgba(15, 21, 53, 0.6), rgba(5, 8, 22, 0.4));
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    transition: all var(--transition-base);
    overflow: hidden;
}
.flow-step:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.1);
}
.flow-step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}
.flow-step:hover::before { opacity: 1; }

.flow-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--neon-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--neon-cyan-soft);
    position: relative;
}
.flow-line {
    position: absolute;
    top: 2.5rem;
    right: -0.625rem;
    width: 1.25rem;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}
@media (max-width: 1024px) { .flow-line { display: none; } }

.flow-step h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.flow-step p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
}

/* Quote cards */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) { .quote-grid { grid-template-columns: 1fr; } }

.quote-card {
    position: relative;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--transition-base);
    overflow: hidden;
}
.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-magenta));
    opacity: 0;
    transition: opacity var(--transition-base);
}
.quote-card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-cyan);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.1);
}
.quote-card:hover::before { opacity: 1; }

.quote-card blockquote {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
    font-style: italic;
    position: relative;
}
.quote-card blockquote::before {
    content: '\201C';
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    font-size: 4rem;
    color: var(--neon-cyan);
    opacity: 0.4;
    font-family: serif;
    line-height: 1;
}
.quote-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}
.q-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    letter-spacing: 0.05em;
}
.q-org {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* Big CTA block */
.cta-block {
    position: relative;
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(15, 21, 53, 0.7), rgba(5, 8, 22, 0.7));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 50% 50%, rgba(0, 240, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 400px 300px at 80% 20%, rgba(255, 0, 212, 0.08), transparent 70%);
    pointer-events: none;
    animation: nebulaPulse 10s ease-in-out infinite;
}
.cta-block > * { position: relative; z-index: 2; }
.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
