/* ==========================================================================
   DevCod Teaser Landing Page - CSS Core Design System & Styling
   ========================================================================== */

/* --- Custom Theme Settings --- */
/* --- Default Light Mode --- */
:root {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(168, 85, 247, 0.12);
    --border-glow: rgba(168, 85, 247, 0.25);
    --grid-color: rgba(168, 85, 247, 0.04);
    --ambient-glow: rgba(168, 85, 247, 0.04);
    
    /* Minor transparent surfaces and subtle boundaries */
    --panel-bg-subtle: rgba(15, 23, 42, 0.03);
    --border-subtle: rgba(15, 23, 42, 0.06);

    /* Inputs adaptive states */
    --input-bg: rgba(15, 23, 42, 0.03);
    --input-border: rgba(15, 23, 42, 0.12);

    /* Buttons adaptive states */
    --btn-secondary-bg: rgba(15, 23, 42, 0.03);
    --btn-secondary-border: rgba(15, 23, 42, 0.15);
    --btn-secondary-hover-bg: rgba(15, 23, 42, 0.06);
    --btn-secondary-hover-border: rgba(15, 23, 42, 0.35);

    /* Neon Colors (adapted for light mode legibility) */
    --purple-neon: #a855f7;
    --purple-light: #7c3aed;
    --cyan-neon: #6366f1;
    --cyan-light: #4f46e5;
    --teal-neon: #0f766e;
    --teal-light: #0d9488;
    --green-neon: #047857;
    --green-light: #059669;
    
    /* Neutral Text */
    --text-primary: #0f172a;
    --text-muted: #334155;
    --text-dark: #94a3b8;

    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Coordinates */
    --mouse-x: 50%;
    --mouse-y: 50%;

    /* Soft layered shadows */
    --shadow-soft: 
        0 4px 6px -1px rgba(15, 23, 42, 0.03),
        0 10px 20px -3px rgba(15, 23, 42, 0.05),
        0 20px 30px -5px rgba(15, 23, 42, 0.08),
        0 30px 40px -10px rgba(15, 23, 42, 0.1);
    --shadow-button: 0 4px 14px rgba(168, 85, 247, 0.15);
    --shadow-button-hover: 0 6px 20px rgba(168, 85, 247, 0.25);
}

/* --- Dark Mode Override --- */
html[data-theme="dark"] {
    --bg-color: #040406;
    --card-bg: rgba(12, 11, 20, 0.65);
    --border-color: rgba(168, 85, 247, 0.15);
    --border-glow: rgba(168, 85, 247, 0.35);
    --grid-color: rgba(168, 85, 247, 0.025);
    --ambient-glow: rgba(168, 85, 247, 0.08);
    
    /* Minor transparent surfaces and subtle boundaries */
    --panel-bg-subtle: rgba(255, 255, 255, 0.03);
    --border-subtle: rgba(255, 255, 255, 0.06);

    /* Inputs adaptive states */
    --input-bg: rgba(255, 255, 255, 0.02);
    --input-border: rgba(255, 255, 255, 0.08);

    /* Buttons adaptive states */
    --btn-secondary-bg: rgba(255, 255, 255, 0.03);
    --btn-secondary-border: rgba(255, 255, 255, 0.15);
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.06);
    --btn-secondary-hover-border: rgba(255, 255, 255, 0.35);

    /* Neon Colors (original dark mode values) */
    --purple-neon: #a855f7;
    --purple-light: #c084fc;
    --cyan-neon: #8b5cf6;
    --cyan-light: #a78bfa;
    --teal-neon: #14b8a6;
    --teal-light: #2dd4bf;
    --green-neon: #10b981;
    --green-light: #34d399;
    
    /* Neutral Text */
    --text-primary: #f3f4f6;
    --text-muted: #a1a1aa;
    --text-dark: #52525b;

    /* Soft dark shadows */
    --shadow-soft: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.35),
        0 30px 60px rgba(0, 0, 0, 0.5);
    --shadow-button: 0 4px 20px rgba(168, 85, 247, 0.25);
    --shadow-button-hover: 0 6px 25px rgba(168, 85, 247, 0.45);
}

