/* ============================================================
   ProVisionI — Futuristic Dark Theme
   Tron/Trek-inspired neon aesthetic
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --bg-void: #050a14;
    --bg-deep: #0a0f1e;
    --bg-surface: #0d1528;
    --bg-elevated: #111c33;
    --bg-panel: rgba(13, 21, 40, 0.75);

    --neon-cyan: #00e5ff;
    --neon-cyan-dim: rgba(0, 229, 255, 0.5);
    --neon-cyan-subtle: rgba(0, 229, 255, 0.12);
    --neon-cyan-ghost: rgba(0, 229, 255, 0.06);

    --neon-violet: #a855f7;
    --neon-violet-dim: rgba(168, 85, 247, 0.5);
    --neon-violet-subtle: rgba(168, 85, 247, 0.12);

    --neon-red: #ff1744;
    --neon-amber: #ffb300;
    --neon-orange: #ff6a1a;
    --neon-orange-dim: rgba(255, 106, 26, 0.5);
    --neon-orange-subtle: rgba(255, 106, 26, 0.12);
    --neon-orange-ghost: rgba(255, 106, 26, 0.06);

    --text-primary: #e8edf4;
    --text-secondary: rgba(232, 237, 244, 0.65);
    --text-muted: rgba(232, 237, 244, 0.35);

    --border-subtle: rgba(0, 229, 255, 0.1);
    --border-glow: rgba(0, 229, 255, 0.3);

    --font-heading: "Orbitron", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-body: "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;

    --glow-sm: 0 0 6px var(--neon-cyan-dim);
    --glow-md: 0 0 12px var(--neon-cyan-dim), 0 0 24px rgba(0, 229, 255, 0.2);
    --glow-lg: 0 0 16px var(--neon-cyan-dim), 0 0 40px rgba(0, 229, 255, 0.25), 0 0 80px rgba(0, 229, 255, 0.1);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* PVIntelligence wing overrides */
.pvi-wing {
    --neon-cyan: #a855f7;
    --neon-cyan-dim: rgba(168, 85, 247, 0.5);
    --neon-cyan-subtle: rgba(168, 85, 247, 0.12);
    --neon-cyan-ghost: rgba(168, 85, 247, 0.06);
    --border-subtle: rgba(168, 85, 247, 0.1);
    --border-glow: rgba(168, 85, 247, 0.3);
    --glow-sm: 0 0 6px var(--neon-cyan-dim);
    --glow-md: 0 0 12px var(--neon-cyan-dim), 0 0 24px rgba(168, 85, 247, 0.2);
    --glow-lg: 0 0 16px var(--neon-cyan-dim), 0 0 40px rgba(168, 85, 247, 0.25), 0 0 80px rgba(168, 85, 247, 0.1);
}

/* Security wing overrides (resets cyan inside a .pvi-wing scope) */
.security-wing {
    --neon-cyan: #00e5ff;
    --neon-cyan-dim: rgba(0, 229, 255, 0.5);
    --neon-cyan-subtle: rgba(0, 229, 255, 0.12);
    --neon-cyan-ghost: rgba(0, 229, 255, 0.06);
    --border-subtle: rgba(0, 229, 255, 0.1);
    --border-glow: rgba(0, 229, 255, 0.3);
    --glow-sm: 0 0 6px var(--neon-cyan-dim);
    --glow-md: 0 0 12px var(--neon-cyan-dim), 0 0 24px rgba(0, 229, 255, 0.2);
    --glow-lg: 0 0 16px var(--neon-cyan-dim), 0 0 40px rgba(0, 229, 255, 0.25), 0 0 80px rgba(0, 229, 255, 0.1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-void);
    overflow-x: hidden;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-cyan-subtle);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan-dim);
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

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

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}
a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan-dim);
}

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

.text-orange {
    color: var(--neon-orange);
    text-shadow: 0 0 12px var(--neon-orange-dim);
}

/* Orange accent button variant */
.btn-neon-orange {
    border-color: var(--neon-orange);
    color: var(--neon-orange);
    box-shadow: 0 0 6px var(--neon-orange-dim), inset 0 0 20px var(--neon-orange-ghost);
}

