/* ============================================
   aiwarden Landing Page - Complete Styles
   Theme: Dark, Professional, Aggressive
   Colors: #FF4C46 (Red), #00E8CC (Cyan), #A855F7 (Purple)
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #FF4C46;
    --primary-dark: #CC3D38;
    --secondary: #00E8CC;
    --accent: #A855F7;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

.highlight {
    color: var(--primary);
}

.accent {
    color: var(--secondary);
}

/* === Container === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Cursor Glow Effect === */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 76, 70, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-icon {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    padding: 0.4rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    background: rgba(255, 76, 70, 0.1);
}

/* Mobile menu button - hidden by default on desktop */
.mobile-menu-btn {
    display: none;
}

.nav-cta {
    padding: 0.625rem 1.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 76, 70, 0.3);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 76, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(255, 76, 70, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

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

/* === EPIC HERO SECTION - BATTLE MODE === */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Full-screen Battle Arena */
.battle-arena {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 76, 70, 0.05) 0%, transparent 50%);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    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;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Central Guardian - CENTERED */
.guardian-core {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.guardian-img {
    width: 320px;
    height: auto;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 0 50px rgba(255, 76, 70, 0.5)) drop-shadow(0 0 100px rgba(255, 76, 70, 0.3));
    animation: guardianFloat 4s ease-in-out infinite, guardianGlow 3s ease-in-out infinite;
    transition: filter 0.15s ease-out, transform 0.15s ease-out;
    opacity: 0.55;
}

@keyframes guardianGlow {
    0%, 100% {
        filter: drop-shadow(0 0 50px rgba(255, 76, 70, 0.5)) drop-shadow(0 0 100px rgba(255, 76, 70, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 70px rgba(255, 76, 70, 0.7)) drop-shadow(0 0 120px rgba(255, 76, 70, 0.4));
    }
}

@keyframes guardianFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.guardian-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 76, 70, 0.3) 0%, rgba(255, 76, 70, 0.1) 35%, transparent 60%);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 1;
}


@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Energy Fields (Shield Rings) */
.energy-field {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid;
    z-index: 2;
}

.energy-field.ef-1 {
    width: 550px;
    height: 550px;
    border-color: rgba(255, 76, 70, 0.25);
    animation: fieldRotate 20s linear infinite, fieldPulse 3s ease-in-out infinite;
}

.energy-field.ef-2 {
    width: 480px;
    height: 480px;
    border-color: rgba(255, 76, 70, 0.2);
    border-style: dashed;
    animation: fieldRotate 30s linear infinite reverse, fieldPulse 4s ease-in-out infinite 0.5s;
}

.energy-field.ef-3 {
    width: 620px;
    height: 620px;
    border-color: rgba(255, 76, 70, 0.1);
    animation: fieldRotate 40s linear infinite, fieldPulse 5s ease-in-out infinite 1s;
}

@keyframes fieldRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fieldPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Threat & Impact Zones */
.threat-zone {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
}

.impact-layer {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

/* === SCAN WAVE - CLEAN SONAR EFFECT === */
.scan-wave {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 12;

    /* Single clean ring */
    border: 2px solid rgba(255, 76, 70, 0.6);

    /* Subtle glow */
    box-shadow:
        0 0 20px rgba(255, 76, 70, 0.3),
        0 0 40px rgba(255, 76, 70, 0.15);
}

/* === THREAT TEXT - Red themed, waiting to be scanned === */
.threat-text {
    position: absolute;
    z-index: 15;
    padding: 10px 16px;
    background: rgba(15, 5, 5, 0.9);
    border: 1px solid rgba(255, 76, 70, 0.5);
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    transform: translate(-50%, -50%);
    color: #FF4C46;
    box-shadow:
        0 0 20px rgba(255, 76, 70, 0.15),
        inset 0 0 30px rgba(255, 76, 70, 0.05);
    animation: threatPulse 2s ease-in-out infinite;
}

@keyframes threatPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 76, 70, 0.15), inset 0 0 30px rgba(255, 76, 70, 0.05);
        border-color: rgba(255, 76, 70, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 76, 70, 0.25), inset 0 0 30px rgba(255, 76, 70, 0.08);
        border-color: rgba(255, 76, 70, 0.6);
    }
}

.threat-text::before {
    content: '>';
    margin-right: 8px;
    opacity: 0.6;
    color: #FF4C46;
}

.threat-content {
    letter-spacing: 0.3px;
}

/* === MINECRAFT-STYLE BLOCK IMPACT EFFECTS === */
.impact-explosion {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Central flash burst */
.block-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 4px;
    animation: blockFlash 0.2s ease-out forwards;
}

@keyframes blockFlash {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; border-radius: 50%; }
}

/* Block particles container */
.block-particles {
    position: absolute;
    top: 50%;
    left: 50%;
}

/* Individual block particle - Minecraft cube style */
.block-particle {
    position: absolute;
    border-radius: 2px;
    animation: blockFly 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes blockFly {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    60% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--vx), calc(var(--vy) + 120px)) rotate(var(--rotation)) scale(0.3);
        opacity: 0;
    }
}

/* Shockwave ring */
.block-shockwave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid;
    border-radius: 8px;
    animation: shockwaveExpand 0.4s ease-out forwards;
}

@keyframes shockwaveExpand {
    0% { width: 20px; height: 20px; opacity: 1; border-radius: 4px; }
    100% { width: 180px; height: 180px; opacity: 0; border-radius: 50%; }
}

/* BLOCKED text - aiwarden professional style - INVERTED */
.block-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    animation: blockTextFade 1.2s ease-out forwards;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    padding: 6px 14px;
    background: #FF4C46;
    color: #000 !important;
    border: none;
    border-radius: 4px;
}

@keyframes blockTextFade {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    15% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    30% {
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -100%) scale(0.95);
        opacity: 0;
    }
}

/* Screen shake animation */
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-3px, -2px); }
    20% { transform: translate(3px, 2px); }
    30% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    50% { transform: translate(-1px, 2px); }
    60% { transform: translate(1px, -2px); }
    70% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, 0px); }
    90% { transform: translate(0px, -1px); }
}

/* Shield Impact Wave - Dynamic color */
.shield-impact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    animation: shieldImpact 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes shieldImpact {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Energy field transitions */
.energy-field {
    transition: border-color 0.2s ease-out, filter 0.2s ease-out;
}

/* === HERO UI - TOP POSITIONED === */
.hero-centered {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
}

.ui-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 76, 70, 0.4);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--primary);
}

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

.hero-title-centered {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
    white-space: nowrap;
}

.dynamic-word {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.title-line {
    display: block;
}

.title-line-sub {
    display: block;
    font-size: 0.85em;
    margin-top: 0.5rem;
}

.glitch {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8); }
    2% { text-shadow: 3px 0 var(--secondary), -3px 0 var(--accent); }
    4% { text-shadow: -3px 0 var(--secondary), 3px 0 var(--accent); }
    6% { text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8); }
}

.hero-subtitle-centered {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    max-width: 520px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
}

.hero-accent-line {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(90deg, #fff 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-cta-centered .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-glow {
    box-shadow: 0 0 30px rgba(255, 76, 70, 0.4);
    animation: btnGlow 2s ease-in-out infinite;
}

/* Bottom Stats Bar - Centered */
.hero-stats-bottom {
    position: absolute;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 1.75rem;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    backdrop-filter: blur(15px);
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 76, 70, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 76, 70, 0.6); }
}

/* Stats Block - Centered */
.stat-block {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    transition: transform 0.15s ease-out, color 0.15s ease-out, text-shadow 0.15s ease-out;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-separator {
    width: 1px;
    height: 35px;
    background: var(--border-color);
}

.threat-counter .stat-num {
    color: var(--primary);
    font-size: 1.3rem;
}

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-right: 4px;
    animation: liveDot 1s infinite;
}

@keyframes liveDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Scroll Indicator - aiwarden styled */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 76, 70, 0.5);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: none;
    position: relative;
}

.scroll-arrow::before,
.scroll-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: translateX(-50%) rotate(45deg);
    animation: scrollArrowPulse 2s ease-in-out infinite;
}

.scroll-arrow::before {
    top: 0;
    opacity: 0.4;
}

.scroll-arrow::after {
    top: 6px;
    opacity: 0.8;
}

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

@keyframes scrollArrowPulse {
    0%, 100% {
        opacity: 0.4;
        box-shadow: none;
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(255, 76, 70, 0.6));
    }
}

/* ============================================
   RESPONSIVE - HERO SECTION
   Breakpoints: 1024px, 768px, 480px
   ============================================ */