/* --- Base Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Background Grid & Light Aura --- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.interactive-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle, 
        var(--ambient-glow) 0%, 
        transparent 70%
    );
    border-radius: 50%;
    transform: translate3d(50vw, 50vh, 0) translate(-50%, -50%);
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--ambient-glow) 0%, transparent 85%);
    z-index: 0;
    pointer-events: none;
    animation: ambientPulse 12s ease-in-out infinite alternate;
}

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

/* --- Layout Wrapper --- */
.main-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Header / Navigation --- */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 60px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: scale(1.02);
}

.logo-box .devcod-icon {
    width: 32px;
    height: 32px;
    fill: var(--purple-light);
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
    transition: fill 0.3s ease;
}

.logo-box:hover .devcod-icon {
    fill: var(--cyan-light);
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.7));
}

.logo-box .devcod-logo-name {
    width: 100px;
    height: auto;
    fill: var(--text-primary);
    transition: fill 0.3s ease;
}

.logo-box:hover .devcod-logo-name {
    fill: var(--cyan-light);
}

.nav-cta-btn {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cyan-light);
    border: 1px solid rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-cta-btn:hover {
    background: var(--cyan-neon);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    border-color: var(--cyan-light);
    transform: translateY(-1px);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    max-width: 780px;
}

.tech-badge-container {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--purple-light);
    padding: 6px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.05);
}

.pulse-icon-dot {
    width: 6px;
    height: 6px;
    background-color: var(--purple-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--purple-light);
    animation: blink 1.5s infinite ease-in-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.text-glow-gradient {
    background: linear-gradient(90deg, var(--purple-light) 0%, var(--cyan-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px rgba(168, 85, 247, 0.15);
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 640px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Standard Buttons styling - Parallelogram Tech Style */
.btn {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 14px 30px;
    border-radius: 0; /* Sharp straight corners */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    transform: skewX(-15deg); /* Cyberpunk slant skew */
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, var(--purple-neon) 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    transform: translateY(-2px) skewX(-15deg); /* Preserve slant on hover */
    box-shadow: var(--shadow-button-hover);
}

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

.btn-secondary:hover {
    background: var(--btn-secondary-hover-bg);
    border-color: var(--btn-secondary-hover-border);
    transform: translateY(-2px) skewX(-15deg); /* Preserve slant on hover */
}

/* Invert skew for text/contents inside button so text remains straight and legible */
.btn .btn-text, .submit-btn .btn-text {
    display: inline-block;
    transform: skewX(15deg);
}

/* --- Section Headings --- */
.section-tag-heading {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--cyan-light);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-sub-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -0.3px;
}

/* --- Container Scroll Viewport (3D Mockup) --- */
.scroll-container-wrapper {
    perspective: 1500px;
    width: 100%;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mockup-3d-tilt {
    width: 100%;
    max-width: 720px;
    background: #060509 !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
    border-radius: 16px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.9) !important,
        0 0 45px rgba(168, 85, 247, 0.1) !important;
    /* 3D Angled initialization */
    transform: rotateX(20deg) scale(0.9);
    transform-origin: top center;
    transition: transform 0.15s cubic-bezier(0.1, 0.8, 0.2, 1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Keep light-on-dark contrast inside mockup since mockups have dark screenshots */
    --mockup-text-primary: #f3f4f6;
    --mockup-text-muted: #a1a1aa;
    --mockup-purple: #c084fc;
}

/* Browser Window Header Mockup */
.mockup-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

.window-dots {
    display: flex;
    gap: 6px;
}

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

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.mockup-address-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--mockup-text-muted);
    padding: 4px 30px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Viewport Slider */
.mockup-viewport {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.slider-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--purple-light), var(--cyan-light));
    z-index: 100;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.mockup-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.97) translateY(8px);
    z-index: 1;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s ease;
    display: flex;
    flex-direction: column;
}

.mockup-slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2;
    visibility: visible;
}

.slide-caption {
    display: none !important;
}

.caption-tag {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--mockup-purple);
    letter-spacing: 1px;
}

.caption-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--mockup-text-primary);
}

/* Mockup Interface Simulation Designs */
.slide-preview-mockup {
    flex-grow: 1;
    width: 100%;
    background-color: #060509;
    display: flex;
    padding: 0 !important;
    gap: 12px;
    position: relative;
}

.mock-sidebar {
    width: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    flex-shrink: 0;
}

