:root {
    --bg-dark: #0A0C18;
    --bg-card: rgba(27, 41, 69, 0.4);
    --bg-card-hover: rgba(27, 41, 69, 0.6);
    /* Updated Theme Variables */
    --accent-primary: #FF4D4D;
    /* Tomato Red */
    --accent-secondary: #C70039;
    /* Deep Pink */
    --accent-blue: #1458FF;
    /* Electric Blue */
    --accent-glow: rgba(255, 77, 77, 0.5);
    --accent-gradient: linear-gradient(135deg, #FF4D4D 0%, #C70039 50%, #1458FF 100%);

    --text-main: #FFFFFF;
    --text-muted: #A0AEC0;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;

    --card-radius: 16px;
    --transition-speed: 0.3s;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-dark);
    /* Deep Gradient Background */
    background: radial-gradient(circle at top center, #1b2035 0%, #0A0C18 60%, #050505 100%);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Noise Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 9999;
    opacity: 0.05;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent;
    /* Gradient handles it */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s, transform 0.5s;
}

.glow-effect:hover::after {
    opacity: 1;
    transform: scale(1);
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(20, 88, 255, 0.1);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(10, 12, 24, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 40px;
    /* Adjust height based on preference */
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 40px;
    /* Space between links loop and actions group */
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(20, 88, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 88, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    z-index: -1;
    transform: perspective(1000px) rotateX(20deg) scale(1.2);
    transform-origin: top center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

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

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

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

/* Hero Visual - Dashboard Mockup */
.command-dashboard-mockup {
    background: #0f1320;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease-out;
}

.command-dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.02);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.dash-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 6px;
}

.dash-search {
    width: 120px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 300px;
}

.dash-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-1 {
    grid-column: span 1;
    grid-row: span 1;
}

.card-2 {
    grid-column: span 1;
    grid-row: span 2;
}

.card-3 {
    grid-column: span 1;
    grid-row: span 1;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.green {
    background: #10B981;
}

.blue {
    background: #3B82F6;
}

.purple {
    background: #8B5CF6;
}

.activity-list li {
    list-style: none;
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.chart-line {
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, transparent, var(--accent-primary));
    opacity: 0.3;
    margin-top: 10px;
    border-radius: 4px;
}

.sentiment-meter {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 16px;
}

.nav-link-login {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 20px;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.nav-link-login:hover {
    color: #fff;
}

.meter-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 4px;
}

.glow-underlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: var(--accent-primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
}

/* Agents Section (Live Monitor Grid) */
.agents-section {
    padding: 100px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 320px);
    gap: 24px;
    margin-top: 60px;
}

/* Monitor Card Base */
.monitor-card {
    background: #050505;
    /* Deep black */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.monitor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(255, 77, 77, 0.15);
    border-color: rgba(255, 77, 77, 0.3);
}

/* Gradient Border Effect via pseudo-element */
.monitor-grid-wrapper {
    position: relative;
    padding: 40px 0;
    /* Add Breathing room */
}

/* Add a Middle Section Glow to fix "Empty" feel */
.monitor-grid-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(20, 88, 255, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Cyber Grid Background for Middle Section */
.cyber-grid-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 77, 77, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 88, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(1000px) rotateX(60deg);
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
    opacity: 0.6;
    /* Increased visibility */
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.connector-path {
    fill: none;
    stroke: url(#lineGradient);
    stroke-width: 2;
    stroke-dasharray: 10;
    animation: flowLine 3s linear infinite;
    /* Faster flow */
    filter: drop-shadow(0 0 5px var(--accent-primary));
    /* Glow */
}

@keyframes flowLine {
    to {
        stroke-dashoffset: -200;
    }
}

.monitor-card {
    background: rgba(5, 5, 5, 0.8);
    /* Slight transparency */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* ... rest of existing styles ... */
    z-index: 2;
    /* Sit above grid/lines */
    position: relative;
    /* Ensure stacking context */
}

/* Scanline Overlay (New independent layer) */
.scanline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 3;
    /* Above card background/border, below content */
    opacity: 0.6;
}

/* High Density Mode */
.monitor-card[data-density="high"] {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Ensure content is on top */
.monitor-header,
.monitor-content {
    position: relative;
    z-index: 4;
}

.monitor-card:hover::after {
    background: var(--accent-gradient);
}

/* Spotlight Effect on Monitor Card */
.monitor-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 77, 77, 0.06),
            transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
}

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

/* Grid Spans */
.tall-card {
    grid-row: span 2;
}

.wide-card {
    grid-column: span 2;
}

/* Monitor Header */
.monitor-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.monitor-icon .icon {
    font-size: 1.2rem;
}

.monitor-title {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monitor-title h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

/* Status Badges */
.status-badge {
    font-size: 0.7rem;
    font-family: monospace;
    padding: 4px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-badge.live {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    animation: flashGreen 2s infinite;
}

.status-badge.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.running {
    background: rgba(255, 165, 0, 0.1);
    color: orange;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.status-badge.scanning {
    background: rgba(255, 77, 77, 0.1);
    color: #FF4D4D;
    border: 1px solid rgba(255, 77, 77, 0.2);
    animation: flashRed 2s infinite;
}

.status-badge.secure {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

@keyframes flashGreen {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes flashRed {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Monitor Content Area */
.monitor-content {
    padding: 20px;
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

/* 1. Terminal View */
.terminal-view {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    gap: 8px;
}

.terminal-line {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 4px;
}

.cmd {
    color: #8B5CF6;
    margin-right: 6px;
}

.highlight {
    color: #10B981;
}

.success {
    color: #10B981;
    font-weight: bold;
}

.action {
    color: #F59E0B;
    font-style: italic;
}

/* 2. Chart View */
.chart-view {
    justify-content: center;
    align-items: center;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1px;
    margin-bottom: 16px;
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: height 1s;
}

.bar.active {
    background: var(--accent-gradient);
    box-shadow: 0 0 15px var(--accent-glow);
}

.stat-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.stat-value {
    color: white;
    font-weight: 700;
}

/* 3. Timeline View */
.timeline-view {
    gap: 16px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item.completed .dot {
    background: #10B981;
}

.timeline-item.completed .info {
    color: #A0AEC0;
    text-decoration: line-through;
}

.timeline-item.completed .check {
    color: #10B981;
    margin-left: 6px;
}

.timeline-item.active .dot {
    background: #F59E0B;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.timeline-item.active .info {
    color: white;
    font-weight: 600;
}

.timeline-item.active .processing {
    color: #F59E0B;
    font-size: 0.7rem;
    margin-left: auto;
}

.dot.pulse {
    animation: pulseOrange 1.5s infinite;
}

@keyframes pulseOrange {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 4. Scanner View */
.scanner-view {
    align-items: center;
    justify-content: center;
}

.scanner-radar {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.05) 0%, transparent 70%);
    margin-bottom: 20px;
}

.radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(255, 77, 77, 0.5));
    animation: radarSpin 2s linear infinite;
}

@keyframes radarSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.match-alert {
    text-align: center;
}

.match-count {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

/* 5. Checklist View */
.checklist-view {
    justify-content: center;
    gap: 20px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checklist-item .label {
    width: 100px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: #10B981;
    border-radius: 3px;
}

.progress-bar .fill.loading {
    background: #8B5CF6;
    animation: loadBar 2s infinite translateX(-100%);
}

.checklist-item .status {
    width: 80px;
    text-align: right;
    font-size: 0.8rem;
}

/* Pipeline Section */
.pipeline-section {
    padding: 100px 0;
}

.pipeline-container {
    display: flex;
    position: relative;
    gap: 60px;
}

.pipeline-line-container {
    position: sticky;
    top: 50vh;
    left: 0;
    width: 4px;
    height: 60vh;
    /* Adjust based on content */
    flex-shrink: 0;
}

.pipeline-line-bg {
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

.pipeline-line-fill {
    width: 4px;
    height: 0%;
    /* JS will animate this */
    background: var(--accent-gradient);
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 15px var(--accent-glow);
}

.pipeline-steps {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 150px;
    /* Spacing for scroll effect */
    margin-bottom: 200px;
}

/* Background Orbs/Mesh Gradients */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Soften edges */
    z-index: -1;
    opacity: 0.4;
    animation: floatOrb 10s ease-in-out infinite;
}

.orb-red {
    background: radial-gradient(circle, rgba(255, 77, 77, 0.4) 0%, transparent 70%);
    width: 600px;
    height: 600px;
    top: -100px;
    left: -100px;
}

.orb-blue {
    background: radial-gradient(circle, rgba(20, 88, 255, 0.3) 0%, transparent 70%);
    width: 800px;
    height: 800px;
    bottom: 0;
    right: -200px;
    animation-delay: -5s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* ... existing code ... */

/* Pipeline Section */
.pipeline-section {
    padding: 100px 0;
    position: relative;
    /* Context for orbs if added inside */
}

/* ... existing code ... */

.pipeline-step {
    display: flex;
    gap: 30px;
    opacity: 0.6;
    /* Increased visibility from 0.3 */
    transition: all 0.5s ease;
    transform: translateX(20px);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    /* Prepare for hover */
}

.pipeline-step:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.pipeline-step.active {
    opacity: 1;
    transform: translateX(0);
    background: linear-gradient(90deg, rgba(20, 88, 255, 0.1) 0%, transparent 100%);
    border-left: 1px solid var(--accent-primary);
}

.step-marker {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    /* Slightly lighter */
    line-height: 1;
    transition: color 0.3s;
}

.pipeline-step:hover .step-marker {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--accent-glow);
}

.step-content h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: white;
}

.step-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
}

/* Footer & CTA */
.final-cta {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.waitlist-form {
    max-width: 500px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.waitlist-form .form-group {
    width: 100%;
}

.waitlist-form input[type="email"],
.waitlist-form input[type="tel"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.checkbox-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

.form-disclaimer a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.main-footer {
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    background: #06070e;
}

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

.footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .stats-row {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
        transform: none !important;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .agent-nurturer.tall-card,
    .agent-admin.wide-card {
        grid-column: span 1;
        grid-row: span 1;
    }

    .pipeline-container {
        gap: 20px;
    }

    .pipeline-line-container {
        display: none;
        /* Hide line on mobile for simplicity or adjust */
    }

    .pipeline-step {
        opacity: 1;
        transform: none;
    }
}

/* =========================================
   HEART INJECTION & VISUAL FIXES (V3.1)
   ========================================= */

/* Hero Section Adjustments */
.hero-section {
    padding-top: 140px;
    /* Reduced from 160px */
    padding-bottom: 60px;
    /* Reduced from 100px */
}

/* Trust Section */
.trust-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.trust-label {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.trust-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.avatar-group {
    display: flex;
    margin-right: -10px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
    margin-right: -10px;
}

.stat-highlight {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Agents Section Adjustments */
.agents-section {
    padding: 60px 0;
    /* Reduced from 100px */
}

/* Live Activity Bar */
.live-activity-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 12, 24, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    z-index: 999;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
    animation: slideUp 1s ease-out 2s backwards;
    width: max-content;
    max-width: 90vw;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.activity-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-main);
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Pulse Animation for Connector Lines */
.connector-path {
    stroke-width: 2;
    stroke-dasharray: 10;
    animation: flowLine 3s linear infinite, pulseLine 2s ease-in-out infinite alternate;
}

@keyframes pulseLine {
    from {
        stroke-opacity: 0.4;
    }

    to {
        stroke-opacity: 1;
    }
}

/* =========================================
   MILLION DOLLAR POLISH (V4.0)
   ========================================= */

/* --- 1. SOLID WALL BENTS GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Re-assigning grid areas for a solid wall */
/* Top Row: Prospecting (3), Marketing (3) */
.monitor-card:nth-child(1) {
    grid-column: span 3;
}

.monitor-card:nth-child(2) {
    grid-column: span 3;
}

/* Bottom Row: Nurturer (2), Buyer (2), Admin (2) */
.monitor-card:nth-child(3) {
    grid-column: span 2;
}

/* Nurturer */
.monitor-card:nth-child(4) {
    grid-column: span 2;
}

/* Buyer */
.monitor-card:nth-child(5) {
    grid-column: span 2;
}

/* Admin */

/* Remove old positioning overrides if any */
.monitor-card.tall-card {
    grid-row: auto;
}

/* Mobile Fallback for Grid */
@media (max-width: 900px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .monitor-card {
        width: 100% !important;
    }
}


/* --- 2. PIPELINE "CARD DECK" INTERACTION --- */
/* The Pipeline Container */
.pipeline-steps {
    position: relative;
    max-width: 800px;
    /* Constrain width to allow side popping */
    margin: 0 auto;
    /* Center it */
}

/* Step Container */
.pipeline-step {
    position: relative;
    /* Context for absolute card */
    margin-bottom: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
    /* Keep step above card initially */
    overflow: visible;
    /* Allow card to slide out */
}

/* Hover Effect on Main Step */
.pipeline-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-20px);
    /* Move LEFT slightly to make room */
    z-index: 10;
    /* Bring to front */
}

/* THE CARD DECK (Hidden Underneath) */
.process-card {
    position: absolute;
    top: 0;
    right: 0;
    /* Start aligned with parent */
    width: 320px;
    /* Fixed width for the card */
    height: 100%;
    /* Match step height */
    background: #0F111A;
    /* Darker distinct bg */
    border: 1px solid var(--accent-primary);
    border-radius: 16px;
    padding: 20px;

    /* Hiding State */
    opacity: 0;
    transform: scale(0.9) translateX(-40px);
    /* Tucked behind */
    z-index: -1;
    /* Behind the step */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    pointer-events: none;

    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy pop */

    /* Layout for content inside */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* SLIDE OUT - DESKTOP */
.pipeline-step:hover .process-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(calc(100% + 15px)) scale(1);
    pointer-events: auto;
}

/* Mobile/Laptop Accordion Logic */
/* Increased breakpoint to 1600px to prevent horizontal cutoff on extensive range of devices */
@media (max-width: 1600px) {
    .pipeline-step {
        display: flex;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .pipeline-step:hover {
        transform: none !important;
    }

    .process-card {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        top: auto !important;
        right: auto !important;
        left: 0 !important;
        transform: none !important;
        margin-top: 16px !important;
        display: none;
        z-index: 100 !important;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 0, 0, 0.5);
    }

    .pipeline-step:hover .process-card {
        display: block !important;
        transform: none !important;
        animation: slideDown 0.3s ease-out;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 3. ATMOSPHERIC GLOWS --- */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    /* Subtle */
    z-index: -1;
    pointer-events: none;
}

/* Purple Haze Top Left */
body::before {
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, #7B2CBF, transparent 70%);
}

/* Teal Mist Bottom Right */
body::after {
    bottom: -20%;
    right: -20%;
    background: radial-gradient(circle, #00B4D8, transparent 70%);
}

/* Micro-Flow Styles inside Cards */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.flow-diagram .node {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flow-diagram .node.active {
    border-color: #10B981;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.process-stat {
    margin-top: 12px;
    font-size: 0.75rem;
    color: #10B981;
    text-align: right;
    font-family: monospace;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

/* Chat Sim */
.chat-sim {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    max-width: 80%;
}

.bubble.bot {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.bubble.user {
    background: var(--accent-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Match UI */
.match-ui {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.match-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: white;
}

.badge {
    background: #10B981;
    color: black;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
}

/* Checklist Sim */
.checklist-sim .item {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist-sim .item::before {
    content: '○';
    color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.checklist-sim .item.checked::before {
    content: '✓';
    color: #10B981;
}

/* Success Banner */
.success-banner {
    text-align: center;
    padding: 10px 0;
    border: 1px dashed #10B981;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.05);
}

.success-banner span {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

/* Mobile Fallback */
@media (max-width: 900px) {
    .process-card {
        display: none !important;
    }

    .step-content h3::after {
        content: '';
    }
}