/* === TABLET LANDSCAPE (1024px) === */
@media (max-width: 1024px) {
    /* Guardian & Logo */
    .guardian-core {
        top: 48%;
    }

    .guardian-img {
        width: 240px;
        opacity: 0.5;
    }

    .energy-field.ef-2 { width: 360px; height: 360px; }
    .energy-field.ef-3 { width: 480px; height: 480px; }

    .guardian-glow {
        width: 380px;
        height: 380px;
    }

    /* Hero Text */
    .hero-centered {
        top: 80px;
    }

    .hero-title-centered {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
    }

    .hero-subtitle-centered {
        font-size: 0.9rem;
        max-width: 400px;
    }

    /* Stats Bar */
    .hero-stats-bottom {
        bottom: 5rem;
        gap: 1rem;
        padding: 0.7rem 1.25rem;
    }

    .stat-num {
        font-size: 0.95rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .threat-counter .stat-num {
        font-size: 1.1rem;
    }

    /* Threats */
    .threat-text {
        padding: 8px 12px;
        font-size: 0.7rem;
        max-width: 180px;
    }
}

/* === TABLET PORTRAIT (768px) === */
@media (max-width: 768px) {
    /* Guardian & Logo */
    .guardian-core {
        top: 45%;
    }

    .guardian-img {
        width: 180px;
        opacity: 0.45;
    }

    .energy-field.ef-2 { width: 280px; height: 280px; }
    .energy-field.ef-3 { width: 380px; height: 380px; }

    .guardian-glow {
        width: 300px;
        height: 300px;
    }

    /* Hero Text */
    .hero-centered {
        top: 70px;
        width: 90%;
    }

    .hero-title-centered {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        white-space: normal;
        line-height: 1.3;
    }

    .hero-subtitle-centered {
        font-size: 0.85rem;
        max-width: 320px;
    }

    .hero-cta-centered .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    /* Stats Bar - Compact */
    .hero-stats-bottom {
        bottom: 4.5rem;
        gap: 0.75rem;
        padding: 0.6rem 1rem;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 95%;
    }

    .stat-block {
        min-width: auto;
    }

    .stat-num {
        font-size: 0.85rem;
    }

    .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0;
    }

    .stat-separator {
        height: 25px;
    }

    .threat-counter .stat-num {
        font-size: 1rem;
    }

    /* Threats - Smaller */
    .threat-text {
        padding: 6px 10px;
        font-size: 0.65rem;
        max-width: 150px;
    }

    .threat-text::before {
        display: none;
    }

    /* Scan waves - thinner */
    .scan-wave {
        border-width: 2px;
    }

    /* Block explosion - smaller */
    .block-text {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .explosion-block {
        width: 6px;
        height: 6px;
    }
}

/* === MOBILE (520px and below) === */
@media (max-width: 520px) {
    /* Text content - FORCE CENTERED */
    .hero-centered {
        position: absolute !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
        padding: 0 1rem !important;
    }

    .ui-badge {
        margin: 0 auto 0.75rem !important;
    }

    .hero-title-centered {
        font-size: 1.4rem !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        margin-bottom: 0.6rem !important;
        text-align: center !important;
    }

    .hero-subtitle-centered {
        font-size: 0.75rem !important;
        max-width: 300px !important;
        margin: 0 auto 0.75rem !important;
        text-align: center !important;
    }

    .hero-cta-centered {
        justify-content: center !important;
        width: 100% !important;
    }

    .hero-cta-centered .btn {
        padding: 0.55rem 1rem;
        font-size: 0.75rem;
    }

    /* Guardian - FORCE CENTERED */
    .guardian-core {
        position: absolute !important;
        top: 45% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .guardian-img {
        width: 140px !important;
        opacity: 0.5 !important;
    }

    .energy-field.ef-2 { width: 220px !important; height: 220px !important; }
    .energy-field.ef-3 { width: 300px !important; height: 300px !important; }

    .guardian-glow {
        width: 240px !important;
        height: 240px !important;
    }

    /* Stats bar - FORCE CENTERED at bottom */
    .hero-stats-bottom {
        position: absolute !important;
        bottom: 5rem !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: fit-content !important;
        margin: 0 auto !important;
        gap: 0.5rem;
        padding: 0.55rem 0.9rem;
        border-radius: 8px;
    }

    .stat-num {
        font-size: 0.7rem;
    }

    .stat-label {
        font-size: 0.5rem;
    }

    .threat-counter .stat-num {
        font-size: 0.85rem;
    }

    .stat-separator {
        height: 22px;
    }

    /* Threat effects - smaller on mobile */
    .threat-text {
        font-size: 0.5rem !important;
        padding: 0.15rem 0.4rem !important;
    }

    /* Block text - compact on mobile */
    .block-text {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.5rem !important;
    }

    /* Subtle waves - visible but smaller */
    .scan-wave {
        border-width: 2px;
        box-shadow: 0 0 8px rgba(255, 76, 70, 0.4);
    }

    .scan-wave::before,
    .scan-wave::after {
        border-width: 1px;
    }

    /* Scroll indicator - visible on mobile */
    .scroll-indicator {
        bottom: 1rem;
    }

    .scroll-indicator span {
        font-size: 0.55rem;
    }

    .scroll-arrow {
        width: 18px;
        height: 18px;
    }

    .scroll-arrow::before,
    .scroll-arrow::after {
        width: 8px;
        height: 8px;
    }

    .scroll-arrow::after {
        top: 4px;
    }
}

/* === SMALL MOBILE (380px) === */
@media (max-width: 380px) {
    .hero-title-centered {
        font-size: 1.25rem;
    }

    .hero-subtitle-centered {
        font-size: 0.7rem;
    }

    .hero-cta-centered .btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.7rem;
    }

    .guardian-img {
        width: 120px;
    }

    .energy-field.ef-2 { width: 180px; height: 180px; }
    .energy-field.ef-3 { width: 250px; height: 250px; }

    .guardian-glow {
        width: 200px;
        height: 200px;
    }

    .hero-stats-bottom {
        bottom: 4rem;
        padding: 0.45rem 0.7rem;
        gap: 0.4rem;
    }

    .stat-num {
        font-size: 0.65rem;
    }

    .stat-label {
        font-size: 0.45rem;
    }
}

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

/* === Sections Base === */
.section {
    padding: 8rem 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* === Problem Section - SPECTACULAR Comparison === */
.problem-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #050508 50%, var(--bg-darker) 100%);
    position: relative;
    overflow: hidden;
}

.problem-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 76, 70, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Comparison Container */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 560px;
    perspective: 1000px;
}

/* Panels Base */
.compare-panel {
    position: relative;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* WITHOUT Panel - Dramatic dark chaos */
.panel-without {
    background: linear-gradient(135deg, #0e0e14 0%, #050508 100%);
    border-radius: 24px 0 0 24px;
    border: 1px solid rgba(60, 60, 80, 0.15);
    border-right: none;
    transform-origin: right center;
}

.panel-without:hover {
    transform: perspective(1000px) rotateY(-2deg) scale(1.01);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

.panel-without .panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.05) 2px,
            rgba(0, 0, 0, 0.05) 4px
        ),
        linear-gradient(135deg, transparent 30%, rgba(40, 40, 60, 0.05) 100%);
    pointer-events: none;
    border-radius: 24px 0 0 24px;
}

/* Glitch effect on without panel */
.panel-without::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 100, 130, 0.3), transparent);
    animation: glitchLine 8s ease-in-out infinite;
}

@keyframes glitchLine {
    0%, 90%, 100% { opacity: 0; transform: translateX(0); }
    92%, 98% { opacity: 1; transform: translateX(10px); }
}

/* WITH Panel - Vibrant, protected, aiwarden power */
.panel-with {
    background: linear-gradient(135deg, rgba(255, 76, 70, 0.1) 0%, rgba(255, 76, 70, 0.03) 100%);
    border-radius: 0 24px 24px 0;
    border: 1px solid rgba(255, 76, 70, 0.3);
    border-left: none;
    transform-origin: left center;
}

.panel-with:hover {
    transform: perspective(1000px) rotateY(2deg) scale(1.01);
    box-shadow: 20px 0 60px rgba(255, 76, 70, 0.15);
}

.panel-with .panel-glow {
    position: absolute;
    top: 0;
    left: -50px;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at left center, rgba(255, 76, 70, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 76, 70, 0.08) 0%, transparent 40%);
    pointer-events: none;
    border-radius: 0 24px 24px 0;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Particles effect on WITH panel */
.panel-with::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 15%;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow:
        30px 60px 0 var(--primary),
        60px 20px 0 rgba(255, 76, 70, 0.5),
        -20px 80px 0 rgba(255, 76, 70, 0.3),
        80px 100px 0 rgba(255, 76, 70, 0.4);
    animation: floatParticles 6s ease-in-out infinite;
}

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

/* Panel Content */
.panel-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Panel Headers */
.panel-header {
    margin-bottom: 2rem;
}

.panel-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    background: rgba(60, 60, 80, 0.25);
    color: #555;
    border: 1px solid rgba(60, 60, 80, 0.2);
}

.panel-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #555;
}

.panel-status.status-protected {
    background: rgba(255, 76, 70, 0.12);
    color: var(--primary);
    border: 1px solid rgba(255, 76, 70, 0.25);
    box-shadow: 0 0 25px rgba(255, 76, 70, 0.2);
    animation: statusPulse 2s ease-in-out infinite;
}

.panel-status.status-protected::before {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(255, 76, 70, 0.2); }
    50% { box-shadow: 0 0 35px rgba(255, 76, 70, 0.35); }
}

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

.panel-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #444;
    transition: all 0.3s ease;
}

.panel-without:hover .panel-title {
    color: #555;
}

.panel-title.title-protected {
    color: var(--primary);
    text-shadow: 0 0 40px rgba(255, 76, 70, 0.4);
}

.panel-with:hover .title-protected {
    text-shadow: 0 0 60px rgba(255, 76, 70, 0.6);
}

/* Panel Lists */
.panel-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
}

.panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    animation: fadeInItem 0.5s ease forwards;
}

.panel-list li:nth-child(1) { animation-delay: 0.1s; }
.panel-list li:nth-child(2) { animation-delay: 0.2s; }
.panel-list li:nth-child(3) { animation-delay: 0.3s; }
.panel-list li:nth-child(4) { animation-delay: 0.4s; }
.panel-list li:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInItem {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.panel-with .panel-list li {
    animation-name: fadeInItemRight;
}

@keyframes fadeInItemRight {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Bullets */
.bullet {
    position: relative;
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.bullet-gray {
    background: #3a3a45;
    border: 1px solid #4a4a55;
}

.panel-without .panel-list li:hover .bullet-gray {
    background: #4a4a55;
    border-color: #5a5a65;
}

.bullet-red {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(255, 76, 70, 0.6), 0 0 24px rgba(255, 76, 70, 0.3);
    border: 1px solid rgba(255, 120, 110, 0.5);
}

.bullet-red::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 76, 70, 0.2);
    animation: bulletRing 2s ease-out infinite;
}

@keyframes bulletRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.8); opacity: 0; }
}

.panel-with .panel-list li:hover .bullet-red {
    box-shadow: 0 0 18px rgba(255, 76, 70, 0.8), 0 0 36px rgba(255, 76, 70, 0.4);
    transform: scale(1.15);
}