.mock-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.mock-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.w-1\/3 { width: 33%; }
.w-16 { width: 64px; }
.w-2\/3 { width: 66%; }
.w-1\/2 { width: 50%; }
.w-3\/4 { width: 75%; }
.w-5\/6 { width: 83%; }
.w-full { width: 100%; }

.mock-bar.active-badge {
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid var(--cyan-neon);
}

.mock-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mock-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.card-glow-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.card-glow-indicator.c-purple { background-color: var(--purple-neon); }
.card-glow-indicator.c-cyan { background-color: var(--cyan-neon); }
.card-glow-indicator.c-green { background-color: var(--green-neon); }

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }

.mock-bar.text-line {
    background: rgba(255, 255, 255, 0.02);
}

.mock-chart-panel {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 8px;
    position: relative;
    min-height: 80px;
}

.mock-chart-lines {
    position: absolute;
    inset: 12px;
}

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

/* Slide 2: NexusEditor Preview Mock */
.editor-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.editor-canvas {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.canvas-header {
    width: 60px;
    height: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    margin-bottom: 16px;
}

.canvas-body {
    width: 100%;
    flex-grow: 1;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.canvas-image-block {
    width: 40px;
    height: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-icon {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.center-x { margin-left: auto; margin-right: auto; }

.canvas-btn {
    width: 80px;
    height: 14px;
    background: var(--purple-neon);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
    border-radius: 4px;
    margin: 0 auto;
}

.editor-ai-panel {
    background: rgba(168, 85, 247, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-panel-header {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--purple-light);
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    padding-bottom: 6px;
}

.ai-panel-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.chat-bubble {
    font-size: 0.6rem;
    padding: 6px 8px;
    border-radius: 6px;
    max-width: 90%;
}

.chat-bubble.user {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-end;
}

.chat-bubble.ai {
    background: rgba(168, 85, 247, 0.1);
    align-self: flex-start;
    width: 100%;
}

/* Slide 3: Flow Builder Preview Mock */
.flow-preview {
    justify-content: center;
    align-items: center;
}

.flow-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
}

.flow-node {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.node-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.icon-trigger { background-color: var(--green-neon); box-shadow: 0 0 6px var(--green-neon); }
.icon-agent { background-color: var(--cyan-neon); box-shadow: 0 0 6px var(--cyan-neon); }

.flow-connector {
    width: 1px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.1);
}

.flow-split-row {
    display: flex;
    width: 100%;
    justify-content: space-around;
    position: relative;
}

.flow-split-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.flow-split-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    padding-top: 14px;
}

.flow-split-branch::before {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.1);
}

.flow-node.node-email {
    border-color: rgba(168, 85, 247, 0.25);
    color: var(--purple-light);
}

.flow-node.node-whatsapp {
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--green-light);
}

/* Slide 4: CRM Pipeline Preview Mock */
.crm-pipeline-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.crm-column {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.column-header {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.crm-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.crm-card-title {
    font-size: 0.65rem;
    color: var(--text-primary);
}

.crm-score-badge {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 3px;
}

.crm-score-badge.high-score {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green-light);
}

.crm-score-badge.mid-score {
    background: rgba(245, 158, 11, 0.15);
    color: #fca5a5;
}

/* Bullet navigation inside browser mockup */
.slider-bullets {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.bullet-btn {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

/* Expanded touch target for accessibility */
.bullet-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
}

.bullet-btn.active {
    background-color: var(--cyan-light);
    width: 14px;
    border-radius: 3px;
    box-shadow: 0 0 8px var(--cyan-light);
}

/* --- Autonomous Squad (AI Agents) --- */
.agents-section {
    width: 100%;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .agents-grid {
        grid-template-columns: 1fr;
    }
}

.agent-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    position: relative;
    perspective: 1000px;
    
    /* Default fallback: fully visible if JS fails to run or load */
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    transition: 
        opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), 
        transform 0.9s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Scroll Displacement Reveal Initial State - only active when JS loads successfully */
.js-enabled .agent-card {
    opacity: 0;
    transform: translateY(60px) scale(0.92) rotateX(12deg);
    transform-origin: top center;
    pointer-events: none;
}

.js-enabled .agent-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    pointer-events: auto;
}

/* Staggered delay for cards ONLY when entering viewport */
@media (min-width: 600px) {
    .agent-card.revealed:nth-child(4n+1) { transition-delay: 0s; }
    .agent-card.revealed:nth-child(4n+2) { transition-delay: 0.1s; }
    .agent-card.revealed:nth-child(4n+3) { transition-delay: 0.2s; }
    .agent-card.revealed:nth-child(4n+4) { transition-delay: 0.3s; }
}

.card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Glow aura effect behind the icon */
.card-icon-box::after {
    display: none !important;
}

.card-icon {
    width: 22px;
    height: 22px;
    display: block;
    transition: transform 0.3s ease;
}

/* Color Schemes for Card Types */
.card-purple-glow .card-icon { stroke: var(--purple-light); }
.card-purple-glow .card-icon-box {
    background: rgba(168, 85, 247, 0.04) !important;
    border-color: rgba(168, 85, 247, 0.12) !important;
}

.card-cyan-glow .card-icon { stroke: var(--cyan-light); }
.card-cyan-glow .card-icon-box {
    background: rgba(6, 182, 212, 0.04) !important;
    border-color: rgba(6, 182, 212, 0.12) !important;
}

.card-teal-glow .card-icon { stroke: var(--teal-light); }
.card-teal-glow .card-icon-box {
    background: rgba(20, 184, 166, 0.04) !important;
    border-color: rgba(20, 184, 166, 0.12) !important;
}

.card-green-glow .card-icon { stroke: var(--green-light); }
.card-green-glow .card-icon-box {
    background: rgba(16, 185, 129, 0.04) !important;
    border-color: rgba(16, 185, 129, 0.12) !important;
}

/* Hover effects */
.agent-card:hover .card-icon-box {
    transform: scale(1.05);
}

.agent-card:hover .card-icon-box::after {
    opacity: 0.5;
}

.agent-card:hover .card-icon {
    transform: scale(1.05);
}

.agent-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.agent-role {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 12px;
}

.agent-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Card Glows on Hover */
.agent-card:hover {
    transform: translateY(-4px);
}

.agent-card.card-purple-glow:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: var(--shadow-soft), 0 0 20px rgba(168, 85, 247, 0.08);
}