.btn-neon-orange::before {
    background: linear-gradient(135deg, var(--neon-orange-subtle), transparent);
}

.btn-neon-orange:hover {
    color: #fff;
    border-color: var(--neon-orange);
    box-shadow: 0 0 12px var(--neon-orange-dim), 0 0 24px rgba(255,106,26,0.2), inset 0 0 30px var(--neon-orange-ghost);
    text-shadow: 0 0 8px var(--neon-orange-dim);
}

.btn-neon-orange.btn-neon-filled {
    background: var(--neon-orange);
    color: var(--bg-void);
    box-shadow: 0 0 12px var(--neon-orange-dim), 0 0 24px rgba(255,106,26,0.2);
}

.btn-neon-orange.btn-neon-filled:hover {
    background: #fff;
    color: var(--bg-void);
    border-color: #fff;
    box-shadow: 0 0 16px var(--neon-orange-dim), 0 0 40px rgba(255,106,26,0.25);
}

.text-gradient {
    background: linear-gradient(135deg, var(--neon-cyan), #fff, var(--neon-cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.section-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.section-label::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-sm);
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 860px;
}

/* --- Grid Background Pattern --- */
.grid-bg {
    position: relative;
}
.grid-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--neon-cyan-ghost) 1px, transparent 1px),
        linear-gradient(90deg, var(--neon-cyan-ghost) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Scan line overlay */
.scanline-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 229, 255, 0.015) 2px,
        rgba(0, 229, 255, 0.015) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-void);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 2px solid var(--neon-cyan-subtle);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: var(--glow-md);
}

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

/* --- Header / Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(5, 10, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-logo img {
    height: 42px;
    transition: height var(--transition-fast);
}

.scrolled .site-logo img {
    height: 34px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

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

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-sm);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

/* Wing switcher link */
.nav-wing-link {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-sm);
    color: var(--neon-cyan);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-wing-link:hover {
    background: var(--neon-cyan-subtle);
    box-shadow: var(--glow-sm);
    color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neon-cyan);
    transition: all var(--transition-fast);
    box-shadow: var(--glow-sm);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(5, 10, 20, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--border-subtle);
    padding: 80px 2rem 2rem;
    transition: right var(--transition-smooth);
    z-index: 999;
    overflow-y: auto;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav a {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--neon-cyan);
    padding-left: 0.5rem;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.mobile-overlay.visible {
    opacity: 1;
}

/* --- Buttons --- */
.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-sm);
    color: var(--neon-cyan);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: var(--glow-sm), inset 0 0 20px rgba(0, 229, 255, 0.03);
}

.btn-neon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-cyan-subtle), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-neon:hover {
    color: #fff;
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-md), inset 0 0 30px var(--neon-cyan-ghost);
    text-shadow: 0 0 8px var(--neon-cyan-dim);
    transform: translateY(-1px);
}

.btn-neon:hover::before {
    opacity: 1;
}

.btn-neon:active {
    transform: translateY(0);
}

.btn-neon-filled {
    background: var(--neon-cyan);
    color: var(--bg-void);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-md);
}

.btn-neon-filled:hover {
    background: #fff;
    color: var(--bg-void);
    border-color: #fff;
    box-shadow: var(--glow-lg);
}

.btn-neon-sm {
    font-size: 0.65rem;
    padding: 10px 22px;
}

.btn-neon-lg {
    font-size: 0.8rem;
    padding: 18px 42px;
}

/* Pulse animation for primary CTAs */
.btn-pulse {
    animation: neon-pulse 3s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% { box-shadow: var(--glow-sm); }
    50% { box-shadow: var(--glow-md); }
}

/* --- Glass Panels --- */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-glow);
    box-shadow: var(--glow-sm);
}

/* Corner-accented panel (LCARS-inspired) */
.corner-panel {
    position: relative;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 2rem;
    transition: all var(--transition-smooth);
}

.corner-panel::before,
.corner-panel::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--neon-cyan);
    border-style: solid;
    border-width: 0;
    transition: all var(--transition-smooth);
    opacity: 0.5;
}