/* Item Text */
.item-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #555;
    transition: color 0.3s ease;
}

.panel-without .panel-list li:hover .item-text {
    color: #666;
}

.item-text.text-bright {
    color: var(--text-secondary);
}

.panel-with .panel-list li:hover .text-bright {
    color: var(--text-primary);
}

/* Panel Footers - Risk/Protection Bars */
.panel-footer {
    margin-top: auto;
    padding-top: 2rem;
}

.risk-label,
.protection-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.risk-label {
    color: #4a4a55;
}

.risk-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #4a4a55;
}

.protection-label {
    color: var(--primary);
}

.protection-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.risk-bar,
.protection-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.risk-bar {
    background: rgba(60, 60, 80, 0.2);
    border: 1px solid rgba(60, 60, 80, 0.15);
}

.protection-bar {
    background: rgba(255, 76, 70, 0.1);
    border: 1px solid rgba(255, 76, 70, 0.2);
}

.risk-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #3a3a45, #5a5a65);
    border-radius: 4px;
    animation: fillRisk 1.5s ease-out 0.5s forwards;
}

@keyframes fillRisk {
    from { width: 0; }
    to { width: 90%; }
}

.protection-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ff7b75);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 76, 70, 0.5);
    animation: fillProtection 1.5s ease-out 0.5s forwards;
    position: relative;
}

@keyframes fillProtection {
    from { width: 0; }
    to { width: 100%; }
}

.protection-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

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

/* Center Section - The Transformation Point */
.compare-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.center-arrow {
    flex: 1;
    width: 2px;
    position: relative;
}

.arrow-left {
    background: linear-gradient(180deg, transparent, #3a3a45 20%, #4a4a55 50%, #3a3a45 80%, transparent);
}

.arrow-right {
    background: linear-gradient(180deg, transparent, var(--primary) 20%, #ff7b75 50%, var(--primary) 80%, transparent);
    box-shadow: 0 0 10px rgba(255, 76, 70, 0.3);
}

/* Energy flow animation */
.arrow-left::after,
.arrow-right::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    border-radius: 2px;
    animation: energyFlow 2s ease-in-out infinite;
}

.arrow-left::after {
    background: #5a5a65;
    top: 0;
    animation-direction: normal;
}

.arrow-right::after {
    background: var(--primary);
    bottom: 0;
    box-shadow: 0 0 10px var(--primary);
    animation-direction: reverse;
}

@keyframes energyFlow {
    0% { transform: translateX(-50%) translateY(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(-50%) translateY(100px); opacity: 0; }
}

.center-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a24 0%, #0a0a0f 100%);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 40px rgba(255, 76, 70, 0.4),
        0 0 80px rgba(255, 76, 70, 0.2),
        inset 0 0 20px rgba(255, 76, 70, 0.1);
    position: relative;
    animation: logoFloat 4s ease-in-out infinite;
}

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

.center-logo::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 76, 70, 0.15);
    animation: logoRing1 3s ease-in-out infinite;
}

.center-logo::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 76, 70, 0.08);
    animation: logoRing2 4s ease-in-out infinite;
}

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

@keyframes logoRing2 {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.08); opacity: 0.6; }
}

.center-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 76, 70, 0.5));
}

/* Hover Effects */
.panel-without:hover .panel-overlay {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.08) 2px,
            rgba(0, 0, 0, 0.08) 4px
        ),
        linear-gradient(135deg, transparent 20%, rgba(50, 50, 70, 0.08) 100%);
}

.panel-list li {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.panel-with .panel-list li:hover {
    transform: translateX(8px);
}

.panel-without .panel-list li:hover {
    transform: translateX(-8px);
}

/* Responsive Comparison Section */
@media (max-width: 1024px) {
    .comparison-container {
        grid-template-columns: 1fr 80px 1fr;
        min-height: 480px;
    }

    .compare-panel {
        padding: 2rem;
    }

    .panel-title {
        font-size: 1.3rem;
    }

    .center-logo {
        width: 60px;
        height: 60px;
    }

    .center-logo img {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: auto;
    }

    .compare-panel {
        padding: 2rem;
        border-radius: 16px !important;
        border: 1px solid rgba(60, 60, 80, 0.2) !important;
    }

    .panel-with {
        border: 1px solid rgba(255, 76, 70, 0.3) !important;
    }

    .panel-without:hover,
    .panel-with:hover {
        transform: none;
        box-shadow: none;
    }

    .compare-center {
        flex-direction: row;
        padding: 1rem 0;
    }

    .center-arrow {
        width: auto;
        height: 2px;
        flex: 1;
    }

    .arrow-left {
        background: linear-gradient(90deg, transparent, #3a3a45 20%, #4a4a55 50%, #3a3a45 80%, transparent);
    }

    .arrow-right {
        background: linear-gradient(90deg, var(--primary) 20%, #ff7b75 50%, var(--primary) 80%, transparent);
    }

    .arrow-left::after,
    .arrow-right::after {
        display: none;
    }

    .center-logo {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .center-logo::before {
        inset: -8px;
    }

    .center-logo::after {
        inset: -14px;
    }

    .center-logo img {
        width: 28px;
        height: 28px;
    }

    .panel-title {
        font-size: 1.1rem;
    }

    .item-text {
        font-size: 0.9rem;
    }

    .panel-list {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .compare-panel {
        padding: 1.5rem;
    }

    .panel-status {
        font-size: 0.55rem;
        padding: 0.3rem 0.7rem;
    }

    .panel-title {
        font-size: 1rem;
    }

    .bullet {
        width: 8px;
        height: 8px;
        min-width: 8px;
        margin-top: 4px;
    }

    .item-text {
        font-size: 0.85rem;
    }
}

/* === Solution Section (Three Layers) === */
.solution-section {
    position: relative;
}

.solution-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.layers-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.layer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.layer-card:hover {
    transform: translateY(-8px);
}

.layer-card[data-layer="threats"]:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(255, 76, 70, 0.2);
}

.layer-card[data-layer="quality"]:hover {
    border-color: var(--secondary);
    box-shadow: 0 20px 60px rgba(0, 232, 204, 0.2);
}

.layer-card[data-layer="behavioral"]:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2);
}

.layer-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.layer-svg .icon-ring {
    transition: all 0.3s ease;
}

.layer-card:hover .icon-ring {
    stroke-width: 3;
}

.layer-title {
    margin-bottom: 1rem;
}

.layer-card[data-layer="threats"] .layer-title { color: var(--primary); }
.layer-card[data-layer="quality"] .layer-title { color: var(--secondary); }
.layer-card[data-layer="behavioral"] .layer-title { color: var(--accent); }

.layer-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.layer-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.layer-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.layer-features li::before {
    content: '→';
    font-weight: bold;
}

.layer-card[data-layer="threats"] .layer-features li::before { color: var(--primary); }
.layer-card[data-layer="quality"] .layer-features li::before { color: var(--secondary); }
.layer-card[data-layer="behavioral"] .layer-features li::before { color: var(--accent); }

.layer-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.layer-card[data-layer="threats"] .layer-glow { background: radial-gradient(circle, rgba(255, 76, 70, 0.3) 0%, transparent 70%); }
.layer-card[data-layer="quality"] .layer-glow { background: radial-gradient(circle, rgba(0, 232, 204, 0.3) 0%, transparent 70%); }
.layer-card[data-layer="behavioral"] .layer-glow { background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%); }

.layer-card:hover .layer-glow {
    opacity: 1;
}

/* === Architecture Section - SPECTACULAR FLOW === */
.architecture-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, #030308 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.architecture-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(255, 76, 70, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.architecture-flow {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(5, 5, 10, 0.98) 100%);
    border: 1px solid rgba(255, 76, 70, 0.15);
    border-radius: 32px;
    padding: 4rem 3rem;
    position: relative;
    overflow: visible;
}

.architecture-flow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 32px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 76, 70, 0.3), transparent 50%, rgba(0, 232, 204, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ===== 360 FLOW DESIGN ===== */
.flow-360 {
    position: relative;
    padding: 3rem 2rem;
}

/* === FLOW ROWS === */
.flow-row-main {
    display: flex;
    align-items: stretch; /* ALL NODES SAME HEIGHT */
    justify-content: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

/* Ensure all nodes stretch to same height */
.flow-row-main > .node-360 {
    display: flex;
    flex-direction: column;
}

.flow-row-top,
.flow-row-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 120px;
    gap: 0.5rem;
    position: relative;
}

.flow-row-top {
    margin-bottom: 1rem;
}

.flow-row-bottom {
    margin-top: 1rem;
    flex-direction: column-reverse; /* Line on top, label below */
}

/* Flow Direction Labels */
.flow-direction {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.flow-row-top .flow-direction {
    background: rgba(255, 76, 70, 0.15);
    color: var(--primary);
    border: 1px solid rgba(255, 76, 70, 0.3);
}

.dir-response {
    background: rgba(0, 232, 204, 0.15) !important;
    color: var(--secondary) !important;
    border: 1px solid rgba(0, 232, 204, 0.3) !important;
}

/* Flow Lines - ENHANCED */
.flow-line {
    width: 100%;
    max-width: 600px;
    height: 4px;
    border-radius: 4px;
    position: relative;
}

.line-request {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 76, 70, 0.8) 15%,
        rgba(255, 76, 70, 1) 50%,
        rgba(255, 76, 70, 0.8) 85%,
        transparent 100%);
    box-shadow: 0 0 15px rgba(255, 76, 70, 0.5),
                0 0 30px rgba(255, 76, 70, 0.3);
}

.line-response {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 232, 204, 0.8) 15%,
        rgba(0, 232, 204, 1) 50%,
        rgba(0, 232, 204, 0.8) 85%,
        transparent 100%);
    box-shadow: 0 0 15px rgba(0, 232, 204, 0.5),
                0 0 30px rgba(0, 232, 204, 0.3);
}