.agent-card.card-cyan-glow:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: var(--shadow-soft), 0 0 20px rgba(6, 182, 212, 0.08);
}

.agent-card.card-teal-glow:hover {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: var(--shadow-soft), 0 0 20px rgba(20, 184, 166, 0.08);
}

.agent-card.card-green-glow:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: var(--shadow-soft), 0 0 20px rgba(16, 185, 129, 0.08);
}

/* --- Consolidation Stack Table --- */
.consolidation-section {
    width: 100%;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.table-wrapper {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stack-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
    min-width: 550px;
}

.stack-table th {
    background: var(--panel-bg-subtle);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.stack-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    vertical-align: middle;
}

.stack-table tr:last-child td {
    border-bottom: none;
}

.stack-table td.td-feature {
    font-weight: 600;
    color: var(--text-primary);
}

.stack-table td.td-devcod {
    font-weight: 700;
    color: var(--cyan-light);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* --- Interactive Waitlist Form & Terminal --- */
.waitlist-section {
    width: 100%;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.waitlist-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
    width: 100%;
}

.waitlist-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-form-card:hover {
    border-color: var(--border-glow);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.form-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--purple-light);
    text-transform: uppercase;
}

.form-group input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    height: 48px; /* Touch target */
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group input:focus {
    background: rgba(168, 85, 247, 0.03);
    border-color: var(--purple-neon);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.submit-btn {
    width: 100%;
    height: 48px; /* Touch target */
    border-radius: 0; /* Sharp straight corners */
    background: var(--text-primary);
    color: var(--bg-color);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform: skewX(-15deg); /* Cyberpunk slant skew */
    margin-top: 10px;
}

.submit-btn:hover {
    background: var(--cyan-light);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px) skewX(-15deg);
}

/* Spinner Loader */
.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(127, 127, 127, 0.2);
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.hidden {
    display: none !important;
}

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

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
    line-height: 1.5;
}

/* --- Terminal Simulator --- */
.waitlist-section .terminal-widget {
    background: rgba(5, 5, 8, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: 100%;
    min-height: 280px;
}

.waitlist-section .terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.waitlist-section .status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--purple-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--purple-light);
    animation: pulseGlowBlink 1.8s infinite ease-in-out;
}

