/* ==========================================================================
   AI MULTI-CAM ATTENDANCE SYSTEM - PREMIUM DESIGN STYLESHEET
   ========================================================================== */

/* --- Design Tokens & Global Custom Variables --- */
:root {
    --bg-primary: #0D0E12;
    --bg-secondary: #14161E;
    --bg-tertiary: #1C1F2B;
    
    --accent-cyan: #00F2FE;
    --accent-cyan-glow: rgba(0, 242, 254, 0.4);
    --accent-gold: #FFB900;
    --accent-gold-glow: rgba(255, 185, 0, 0.4);
    --accent-emerald: #00E676;
    --accent-emerald-glow: rgba(0, 230, 118, 0.4);
    --accent-red: #FF3B30;
    --accent-red-glow: rgba(255, 59, 48, 0.4);
    
    --text-primary: #FFFFFF;
    --text-secondary: #8E9AA8;
    --text-muted: #4F5A69;
    
    --font-headers: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --glass-bg: rgba(20, 22, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: blur(16px);
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease-out;
}

/* --- Base Resets & Layout Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Custom Styled Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* --- Cosmic Dark Background Gradients & Grid --- */
.glow-bg {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.15;
}
.glow-bg-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 80%);
}
.glow-bg-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 80%);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    animation: grid-move 120s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 500px 500px; }
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers);
    letter-spacing: -0.02em;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.neon-text-cyan {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4), 0 0 20px rgba(0, 242, 254, 0.15);
}
.neon-text-amber {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 185, 0, 0.4);
}
.neon-text-emerald {
    color: var(--accent-emerald);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}
.neon-text-red {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

.accent-text-cyan { color: var(--accent-cyan); }
.accent-text-gold { color: var(--accent-gold); }
.accent-text-emerald { color: var(--accent-emerald); }

.text-secondary { color: var(--text-secondary); }
.text-cyan { color: var(--accent-cyan); }
.text-gold { color: var(--accent-gold); }
.text-emerald { color: var(--accent-emerald); }
.text-red { color: var(--accent-red); }

/* --- Buttons & Action Elements --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 0.85rem 1.75rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
    transition: var(--transition-smooth);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}
.btn-primary .btn-icon {
    margin-left: 0.5rem;
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}
.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.85rem 1.75rem;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-size: 0.95rem;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}
.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-secondary .btn-icon {
    margin-left: 0.5rem;
    width: 18px;
    height: 18px;
}

.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

/* --- Premium Glassmorphism Card Style --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

/* --- Navigation Bar (Sticky Glassmorphic) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 14, 18, 0.3);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}
.navbar.scrolled {
    background: rgba(13, 14, 18, 0.75);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0, 242, 254, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease;
}
.navbar.scrolled .nav-container {
    padding: 0.85rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-headers);
}
.logo-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
    overflow: visible;
    padding: 5px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    z-index: 10;
    position: relative;
}
.logo-icon:hover {
    border-color: var(--accent-cyan);
    box-shadow:
        0 0 0 2px rgba(0, 242, 254, 0.25),
        0 8px 32px rgba(0, 242, 254, 0.35),
        0 16px 48px rgba(0, 0, 0, 0.4);
    transform: scale(1.35) translateY(-4px);
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(1.2);
    transition: var(--transition-smooth);
}
.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.logo-subtext {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-top: 1px;
    transition: var(--transition-fast);
}
.nav-logo:hover .logo-subtext {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: var(--transition-fast);
}
.nav-item:hover {
    color: var(--text-primary);
}
.nav-item:hover::after {
    width: 100%;
}

.cta-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    background: transparent;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
    transition: var(--transition-smooth);
}
.cta-nav-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
}
.nav-btn-icon {
    width: 12px;
    height: 12px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem 2rem;
    text-align: center;
    z-index: 1;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    backdrop-filter: var(--glass-blur);
}
.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse-glow 2s infinite;
}
.badge-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

@keyframes pulse-glow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 242, 254, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text-primary);
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}
.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 2px;
    animation: scroll-wheel-anim 1.5s infinite;
}
.scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes scroll-wheel-anim {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- Section Formatting --- */
section {
    padding: 6rem 2rem;
    width: 100%;
}
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-primary);
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- Live Dashboard Mockup Section --- */
.dashboard-card {
    width: 100%;
    overflow: hidden;
    padding: 0;
}

.dashboard-card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.pulsing-emerald {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: emerald-glow-pulse 2s infinite;
}
@keyframes emerald-glow-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; box-shadow: 0 0 12px var(--accent-emerald); }
    100% { opacity: 0.6; }
}