/* Animated dots on lines - BIGGER & BRIGHTER */
.line-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.line-request .line-dot {
    background: #fff;
    box-shadow: 0 0 10px var(--primary),
                0 0 20px var(--primary),
                0 0 30px var(--primary);
    animation: dotMoveRight 1.5s ease-in-out infinite;
}

.line-response .line-dot {
    background: #fff;
    box-shadow: 0 0 10px var(--secondary),
                0 0 20px var(--secondary),
                0 0 30px var(--secondary);
    animation: dotMoveLeft 1.5s ease-in-out infinite;
}

.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 1s; }

@keyframes dotMoveRight {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes dotMoveLeft {
    0% { left: 100%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 0%; opacity: 0; }
}

/* Curved Connectors - HIDDEN */
.curve-left,
.curve-right {
    display: none;
}

/* === 360 NODES === */
.node-360 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 2px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 140px;
}

.node-360:hover {
    transform: translateY(-5px);
}

.node-icon-360 {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
}

.node-icon-360 svg {
    width: 100%;
    height: 100%;
}

.node-name-360 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
}

.node-desc-360 {
    font-size: 0.65rem;
    margin-top: 0.25rem;
    opacity: 0.6;
    color: #fff;
}

/* USER NODE - SAME WIDTH AS LLM */
.node-user-360 {
    background: linear-gradient(135deg, #1a2d5a 0%, #0f1a35 100%);
    border-color: #4a80ff;
    box-shadow: 0 0 35px rgba(74, 128, 255, 0.25);
    justify-content: center;
    width: 200px;
}

.node-user-360 .node-icon-360 {
    color: #4a80ff;
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
}

.node-user-360 .node-name-360 {
    color: #4a80ff;
}

.node-user-360:hover {
    box-shadow: 0 0 50px rgba(74, 128, 255, 0.4);
}

/* AIWARDEN NODE */
.node-aiwarden-360 {
    background: linear-gradient(135deg, #3a1515 0%, #1f0a0a 100%);
    border-color: var(--primary);
    box-shadow: 0 0 50px rgba(255, 76, 70, 0.3);
    padding: 1.5rem 2rem 1.25rem;
    position: relative;
    min-width: 200px;
}

.node-aiwarden-360:hover {
    box-shadow: 0 0 70px rgba(255, 76, 70, 0.45);
}

.aiwarden-border {
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    border: 2px solid rgba(255, 76, 70, 0.25);
    pointer-events: none;
}

.aiwarden-icon-360 {
    width: 60px;
    height: 60px;
    padding: 10px;
    background: linear-gradient(135deg, #2a1212 0%, #150808 100%);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 76, 70, 0.5);
}

.aiwarden-icon-360 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.name-red {
    color: var(--primary) !important;
    text-transform: none !important;
    font-size: 1.05rem !important;
}

/* Analysis Blocks */
.aiwarden-analysis {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.analysis-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.block-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 55px;
}

.label-req { color: var(--primary); }
.label-res { color: var(--secondary); }

.block-badges {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.mini-tag {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid;
}

.tag-red {
    background: rgba(255, 76, 70, 0.2);
    color: #ff6b66;
    border-color: rgba(255, 76, 70, 0.4);
}

.tag-purple {
    background: rgba(168, 85, 247, 0.2);
    color: #b088ff;
    border-color: rgba(168, 85, 247, 0.4);
}

.tag-cyan {
    background: rgba(0, 232, 204, 0.2);
    color: #00e8cc;
    border-color: rgba(0, 232, 204, 0.4);
}

/* LLM NODE with CAROUSEL - SAME WIDTH AS USER */
.node-llm-360 {
    background: linear-gradient(135deg, #2a1a4a 0%, #150d28 100%);
    border-color: #9664ff;
    box-shadow: 0 0 35px rgba(150, 100, 255, 0.25);
    padding: 1.5rem 2rem;
    width: 200px;
    justify-content: center;
}

.node-llm-360:hover {
    box-shadow: 0 0 50px rgba(150, 100, 255, 0.4);
}

/* Footer label at bottom */
.node-llm-360 .node-name-360 {
    color: #9664ff;
    margin-top: auto;
}

.node-llm-360 .node-desc-360 {
    opacity: 0.6;
}

/* LLM Carousel - HUGE LOGOS */
.llm-carousel {
    width: 100%;
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.carousel-track {
    display: flex;
    animation: carouselSlide 12s ease-in-out infinite;
    height: 100%;
    width: 100%;
}

.carousel-item {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* HUGE OFFICIAL LOGOS - FILL THE SPACE */
.carousel-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(150, 100, 255, 0.5));
}

/* LLM NAME - Prominent & Centered */
.carousel-item span {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    width: 100%;
}

@keyframes carouselSlide {
    0%, 18% { transform: translateX(0); }
    20%, 38% { transform: translateX(-100%); }
    40%, 58% { transform: translateX(-200%); }
    60%, 78% { transform: translateX(-300%); }
    80%, 98% { transform: translateX(-400%); }
    100% { transform: translateX(0); }
}

/* === LATENCY BADGE === */
.latency-badge-360 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem auto 0;
    padding: 0.6rem 1.25rem;
    background: rgba(0, 232, 204, 0.1);
    border: 1px solid rgba(0, 232, 204, 0.3);
    border-radius: 30px;
    width: fit-content;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.latency-badge-360 svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
}

.latency-badge-360 strong {
    color: var(--secondary);
}

.latency-badge-360 small {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-left: 0.3rem;
}

/* === LATENCY BADGE === */
.latency-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem auto 0;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 232, 204, 0.08);
    border: 1px solid rgba(0, 232, 204, 0.25);
    border-radius: 30px;
    width: fit-content;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.latency-badge strong {
    color: var(--secondary);
}

.latency-icon {
    width: 18px;
    height: 18px;
    color: var(--secondary);
}

/* === FLOW STEP CARDS === */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.step-card {
    position: relative;
    padding: 1.5rem;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    opacity: 1 !important;
    transform: none !important;
}

.step-card:hover {
    background: rgba(255, 76, 70, 0.08);
    border-color: rgba(255, 76, 70, 0.3);
    transform: translateY(-5px);
}

.step-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #ff7b75);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   SPECTACULAR ARCHITECTURE DIAGRAM - PREMIUM DESIGN
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   INFINITY FLOW DIAGRAM - Single Point of Control
   ═══════════════════════════════════════════════════════════════ */

.infinity-diagram {
    position: relative;
    background: #0a0a0f;
    border-radius: 24px;
    padding: 3rem 2rem 2rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.infinity-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 0 auto;
}

/* ══════ INFINITY SVG ══════ */
.infinity-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    height: auto;
}

.infinity-path {
    filter: drop-shadow(0 0 20px rgba(255, 76, 70, 0.5));
}

/* ══════ CENTER LOGO ══════ */
.infinity-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.infinity-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 76, 70, 0.8));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(255, 76, 70, 0.8)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 50px rgba(255, 76, 70, 1)); }
}

/* ══════ LEFT LABELS (Applications) ══════ */
.infinity-left-labels {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
    z-index: 5;
}

.left-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.3;
    text-align: left;
}

/* ══════ RIGHT CONTENT (LLM Providers) ══════ */
.infinity-right-content {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-right: 1rem;
    z-index: 5;
}

.llm-providers-circle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.llm-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.llm-icon:hover {
    transform: scale(1.15);
}

.llm-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
    margin-top: 0.5rem;
}

/* ══════ METRICS ══════ */
.infinity-metrics {
    text-align: center;
    margin-top: 1rem;
}

.main-metric {
    margin-bottom: 0.5rem;
}

.main-metric .metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Source Code Pro', monospace;
}

.metrics-breakdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.metrics-breakdown .divider {
    color: rgba(255, 255, 255, 0.2);
}

/* ══════ INTEGRATION BADGES ══════ */
.integration-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.integration-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 76, 70, 0.1);
    border: 1px solid rgba(255, 76, 70, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.integration-badge svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* ══════ RESPONSIVE ══════ */
@media (max-width: 900px) {
    .infinity-container {
        height: 350px;
    }

    .infinity-logo {
        width: 90px;
        height: 90px;
    }

    .infinity-left-labels {
        display: none;
    }

    .infinity-right-content {
        display: none;
    }

    .main-metric .metric-value {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .infinity-diagram {
        padding: 2rem 1rem;
    }

    .infinity-container {
        height: 280px;
    }

    .infinity-logo {
        width: 70px;
        height: 70px;
    }

    .main-metric .metric-value {
        font-size: 1.8rem;
    }

    .metrics-breakdown {
        flex-direction: column;
        gap: 0.3rem;
    }

    .metrics-breakdown .divider {
        display: none;
    }

    .integration-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Hide old SPOC diagram */
.spoc-diagram {
    display: none;
}

.spoc-defs {
    position: absolute;
}

/* Main 3-Column Layout */
.spoc-layout {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ══════ COLUMN STYLING ══════ */
.spoc-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spoc-node-header {
    margin-bottom: 1rem;
}

.spoc-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* ══════ LEFT: USERS/APPLICATIONS ══════ */
.spoc-apps-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.spoc-app {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.9rem;
    background: rgba(74, 158, 204, 0.06);
    border: 1px solid rgba(74, 158, 204, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.spoc-app:hover {
    background: rgba(74, 158, 204, 0.12);
    border-color: rgba(74, 158, 204, 0.4);
    transform: translateX(4px);
}

.app-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A9ECC;
}

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

.spoc-app span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ══════ CENTER: GATEWAY ══════ */
.spoc-gateway {
    position: relative;
}

.spoc-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}

.gateway-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 76, 70, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
}

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

.gateway-badge {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 76, 70, 0.15) 0%, rgba(255, 76, 70, 0.05) 100%);
    border: 1px solid rgba(255, 76, 70, 0.4);
    border-radius: 8px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gateway-logo {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gateway-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 76, 70, 0.6));
    position: relative;
    z-index: 3;
}

