/* --- 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;
    }

    /* Staggered Carousel mobile adjustments */
    .agents-grid {
        height: 360px;
        margin: 0 auto;
    }

    .agent-card {
        width: 280px;
        height: 320px;
        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: hidden !important; /* Clip scrolling cards exactly at the viewport edges */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        margin-left: -24px !important;
        margin-right: -24px !important;
        width: calc(100% + 48px) !important;
        max-width: none !important;
    }

    .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: 20px 0 30px 0 !important;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 0 24px;
    }

    /* 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 86% !important; /* Back to peeking cards so they overflow cleanly to the edge of the screen! */
        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 tr:first-child {
        margin-left: 24px !important;
    }

    .stack-table tr:last-child {
        margin-right: 24px !important;
    }

    .stack-table tr.tr-highlight {
        border: 2px solid var(--purple-neon) !important;
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.25) !important;
        background: rgba(168, 85, 247, 0.08) !important;
    }

    .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: var(--modal-bg) !important;
    border: 1px solid var(--modal-border) !important;
    border-radius: 24px;
    width: 95%;
    max-width: 440px;
    position: relative;
    box-shadow: 
        0 25px 60px rgba(15, 23, 42, 0.15),
        0 0 35px var(--ambient-glow);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
    overflow: hidden; /* Clips the banner image */
    text-align: center;
}

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

/* Modal Cover Banner */
.modal-cover-box {
    width: 100%;
    height: 160px;
    position: relative;
    background: linear-gradient(135deg, var(--purple-light), var(--cyan-light));
    overflow: hidden;
}

.modal-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-body-content {
    padding: 30px 26px 36px 26px;
}

/* Specific Modal Elements Override using Theme Variables */
.modal-content .modal-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--modal-title-grad) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
    letter-spacing: 0.5px;
}

.modal-content .modal-message {
    font-size: 0.92rem;
    color: var(--modal-text) !important;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Opcional • 10s Time Badge */
.modal-content .modal-time-badge {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--modal-text);
    opacity: 0.75;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Modal Form Groups Labels & Selects */
.modal-content .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    text-align: left;
}

.modal-content .form-group label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--modal-label) !important;
    text-transform: uppercase;
}

.modal-content .form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    cursor: pointer;
    background-color: var(--modal-select-bg) !important;
    border: 1px solid var(--modal-select-border) !important;
    border-radius: 10px;
    padding: 0 14px;
    color: var(--modal-select-text) !important;
    font-size: 0.9rem;
    height: 48px;
    outline: none;
    width: 100%;
    transition: all 0.3s ease;
}

.modal-content .form-group select:focus {
    border-color: var(--modal-select-focus-border) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
    background-color: var(--modal-select-focus-bg) !important;
}

.modal-content .form-group select option {
    background-color: var(--modal-select-bg) !important;
    color: var(--modal-select-text) !important;
}

.modal-content .form-group input[type="text"] {
    background-color: var(--modal-select-bg) !important;
    border: 1px solid var(--modal-select-border) !important;
    border-radius: 10px;
    padding: 0 14px;
    color: var(--modal-select-text) !important;
    font-size: 0.9rem;
    height: 48px;
    outline: none;
    width: 100%;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal-content .form-group input[type="text"]:focus {
    border-color: var(--modal-select-focus-border) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
    background-color: var(--modal-select-focus-bg) !important;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(15, 23, 42, 0.75);
    transform: scale(1.05);
}

.modal-content .btn-skip {
    display: block;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--modal-skip) !important;
    text-decoration: none;
    margin-top: 16px;
    transition: color 0.3s ease;
}

.modal-content .btn-skip:hover {
    color: var(--modal-skip-hover) !important;
}

/* Success Step Timer text */
.modal-content .modal-timer-text {
    font-size: 0.8rem;
    color: var(--modal-text) !important;
    font-family: var(--font-mono);
    display: block;
    margin-top: 8px;
}

.modal-content .modal-timer-bar-container {
    width: 100%;
    height: 6px;
    background: var(--modal-progress-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    margin-top: 20px;
}

.modal-content .modal-timer-bar {
    height: 100%;
    width: 100%;
    background: var(--modal-progress-bar) !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: none !important;
    border-radius: 0 !important;
    padding: 30px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    position: relative;
    clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
    transition: clip-path 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, transform 0.3s ease;
}

.funnel-step::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--border-color), rgba(168, 85, 247, 0.2));
    clip-path: polygon(
        18px 0, 100% 0, 100% 100%, 0 100%, 0 18px,
        18px 0,
        18.4px 1px, 1px 18.4px, 1px calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) 1px, 18.4px 1px
    );
    pointer-events: none;
    z-index: 5;
    transition: background 0.3s ease, clip-path 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.funnel-step:hover {
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.08);
    transform: translateY(-4px);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.funnel-step:hover::before {
    background: linear-gradient(135deg, var(--purple-neon), var(--cyan-light));
    clip-path: polygon(
        0 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px),
        0 0,
        1px 1px, 1px calc(100% - 18.4px), 18.4px calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) 1px, 1px 1px
    );
}

.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;
    position: relative;
    z-index: 10;
}

.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;
    position: relative;
    z-index: 10;
}

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

@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;
    height: 140px;
    width: 32px;
    opacity: 0.6;
    animation: arrowSlide 2.5s infinite ease-in-out;
}

.funnel-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--purple-light);
    filter: drop-shadow(0 0 4px var(--purple-light));
    transition: all 0.3s ease;
}

.funnel-arrow:hover svg {
    stroke: var(--purple-neon);
    filter: drop-shadow(0 0 8px var(--purple-neon));
    transform: scale(1.1);
}

/* --- 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: none !important;
    border-radius: 0 !important;
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    transition: clip-path 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, transform 0.3s ease;
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--border-color), rgba(168, 85, 247, 0.2));
    clip-path: polygon(
        0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%,
        0 0,
        1px 1px, 1px calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 18.4px), calc(100% - 18.4px) calc(100% - 1px), 1px calc(100% - 1px), 1px 1px
    );
    pointer-events: none;
    z-index: 5;
    transition: background 0.3s ease, clip-path 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.showcase-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

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

.showcase-card:hover::before {
    background: linear-gradient(135deg, var(--purple-neon), var(--cyan-light));
    clip-path: polygon(
        0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%,
        0 0,
        1px 1px, 1px calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) 18.4px, calc(100% - 18.4px) 1px, 1px 1px
    );
}

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

.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;
    position: relative;
    z-index: 10;
}

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

/* --- 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;
    }
}

/* --- Image Lightbox Modal --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 3, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Must be above the header and thank you modal */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-container {
    transform: scale(1);
}

.lightbox-container img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.15);
    display: block;
}

.lightbox-caption-text {
    margin-top: 16px;
    color: #f3f4f6;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 4px; /* Adjust vertical alignment of close cross */
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--purple-light);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    transform: scale(1.05);
}

/* Add zoom indicator pointer to gallery images */
.gallery-image {
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.gallery-image:hover {
    transform: scale(1.015);
}