@keyframes pulseGlowBlink {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); }
}

.waitlist-section .terminal-title {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--purple-light);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.waitlist-section .terminal-body {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
    overflow-y: auto;
}

.waitlist-section .terminal-line {
    opacity: 0.95;
    animation: fadeInLine 0.3s ease forwards;
}

.waitlist-section .terminal-accent {
    color: var(--cyan-light);
}

.waitlist-section .terminal-cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background-color: var(--cyan-light);
    margin-left: 4px;
    vertical-align: middle;
    animation: cursorBlink 0.8s infinite steps(2);
}

/* --- Call To Action / Subtext --- */
.call-to-action {
    margin: 20px 0;
    max-width: 500px;
}

.call-to-action p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- Music Player Widget --- */
.music-player-widget {
    width: 100%;
    max-width: 340px;
    background: rgba(12, 11, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 8px 16px 8px 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.music-player-widget:hover {
    border-color: var(--border-glow);
    box-shadow: 0 5px 25px rgba(168, 85, 247, 0.1);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.visualizer-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5px;
    transition: all 0.3s ease;
}

.eq-bar {
    width: 2px;
    height: 12px;
    background-color: var(--text-dark);
    border-radius: 1px;
    transform-origin: bottom;
    transition: height 0.3s ease, background-color 0.3s ease;
}

.music-player-widget.playing .eq-bar {
    background-color: var(--cyan-neon);
    animation: bounceEq 1.2s ease-in-out infinite alternate;
}

.music-player-widget.playing .eq-bar:nth-child(1) { animation-delay: 0.1s; }
.music-player-widget.playing .eq-bar:nth-child(2) { animation-delay: 0.4s; }
.music-player-widget.playing .eq-bar:nth-child(3) { animation-delay: 0.25s; }

@keyframes bounceEq {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1.1); }
}

