/* Global Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #FF3B30 0%, #FF9500 100%);
    --bg-dark: #0A0A0A;
    --bg-dark-soft: #141414;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Typography */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.brand-logo {
    filter: drop-shadow(0 0 10px rgba(255, 59, 48, 0.3));
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 59, 48, 0.3);
}

.btn-glow {
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 80px;
    /* Offset fixed navbar */
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Cards */
.bg-dark-soft {
    background-color: var(--bg-dark-soft);
}

.feature-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 59, 48, 0.3) !important;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        opacity: 0.1;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }

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

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

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

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

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse-glow 4s ease-in-out infinite;
}

/* SVG Specific Animations */
.hero-illustration .content-pop-1 {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.2s;
    transform-origin: center;
    opacity: 0;
}

.hero-illustration .content-pop-2 {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.4s;
    transform-origin: center;
    opacity: 0;
}

.hero-illustration .float-icon-1 {
    animation: float 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.hero-illustration .float-icon-2 {
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-illustration .float-icon-3 {
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 0.2s;
}

/* Utility */
.lh-1 {
    line-height: 1.1;
}

/* Demo Modal Styles */
.cursor-pointer {
    cursor: pointer;
}

.transition-width {
    transition: width 0.5s ease;
}

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.fade-step {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
    display: none;
}

.fade-step.active {
    opacity: 1;
    transform: translateX(0);
    display: block !important;
    /* Force block when active */
}

/* Upload Zone */
.upload-zone {
    border-style: dashed !important;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #FF3B30 !important;
    background: rgba(255, 59, 48, 0.05);
}

/* AI Loader */
.ai-loader {
    animation: pulse-glow 2s infinite;
}

/* Custom Scrollbar for modal content */
.overflow-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-auto::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.overflow-auto::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* AI Ad Integration Styles */
.preview-container {
    perspective: 1000px;
    /* Essential for 3D effect */
}

.ad-embedded-overlay {
    position: absolute;
    /* Default positioning - overridden by JS for specific scenes */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

/* Specific Scene: Open Landscape (For the demo girl image) */
.scene-landscape .ad-embedded-overlay {
    top: 30%;
    left: 75%;
    /* Positioned to the right */
    width: 140px;
    height: 90px;

    /* The Magic: 3D Transform to look like a billboard angled in the field */
    transform: rotateY(-25deg) rotateX(5deg) scale(0);
    transform-origin: center bottom;

    background: #FF0000;
    /* Fallback */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(200, 200, 200, 0.9));
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-landscape .ad-embedded-overlay.visible {
    opacity: 1;
    transform: rotateY(-25deg) rotateX(5deg) scale(1);
}

/* Add a 'pole' for the billboard using pseudo-element */
.scene-landscape .ad-embedded-overlay::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    width: 8px;
    height: 60px;
    background: #333;
    transform: translateX(-50%);
    z-index: -1;
}

.ad-content-box {
    text-align: center;
    color: #e63946;
    font-family: sans-serif;
    font-weight: 900;
}

.ad-brand {
    font-size: 1.5rem;
    letter-spacing: 2px;
    border-bottom: 2px solid #e63946;
    margin-bottom: 2px;
}

.ad-tagline {
    font-size: 0.5rem;
    text-transform: uppercase;
    color: #333;
}

/* AI Scan Effect */
.ai-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #00FF88;
    box-shadow: 0 0 15px #00FF88;
    animation: scanDown 1.5s linear infinite;
    opacity: 0.8;
    z-index: 10;
}

@keyframes scanDown {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Confetti Particle - JS Driven */
.confetti {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    border-radius: 2px;
}

/* Dashboard Mockup */
.dashboard-mockup {
    min-height: 400px;
}

.smaller {
    font-size: 0.75rem;
}

.hover-bg-dark:hover {
    background-color: rgba(255, 255, 255, 0.03);
    cursor: default;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Custom Accordion */
.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--text-primary);
    background-color: transparent;
}

.custom-accordion .accordion-button::after {
    filter: invert(1);
}

.custom-accordion .accordion-item {
    transition: all 0.3s ease;
}

.custom-accordion .accordion-item:hover {
    border-color: rgba(255, 59, 48, 0.2) !important;
}

/* Sticky Beta Badge (Suggested Enhancement) */
.beta-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.3);
    animation: float 3s ease-in-out infinite;
    text-decoration: none;
}

.beta-badge:hover {
    color: white;
    transform: scale(1.05) translateY(-5px);
}