/* ============================================
   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-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: 480px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
}

.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: 3.5rem;
    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 */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
    z-index: 100;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

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

/* ============================================
   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: 2.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: 2rem;
        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: 3rem !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;
    }

    /* Hide threats on mobile */
    .threat-text {
        display: none;
    }

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

    .scan-wave::before,
    .scan-wave::after {
        display: none;
    }

    /* Hide scroll indicator */
    .scroll-indicator {
        display: none;
    }
}

/* === 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: 2rem;
        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;
}

/* ===== ARCHITECTURE RESPONSIVE ===== */
@media (max-width: 1100px) {
    .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;
}

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

.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 {
    max-width: 300px;
}

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

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
}

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

.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-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;
    }

    .nav-links {
        display: none;
    }

    .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;
    }
}