.pulse-ring {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulseRing 2.5s ease-out infinite;
}

.pulse-ring.p1 { width: 70px; height: 70px; animation-delay: 0s; }
.pulse-ring.p2 { width: 90px; height: 90px; animation-delay: 0.5s; }
.pulse-ring.p3 { width: 110px; height: 110px; animation-delay: 1s; }

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.gateway-metrics {
    margin-top: 1rem;
}

.gw-metric.total {
    text-align: center;
}

.gw-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Source Code Pro', monospace;
}

.gw-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ══════ FLOW SECTIONS (TOP & BOTTOM) ══════ */
.spoc-flow-section {
    width: 100%;
    padding: 1rem 0;
}

.flow-top {
    border-bottom: 1px dashed rgba(255, 76, 70, 0.2);
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.flow-bottom {
    border-top: 1px dashed rgba(0, 232, 204, 0.2);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.flow-arrow-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Old flow-svg for simple arrow diagrams */
.flow-arrow-container .flow-svg {
    width: 100%;
    height: 60px;
}

/* === NEW: Architecture Diagram - Circular Flow === */
.architecture-diagram {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
}

.architecture-diagram .flow-svg {
    width: 100%;
    height: auto;
    min-height: 520px;
    max-height: 600px;
}

/* Mobile ONLY - Make diagram larger with horizontal scroll */
@media (max-width: 768px) {
    .architecture-diagram {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem;
    }

    .architecture-diagram .flow-svg {
        width: 850px;
        min-width: 850px;
        min-height: 460px;
    }
}

.flow-phase-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 76, 70, 0.1);
    border: 1px solid rgba(255, 76, 70, 0.3);
    border-radius: 8px;
    margin: 0.5rem auto;
}

.flow-phase-badge.response-badge {
    background: rgba(0, 232, 204, 0.1);
    border-color: rgba(0, 232, 204, 0.3);
}

.phase-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.phase-time {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Source Code Pro', monospace;
}

.response-badge .phase-time {
    color: var(--secondary);
}

/* ══════ FILTER ITEMS ══════ */
.flow-filter, .flow-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: lowercase;
}

.filter-item svg {
    width: 16px;
    height: 16px;
}

.filter-threats {
    background: rgba(255, 76, 70, 0.15);
    border: 1px solid rgba(255, 76, 70, 0.3);
    color: #FF6B66;
}

.filter-quality {
    background: rgba(0, 232, 204, 0.15);
    border: 1px solid rgba(0, 232, 204, 0.3);
    color: #00E8CC;
}

.filter-behavioral {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #A855F7;
}

.fortified-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(0, 232, 204, 0.15), rgba(0, 232, 204, 0.05));
    border: 1px solid rgba(0, 232, 204, 0.4);
    border-radius: 8px;
}

.fortified-icon {
    font-size: 1.1rem;
}

.fortified-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ══════ RIGHT: LLM PROVIDERS ══════ */
.llm-call-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.8rem;
    background: rgba(74, 158, 204, 0.1);
    border: 1px solid rgba(74, 158, 204, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.call-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.call-time {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4A9ECC;
    font-family: 'Source Code Pro', monospace;
}

.spoc-llm-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.spoc-llm-provider {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.9rem;
    background: rgba(74, 158, 204, 0.06);
    border: 1px solid rgba(74, 158, 204, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.spoc-llm-provider:hover {
    background: rgba(74, 158, 204, 0.12);
    border-color: rgba(74, 158, 204, 0.4);
    transform: translateX(-4px);
}

.spoc-llm-provider img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.spoc-llm-provider span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ══════ SVG CONNECTORS ══════ */
.spoc-connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: none; /* Hidden on smaller screens, shown on large */
}

/* ══════ LATENCY BAR ══════ */
.spoc-latency-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    flex-wrap: wrap;
}

.latency-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.4rem 0.8rem;
}

.seg-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.seg-value {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Source Code Pro', monospace;
}