.corner-panel::before {
    top: -1px;
    left: -1px;
    border-top-width: 2px;
    border-left-width: 2px;
    border-top-left-radius: var(--radius-sm);
}

.corner-panel::after {
    bottom: -1px;
    right: -1px;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-bottom-right-radius: var(--radius-sm);
}

.corner-panel:hover::before,
.corner-panel:hover::after {
    opacity: 1;
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 4px var(--neon-cyan-dim));
}

.corner-panel:hover {
    border-color: var(--border-glow);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: clip;
    overflow-clip-margin: content-box;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 10, 20, 0.5) 0%,
        rgba(5, 10, 20, 0.65) 50%,
        rgba(5, 10, 20, 0.95) 100%
    );
    z-index: 1;
}

/* Grid pattern on hero overlay */
.hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--neon-cyan-ghost) 1px, transparent 1px),
        linear-gradient(90deg, var(--neon-cyan-ghost) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan-dim);
    margin-bottom: 1.5rem;
}

.hero-heading {
    font-size: clamp(1.8rem, 4.2vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-line {
    display: inline;
}

/* Cipher decode: each char starts invisible, revealed by JS */
.hero-heading .char {
    display: inline-block;
    opacity: 0;
    transition: none;
}

.hero-heading .char.decoded {
    opacity: 1;
}

.hero-heading .char.decoding {
    opacity: 1;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan-dim);
}

/* Holographic glitch - plays periodically after decode */
.hero-heading.glitch-active {
    animation: holo-glitch 0.3s steps(2) forwards;
}

@keyframes holo-glitch {
    0% {
        text-shadow: none;
        transform: translate(0);
    }
    10% {
        text-shadow: -2px 0 #ff003c, 2px 0 #00e5ff;
        transform: translate(2px, -1px);
    }
    20% {
        text-shadow: 2px 0 #ff003c, -2px 0 #00e5ff;
        transform: translate(-2px, 1px);
    }
    30% {
        text-shadow: -1px 0 #ff003c, 1px 0 #00e5ff;
        transform: translate(1px, 0);
        clip-path: inset(40% 0 30% 0);
    }
    40% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-1px, 1px);
    }
    50% {
        clip-path: inset(70% 0 5% 0);
        text-shadow: 2px 0 #ff003c, -2px 0 #00e5ff;
        transform: translate(2px, -1px);
    }
    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-1px, 0);
    }
    70% {
        text-shadow: -1px 0 #ff003c, 1px 0 #00e5ff;
        clip-path: none;
        transform: translate(0);
    }
    100% {
        text-shadow: none;
        transform: translate(0);
        clip-path: none;
    }
}

/* Scanline sweep after decode */
.hero-heading.sweep-active::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.08), rgba(0, 229, 255, 0.15), rgba(0, 229, 255, 0.08), transparent);
    animation: sweep-across 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes sweep-across {
    0% { left: -60%; }
    100% { left: 120%; }
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animated scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-indicator i {
    color: var(--neon-cyan);
    font-size: 1.2rem;
    animation: bounce-down 1.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.5; }
}

/* --- Sections --- */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-sm {
    padding: 4rem 0;
}

.section-lg {
    padding: 8rem 0;
}

.section-dark {
    background: var(--bg-deep);
}

.section-darker {
    background: var(--bg-void);
}

.section-surface {
    background: var(--bg-surface);
}

/* Neon divider line between sections */
.neon-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 8px var(--neon-cyan-dim);
    border: none;
    margin: 0;
}

/* --- Feature Cards --- */
.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--glow-sm);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--neon-cyan);
    background: var(--neon-cyan-ghost);
    transition: all var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    box-shadow: var(--glow-sm);
    background: var(--neon-cyan-subtle);
}

.feature-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.92rem;
    margin: 0;
}

/* Orange corner panel variant */
.corner-panel-orange {
    border-color: rgba(255, 106, 26, 0.3);
}

.corner-panel-orange::before,
.corner-panel-orange::after {
    border-color: var(--neon-orange);
}

.corner-panel-orange:hover {
    border-color: rgba(255, 106, 26, 0.5);
}