.play-pause-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.play-pause-btn:hover {
    transform: scale(1.08);
    background-color: var(--cyan-light);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.control-icon {
    width: 16px;
    height: 16px;
}

.track-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.station-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-status {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.music-player-widget.playing .track-status {
    color: var(--cyan-neon);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-icon {
    width: 14px;
    height: 14px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.music-player-widget:hover .volume-icon {
    color: var(--text-muted);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 45px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: width 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--cyan-neon);
}

.music-player-widget:hover .volume-slider {
    width: 60px;
}

/* --- Footer Badge --- */
.footer-badge {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: center;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-social-links a {
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    padding: 8px;
    border-radius: 50%;
    background: transparent;
}

.footer-social-links a:hover {
    color: var(--cyan-light);
    transform: translateY(-3px) scale(1.1);
    background: rgba(45, 212, 191, 0.1);
    filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.4));
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: stroke 0.3s ease;
}

.footer-badge span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* --- STRICT RESPONSIVENESS AND MOBILE FIXES --- */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 0 16px;
    }
    
    .navbar {
        margin-bottom: 40px;
    }

    .hero-section {
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    /* Soften 3D perspective scroll on mobile */
    .mockup-3d-tilt {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        border-radius: 12px;
    }

    .mockup-viewport {
        height: 280px; /* Shorter viewport for mobile screen constraint */
        overflow: hidden;
    }

    .slide-caption {
        padding: 12px 14px;
    }

    .caption-title {
        font-size: 0.8rem;
    }

    .slide-preview-mockup {
        padding: 8px;
        gap: 8px;
    }

    .mock-sidebar {
        width: 32px;
    }

    .mock-grid-cards {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .mock-card {
        padding: 8px;
    }

    .editor-layout {
        grid-template-columns: 1fr; /* Stack editor columns */
    }

    .editor-ai-panel {
        display: none; /* Hide AI side panel on mobile preview for layout space */
    }

    .crm-pipeline-cols {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .crm-column {
        padding: 6px;
        gap: 6px;
    }

    .crm-card {
        padding: 6px 4px;
    }

    .crm-card-title {
        font-size: 0.65rem;
    }

    /* Grid stacks on mobile */
    .agents-grid {
        gap: 16px;
    }

    .agent-card {
        padding: 20px;
    }

    .waitlist-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .waitlist-form-card {
        padding: 20px 16px;
    }

    .waitlist-section .terminal-widget {
        min-height: 240px;
        padding: 16px;
    }

    /* Table Responsive Card Transformation into Carousel */
    .table-wrapper {
        border: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: visible; /* Show overlapping card previews on the sides */
    }

    .stack-table {
        display: block;
        min-width: 0 !important;
        width: 100%;
    }

    .stack-table thead {
        display: none;
    }

    .stack-table tbody {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px;
        padding: 10px 4px 24px 4px !important;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 0 10px;
    }

    /* Custom scrollbar to look like a premium progress indicator */
    .stack-table tbody::-webkit-scrollbar {
        height: 4px;
    }
    .stack-table tbody::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 2px;
    }
    .stack-table tbody::-webkit-scrollbar-thumb {
        background: var(--purple-light);
        border-radius: 2px;
        box-shadow: 0 0 8px var(--purple-light);
    }

    .stack-table tr {
        display: block !important;
        flex: 0 0 85% !important; /* 85% width so next card peeks from the right */
        scroll-snap-align: center !important;
        margin-bottom: 0 !important;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        background: var(--card-bg);
        padding: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        box-sizing: border-box;
    }

    .stack-table td {
        display: block;
        padding: 8px 0;
        border-bottom: none !important;
        font-size: 0.88rem;
        text-align: left;
        white-space: normal;
    }

    .stack-table td.td-feature {
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-subtle) !important;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .stack-table td:nth-child(2)::before {
        content: "Antes (Ferramentas Separadas): ";
        display: block;
        font-size: 0.68rem;
        color: #ef4444;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    .stack-table td.td-devcod::before {
        content: "Depois (Com a DevCod): ";
        display: block;
        font-size: 0.68rem;
        color: var(--cyan-light);
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .table-wrapper {
        border-radius: 8px;
    }
    
    .stack-table th, .stack-table td {
        padding: 12px;
        font-size: 0.78rem;
    }

    .volume-container {
        display: none !important; /* Hide volume bar on small screens to avoid UI compression */
    }
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #060509;
    display: block;
}

/* Cyberpunk Digital Screen Glitch Animation */
@keyframes card-glitch {
    0% {
        transform: translate(2px, 1px) skewX(-15deg);
        filter: hue-rotate(20deg) contrast(1.1);
    }
    20% {
        transform: translate(-1px, -2px) skewX(-14deg) scale(0.98);
        filter: brightness(1.2) saturate(1.2);
    }
    40% {
        transform: translate(-3px, 1px) skewX(-16deg) scale(1.01);
        filter: hue-rotate(-20deg) contrast(1.3);
    }
    60% {
        transform: translate(2px, -1px) skewX(-13deg);
        filter: invert(0.05);
    }
    80% {
        transform: translate(-2px, 2px) skewX(-15deg) scale(0.99);
        opacity: 0.95;
    }
    100% {
        transform: translate(0, 0) skewX(-15deg);
        filter: none;
    }
}

.glitch-active {
    animation: card-glitch 0.3s steps(2) both;
    position: relative;
    border-color: var(--purple-light) !important;
    box-shadow: 0 0 30px rgba(192, 132, 252, 0.4) !important;
}

.glitch-active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(168, 85, 247, 0.08);
    pointer-events: none;
    z-index: 10;
}

/* --- How It Works Section --- */
.how-it-works-section {
    width: 100%;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 20px;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.step-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.08);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-light), var(--cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- FAQ Section --- */
.faq-section {
    width: 100%;
    padding: 60px 0 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-accordion {
    width: 100%;
    max-width: 720px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color 0.3s ease;
}

/* Fix mobile click targets */
.faq-question span {
    pointer-events: none;
}

.faq-icon {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--purple-light);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
}

.faq-answer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-bottom: 18px;
}

/* Active FAQ Item styles */
.faq-item.active {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-soft);
}

.faq-item.active .faq-question {
    color: var(--purple-light);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--cyan-light);
}

/* Mobile responsive modifications */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .step-card {
        padding: 24px 20px;
    }

    .faq-section {
        padding: 40px 0;
    }

    .faq-accordion {
        gap: 8px;
    }

    .faq-question {
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .faq-answer {
        padding: 0 16px;
    }

    .faq-answer p {
        font-size: 0.8rem;
        padding-bottom: 14px;
    }
}