.status-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.header-divider {
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}
.header-stat {
    font-size: 0.8rem;
    font-family: var(--font-headers);
}

.header-right {
    display: flex;
    gap: 0.4rem;
}
.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.control-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: transparent;
}
.dashboard-card:hover .control-btn:nth-child(1) { background: #FF5F56; }
.dashboard-card:hover .control-btn:nth-child(2) { background: #FFBD2E; }
.dashboard-card:hover .control-btn:nth-child(3) { background: #27C93F; }

/* Dashboard Content Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    border-bottom: 1px solid var(--glass-border);
}

.streams-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
}

.stream-box {
    overflow: hidden;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.04);
}
.stream-header {
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stream-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.stream-icon {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}
.fps-counter {
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-headers);
}

.stream-viewport {
    aspect-ratio: 4/3;
    background: #08090C;
    position: relative;
}

.stream-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Face Scan Laser overlay */
.scan-container {
    position: relative;
    overflow: hidden;
}
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(180deg, rgba(0, 242, 254, 0) 0%, var(--accent-cyan) 50%, rgba(0, 242, 254, 0) 100%);
    animation: scan-loop 3s linear infinite;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
    z-index: 10;
    pointer-events: none;
}

@keyframes scan-loop {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.hud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
    padding: 1rem;
}
.hud-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}
.hud-corner.top-left { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.hud-corner.top-right { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.hud-corner.bottom-left { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.hud-corner.bottom-right { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.hud-watermark {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-family: var(--font-headers);
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
}

/* Logging Terminal Panel */
.logger-panel {
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-right: none;
    background: rgba(10, 11, 14, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}
.logger-header {
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logger-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.logger-icon {
    width: 16px;
    height: 16px;
}
.log-indicator {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background-color: rgba(0, 242, 254, 0.05);
}

.logger-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 380px;
    font-family: monospace;
    font-size: 0.75rem;
}

.log-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    animation: fade-in-slide 0.3s ease-out;
}
@keyframes fade-in-slide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.log-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.65rem;
}
.log-message {
    color: var(--text-primary);
}

/* Headcount strip bottom of dashboard */
.dashboard-footer-strip {
    background: rgba(255, 255, 255, 0.01);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.headcount-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-color: rgba(255, 255, 255, 0.04);
}
.hc-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.hc-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.hc-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-headers);
}
.hc-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hc-svg {
    width: 20px;
    height: 20px;
}

.bg-amber-glow { background: rgba(255, 185, 0, 0.08); border: 1px solid rgba(255, 185, 0, 0.15); }
.bg-emerald-glow { background: rgba(0, 230, 118, 0.08); border: 1px solid rgba(0, 230, 118, 0.15); }
.bg-red-glow { background: rgba(255, 59, 48, 0.08); border: 1px solid rgba(255, 59, 48, 0.15); }

/* --- Core Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.08);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}
.feature-card:hover .feature-icon-box {
    transform: scale(1.08);
}
.feature-icon {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
}

/* Specific glows */
.cyan-glow .feature-icon { color: var(--accent-cyan); }
.feature-card:hover .cyan-glow {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.gold-glow .feature-icon { color: var(--accent-gold); }
.feature-card:hover .gold-glow {
    background: rgba(255, 185, 0, 0.08);
    border-color: rgba(255, 185, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 185, 0, 0.2);
}

.emerald-glow .feature-icon { color: var(--accent-emerald); }
.feature-card:hover .emerald-glow {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
}

.feature-card-title {
    font-size: 1.2rem;
    font-weight: 600;
}
.feature-card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Interactive Call-Flow Pipeline --- */
.pipeline-flow-container {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.pipeline-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    position: relative;
    z-index: 10;
    transition: var(--transition-smooth);
}

.step-num {
    font-family: var(--font-headers);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    transition: var(--transition-smooth);
}

.step-icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    text-align: center;
}

/* Pipeline Connector Steps */
.step-connector {
    flex: 1;
    height: 2px;
    position: relative;
    padding: 0 0.5rem;
}
.connector-line {
    width: 100%;
    height: 10px;
    display: block;
}
.bg-path {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2px;
}
.active-path {
    stroke: var(--accent-cyan);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.6s ease-in-out;
}

/* Active Step Styling */
.pipeline-step.active .step-num {
    color: var(--bg-primary);
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}
.pipeline-step.active .step-icon {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
    transform: scale(1.1);
}
.pipeline-step.active .step-label {
    color: var(--text-primary);
}

.pipeline-step:hover .step-icon {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Detail Display Box */
.pipeline-content {
    background: rgba(255, 255, 255, 0.015);
    padding: 2.25rem;
    border-color: rgba(255, 255, 255, 0.03);
}

.pipeline-details {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    animation: fade-in 0.4s ease-out;
}
.pipeline-details.active {
    display: flex;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.details-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.details-header h3 {
    font-size: 1.5rem;
}
.details-header .badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.details-desc {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.details-desc p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.details-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.list-bullet {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

/* Code block terminal representation */
.details-code-mock {
    background: #08090C;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.25rem;
    font-family: monospace;
    font-size: 0.75rem;
    overflow-x: auto;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}
.code-title {
    position: absolute;
    top: 0.6rem;
    right: 1rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
}
.details-code-mock pre {
    margin-top: 0.5rem;
}
.code-keyword { color: #FF7B72; }
.code-func { color: #D2A8FF; }
.code-str { color: #A5D6FF; }
.code-comment { color: #8B949E; }

/* --- HR Analytics Panel Section --- */
.analytics-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.75rem;
}

.chart-card {
    padding: 1.75rem;
}
.chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.chart-info h3 {
    font-size: 1.25rem;
}
.chart-info p {
    font-size: 0.8rem;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.bg-cyan { background-color: var(--accent-cyan); box-shadow: 0 0 6px var(--accent-cyan); }

/* SVG Graph */
.svg-chart-container {
    width: 100%;
}
.analytics-chart {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Stats table representation */
.stats-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.stats-card h3 {
    font-size: 1.25rem;
}

.stats-table-wrapper {
    overflow-x: auto;
    flex: 1;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.analytics-table th, .analytics-table td {
    padding: 0.85rem 1rem;
    text-align: left;
}
.analytics-table th {
    font-family: var(--font-headers);
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}
.analytics-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.analytics-table tr:last-child td {
    border-bottom: none;
}

.table-highlight {
    font-weight: 600;
    font-family: var(--font-headers);
}
.table-trend-icon {
    width: 12px;
    height: 12px;
    margin-right: 0.25rem;
    display: inline-block;
    vertical-align: middle;
}
.spin-icon {
    animation: rotate-loading 2s linear infinite;
}
@keyframes rotate-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Enrollment Simulator Section --- */
.simulator-layout {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.sim-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sim-step-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0.4;
    transition: var(--transition-smooth);
}
.sim-step-indicator.active {
    opacity: 1;
}

.sim-indicator-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}
.sim-step-indicator.active .sim-indicator-circle {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.sim-indicator-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sim-progress-divider {
    flex: 0.15;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 1.5rem;
}

.sim-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
}

.sim-form-container {
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.03);
}

.sim-state {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    animation: fade-in 0.4s ease-out;
}
.sim-state.active {
    display: flex;
}

.sim-state h3 {
    font-size: 1.35rem;
}

.sim-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}
.form-group input, .form-group select {
    background: rgba(8, 9, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    outline: none;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.15);
}
.form-group input[readonly] {
    color: var(--text-muted);
    cursor: not-allowed;
    background: rgba(8, 9, 12, 0.3);
}

/* Sim State 2 scanning instructions */
.scanning-instructions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.25rem;
    font-size: 0.85rem;
}
.instruction-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Success details terminal box */
.index-terminal-mock {
    background: #08090C;
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    font-family: monospace;
    font-size: 0.75rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
    color: var(--accent-emerald);
    max-height: 150px;
    overflow-y: auto;
}

.success-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.success-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Sandbox Visual Panel right side */
.sim-sandbox {
    background: rgba(8, 9, 12, 0.6);
    border-color: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 1.5rem;
}

.sandbox-visual {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
    height: 100%;
    animation: fade-in 0.4s ease-out;
}
.sandbox-visual.active {
    display: flex;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.avatar-icon {
    width: 32px;
    height: 32px;
}
.sandbox-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 250px;
}

/* Camera Scanner Sandbox Grid */
.scanner-screen {
    width: 100%;
    aspect-ratio: 4/3;
    background: #040507;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-silhouette {
    width: 45%;
    height: 60%;
    opacity: 0.15;
    transition: var(--transition-smooth);
}
.scanner-screen:hover .face-silhouette {
    opacity: 0.3;
}

.silhouette-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.path-contour {
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 1.5px;
}

.mesh-dot {
    fill: var(--text-secondary);
    opacity: 0.3;
    transition: var(--transition-fast);
}
.mesh-dot-active {
    fill: var(--accent-cyan);
    opacity: 0.8;
}

.target-bracket {
    fill: none;
    stroke: var(--accent-cyan);
    stroke-width: 1.5px;
    stroke-linecap: round;
}

.scanner-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--text-secondary);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Vector database node grid */
.vector-grid-wrapper {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 0.5rem;
}
.grid-title {
    font-size: 0.75rem;
    font-family: var(--font-headers);
    color: var(--accent-emerald);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.vector-node-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 0.85rem;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    padding: 1rem 0;
}

.vector-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    justify-self: center;
    transition: var(--transition-smooth);
}
.vector-node.active-node {
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    transform: scale(1.3);
}

.vector-connecting-lines {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    height: calc(100% - 2.5rem);
    z-index: 2;
    pointer-events: none;
}
.lines-overlay-svg {
    width: 100%;
    height: 100%;
}
.vector-path {
    fill: none;
    stroke: var(--accent-emerald);
    stroke-width: 1px;
    stroke-opacity: 0.25;
    stroke-dasharray: 4;
}

/* --- Futuristic Footer --- */
.footer {
    background: #0A0B0E;
    border-top: 1px solid var(--glass-border);
    padding: 4.5rem 2rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.footer-logo:hover .logo-subtext {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}
.footer-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 360px;
}

.social-links {
    display: flex;
    gap: 0.85rem;
    margin-top: 0.5rem;
}
.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.social-btn:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
    transform: translateY(-2px);
}
.social-btn svg {
    width: 16px;
    height: 16px;
}

/* Footer Link Columns */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.footer-column h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}
.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-column a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.footer-column a:hover {
    color: var(--accent-cyan);
    padding-left: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
}
.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}
.footer-bottom-links a:hover {
    color: var(--text-secondary);
}

/* ==========================================================================
   --- Responsive Media Queries for Mobile & Tablets ---
   ========================================================================== */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .logger-panel {
        border-left: none;
        border-top: 1px solid var(--glass-border);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .analytics-layout {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    .navbar {
        background: rgba(13, 14, 18, 0.9);
        backdrop-filter: var(--glass-blur);
    }
    .nav-links {
        display: none; /* Can build toggle or compact list */
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .streams-container {
        grid-template-columns: 1fr;
    }
    .dashboard-footer-strip {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .pipeline-steps {
        overflow-x: auto;
        padding-bottom: 1rem;
        gap: 1.5rem;
        justify-content: flex-start;
    }
    .pipeline-step {
        flex-shrink: 0;
    }
    .step-connector {
        display: none;
    }
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .sim-grid {
        grid-template-columns: 1fr;
    }
    .sim-progress {
        flex-direction: column;
        gap: 0.75rem;
    }
    .sim-progress-divider {
        width: 1px;
        height: 15px;
        margin: 0.25rem 0;
    }
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   WORD-LEVEL HOVER POP-UP — Individual word pop-up on hover
   ========================================================================== */

/* Each word is wrapped in .hover-word by JS — only the hovered word pops */
.hover-word {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.2s ease,
                text-shadow 0.2s ease;
    cursor: default;
}
.hover-word:hover {
    transform: translateY(-6px);
    color: var(--accent-cyan);
    text-shadow: 0 4px 16px rgba(0, 242, 254, 0.45);
}


/* ==========================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}
.theme-toggle-btn .theme-icon {
    width: 18px;
    height: 18px;
    transition: opacity 0.2s ease, transform 0.3s ease;
    position: absolute;
}
/* Dark mode: show moon, hide sun */
#icon-sun  { opacity: 0; transform: rotate(-90deg) scale(0.5); }
#icon-moon { opacity: 1; transform: rotate(0deg)   scale(1);   }

/* Light mode: show sun, hide moon */
[data-theme="light"] #icon-sun  { opacity: 1; transform: rotate(0deg)  scale(1);   }
[data-theme="light"] #icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* ==========================================================================
   LIGHT MODE — [data-theme="light"] Variable Overrides
   ========================================================================== */
[data-theme="light"] {
    --bg-primary:    #F0F4F8;
    --bg-secondary:  #E2E8F0;
    --bg-tertiary:   #FFFFFF;
    --text-primary:  #1A202C;
    --text-secondary:#4A5568;
    --text-muted:    #718096;
    --glass-bg:      rgba(255, 255, 255, 0.80);
    --glass-border:  rgba(0, 0, 0, 0.08);
}

/* Base background */
[data-theme="light"] html,
[data-theme="light"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Navbar */
[data-theme="light"] .navbar {
    background: rgba(240, 244, 248, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(240, 244, 248, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Logo icon */
[data-theme="light"] .logo-icon {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Nav links */
[data-theme="light"] .nav-item {
    color: var(--text-secondary);
}
[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
    color: var(--accent-cyan);
}

/* Theme toggle btn in light mode */
[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

/* Glass cards */
[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Section backgrounds */
[data-theme="light"] .features-section,
[data-theme="light"] .pipeline-section,
[data-theme="light"] .analytics-section,
[data-theme="light"] .simulator-section,
[data-theme="light"] .dashboard-section {
    background: transparent;
}

/* Code mock blocks */
[data-theme="light"] .details-code-mock {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] pre,
[data-theme="light"] code {
    color: #2D3748;
}
[data-theme="light"] .code-keyword  { color: #6B46C1; }
[data-theme="light"] .code-func     { color: #2B6CB0; }
[data-theme="light"] .code-str      { color: #276749; }
[data-theme="light"] .code-comment  { color: #718096; }
[data-theme="light"] .code-title    { color: #2D3748; }

/* Pipeline steps */
[data-theme="light"] .pipeline-flow-container {
    background: rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .pipeline-step {
    color: var(--text-secondary);
}
[data-theme="light"] .pipeline-step.active .step-num {
    background: var(--accent-cyan);
    color: #fff;
}

/* Hero */
[data-theme="light"] .hero-section {
    background: transparent;
}
[data-theme="light"] .hero-subtitle {
    color: var(--text-secondary);
}

/* Grid overlay — hide in light mode */
[data-theme="light"] .grid-overlay {
    opacity: 0;
}

/* Glow blobs — reduce in light mode */
[data-theme="light"] .glow-bg {
    opacity: 0.05;
}

/* Footer */
[data-theme="light"] .site-footer {
    background: #E2E8F0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .footer-link {
    color: var(--text-secondary);
}
[data-theme="light"] .footer-divider {
    background: rgba(0, 0, 0, 0.1);
}

/* Stat cards & dashboard */
[data-theme="light"] .metric-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.07);
}

/* Hover word in light mode */
[data-theme="light"] .hover-word:hover {
    color: #0066CC;
    text-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

/* Scrollbar in light mode */
[data-theme="light"] ::-webkit-scrollbar-track { background: #E2E8F0; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #CBD5E0; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }
/* Badge pop-up with cyan glow */
.badge {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                letter-spacing 0.3s ease;
    cursor: default;
}
.badge:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 242, 254, 0.2);
    letter-spacing: 0.04em;
}

/* Pipeline step labels pop-up */
.step-label {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.25s ease;
    display: inline-block;
    cursor: default;
}
.pipeline-step:hover .step-label {
    transform: scale(1.1) translateY(-2px);
    color: var(--accent-cyan);
}

/* Step numbers pop-up */
.step-num {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    cursor: default;
}
.pipeline-step:hover .step-num {
    transform: scale(1.15) translateY(-1px);
}

/* Footer links pop-up */
.footer-link {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.2s ease !important;
    display: inline-block;
}
.footer-link:hover {
    transform: scale(1.08) translateX(3px) !important;
}

/* Feature card text pop-up */
.feature-card-text {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
    cursor: default;
}
.feature-card:hover .feature-card-text {
    transform: scale(1.01) translateY(-1px);
}

/* Details list items pop-up */
.details-list li {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.2s ease;
    cursor: default;
}
.details-list li:hover {
    transform: translateX(5px) scale(1.02);
    color: var(--text-primary);
}

/* Neon accent texts — glow only, no transform (they are inline spans inside headings) */
.neon-text-cyan,
.neon-text-gold,
.accent-text-cyan {
    transition: text-shadow 0.3s ease;
    cursor: default;
}
.neon-text-cyan:hover {
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.7), 0 0 40px rgba(0, 242, 254, 0.3);
}
.neon-text-gold:hover {
    text-shadow: 0 0 20px rgba(255, 185, 0, 0.7), 0 0 40px rgba(255, 185, 0, 0.3);
}
.accent-text-cyan:hover {
    text-shadow: 0 0 16px rgba(0, 242, 254, 0.6);
}

/* Code title file names pop-up */
.code-title {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.2s ease;
    cursor: default;
}
.code-title:hover {
    transform: scale(1.06) translateY(-1px);
    color: var(--accent-cyan);
}