.corner-panel-orange:hover::before,
.corner-panel-orange:hover::after {
    filter: drop-shadow(0 0 4px var(--neon-orange-dim));
}

/* Surveillance CCTV effect */
.surveillance-scan {
    position: relative;
    overflow: hidden;
}

/* CRT scan lines overlay - light lines on dark bg */
.surveillance-scan > .crt-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(200, 220, 255, 0.02) 2px,
        rgba(200, 220, 255, 0.02) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* VHS-style text effect - subtle */
.vhs-text {
    color: rgba(255, 23, 68, 0.7);
    text-shadow:
        1px 0 rgba(255, 23, 68, 0.15),
        -1px 0 rgba(0, 229, 255, 0.1);
    animation: vhs-jitter 6s infinite;
    display: inline-block;
}

@keyframes vhs-jitter {
    0%, 95%, 100% {
        transform: translate(0);
    }
    96% {
        transform: translate(1px, 0);
    }
    97% {
        transform: translate(-1px, 0);
    }
}

/* VHS-style REC indicator with red dot */
.surveillance-scan::after {
    content: "\25CF  REC";
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-family: "Courier New", "Lucida Console", monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--neon-red);
    text-shadow: 0 0 8px rgba(255, 23, 68, 0.6);
    opacity: 0;
    animation: rec-blink 1.5s step-end infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rec-blink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0; }
}

/* Police light reflection effect - behind content */
.police-lights {
    position: relative;
    overflow: hidden;
}

.police-lights > .police-light-blue,
.police-lights > .police-light-red {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
}

.police-lights > .police-light-blue {
    left: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 60, 255, 0.15), transparent 70%);
    animation: police-blue 4.8s step-end infinite;
}

.police-lights > .police-light-red {
    right: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255, 10, 10, 0.15), transparent 70%);
    animation: police-red 4.8s step-end infinite;
}

/* Multi-pattern cycle: triple-flash, single alternating, long hold
   4.8s total = 3 distinct patterns before repeating */
@keyframes police-blue {
    /* Pattern 1: Triple flash blue */
    0%    { opacity: 0.7; }
    2%    { opacity: 0; }
    4%    { opacity: 0.7; }
    6%    { opacity: 0; }
    8%    { opacity: 0.7; }
    10%   { opacity: 0; }
    /* Red takes over */
    17%   { opacity: 0; }
    /* Pattern 2: Quick single alternating */
    33%   { opacity: 0.6; }
    36%   { opacity: 0; }
    42%   { opacity: 0.6; }
    45%   { opacity: 0; }
    51%   { opacity: 0.6; }
    54%   { opacity: 0; }
    /* Red takes over */
    60%   { opacity: 0; }
    /* Pattern 3: Long hold */
    67%   { opacity: 0.5; }
    75%   { opacity: 0; }
    /* Red takes over */
    83%   { opacity: 0; }
    100%  { opacity: 0; }
}

@keyframes police-red {
    /* Blue is doing triple flash */
    0%    { opacity: 0; }
    /* Pattern 1: Triple flash red */
    10%   { opacity: 0; }
    11%   { opacity: 0.7; }
    13%   { opacity: 0; }
    15%   { opacity: 0.7; }
    17%   { opacity: 0; }
    19%   { opacity: 0.7; }
    21%   { opacity: 0; }
    /* Pattern 2: Quick single alternating (opposite phase) */
    36%   { opacity: 0; }
    37%   { opacity: 0.6; }
    40%   { opacity: 0; }
    45%   { opacity: 0.6; }
    48%   { opacity: 0; }
    54%   { opacity: 0.6; }
    57%   { opacity: 0; }
    /* Pattern 3: Long hold */
    75%   { opacity: 0; }
    76%   { opacity: 0.5; }
    83%   { opacity: 0; }
    100%  { opacity: 0; }
}

/* --- Stat Counter --- */
.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--neon-orange);
    text-shadow: 0 0 20px var(--neon-orange-dim);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* --- Comparison Section (Active Guarding) --- */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.comparison-col {
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    position: relative;
}