.latency-segment.pre .seg-value { color: #FF6B66; }
.latency-segment.llm .seg-value { color: #4A9ECC; }
.latency-segment.post .seg-value { color: #00E8CC; }
.latency-segment.total .seg-value {
    color: var(--primary);
    font-size: 1rem;
}

.latency-segment.total {
    padding: 0.5rem 1rem;
    background: rgba(255, 76, 70, 0.1);
    border: 1px solid rgba(255, 76, 70, 0.3);
    border-radius: 8px;
}

.latency-divider {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ══════ LEGEND ══════ */
.spoc-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.spoc-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-threats { background: var(--primary); }
.dot-quality { background: var(--secondary); }
.dot-behavioral { background: #A855F7; }

.spoc-legend .legend-item strong {
    color: var(--text-secondary);
}

/* ══════ SPOC RESPONSIVE ══════ */
@media (max-width: 1100px) {
    .spoc-layout {
        grid-template-columns: 180px 1fr 180px;
        gap: 1.5rem;
    }

    .spoc-app span,
    .spoc-llm-provider span {
        font-size: 0.7rem;
    }
}

@media (max-width: 900px) {
    .spoc-diagram {
        padding: 1.5rem 1rem;
    }

    .spoc-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .spoc-users { order: 1; }
    .spoc-gateway { order: 2; }
    .spoc-llm { order: 3; }

    .spoc-apps-stack,
    .spoc-llm-stack {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .spoc-app,
    .spoc-llm-provider {
        flex: 0 0 auto;
    }

    .spoc-latency-bar {
        gap: 0.5rem;
    }

    .latency-segment {
        padding: 0.3rem 0.5rem;
    }

    .seg-label {
        font-size: 0.55rem;
    }
}

@media (max-width: 600px) {
    .spoc-legend {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .flow-filters {
        gap: 0.3rem;
    }

    .filter-item {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Keep old network-diagram hidden but preserve for backward compatibility */
.network-diagram {
    display: none;
}

/* Main Flow Layout - DEPRECATED */
.network-flow {
    display: grid;
    grid-template-columns: 180px 1fr 380px 1fr 220px;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* ══════ NETWORK NODES ══════ */
.network-node {
    display: flex;
    flex-direction: column;
}

.node-header {
    text-align: center;
    margin-bottom: 1rem;
}

.node-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.node-subtitle {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ══════ LEFT: REQUEST ORIGINS ══════ */
.node-origins {
    padding-right: 0.5rem;
}

.origins-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.origin-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(74, 158, 204, 0.06);
    border: 1px solid rgba(74, 158, 204, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.origin-item:hover {
    background: rgba(74, 158, 204, 0.12);
    border-color: rgba(74, 158, 204, 0.4);
    transform: translateX(3px);
}

.origin-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A9ECC;
}

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

.origin-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ══════ FLOW ARROWS - HIGHLY VISIBLE ══════ */
.flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    min-width: 100px;
}

.arrow-line {
    width: 100%;
    height: 60px;
    position: relative;
}

.arrow-line svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.arrow-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 76, 70, 0.1);
    border: 1px solid rgba(255, 76, 70, 0.3);
    border-radius: 4px;
}

.flow-to-llm .arrow-label {
    background: rgba(74, 158, 204, 0.1);
    border-color: rgba(74, 158, 204, 0.3);
    color: #4A9ECC;
}

/* ══════ CENTER: AIWARDEN CORE ══════ */
.node-aiwarden {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aiwarden-badge {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 76, 70, 0.15) 0%, rgba(255, 76, 70, 0.05) 100%);
    border: 1px solid rgba(255, 76, 70, 0.4);
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.aiwarden-core {
    background: linear-gradient(180deg, rgba(12, 12, 20, 0.95) 0%, rgba(8, 8, 15, 0.98) 100%);
    border: 2px solid rgba(255, 76, 70, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    width: 100%;
    max-width: 380px;
}

.core-glow {
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(255, 76, 70, 0.3), transparent 30%, transparent 70%, rgba(255, 76, 70, 0.3));
    z-index: -1;
    animation: borderGlow 4s linear infinite;
}

/* Core Logo */
.core-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 80px;
    margin-bottom: 1rem;
}

.core-logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 76, 70, 0.5));
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulseRing 2.5s ease-out infinite;
}

.pulse-ring.r1 { width: 50px; height: 50px; animation-delay: 0s; }
.pulse-ring.r2 { width: 70px; height: 70px; animation-delay: 0.8s; }

/* Security Phases */
.security-phase {
    margin-bottom: 0.75rem;
    padding: 0.6rem;
    border-radius: 8px;
}

.phase-request {
    background: rgba(255, 76, 70, 0.08);
    border-left: 3px solid var(--primary);
}

.phase-response {
    background: rgba(0, 232, 204, 0.08);
    border-left: 3px solid var(--secondary);
}

.phase-header {
    margin-bottom: 0.4rem;
}

.phase-direction {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.phase-request .phase-direction {
    color: var(--primary);
}

.phase-response .phase-direction {
    color: var(--secondary);
}

.phase-layers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.layer-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
}

.layer-badge svg {
    width: 14px;
    height: 14px;
}

.layer-threats {
    background: rgba(255, 76, 70, 0.15);
    color: #FF6B66;
    border: 1px solid rgba(255, 76, 70, 0.3);
}

.layer-quality {
    background: rgba(0, 232, 204, 0.15);
    color: #00E8CC;
    border: 1px solid rgba(0, 232, 204, 0.3);
}

.layer-behavioral {
    background: rgba(168, 85, 247, 0.15);
    color: #A855F7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Core Metrics */
.core-metrics {
    display: flex;
    justify-content: space-around;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

.metric-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ══════ RIGHT: LLM CLOUD - PROVIDERS INSIDE ══════ */
.node-llm {
    padding-left: 0.5rem;
}

.llm-cloud-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cloud background that wraps providers */
.llm-cloud-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 180px;
    background:
        radial-gradient(ellipse 80px 60px at 30% 60%, rgba(74, 158, 204, 0.15), transparent),
        radial-gradient(ellipse 100px 70px at 70% 50%, rgba(74, 158, 204, 0.12), transparent),
        radial-gradient(ellipse 120px 80px at 50% 70%, rgba(74, 158, 204, 0.1), transparent);
    border: 2px solid rgba(74, 158, 204, 0.3);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: cloudFloat 4s ease-in-out infinite;
    z-index: 0;
}

.cloud-shape {
    display: none; /* Hide SVG, using CSS cloud instead */
}

.providers-inside-cloud {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 1.5rem 1rem;
    margin-top: 0.5rem;
}

.provider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.5rem;
    background: rgba(5, 5, 12, 0.9);
    border: 1px solid rgba(74, 158, 204, 0.25);
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.provider:hover {
    background: rgba(74, 158, 204, 0.15);
    border-color: rgba(74, 158, 204, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 158, 204, 0.2);
}

.provider img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.provider span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ══════ RESPONSE FLOW ══════ */
.response-flow-container {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.response-flow-line {
    height: 50px;
    position: relative;
}

.response-svg {
    width: 100%;
    height: 100%;
}

.response-labels {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 2rem;
    margin-top: 0.5rem;
}

.response-label {
    text-align: center;
}

.response-label span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.label-aiwarden {
    transform: translateX(20%);
}

.fortified-badge {
    display: inline-block;
    font-size: 0.8rem !important;
    font-weight: 700;
    color: var(--primary) !important;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 76, 70, 0.15);
    border: 1px solid rgba(255, 76, 70, 0.3);
    border-radius: 20px;
    margin-bottom: 0.2rem;
}

.fortified-desc {
    font-size: 0.6rem !important;
    color: var(--text-muted);
}

/* ══════ LEGEND ══════ */
.diagram-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.color-threats { background: var(--primary); }
.color-quality { background: var(--secondary); }
.color-behavioral { background: var(--accent); }

.legend-item strong {
    color: var(--text-secondary);
}

/* ══════ NETWORK DIAGRAM RESPONSIVE ══════ */
@media (max-width: 1200px) {
    .network-flow {
        grid-template-columns: 160px 1fr 340px 1fr 200px;
    }

    .aiwarden-core {
        max-width: 340px;
        padding: 1rem;
    }
}

@media (max-width: 1100px) {
    .network-flow {
        grid-template-columns: 140px 80px 1fr 80px 180px;
    }

    .aiwarden-core {
        max-width: 300px;
    }

    .origin-item {
        padding: 0.4rem 0.6rem;
    }

    .origin-item span {
        font-size: 0.7rem;
    }

    .llm-cloud-container::before {
        width: 180px;
        height: 160px;
    }

    .provider img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 900px) {
    .network-diagram {
        padding: 1.5rem 1rem;
    }

    .network-flow {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .node-origins {
        order: 1;
        padding: 0;
    }

    .origins-stack {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .origin-item {
        flex: 0 0 auto;
    }

    .flow-arrow.flow-request {
        order: 2;
    }

    .node-aiwarden {
        order: 3;
    }

    .aiwarden-core {
        max-width: 100%;
    }

    .flow-arrow.flow-to-llm {
        order: 4;
    }

    .node-llm {
        order: 5;
        padding: 0;
    }

    .llm-cloud-container {
        min-height: 150px;
    }

    .providers-inside-cloud {
        grid-template-columns: repeat(4, 1fr);
        max-width: 350px;
        margin: 0 auto;
    }

    .flow-arrow {
        transform: rotate(90deg);
        height: 60px;
    }

    .arrow-label {
        transform: rotate(-90deg);
    }

    .response-labels {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .label-aiwarden {
        transform: none;
    }

    .diagram-legend {
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .network-diagram {
        padding: 1rem 0.75rem;
    }

    .origins-stack {
        flex-direction: column;
    }

    .origin-item {
        width: 100%;
        max-width: 200px;
    }

    .providers-inside-cloud {
        grid-template-columns: repeat(2, 1fr);
        max-width: 180px;
    }

    .security-phase {
        padding: 0.5rem;
    }

    .phase-layers {
        flex-direction: column;
        gap: 0.4rem;
    }

    .layer-badge {
        width: 100%;
        justify-content: center;
    }

    .core-metrics {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .metric {
        flex: 1 1 30%;
    }

    .diagram-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.spectacular-diagram {
    position: relative;
    background: linear-gradient(180deg,
        rgba(5, 5, 12, 0.98) 0%,
        rgba(8, 8, 18, 0.99) 50%,
        rgba(5, 5, 12, 0.98) 100%);
    border: 1px solid rgba(255, 76, 70, 0.15);
    border-radius: 24px;
    padding: 3rem 2rem 2rem;
    overflow: hidden;
    margin-bottom: 3rem;
}

/* Animated Grid Background */
.diagram-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 158, 204, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 158, 204, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.grid-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255, 76, 70, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Main Architecture Canvas */
.arch-canvas {
    display: grid;
    grid-template-columns: 200px 100px 1fr 100px 200px;
    align-items: stretch;
    gap: 0;
    position: relative;
    z-index: 1;
    min-height: 450px;
}

/* Section Base Styles */
.arch-section {
    display: flex;
    flex-direction: column;
    position: relative;
}

.section-header-label {
    text-align: center;
    margin-bottom: 1.5rem;
}

.header-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ═══════════ LEFT: USER ORIGIN ═══════════ */
.section-origin {
    padding-right: 1rem;
}

.origin-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.user-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(74, 158, 204, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: avatarGlow 3s ease-in-out infinite;
}

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

.avatar-ring {
    position: absolute;
    inset: 5px;
    border: 2px solid rgba(74, 158, 204, 0.3);
    border-radius: 50%;
    animation: ringRotate 10s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.user-avatar svg {
    width: 70px;
    height: 70px;
    position: relative;
    z-index: 1;
}

/* Connection Channels */
.connection-channels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.channel-box {
    background: rgba(74, 158, 204, 0.06);
    border: 1px solid rgba(74, 158, 204, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.channel-box:hover {
    background: rgba(74, 158, 204, 0.1);
    border-color: rgba(74, 158, 204, 0.4);
    transform: translateX(5px);
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #4A9ECC;
    font-size: 0.8rem;
    font-weight: 600;
}

.channel-header svg {
    width: 18px;
    height: 18px;
}

.channel-data-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.data-line {
    display: flex;
    gap: 3px;
}

.data-line span {
    height: 3px;
    background: linear-gradient(90deg, #4A9ECC 0%, rgba(74, 158, 204, 0.3) 100%);
    border-radius: 2px;
    animation: dataFlow 1.5s ease-in-out infinite;
}

.data-line span:nth-child(1) { width: 30px; animation-delay: 0s; }
.data-line span:nth-child(2) { width: 20px; animation-delay: 0.1s; }
.data-line span:nth-child(3) { width: 25px; animation-delay: 0.2s; }
.data-line span:nth-child(4) { width: 15px; animation-delay: 0.3s; }

@keyframes dataFlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.channel-arrow-indicator {
    display: flex;
    justify-content: center;
}

.channel-arrow-indicator svg {
    width: 50px;
    height: 20px;
}

/* ═══════════ FLOW CONNECTORS ═══════════ */
.flow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 200px;
}

.connector-svg {
    width: 100%;
    height: 200px;
}

.flow-path {
    stroke-linecap: round;
}

.flow-particle {
    filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px var(--primary));
}

.connector-arrow {
    position: absolute;
    right: -5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.connector-arrow svg {
    filter: drop-shadow(0 0 8px var(--primary));
}

.arrow-out {
    left: -5px;
    right: auto;
}

/* ═══════════ CENTER: AIWARDEN CORE ═══════════ */
.section-core {
    display: flex;
    flex-direction: column;
}

.core-api-badge {
    text-align: center;
    margin-bottom: 1rem;
}

.core-api-badge span {
    display: inline-block;
    font-family: 'Source Code Pro', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 76, 70, 0.15) 0%, rgba(255, 76, 70, 0.05) 100%);
    border: 1px solid rgba(255, 76, 70, 0.4);
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.core-container {
    background: linear-gradient(180deg, rgba(12, 12, 20, 0.95) 0%, rgba(8, 8, 15, 0.98) 100%);
    border: 1px solid rgba(255, 76, 70, 0.25);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    flex: 1;
}

.core-border-animated {
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(90deg,
        rgba(255, 76, 70, 0.5) 0%,
        transparent 25%,
        transparent 75%,
        rgba(255, 76, 70, 0.5) 100%);
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { filter: hue-rotate(360deg); opacity: 0.5; }
}

.core-header {
    text-align: center;
    margin-bottom: 1rem;
}

.core-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.core-subtitle {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* Logo Section with Pulse Rings */
.core-logo-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    margin: 1rem 0;
}

.logo-pulse-ring {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulseRing 3s ease-out infinite;
}

.ring-1 { width: 60px; height: 60px; animation-delay: 0s; }
.ring-2 { width: 80px; height: 80px; animation-delay: 1s; }
.ring-3 { width: 100px; height: 100px; animation-delay: 2s; }

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.logo-shield {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.logo-shield img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 76, 70, 0.6));
}

/* Metrics Grid */
.core-metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 76, 70, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(255, 76, 70, 0.1);
    transform: translateX(5px);
}

.metric-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 76, 70, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.metric-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.metric-content {
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.metric-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Stats Panel */
.core-stats-panel {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1rem;
}

.stats-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-title span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
}

.chart-bar {
    width: 6px;
    height: var(--h);
    background: linear-gradient(180deg, var(--primary) 0%, rgba(255, 76, 70, 0.3) 100%);
    border-radius: 2px;
    animation: chartPulse 2s ease-in-out infinite;
}

.chart-bar:nth-child(1) { animation-delay: 0s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.4s; }
.chart-bar:nth-child(4) { animation-delay: 0.6s; }
.chart-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes chartPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.stats-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stats-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stats-checklist svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.stats-checklist strong {
    color: var(--text-primary);
}

/* ═══════════ RIGHT: LLM PROVIDERS ═══════════ */
.section-llm {
    padding-left: 1rem;
}

.llm-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.llm-cloud-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 110px;
    opacity: 0.4;
    animation: cloudFloat 5s ease-in-out infinite;
}

@keyframes cloudFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.llm-cloud-bg svg {
    width: 100%;
    height: 100%;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.provider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    background: rgba(74, 158, 204, 0.06);
    border: 1px solid rgba(74, 158, 204, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.provider-card:hover {
    background: rgba(74, 158, 204, 0.12);
    border-color: rgba(74, 158, 204, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 158, 204, 0.15);
}

.provider-card img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.provider-card span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ═══════════ RETURN FLOW SECTION ═══════════ */
.return-flow-section {
    position: relative;
    margin-top: 2rem;
    padding-top: 2rem;
}

.return-flow-line {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
}

.return-svg {
    width: 100%;
    height: 60px;
}

.return-particle {
    filter: drop-shadow(0 0 8px var(--primary)) drop-shadow(0 0 15px var(--primary));
}

.return-arrow-left {
    position: absolute;
    left: 3%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.return-arrow-left svg {
    filter: drop-shadow(0 0 8px var(--primary));
}

.return-label-box {
    text-align: center;
    margin-top: 1rem;
}

.return-badge {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    background: rgba(255, 76, 70, 0.1);
    border: 1px solid rgba(255, 76, 70, 0.3);
    border-radius: 25px;
    margin-bottom: 0.5rem;
}

.return-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== SPECTACULAR DIAGRAM RESPONSIVE ===== */
@media (max-width: 1200px) {
    .arch-canvas {
        grid-template-columns: 180px 80px 1fr 80px 180px;
        min-height: 400px;
    }

    .user-avatar {
        width: 80px;
        height: 80px;
    }

    .user-avatar svg {
        width: 55px;
        height: 55px;
    }

    .core-logo-section {
        height: 100px;
    }

    .logo-shield {
        width: 60px;
        height: 60px;
    }

    .ring-1 { width: 50px; height: 50px; }
    .ring-2 { width: 70px; height: 70px; }
    .ring-3 { width: 90px; height: 90px; }

    .core-container {
        padding: 1.25rem;
    }

    .metric-card {
        padding: 0.5rem;
    }

    .metric-value {
        font-size: 0.8rem;
    }

    .metric-detail {
        font-size: 0.65rem;
    }

    .provider-card img {
        width: 30px;
        height: 30px;
    }

    .provider-card span {
        font-size: 0.65rem;
    }
}

@media (max-width: 992px) {
    .spectacular-diagram {
        padding: 2rem 1rem 1.5rem;
    }

    .arch-canvas {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }

    .section-origin,
    .section-core,
    .section-llm {
        padding: 0;
    }

    /* Hide flow connectors on tablet/mobile */
    .flow-connector {
        display: none;
    }

    /* Origin section adjustments */
    .origin-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .user-avatar {
        width: 70px;
        height: 70px;
    }

    .connection-channels {
        flex-direction: row;
        width: auto;
    }

    .channel-box {
        flex: 1;
        min-width: 120px;
    }

    /* Core section - make it prominent */
    .core-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .core-metrics-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .metric-card {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 180px;
    }

    /* LLM section */
    .providers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Return flow */
    .return-flow-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .return-svg {
        height: 40px;
    }

    /* Mobile flow indicator between sections */
    .arch-section:not(:last-child)::after {
        content: '';
        display: block;
        width: 40px;
        height: 40px;
        margin: 0.5rem auto;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF4C46' stroke-width='2'%3E%3Cpath d='M12 5v14M19 12l-7 7-7-7'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.6;
    }

    .section-llm::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .spectacular-diagram {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .grid-glow {
        width: 300px;
        height: 200px;
    }

    .section-header-label {
        margin-bottom: 1rem;
    }

    .header-title {
        font-size: 0.9rem;
    }

    .header-sub {
        font-size: 0.7rem;
    }

    /* Core adjustments */
    .core-api-badge span {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .core-header {
        margin-bottom: 0.75rem;
    }

    .core-title {
        font-size: 0.9rem;
    }

    .core-logo-section {
        height: 80px;
        margin: 0.75rem 0;
    }

    .logo-shield {
        width: 50px;
        height: 50px;
    }

    .ring-1 { width: 40px; height: 40px; }
    .ring-2 { width: 55px; height: 55px; }
    .ring-3 { width: 70px; height: 70px; }

    .core-metrics-grid {
        flex-direction: column;
    }

    .metric-card {
        flex: 1 1 100%;
        min-width: auto;
    }

    .core-stats-panel {
        padding: 0.75rem;
    }

    .stats-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .mini-chart {
        align-self: flex-end;
    }

    .stats-checklist li {
        font-size: 0.7rem;
    }

    .stats-checklist svg {
        width: 14px;
        height: 14px;
    }

    /* LLM providers */
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 200px;
    }

    .provider-card {
        padding: 0.5rem;
    }

    .provider-card img {
        width: 28px;
        height: 28px;
    }

    /* Return flow */
    .return-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .return-description {
        font-size: 0.75rem;
        max-width: 280px;
    }

    /* Flow steps */
    .flow-steps {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .step-card {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }

    .step-number {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .spectacular-diagram {
        padding: 1rem 0.75rem;
        margin-bottom: 2rem;
    }

    .origin-content {
        flex-direction: column;
    }

    .connection-channels {
        flex-direction: column;
        width: 100%;
    }

    .channel-box {
        min-width: auto;
    }

    .core-container {
        padding: 1rem;
        border-radius: 12px;
    }

    .metric-icon {
        width: 28px;
        height: 28px;
    }

    .metric-icon svg {
        width: 16px;
        height: 16px;
    }

    .llm-cloud-bg {
        width: 140px;
        height: 85px;
    }

    .return-flow-line {
        height: 40px;
    }

    .return-arrow-left svg {
        width: 24px;
        height: 24px;
    }
}

/* ===== ARCHITECTURE RESPONSIVE ===== */
@media (max-width: 1100px) {
    .arch-flow {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .arch-flow-arrows {
        transform: rotate(90deg);
        height: 40px;
        width: 60px;
        margin: 0 auto;
    }

    .arch-core {
        min-width: auto;
        max-width: 100%;
    }

    .return-line {
        left: 5%;
        right: 5%;
    }

    .simple-flow {
        gap: 0.75rem;
    }

    .flow-node {
        padding: 1rem 1.25rem;
    }

    .node-icon-box {
        width: 45px;
        height: 45px;
    }

    .flow-connector {
        min-width: 50px;
    }

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

@media (max-width: 768px) {
    .architecture-flow {
        padding: 2rem 1rem;
    }

    .simple-flow {
        flex-direction: column;
        gap: 0.75rem;
    }

    .flow-connector {
        transform: rotate(90deg);
        min-width: 40px;
        margin: 0.5rem 0;
    }

    .connector-label {
        transform: translateX(-50%) rotate(-90deg);
        white-space: nowrap;
    }

    .flow-node {
        width: 100%;
        max-width: 240px;
    }

    .flow-node.node-aiwarden-main {
        order: 2;
    }

    .flow-node.node-user {
        order: 1;
    }

    .flow-node.node-llm {
        order: 3;
    }

    .flow-connector:first-of-type {
        order: 1;
    }

    .flow-connector:last-of-type {
        order: 2;
    }

    .analysis-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .analysis-label {
        width: 100%;
        text-align: center;
        margin-bottom: 0.2rem;
    }

    .flow-steps {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .step-card {
        padding: 1rem;
    }

    .step-number {
        font-size: 1.5rem;
    }

    .step-content h4 {
        font-size: 0.85rem;
    }

    .step-content p {
        font-size: 0.75rem;
    }

    .latency-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
    }

    .return-flow {
        margin-top: 1rem;
    }
}

/* === Threat Demo Section === */
.threat-demo-section {
    position: relative;
}

.threat-demo {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.demo-terminal {
    background: #0d0d0d;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

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

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    margin-left: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.prompt-line, .analysis-line, .result-line, .mitre-line {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.prompt-label {
    color: var(--secondary);
    font-weight: 600;
}

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

.cursor {
    animation: blink 1s infinite;
}

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

.analysis-line {
    color: var(--text-muted);
    opacity: 0;
}

.analysis-line.active {
    opacity: 1;
    animation: analyzing 1.5s ease;
}

@keyframes analyzing {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.result-line {
    opacity: 0;
}

.result-line.active {
    opacity: 1;
}

.result-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.result-line.blocked .result-badge {
    background: var(--primary);
    color: white;
}

.result-rule {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mitre-line {
    opacity: 0;
}

.mitre-line.active {
    opacity: 1;
}

.mitre-label {
    color: var(--text-muted);
}

.mitre-tag {
    padding: 0.125rem 0.5rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.8rem;
}

.demo-threats h4 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.threat-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.threat-btn {
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.threat-btn:hover {
    background: rgba(255, 76, 70, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
}

.threat-btn.active {
    background: rgba(255, 76, 70, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* === Data Ownership Section === */
.data-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.data-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* === CENTERED DATA SECTION === */
.data-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.data-header {
    max-width: 700px;
    margin-bottom: 3rem;
}

.data-header .section-title {
    text-align: center;
}

.data-header .data-description {
    text-align: center;
}

.data-visual-centered {
    margin-bottom: 3rem;
}

/* Data Cards Grid */
.data-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.data-card {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.data-card:hover {
    background: rgba(0, 232, 204, 0.05);
    border-color: rgba(0, 232, 204, 0.3);
    transform: translateY(-5px);
}

.data-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 232, 204, 0.1);
    border-radius: 12px;
    color: var(--secondary);
}

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

.data-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.data-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.data-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.data-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.data-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 232, 204, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h4 {
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.data-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Shield Container with Glow */
.shield-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-glow {
    position: absolute;
    width: 180px;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(255, 76, 70, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: shieldPulse 3s ease-in-out infinite;
}

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

.shield-svg {
    width: 240px;
    height: auto;
    position: relative;
    z-index: 2;
}

.shield-path {
    /* No filter for cross-browser consistency */
}

.shield-check {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: drawCheck 1.2s ease forwards;
    animation-delay: 0.3s;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

/* === Trust Section === */
.trust-section {
    position: relative;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.trust-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.trust-block h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.integration-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.logo-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary);
    color: var(--text-primary);
}

.logo-item svg {
    width: 24px;
    height: 24px;
}

.compliance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.compliance-tag {
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.performance-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.perf-stat {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.perf-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: 'JetBrains Mono', monospace;
}

.perf-unit {
    font-size: 1rem;
    color: var(--secondary);
}

.perf-label {
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 76, 70, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    width: fit-content;
}

.cta-dynamic-word {
    display: inline-block;
    color: var(--primary);
    transition: opacity 0.25s ease, transform 0.25s ease;
    min-width: 4.5em;
    text-align: center;
}

@media (max-width: 600px) {
    .cta-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
}

@media (max-width: 400px) {
    .cta-title {
        font-size: 1.25rem;
    }
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 76, 70, 0.1);
}

.contact-form .btn {
    margin-top: 0.5rem;
    justify-content: center;
}

/* === Footer === */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: var(--text-primary);
}

.footer-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.25px;
}

.footer-pillars {
    display: flex;
    align-items: center;
    gap: 0;
}

.footer-pillars span {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.75px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    padding: 0 0.625rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s ease;
}

.footer-pillars span:first-child {
    padding-left: 0;
}

.footer-pillars span:last-child {
    border-right: none;
    padding-right: 0;
}

.footer-pillars span:hover {
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-column a.disabled-link {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.footer-column a.disabled-link:hover {
    color: var(--text-muted);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

/* === Responsive === */
@media (max-width: 1024px) {
    .layers-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .problem-divider {
        flex-direction: row;
        padding: 1rem 0;
    }

    .divider-line {
        width: 60px;
        height: 2px;
    }

    .problem-card {
        padding: 2rem 1.5rem;
    }

    .card-list li {
        font-size: 0.9rem;
    }

    .threat-demo {
        grid-template-columns: 1fr;
    }

    .data-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .data-features {
        max-width: 400px;
        margin: 0 auto;
    }

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

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

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* Mobile Navigation */
    .nav-container {
        position: relative;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #0a0a0a !important;
        display: none !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 9999 !important;
        padding: 2rem;
    }

    .nav-links.mobile-active {
        display: flex !important;
    }

    .nav-links a {
        font-size: 1.4rem;
        color: #ffffff !important;
        text-align: center;
        padding: 0.5rem 1rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary) !important;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-right {
        margin-left: auto;
        z-index: 10000;
    }

    .nav-cta {
        display: none !important;
    }

    .lang-switch {
        z-index: 10000;
        position: relative;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex !important;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 10000;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .mobile-menu-btn svg {
        width: 24px;
        height: 24px;
    }

    .mobile-menu-btn .line1,
    .mobile-menu-btn .line2,
    .mobile-menu-btn .line3 {
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .mobile-menu-btn.active .line1 {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active .line2 {
        opacity: 0;
    }

    .mobile-menu-btn.active .line3 {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .stat-card {
        width: 100%;
        max-width: 300px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .flow-cards {
        grid-template-columns: 1fr;
    }

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

/* ===== 360 FLOW RESPONSIVE ===== */
@media (max-width: 1100px) {
    .flow-360 {
        padding: 2rem 1rem;
    }

    .flow-row-main {
        gap: 1.5rem;
    }

    .node-360 {
        padding: 1rem 1.25rem;
        min-width: 120px;
    }

    .node-aiwarden-360 {
        min-width: 180px;
    }

    .node-icon-360 {
        width: 40px;
        height: 40px;
    }

    .aiwarden-icon-360 {
        width: 50px;
        height: 50px;
    }

    .flow-row-top,
    .flow-row-bottom {
        padding: 0 80px;
    }

    .curve-left {
        left: 30px;
    }

    .curve-right {
        right: 30px;
    }
}

@media (max-width: 900px) {
    .flow-360 {
        padding: 2rem 0.5rem;
    }

    .flow-row-main {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .node-360 {
        width: 100%;
        max-width: 280px;
    }

    .carousel-item img {
        width: 70px;
        height: 70px;
    }

    .flow-row-top,
    .flow-row-bottom {
        display: none;
    }

    .curve-left,
    .curve-right {
        display: none;
    }

    /* Show vertical flow indicators instead */
    .node-360::before {
        content: '';
        position: absolute;
        width: 3px;
        height: 20px;
        background: linear-gradient(180deg, rgba(255,76,70,0.5), transparent);
        top: -22px;
        left: 50%;
        transform: translateX(-50%);
    }

    .node-user-360::before {
        display: none;
    }

    .node-360::after {
        content: '';
        position: absolute;
        width: 3px;
        height: 20px;
        background: linear-gradient(180deg, transparent, rgba(0,232,204,0.5));
        bottom: -22px;
        left: 50%;
        transform: translateX(-50%);
    }

    .node-llm-360::after {
        display: none;
    }

    .node-aiwarden-360::before,
    .node-aiwarden-360::after {
        display: block;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .node-360 {
        max-width: 240px;
        padding: 1rem;
    }

    .aiwarden-analysis {
        gap: 0.4rem;
    }

    .analysis-block {
        flex-wrap: wrap;
        padding: 0.3rem 0.5rem;
    }

    .block-label {
        width: 100%;
        margin-bottom: 0.2rem;
    }

    .mini-tag {
        font-size: 0.45rem;
    }

    .carousel-item img {
        width: 60px;
        height: 60px;
    }

    .carousel-item span {
        font-size: 0.75rem;
    }

    .latency-badge-360 {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
    }
}

/* === Animations & Utilities === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* === Selection === */
::selection {
    background: var(--primary);
    color: white;
}

/* ============================================
   USE CASES SECTION - 4 PILLARS
   FORTIFIED · OPTIMIZED · GOVERNED · UNLEASHED
   ============================================ */

.usecases-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0a0f 100%);
    overflow: hidden;
    position: relative;
}

.usecases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Use Cases Grid */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Use Case Card */
.usecase-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.usecase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color);
    opacity: 0.8;
}

.usecase-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-color);
    background: rgba(255, 255, 255, 0.04);
}

.usecase-card.fortified,
.usecase-card.optimized,
.usecase-card.governed,
.usecase-card.unleashed {
    --card-color: var(--primary);
}

/* Card Header */
.usecase-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.usecase-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-color);
}

.usecase-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--card-color);
}

.usecase-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--card-color);
    margin-bottom: 0.25rem;
}

.usecase-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Card Description */
.usecase-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    min-height: 4.5rem; /* Align descriptions across cards */
}

/* Features List */
.usecase-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    min-height: 5.5rem; /* Align features across cards */
}

.usecase-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.usecase-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--card-color);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* Stats Row - always at bottom */
.usecase-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto; /* Push to bottom of flex container */
}

/* Ensure highlight boxes don't overlap with stats */
.user-tracking-box,
.spend-dashboard-box,
.deployment-box,
.attachments-highlight {
    margin-bottom: 1rem;
}

.compliance-tags {
    margin-bottom: 0;
}


.usecase-stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--card-color);
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Compliance Tags */
.compliance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.compliance-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 76, 70, 0.15);
    color: var(--primary);
    border: 1px solid rgba(255, 76, 70, 0.3);
}

/* Attachments Highlight Box */
.attachments-highlight {
    background: rgba(255, 76, 70, 0.1);
    border: 1px solid rgba(255, 76, 70, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attachments-highlight svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    flex-shrink: 0;
}

.attachments-highlight span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.attachments-highlight strong {
    color: var(--primary);
}

/* Highlight Boxes (User Tracking, Spend Dashboard, Deployment) */
.user-tracking-box,
.spend-dashboard-box,
.deployment-box {
    background: rgba(255, 76, 70, 0.1);
    border: 1px solid rgba(255, 76, 70, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

/* Spend Dashboard - Mini Bar Chart */
.spend-bars {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.spend-row {
    display: grid;
    grid-template-columns: 80px 1fr 55px;
    align-items: center;
    gap: 0.75rem;
}

.spend-team {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.spend-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.spend-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), rgba(255, 76, 70, 0.7));
    border-radius: 4px;
    transition: width 0.8s ease;
}

.spend-amount {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}

.tracking-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tracking-header svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
}

.tracking-header span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tracking-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.tracking-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tracking-item::before {
    content: '→';
    color: var(--primary);
    font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 992px) {
    .usecases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .usecase-features {
        grid-template-columns: 1fr;
    }

    .tracking-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .usecase-card {
        padding: 1.5rem;
    }

    .usecase-title {
        font-size: 1.25rem;
    }

    .usecase-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(180deg, #0d0d14 0%, #0a0a10 100%);
    border-top: 1px solid rgba(255, 76, 70, 0.2);
    padding: 1rem 1.5rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner.hiding {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner-logo {
    flex-shrink: 0;
}

.cookie-banner-logo img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(255, 76, 70, 0.5));
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-banner-text a:hover {
    color: #ff7b76;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.cookie-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-btn-secondary:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.cookie-btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.cookie-btn-primary:hover {
    background: #ff5f5a;
    border-color: #ff5f5a;
    box-shadow: 0 4px 15px rgba(255, 76, 70, 0.3);
}

/* Cookie banner responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-banner-logo {
        display: none;
    }

    .cookie-banner-text p {
        font-size: 0.875rem;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        max-width: 160px;
    }
}

@media (max-width: 400px) {
    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        max-width: none;
        width: 100%;
    }
}