/* --- Thank You Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 3, 8, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0c0b10 !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    border-radius: 20px;
    padding: 40px 30px;
    width: 90%;
    max-width: 460px;
    text-align: center;
    position: relative;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.9),
        0 0 35px rgba(168, 85, 247, 0.12);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #a1a1aa !important;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: #c084fc !important;
}

.modal-logo-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    background: transparent !important;
    border: none !important;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.4));
}

.modal-logo {
    width: 48px;
    height: 48px;
}

.devcod-icon-animate {
    animation: logoPulseFloat 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes logoPulseFloat {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
    }
    50% {
        transform: translateY(-8px) scale(1.05);
        filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.7));
    }
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
    }
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #c084fc, #a78bfa) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.modal-message {
    font-size: 0.9rem;
    color: #a1a1aa !important;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-timer-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.modal-timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #c084fc, #a78bfa) !important;
    transform-origin: left center;
    transition: transform 30s linear;
}

.modal-timer-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4) !important;
}

#modal-countdown {
    color: #a78bfa !important;
    font-weight: 700;
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.theme-toggle-btn:hover {
    border-color: var(--purple-neon);
    background: rgba(168, 85, 247, 0.06);
    transform: scale(1.08);
    color: var(--purple-light);
}

.theme-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    position: absolute;
}

/* Micro-interaction transition for Sun/Moon icons */
html[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}
html:not([data-theme="dark"]) .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
html[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
html:not([data-theme="dark"]) .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* --- Funnel Section --- */
.funnel-section {
    width: 100%;
    margin-top: 100px;
    margin-bottom: 80px;
    text-align: center;
}

.funnel-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-top: 48px;
    width: 100%;
}

.funnel-step {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.funnel-step:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.08);
    transform: translateY(-4px);
}

.funnel-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--purple-light);
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 18px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.funnel-step:nth-child(3) .funnel-badge {
    color: var(--cyan-light);
    background: transparent !important;
    border: none !important;
}

.funnel-step:nth-child(5) .funnel-badge {
    color: var(--teal-light);
    background: transparent !important;
    border: none !important;
}

.funnel-step:nth-child(7) .funnel-badge {
    color: var(--green-light);
    background: transparent !important;
    border: none !important;
}

.funnel-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.funnel-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@keyframes arrowSlide {
    0% {
        transform: translateX(0);
        opacity: 0.45;
    }
    50% {
        transform: translateX(8px);
        opacity: 1;
        color: var(--purple-light);
    }
    100% {
        transform: translateX(0);
        opacity: 0.45;
    }
}

.funnel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--cyan-light);
    height: 140px;
    opacity: 0.6;
    animation: arrowSlide 2s infinite ease-in-out;
}

/* --- AI Agents Showcase Section --- */
.agents-showcase-section {
    width: 100%;
    margin-bottom: 100px;
    text-align: center;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
    width: 100%;
}

.showcase-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    transition: all 0.3s ease;
}

.showcase-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

html[data-theme="dark"] .showcase-card:hover {
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.05);
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.showcase-status-dot {
    width: 8px;
    height: 8px;
    background: var(--green-neon);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--green-light);
    animation: statusPulse 2s infinite alternate;
}

@keyframes statusPulse {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

.showcase-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.showcase-role {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 12px;
}

.showcase-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Card padding mobile overrides --- */
@media (max-width: 768px) {
    .funnel-step {
        padding: 24px 20px;
    }
    .showcase-card {
        padding: 20px;
    }
    .scroll-container-wrapper,
    .agents-section,
    .consolidation-section,
    .how-it-works-section,
    .waitlist-section {
        padding: 40px 0;
    }
    .funnel-section {
        margin-top: 60px;
        margin-bottom: 40px;
    }
    .agents-showcase-section {
        margin-bottom: 60px;
    }
}

/* --- Responsiveness for new sections --- */
@media (max-width: 1024px) {
    .funnel-container {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    .funnel-arrow {
        display: none;
    }
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .mockup-3d-tilt {
        max-width: 960px !important;
    }
    .mockup-viewport {
        height: 520px !important;
    }
}