.comparison-col.col-them {
    background: rgba(255, 23, 68, 0.03);
    border-color: rgba(255, 23, 68, 0.15);
}

.comparison-col.col-us {
    background: var(--neon-orange-ghost);
    border-color: rgba(255, 106, 26, 0.3);
    box-shadow: 0 0 6px var(--neon-orange-dim);
}

.comparison-col h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-col.col-them h3 {
    color: var(--neon-red);
}

.comparison-col.col-us h3 {
    color: var(--neon-orange);
}

.comparison-list {
    list-style: none;
    padding: 0;
}

.comparison-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
}

.comparison-list li::before {
    position: absolute;
    left: 0;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
}

.col-them .comparison-list li::before {
    content: "\f00d";
    color: var(--neon-red);
}

.col-us .comparison-list li::before {
    content: "\f00c";
    color: var(--neon-orange);
    text-shadow: 0 0 6px var(--neon-orange-dim);
}

/* --- Video Gallery / Showcase --- */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.showcase-card {
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    transition: all var(--transition-smooth);
}

.showcase-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--glow-sm);
}

.showcase-card .play-icon {
    width: 64px;
    height: 64px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    transition: all var(--transition-smooth);
    box-shadow: var(--glow-sm);
}

.showcase-card:hover .play-icon {
    box-shadow: var(--glow-md);
    transform: scale(1.05);
}

/* Showcase thumbnails (button variant of .showcase-card) */
.showcase-thumb {
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: var(--bg-surface);
    font: inherit;
    color: inherit;
}

.showcase-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.showcase-thumb:hover img {
    transform: scale(1.04);
    filter: brightness(1.1);
}

.showcase-thumb .play-icon {
    width: 64px;
    height: 64px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    transition: all var(--transition-smooth);
    box-shadow: var(--glow-sm);
    background: rgba(5, 10, 20, 0.5);
    position: relative;
    z-index: 1;
}

.showcase-thumb:hover .play-icon {
    box-shadow: var(--glow-md);
    transform: scale(1.05);
    background: rgba(5, 10, 20, 0.7);
}

.showcase-thumb:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 4px;
}

/* Video modal */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal.is-open {
    display: flex;
    animation: video-modal-fade 200ms ease-out;
}

@keyframes video-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 20, 0.88);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: min(85vw, 1280px);
    max-height: 85vh;
    z-index: 1;
}

.video-modal-frame {
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--neon-cyan);
    box-shadow: var(--glow-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 85vh;
}

.video-modal-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -3.25rem;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    border-radius: 50%;
    color: var(--neon-cyan);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all var(--transition-smooth);
    box-shadow: var(--glow-sm);
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
    background: var(--neon-cyan);
    color: var(--bg-void);
    box-shadow: var(--glow-md);
    outline: none;
}

@media (max-width: 768px) {
    .video-modal {
        padding: 1rem;
    }
    .video-modal-content {
        width: 100%;
    }
    .video-modal-close {
        top: -2.75rem;
    }
}

/* Coming Soon overlay */
.coming-soon-overlay {
    text-align: center;
    padding: 4rem 2rem;
}

.coming-soon-overlay h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.coming-soon-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 8px 24px;
    border-radius: 100px;
    box-shadow: var(--glow-sm);
    animation: neon-pulse 3s ease-in-out infinite;
}

/* --- Project Showcase (PVI) --- */
.project-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-smooth);
    height: 100%;
}

.project-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--glow-sm);
}

.project-card-img {
    aspect-ratio: 16/10;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-body {
    padding: 1.5rem;
}

.project-card-body h4 {
    margin-bottom: 0.5rem;
}

.project-card-body p {
    font-size: 0.9rem;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

/* --- Contact Form --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-sm);
    background: var(--bg-elevated);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300e5ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-message.success {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid var(--border-glow);
    color: var(--neon-cyan);
}

.form-message.error {
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.3);
    color: var(--neon-red);
}

.validation-message {
    font-size: 0.8rem;
    color: var(--neon-red);
    margin-top: 4px;
}

/* --- Timeline --- */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--neon-cyan), transparent);
    box-shadow: var(--glow-sm);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 1.5rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--border-glow);
    box-shadow: var(--glow-sm);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--bg-void);
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-sm);
    z-index: 1;
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.footer-main {
    padding: 4rem 0 3rem;
}

