/* ========================================
   WILDWOOD LANDING PAGE - THEME AWARE
   Adapts to light and dark themes
   ======================================== */

/* ========================================
   CSS VARIABLES & BASE STYLES
   Uses theme variables from wildwood-themes.css
   ======================================== */

.landing-page {
    /* Use theme system variables with fallbacks for dark theme */
    --landing-bg-primary: var(--ww-content-bg, #FFFFFF);
    --landing-bg-secondary: var(--ww-card-footer-bg, #F5F5F5);
    --landing-bg-card: var(--ww-content-bg, #FFFFFF);
    --landing-bg-card-hover: var(--ww-card-footer-bg, #F0F0F0);
    --landing-border: var(--bs-border-color, rgba(0, 0, 0, 0.1));
    --landing-border-accent: var(--ww-border-accent, rgba(59, 126, 161, 0.3));

    /* Text colors from theme */
    --landing-text-primary: var(--ww-text-dark, #333333);
    --landing-text-secondary: var(--ww-text-dark, #555555);
    --landing-text-muted: var(--ww-secondary, #666666);

    /* Accent colors from theme */
    --landing-accent: var(--ww-primary, #3B7EA1);
    --landing-accent-light: var(--ww-primary-light, #5A9BBF);
    --landing-accent-dark: var(--ww-primary-dark, #2C5F7A);
    --landing-accent-glow: var(--ww-focus-shadow, rgba(59, 126, 161, 0.15));

    /* Secondary accents */
    --landing-purple: var(--ww-info, #6366f1);
    --landing-blue: var(--ww-info, #3b82f6);
    --landing-orange: var(--ww-warning, #f59e0b);
    --landing-rose: var(--ww-danger, #f43f5e);

    /* Shadows - lighter for light themes */
    --landing-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --landing-shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
    --landing-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --landing-shadow-glow: var(--ww-shadow-button, 0 0 40px rgba(59, 126, 161, 0.15));

    color: var(--landing-text-primary);
    background: var(--landing-bg-primary);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   MIDNIGHT DARK THEME OVERRIDES
   Dark colors only for midnight-dark theme
   ======================================== */
[data-theme="midnight-dark"] .landing-page {
    --landing-bg-primary: #0a0f1a;
    --landing-bg-secondary: #111827;
    --landing-bg-card: #1a2234;
    --landing-bg-card-hover: #222d42;
    --landing-border: rgba(255, 255, 255, 0.08);
    --landing-border-accent: rgba(0, 212, 170, 0.3);

    --landing-text-primary: #f1f5f9;
    --landing-text-secondary: #cbd5e1;
    --landing-text-muted: #64748b;

    --landing-accent: #00d4aa;
    --landing-accent-light: #5eead4;
    --landing-accent-dark: #00a888;
    --landing-accent-glow: rgba(0, 212, 170, 0.15);

    --landing-purple: #8b5cf6;
    --landing-blue: #3b82f6;
    --landing-orange: #f59e0b;
    --landing-rose: #f43f5e;

    --landing-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --landing-shadow-md: 0 8px 25px rgba(0, 0, 0, 0.4);
    --landing-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --landing-shadow-glow: 0 0 40px rgba(0, 212, 170, 0.15);
}

/* ========================================
   NAVIGATION (Theme Aware)
   ======================================== */
.landing-nav {
    background: var(--ww-content-bg, #FFFFFF);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--landing-border);
    padding: 0.875rem 0;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

[data-theme="midnight-dark"] .landing-nav {
    background: rgba(10, 15, 26, 0.85);
    box-shadow: none;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--landing-text-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-brand:hover {
    opacity: 0.9;
    color: var(--landing-text-primary);
}

.brand-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 0 8px var(--landing-accent-glow));
}

[data-theme="midnight-dark"] .brand-icon {
    filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.4));
}

.beta-badge {
    font-size: 0.45em;
    font-weight: 600;
    color: var(--landing-accent, #00d4aa);
    margin-left: 2px;
    vertical-align: super;
    letter-spacing: 0.03em;
    opacity: 0.85;
}

.nav-links {
    gap: 1.75rem;
}

.nav-links a {
    color: var(--landing-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--landing-accent);
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-actions .btn-primary {
    background: var(--ww-gradient-button, var(--landing-accent));
    border-color: var(--landing-accent);
    color: #FFFFFF;
    font-weight: 600;
}

.nav-actions .btn-primary:hover {
    background: var(--ww-gradient-button-hover, var(--landing-accent-light));
    border-color: var(--landing-accent-light);
    box-shadow: var(--landing-shadow-md);
}

[data-theme="midnight-dark"] .nav-actions .btn-primary {
    color: #0a0f1a;
}

[data-theme="midnight-dark"] .nav-actions .btn-primary:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.nav-actions .btn-outline-primary {
    color: var(--landing-accent);
    border-color: var(--landing-accent);
    background: transparent;
}

.nav-actions .btn-outline-primary:hover {
    background: var(--landing-accent);
    color: #FFFFFF;
}

[data-theme="midnight-dark"] .nav-actions .btn-outline-primary:hover {
    color: #0a0f1a;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1rem 5rem;
    position: relative;
    overflow: hidden;
    background: var(--landing-bg-primary);
}

[data-theme="midnight-dark"] .hero-section {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 170, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(59, 130, 246, 0.08), transparent),
        var(--landing-bg-primary);
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Animated grid background - hidden on light themes */
.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: none;
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

[data-theme="midnight-dark"] .hero-background::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    min-height: 420px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-slide.exiting {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Slider Navigation */
.hero-slider-nav {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-slider-labels {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--landing-border);
    border-radius: 9999px;
    background: transparent;
    color: var(--landing-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-label:hover {
    border-color: var(--landing-accent);
    color: var(--landing-accent);
    background: var(--landing-accent-glow);
}

.hero-label.active {
    background: var(--landing-accent);
    border-color: var(--landing-accent);
    color: #fff;
}

[data-theme="midnight-dark"] .hero-label.active {
    color: #0a0f1a;
}

.hero-label i {
    font-size: 0.7rem;
}

.hero-slider-progress {
    width: 120px;
    height: 3px;
    background: var(--landing-border);
    border-radius: 3px;
    overflow: hidden;
}

.hero-slider-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--landing-accent);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.25rem;
    background: var(--ww-hover-bg, rgba(59, 126, 161, 0.1));
    border: 1px solid var(--landing-border-accent);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--landing-accent);
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

[data-theme="midnight-dark"] .hero-badge {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.25);
}

/* Pulsing dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--landing-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--landing-accent);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--landing-accent); }
    50% { opacity: 0.6; transform: scale(1.3); box-shadow: 0 0 20px var(--landing-accent); }
}

/* Gradient headline */
.hero-headline {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-accent-light) 50%, var(--landing-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--landing-text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-ctas .btn-primary {
    background: var(--ww-gradient-button, var(--landing-accent));
    border-color: var(--landing-accent);
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    box-shadow: var(--landing-shadow-md);
    transition: all 0.3s ease;
}

.hero-ctas .btn-primary:hover {
    background: var(--ww-gradient-button-hover, var(--landing-accent-light));
    border-color: var(--landing-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--landing-shadow-lg);
}

[data-theme="midnight-dark"] .hero-ctas .btn-primary {
    color: #0a0f1a;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

[data-theme="midnight-dark"] .hero-ctas .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
}

.hero-ctas .btn-outline-secondary {
    color: var(--landing-text-secondary);
    border-color: var(--landing-border);
    background: transparent;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-ctas .btn-outline-secondary:hover {
    background: var(--ww-hover-bg, rgba(0, 0, 0, 0.05));
    border-color: var(--landing-text-muted);
    color: var(--landing-text-primary);
}

[data-theme="midnight-dark"] .hero-ctas .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="midnight-dark"] .hero-ctas .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tech-badges {
    display: flex;
    gap: 0.25rem 0;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.tech-badge {
    padding: 0;
    background: none;
    border: none;
    font-size: 0.85rem;
    color: var(--landing-text-muted);
    letter-spacing: 0.01em;
}

.tech-badge i {
    color: var(--landing-accent);
    opacity: 0.7;
    font-size: 0.75rem;
}

.tech-badge + .tech-badge::before {
    content: "\00b7";
    margin: 0 0.5rem;
    color: var(--landing-border);
    font-weight: 700;
    font-size: 1.1rem;
}


[data-theme="midnight-dark"] .tech-badge {
    background: none;
}

[data-theme="midnight-dark"] .tech-badge i {
    color: var(--landing-accent);
}

/* Floating orbs animation - only visible on dark theme */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 25s infinite ease-in-out;
    display: none;
}

[data-theme="midnight-dark"] .floating-orb {
    display: block;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--landing-accent);
    opacity: 0.08;
    top: -150px;
    right: -150px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--landing-purple);
    opacity: 0.06;
    bottom: -100px;
    left: -100px;
    animation-delay: -8s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--landing-blue);
    opacity: 0.05;
    top: 40%;
    left: 5%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    25% { transform: translateY(-30px) translateX(15px) scale(1.05); }
    50% { transform: translateY(0) translateX(30px) scale(1); }
    75% { transform: translateY(30px) translateX(15px) scale(0.95); }
}

/* fadeInUp animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ========================================
   CODE PREVIEW (Terminal Style)
   ======================================== */
.code-preview-section {
    padding: 5rem 0;
    background: var(--landing-bg-secondary);
    position: relative;
}

.code-preview-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

[data-theme="midnight-dark"] .code-preview-section::before {
    background:
        radial-gradient(ellipse 60% 40% at 30% 0%, rgba(0, 212, 170, 0.05), transparent),
        radial-gradient(ellipse 50% 30% at 70% 100%, rgba(139, 92, 246, 0.05), transparent);
}

.code-window {
    background: #0d1117;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--landing-border);
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}

[data-theme="midnight-dark"] .code-window {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 25px 60px -12px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 212, 170, 0.1);
    border: none;
}

.code-window-header {
    background: #161b22;
    padding: 14px 18px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.code-window-body {
    padding: 1.75rem;
}

.code-window-body pre {
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e6edf3;
}

.code-window-body .comment { color: #7d8590; }
.code-window-body .tag { color: #7ee787; }
.code-window-body .attr { color: #d2a8ff; }
.code-window-body .string { color: #a5d6ff; }
.code-window-body .keyword { color: #ff7b72; }
.code-window-body .number { color: #ffa657; }

/* Code Preview Tabs */
.code-preview-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.code-preview-tab {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--landing-border);
    border-radius: 8px;
    background: transparent;
    color: var(--landing-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-preview-tab:hover {
    border-color: var(--landing-primary);
    color: var(--landing-primary);
}

.code-preview-tab.active {
    background: var(--landing-primary);
    border-color: var(--landing-primary);
    color: #fff;
}

.code-preview-panel {
    display: none;
}

.code-preview-panel.active {
    display: block;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: 6rem 0;
    background: var(--landing-bg-primary);
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--landing-text-primary);
}


.feature-card {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--landing-shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--landing-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--landing-border-accent);
    box-shadow: var(--landing-shadow-lg);
}

[data-theme="midnight-dark"] .feature-card:hover {
    box-shadow: var(--landing-shadow-lg), var(--landing-shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: white;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    background: inherit;
    opacity: 0.2;
    filter: blur(8px);
}

.feature-icon.auth { background: linear-gradient(135deg, #00d4aa, #00a888); }
.feature-icon.payment { background: linear-gradient(135deg, #f59e0b, #d97706); }
.feature-icon.ai { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.feature-icon.components { background: linear-gradient(135deg, #10b981, #059669); }
.feature-icon.messaging { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.feature-icon.enterprise { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.feature-icon.passkey { background: linear-gradient(135deg, #ec4899, #db2777); }
.feature-icon.analytics { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.feature-icon.tts { background: linear-gradient(135deg, #f43f5e, #e11d48); }

.feature-card h5 {
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--landing-text-primary);
    font-size: 1.125rem;
}

.feature-card p {
    color: var(--landing-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ========================================
   AI PROXY SECTION
   ======================================== */
.ai-proxy-section {
    padding: 6rem 0;
    background: var(--landing-bg-secondary);
    position: relative;
    overflow: hidden;
}

.ai-proxy-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

[data-theme="midnight-dark"] .ai-proxy-section::before {
    background: radial-gradient(ellipse 50% 50% at 0% 50%, rgba(139, 92, 246, 0.08), transparent);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--landing-accent);
    margin-bottom: 1rem;
    padding: 0.375rem 0.875rem;
    background: var(--ww-hover-bg, rgba(59, 126, 161, 0.1));
    border-radius: 6px;
}

[data-theme="midnight-dark"] .section-label {
    background: rgba(0, 212, 170, 0.1);
}

.ai-proxy-section h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    color: var(--landing-text-primary);
    line-height: 1.3;
}


.provider-cards {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 2rem;
}

.provider-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: var(--landing-shadow-sm);
}

.provider-card:hover {
    border-color: var(--landing-border-accent);
    transform: translateX(4px);
    box-shadow: var(--landing-shadow-md);
}

.provider-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.provider-status.live {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}
.provider-status.coming-soon {
    background: #f59e0b;
}

.provider-card strong {
    flex: 1;
    color: var(--landing-text-primary);
}

.provider-card small {
    color: var(--landing-text-muted);
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-section {
    padding: 6rem 0;
    background: var(--landing-bg-primary);
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

[data-theme="midnight-dark"] .pricing-section::before {
    background:
        radial-gradient(ellipse 60% 30% at 50% 0%, rgba(0, 212, 170, 0.06), transparent);
}

.pricing-toggle {
    display: inline-flex;
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: 9999px;
    padding: 4px;
}

.pricing-toggle-btn {
    padding: 0.625rem 1.75rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--landing-text-muted);
    transition: all 0.2s;
}

.pricing-toggle-btn:hover {
    color: var(--landing-text-secondary);
}

.pricing-toggle-btn.active {
    background: var(--ww-gradient-button, var(--landing-accent));
    color: #FFFFFF;
    font-weight: 600;
}

[data-theme="midnight-dark"] .pricing-toggle-btn.active {
    color: #0a0f1a;
}

.pricing-toggle-btn .badge {
    font-size: 0.6875rem;
    padding: 0.25em 0.5em;
    background: #10b981 !important;
}

.pricing-grid {
    display: grid;
    gap: 1.5rem;
}

.pricing-card {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--landing-shadow-sm);
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--landing-border-accent);
    box-shadow: var(--landing-shadow-lg);
}

[data-theme="midnight-dark"] .pricing-card:hover {
    box-shadow: var(--landing-shadow-lg), var(--landing-shadow-glow);
}

.pricing-card.highlighted {
    border-color: var(--landing-accent);
    background: var(--landing-bg-card);
    box-shadow: 0 0 0 2px var(--landing-accent), var(--landing-shadow-md);
}

[data-theme="midnight-dark"] .pricing-card.highlighted {
    background: linear-gradient(180deg, rgba(0, 212, 170, 0.08) 0%, var(--landing-bg-card) 100%);
    box-shadow: 0 0 0 1px var(--landing-accent), var(--landing-shadow-glow);
}

.pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ww-gradient-button, linear-gradient(135deg, var(--landing-accent), var(--landing-accent-dark)));
    color: #FFFFFF;
    padding: 6px 20px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--landing-shadow-md);
}

[data-theme="midnight-dark"] .pricing-popular-badge {
    color: #0a0f1a;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.pricing-card h3 {
    color: var(--landing-text-primary);
}


.price-amount {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--landing-text-primary);
    letter-spacing: -0.02em;
}

.price-period {
    color: var(--landing-text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.pricing-card ul li {
    color: var(--landing-text-secondary);
}

.pricing-card ul li i.fa-check {
    color: var(--landing-accent) !important;
}

.pricing-card ul li i.fa-infinity {
    color: var(--landing-accent) !important;
}


.pricing-card .btn-primary {
    background: var(--ww-gradient-button, var(--landing-accent));
    border-color: var(--landing-accent);
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.pricing-card .btn-primary:hover {
    background: var(--ww-gradient-button-hover, var(--landing-accent-light));
    border-color: var(--landing-accent-light);
    box-shadow: var(--landing-shadow-md);
}

[data-theme="midnight-dark"] .pricing-card .btn-primary {
    color: #0a0f1a;
}

[data-theme="midnight-dark"] .pricing-card .btn-primary:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.pricing-card .btn-outline-primary {
    color: var(--landing-accent);
    border-color: var(--landing-accent);
    background: transparent;
}

.pricing-card .btn-outline-primary:hover {
    background: var(--landing-accent);
    color: #FFFFFF;
}

[data-theme="midnight-dark"] .pricing-card .btn-outline-primary:hover {
    color: #0a0f1a;
}

.pricing-card .badge.bg-success-subtle {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}

/* ========================================
   ADD-ONS SECTION
   ======================================== */
.addons-section {
    margin-top: 4rem;
}

.addons-section .section-header h3 {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--landing-text-primary);
    margin-bottom: 0.5rem;
}


/* Category Filter Pills */
.addon-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.addon-category-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid var(--landing-border);
    background: var(--landing-bg-card);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--landing-text-muted);
    transition: all 0.2s;
}

.addon-category-btn:hover {
    color: var(--landing-text-secondary);
    border-color: var(--landing-border-accent);
}

.addon-category-btn.active {
    background: var(--ww-gradient-button, var(--landing-accent));
    color: #FFFFFF;
    border-color: var(--landing-accent);
    font-weight: 600;
}

[data-theme="midnight-dark"] .addon-category-btn.active {
    color: #0a0f1a;
}

/* Add-On Cards Grid */
.addon-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 640px) and (max-width: 1023px) {
    .addon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .addon-grid {
        grid-template-columns: 1fr;
    }
}

/* Add-On Card */
.addon-card {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--landing-shadow-sm);
    display: flex;
    flex-direction: column;
}

.addon-card:hover {
    transform: translateY(-4px);
    border-color: var(--landing-border-accent);
    box-shadow: var(--landing-shadow-md);
}

[data-theme="midnight-dark"] .addon-card:hover {
    box-shadow: var(--landing-shadow-md), var(--landing-shadow-glow);
}

.addon-card-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.addon-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: #FFFFFF;
    flex-shrink: 0;
}

.addon-title-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.addon-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--landing-text-primary);
    margin: 0;
    line-height: 1.3;
}

.addon-category-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--landing-accent);
    opacity: 0.8;
}

.addon-description {
    color: var(--landing-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.875rem;
    flex-grow: 1;
}

/* Add-On Price */
.addon-price-block {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.addon-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--landing-text-primary);
    letter-spacing: -0.02em;
}

.addon-price-period {
    color: var(--landing-text-muted);
    font-size: 0.8125rem;
}

/* Trial Badge */
.addon-trial-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

[data-theme="midnight-dark"] .addon-trial-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* Features List */
.addon-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.875rem 0;
}

.addon-features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: var(--landing-text-secondary);
    font-size: 0.8125rem;
}

.addon-features-list li i {
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Bundled In Tiers */
.addon-bundled {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.addon-bundled-label {
    color: var(--landing-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.addon-tier-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--ww-hover-bg, rgba(59, 126, 161, 0.1));
    color: var(--landing-accent);
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

[data-theme="midnight-dark"] .addon-tier-badge {
    background: rgba(0, 212, 170, 0.12);
    color: #5eead4;
}

/* Min Tier */
.addon-min-tier {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--landing-border);
}

.addon-min-tier small {
    color: var(--landing-text-muted) !important;
    font-size: 0.75rem;
}

.enterprise-callout .card {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    box-shadow: var(--landing-shadow-sm);
}

.enterprise-callout .card-body {
    color: var(--landing-text-primary);
}

.enterprise-callout h4 {
    color: var(--landing-text-primary);
}


.enterprise-callout .btn-outline-primary {
    color: var(--landing-accent);
    border-color: var(--landing-accent);
}

.enterprise-callout .btn-outline-primary:hover {
    background: var(--landing-accent);
    color: #FFFFFF;
}

[data-theme="midnight-dark"] .enterprise-callout .btn-outline-primary:hover {
    color: #0a0f1a;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .nav-actions .btn {
        font-size: 0.85rem;
        padding: 0.375rem 0.875rem;
    }
}

@media (max-width: 639px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 520px;
    }

    .hero-slider-labels {
        gap: 0.25rem;
    }

    .hero-label {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    .hero-label-text {
        display: none;
    }

    .hero-label i {
        margin: 0 !important;
        font-size: 0.8rem;
    }

    .hero-headline {
        font-size: 2.25rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .nav-links {
        display: none !important;
    }

    .nav-actions .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.final-cta-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--landing-bg-secondary) 0%, var(--landing-bg-primary) 100%);
    position: relative;
}

[data-theme="midnight-dark"] .final-cta-section {
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 212, 170, 0.12), transparent),
        linear-gradient(180deg, var(--landing-bg-secondary) 0%, var(--landing-bg-primary) 100%);
}

.final-cta-section h2 {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--landing-text-primary);
    margin-bottom: 1rem;
}


.final-cta-section .btn-primary {
    background: var(--ww-gradient-button, var(--landing-accent));
    border-color: var(--landing-accent);
    color: #FFFFFF;
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
    box-shadow: var(--landing-shadow-md);
}

.final-cta-section .btn-primary:hover {
    background: var(--ww-gradient-button-hover, var(--landing-accent-light));
    border-color: var(--landing-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--landing-shadow-lg);
}

[data-theme="midnight-dark"] .final-cta-section .btn-primary {
    color: #0a0f1a;
    box-shadow: 0 4px 25px rgba(0, 212, 170, 0.35);
}

[data-theme="midnight-dark"] .final-cta-section .btn-primary:hover {
    box-shadow: 0 8px 35px rgba(0, 212, 170, 0.45);
}

/* ========================================
   FOOTER
   ======================================== */
.landing-footer {
    background: var(--ww-bg-dark, #2D3A42);
    color: var(--ww-text-light, #E8F4FA);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--landing-border);
}

[data-theme="midnight-dark"] .landing-footer {
    background: #070a10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--ww-text-light, #E8F4FA);
    font-weight: 700;
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    filter: drop-shadow(0 0 6px var(--landing-accent-glow));
}

[data-theme="midnight-dark"] .footer-brand .brand-icon {
    filter: drop-shadow(0 0 6px rgba(0, 212, 170, 0.3));
}


.footer-column h6 {
    color: var(--ww-text-light, #E8F4FA);
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.625rem;
}

.footer-column a {
    color: var(--ww-text-muted, #B8D4E8);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9375rem;
}

.footer-column a:hover {
    color: var(--ww-accent-light, #A3CAE0);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--landing-border);
}

.footer-bottom p {
    color: var(--ww-text-muted, #B8D4E8);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: var(--ww-text-muted, #B8D4E8);
    font-size: 1.25rem;
    transition: all 0.2s;
}

.social-links a:hover {
    color: var(--ww-accent-light, #A3CAE0);
    transform: translateY(-2px);
}

/* ========================================
   SIGNUP PAGE STYLES (Theme Aware)
   ======================================== */
.signup-container {
    max-width: 520px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.signup-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.signup-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.signup-steps .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--landing-bg-card);
    border: 2px solid var(--landing-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--landing-text-muted);
    transition: all 0.3s ease;
}

.signup-steps .step.active .step-num {
    background: var(--ww-gradient-button, var(--landing-accent));
    border-color: var(--landing-accent);
    color: #FFFFFF;
    box-shadow: var(--landing-shadow-md);
}

[data-theme="midnight-dark"] .signup-steps .step.active .step-num {
    color: #0a0f1a;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.4);
}

.signup-steps .step-label {
    font-size: 0.8125rem;
    color: var(--landing-text-muted);
}

.signup-steps .step.active .step-label {
    color: var(--landing-accent);
}

.signup-steps .step-connector {
    width: 80px;
    height: 2px;
    background: var(--landing-border);
    margin: 0 1.25rem;
}

.plan-summary {
    text-align: center;
}

.plan-summary .card {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
}

.plan-summary .card-body {
    color: var(--landing-text-primary);
}

.plan-summary h5 {
    color: var(--landing-text-primary);
}


.plan-summary .price {
    font-size: 1.625rem;
}

.plan-summary .amount {
    font-weight: 700;
    color: var(--landing-accent);
}

.plan-summary .period {
    color: var(--landing-text-muted);
}

.signup-success {
    padding: 3rem 1rem;
}

.signup-success h3 {
    color: var(--landing-text-primary);
}


.signup-step-content {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--landing-shadow-sm);
}

.signup-step-content h4 {
    color: var(--landing-text-primary);
}


/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    padding: 4rem 0;
    background: var(--landing-bg-secondary);
    border-top: 1px solid var(--landing-border);
    border-bottom: 1px solid var(--landing-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--landing-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--landing-text-muted);
    font-size: 0.9375rem;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    padding: 6rem 0;
    background: var(--landing-bg-primary);
}

.testimonial-card {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}

.testimonial-card p {
    color: var(--landing-text-secondary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--landing-accent), var(--landing-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.testimonial-info strong {
    color: var(--landing-text-primary);
    display: block;
}

.testimonial-info span {
    color: var(--landing-text-muted);
    font-size: 0.875rem;
}

/* ========================================
   INTEGRATION LOGOS
   ======================================== */
.integrations-section {
    padding: 4rem 0;
    background: var(--landing-bg-secondary);
}

.integration-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.integration-logo {
    font-size: 2rem;
    color: var(--landing-text-muted);
    transition: all 0.3s ease;
}

.integration-logo:hover {
    color: var(--landing-accent);
    opacity: 1;
    transform: scale(1.1);
}

/* ========================================
   THEME SWITCHER DROPDOWN (Landing Page)
   ======================================== */
.theme-dropdown {
    position: relative;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    color: var(--landing-text-muted);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--ww-hover-bg, rgba(0, 0, 0, 0.05));
    border-color: var(--landing-accent);
    color: var(--landing-accent);
}

.btn-icon:focus {
    box-shadow: 0 0 0 3px var(--landing-accent-glow);
}

[data-theme="midnight-dark"] .btn-icon {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="midnight-dark"] .btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="midnight-dark"] .btn-icon:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

.landing-page .theme-switcher-dropdown {
    background: var(--landing-bg-card);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: var(--landing-shadow-lg);
}

[data-theme="midnight-dark"] .landing-page .theme-switcher-dropdown {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.landing-page .theme-switcher-dropdown .dropdown-header {
    color: var(--landing-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem;
}

.landing-page .theme-switcher-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    color: var(--landing-text-secondary);
    transition: all 0.15s ease;
}

.landing-page .theme-switcher-dropdown .dropdown-item:hover {
    background: var(--ww-hover-bg, rgba(0, 0, 0, 0.05));
    color: var(--landing-text-primary);
}

.landing-page .theme-switcher-dropdown .dropdown-item.active {
    background: var(--ww-hover-bg, rgba(59, 126, 161, 0.15));
    color: var(--landing-accent);
}

[data-theme="midnight-dark"] .landing-page .theme-switcher-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="midnight-dark"] .landing-page .theme-switcher-dropdown .dropdown-item.active {
    background: rgba(0, 212, 170, 0.15);
}

.landing-page .theme-switcher-dropdown .theme-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
}

.landing-page .theme-switcher-dropdown .theme-checkmark {
    font-size: 0.875rem;
    color: var(--landing-accent);
    visibility: hidden;
}

.landing-page .theme-switcher-dropdown .dropdown-item.active .theme-checkmark {
    visibility: visible;
}

/* ========================================
   SHOWCASE SECTION
   ======================================== */

.showcase-section {
    padding: 5rem 0;
    background: var(--landing-bg-secondary);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.showcase-app {
    background: var(--landing-bg-card);
    border-radius: 16px;
    border: 1px solid var(--landing-border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.showcase-app:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-md);
}

.showcase-app-wide {
    grid-column: 1 / -1;
}

.showcase-app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--landing-border);
}

.showcase-app-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--landing-text-primary);
}

.showcase-app-header p {
    font-size: 0.85rem;
}

.showcase-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Flipper / Carousel */
.showcase-flipper {
    position: relative;
    overflow: hidden;
}

.showcase-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--landing-bg-secondary);
}

.showcase-app:not(.showcase-app-wide) .showcase-viewport {
    aspect-ratio: 9 / 16;
    max-height: 500px;
}

.showcase-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer;
    padding: 0.5rem;
}

.showcase-image.active {
    opacity: 1;
}

.showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    z-index: 2;
    font-size: 0.85rem;
}

.showcase-flipper:hover .showcase-nav {
    opacity: 1;
}

.showcase-nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.showcase-prev {
    left: 0.75rem;
}

.showcase-next {
    right: 0.75rem;
}

.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0.75rem 0;
    flex-wrap: wrap;
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--landing-text-muted);
    opacity: 0.35;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s, transform 0.2s;
}

.showcase-dot.active {
    opacity: 1;
    background: var(--landing-accent);
    transform: scale(1.3);
}

.showcase-dot:hover {
    opacity: 0.7;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.showcase-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.showcase-lightbox.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.lightbox-content:active {
    cursor: grabbing;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: center center;
    -webkit-user-select: none;
    user-select: none;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    padding: 0 2rem;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.25rem;
}

.lightbox-zoom-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.lightbox-zoom-controls button {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.lightbox-zoom-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-app:not(.showcase-app-wide) .showcase-viewport {
        max-height: 400px;
    }

    .showcase-nav {
        opacity: 1;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}
