/* --- Hero Section & Ambient Background --- */
.hero-wrapper {
    position: relative;
    padding: 150px 0 100px; /* Increased top padding to account for navbar */
    margin-top: -100px; /* Pull up behind navbar for infinity effect */
    overflow: hidden;
    background: var(--bg-light);
    transition: background 0.5s ease;
    min-height: 100vh;
}

[data-theme="dark"] .hero-wrapper {
    background: #0a0518;
}

/* Ambient Background Orbs */
.ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    filter: blur(120px);
    opacity: 0.4;
    border-radius: 50%;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-violet), transparent);
    top: -100px; /* Better visibility at top */
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Layout */
.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

/* Hero Text */
.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(109, 40, 217, 0.1);
    border: 1px solid rgba(109, 40, 217, 0.2);
    border-radius: 100px;
    color: var(--primary-violet);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title-premium {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary-light);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

[data-theme="dark"] .hero-title-premium {
    color: var(--text-primary-dark);
}

.hero-title-premium span {
    background: linear-gradient(135deg, var(--primary-violet), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

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

/* AI Preview Module */
.ai-preview-module {
    position: relative;
}

.glass-card-ai {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .glass-card-ai {
    background: rgba(15, 10, 30, 0.6);
    border-color: rgba(109, 40, 217, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Metric Cards in Dark Mode */
[data-theme="dark"] .ai-preview-module .glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .ai-preview-module .glass-card div[style*="opacity: 0.6"] {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero-ai-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    align-self: stretch !important;
    margin-bottom: 20px;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-violet);
    white-space: nowrap;
}

.live-preview-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
    background: rgba(109, 40, 217, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-primary-light);
}

[data-theme="dark"] .live-preview-tag {
    color: var(--text-primary-dark);
    background: rgba(255, 255, 255, 0.05);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-violet);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Skeleton Loader */
.skeleton-box {
    background: linear-gradient(90deg, rgba(109, 40, 217, 0.05) 25%, rgba(109, 40, 217, 0.1) 50%, rgba(109, 40, 217, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 12px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem !important;
        letter-spacing: -1px;
        line-height: 1.2;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        align-items: stretch;
    }
    .hero-btn, .hero-btn-secondary {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }
    .hero-actions {
        width: 100%;
    }
}

/* Demo Content States */
.demo-content-step {
    display: none;
}

.demo-content-step.active {
    display: block;
    animation: fadeInSlide 0.5s forwards;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AI Suggestion Card */
.suggestion-card {
    background: rgba(109, 40, 217, 0.05);
    border: 1px solid rgba(109, 40, 217, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 10px;
}

.suggestion-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-violet);
    margin-bottom: 12px;
    font-weight: 700;
}

.suggestion-text {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Button Refinement */
.hero-btn, .hero-btn-secondary {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 200px;
    cursor: pointer;
    border: none;
}

.hero-btn {
    background: var(--primary-violet);
    color: white;
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.2);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(109, 40, 217, 0.4);
    filter: brightness(1.1);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--nav-border-light);
    color: var(--text-primary-light);
}

[data-theme="dark"] .hero-btn-secondary {
    border-color: var(--nav-border-dark);
    color: var(--text-primary-dark);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-violet);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hero-btn, .hero-btn-secondary {
        width: 100%;
        max-width: 320px;
    }
    .hero-wrapper {
        padding: 140px 0 60px;
    }
}

.metric-label {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-bottom: 4px;
}

[data-theme="dark"] .metric-label {
    opacity: 0.8;
    color: var(--text-primary-dark);
}

.hero-location {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-location span {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

[data-theme="dark"] .hero-location {
    color: rgba(255, 255, 255, 0.6);
}