.footer-brand {
    text-align: left;
}

.footer-brand img {
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--neon-cyan);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-contact-item i {
    color: var(--neon-cyan);
    width: 16px;
    text-align: center;
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: var(--neon-cyan);
    border-color: var(--border-glow);
    box-shadow: var(--glow-sm);
}

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

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

.footer-bottom a {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

/* --- Subheader (inner pages) --- */
.subheader {
    padding: 10rem 0 4rem;
    position: relative;
    background: var(--bg-deep);
    overflow: hidden;
}

.subheader::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--neon-cyan-ghost) 1px, transparent 1px),
        linear-gradient(90deg, var(--neon-cyan-ghost) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
    pointer-events: none;
}

.subheader::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan-dim), transparent);
}

.subheader-content {
    position: relative;
    z-index: 1;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.breadcrumb-nav a {
    color: var(--text-muted);
}

.breadcrumb-nav span {
    color: var(--text-muted);
}

.breadcrumb-nav .current {
    color: var(--neon-cyan);
}

/* --- Back to Top --- */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-sm);
    color: var(--neon-cyan);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 900;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    box-shadow: var(--glow-md);
    transform: translateY(-2px);
}

/* --- Utility Classes --- */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.col { flex: 1; padding: 0 1rem; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 1rem; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 1rem; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 1rem; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 1rem; }

.img-fluid {
    max-width: 100%;
    height: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Animations (WOW.js compatible) --- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.animate-fade-in.animated {
    opacity: 1;
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* --- Typewriter Cursor --- */
.tw-cursor {
    display: inline-block;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan-dim);
    animation: cursor-blink 0.6s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}

.tw-cursor-fade {
    animation: cursor-fade-out 0.8s ease forwards;
}

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

@keyframes cursor-fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* --- Particle Canvas --- */
#particle-canvas {
    pointer-events: auto;
}

/* --- PVI Specific Styles --- */
.pvi-wing .nav-links a:hover,
.pvi-wing .nav-links a.active {
    color: var(--neon-violet);
}

.pvi-hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 16px;
    border: 1px solid var(--neon-violet);
    border-radius: 100px;
    color: var(--neon-violet);
    margin-bottom: 1.5rem;
}

.pillar-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-orange-subtle);
    line-height: 1;
    margin-bottom: 1rem;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .nav-links a {
        padding: 0.5rem 0.7rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 991px) {
    .main-nav .nav-links {
        display: none;
    }

    .main-nav .nav-wing-link,
    .main-nav .btn-neon {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        text-align: left;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section-lg { padding: 5rem 0; }
    .subheader { padding: 8rem 0 3rem; }

    .container { padding: 0 1.25rem; }

    .col-3,
    .col-4,
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hero-heading {
        font-size: clamp(1.4rem, 6vw, 2.2rem);
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .stat-item {
        padding: 1rem;
    }

    .police-lights > .police-light-blue,
    .police-lights > .police-light-red {
        width: 100%;
    }

    .police-lights > .police-light-blue {
        background: radial-gradient(ellipse at 15% 50%, rgba(0, 60, 255, 0.15), transparent 55%);
    }

    .police-lights > .police-light-red {
        background: radial-gradient(ellipse at 85% 50%, rgba(255, 10, 10, 0.15), transparent 55%);
    }

    /* Stack all CSS Grid multi-col layouts on mobile */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    /* Reset direction hack used for reversed grid */
    [style*="direction: rtl"] {
        direction: ltr !important;
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        font-size: 0.55rem;
        letter-spacing: 0.15em;
    }

    .hero-heading {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .pvi-hero-badge {
        font-size: 0.5rem;
    }


    .hero-desc {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .hero-buttons .btn-neon {
        font-size: 0.6rem;
        padding: 12px 20px;
    }

    .btn-neon {
        width: 100%;
    }

    .btn-neon-lg {
        padding: 14px 28px;
    }
}
