/* FilMonks Filmmaker Landing Page Styles - Dashboard Design Match */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables - Premium Filmmaker Palette */
:root {
    /* Base Colors - Deep & Rich */
    --color-bg-primary: #020617;
    --color-bg-secondary: #0B1120;
    --color-bg-card: rgba(15, 23, 42, 0.4);
    --color-bg-surface: rgba(30, 41, 59, 0.3);

    /* Accents - Vibrant & Cinematic */
    --color-primary: #3B82F6;
    /* Bright Indigo/Blue */
    --color-primary-glow: rgba(59, 130, 246, 0.5);
    --color-accent: #10B981;
    /* Emerald */
    --color-accent-glow: rgba(16, 185, 129, 0.4);
    --color-secondary: #8B5CF6;
    /* Violet */

    /* Text - High Contrast & Subdued */
    --color-text-heading: #F8FAFC;
    --color-text-body: #94A3B8;
    --color-text-muted: #64748B;

    /* Borders & Glass */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(59, 130, 246, 0.3);
    --glass-background: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* Glass Panel Utilities */
.glass-panel {
    background: var(--glass-background);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.5);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Global Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(147, 51, 234, 0.08) 0%, transparent 25%);
    background-attachment: fixed;
    /* Ensures background stays continuous during scroll */
}

/* Audio Player Section */
.audio-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    border-bottom: 1px solid var(--color-border);
}

.audio-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.audio-info {
    max-width: 500px;
}

.audio-showcase {
    position: relative;
    z-index: 10;
}

.audio-showcase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    filter: blur(40px);
    z-index: -1;
}

/* Studio Section (Combined AI & Features) */
.studio-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
    position: relative;
    position: relative;
    background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    /* Removed border-top for seamless continuity */
    border-bottom: 1px solid var(--color-border);
}

.studio-mesh {
    background:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 25%);
    filter: blur(60px);
    z-index: 0;
}

/* AI Demo Section (Legacy - kept for reference if needed, but overridden by Studio) */
.ai-demo-section {
    padding-top: 8rem;
    padding-bottom: 10rem !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Language Selector Grid */
.language-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.language-card {
    background: rgba(15, 23, 42, 0.4);
    border: 2px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-card:hover::before,
.language-card.active::before {
    opacity: 1;
}

.language-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.3);
}

.language-card.active {
    border-color: var(--color-accent);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.3);
}

.language-flag {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.language-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 0.25rem;
}

.language-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Modern Audio Player Card */
.player-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.reading-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #8b5cf6;
    /* Vibrant Purple */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.player-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.player-action-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.3s ease;
}

.player-action-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

/* Progress Bar */
.progress-container {
    height: 0.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.status-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
}

/* Control Buttons */
.control-btn-secondary {
    color: #64748b;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.control-btn-secondary:hover {
    color: #FFFFFF;
    transform: scale(1.1);
}

.control-btn-nav {
    color: #FFFFFF;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.control-btn-nav:hover {
    transform: scale(1.15);
}

.main-play-btn {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: #6366f1;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 5;
}

.main-play-btn:hover {
    transform: scale(1.08);
    background: #818cf8;
}

.main-play-btn:active {
    transform: scale(0.95);
}

/* Override existing audio showcase styles if needed */
.audio-showcase::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}


/* Listen Activation Button */
.listen-activation-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border: none;
    border-radius: 1.5rem;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.5);
    position: relative;
    overflow: hidden;
}

.listen-activation-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.listen-activation-btn:hover::before {
    width: 300px;
    height: 300px;
}

.listen-activation-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 30px 60px -10px rgba(59, 130, 246, 0.6);
}

.listen-activation-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-icon-wrapper {
    position: relative;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon {
    width: 2rem;
    height: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.btn-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.btn-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.btn-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Feature Highlights */
.feature-highlights {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-body);
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-accent);
}

/* Response for Audio Section */
@media (max-width: 968px) {
    .audio-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .audio-info {
        margin: 0 auto;
    }

    .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .language-selector-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .listen-activation-btn {
        padding: 1.25rem 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-content {
        align-items: center;
    }

    .feature-highlights {
        flex-direction: column;
        gap: 1rem;
    }
}

@keyframes wave {

    0%,
    100% {
        height: 20%;
        opacity: 0.5;
    }

    50% {
        height: 100%;
        opacity: 1;
    }
}

.wave-bar:nth-child(odd) {
    animation-duration: 1.1s;
}

.wave-bar:nth-child(even) {
    animation-duration: 1.3s;
}


/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-background);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(2, 6, 23, 0.9);
    border-bottom-color: var(--color-border);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-heading);
    text-decoration: none;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
}

.btn-sm {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 0.4rem;
    font-weight: 500;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-body);
}

.btn-ghost:hover {
    color: var(--color-text-heading);
    background: rgba(255, 255, 255, 0.05);
}

/* Navbar Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-actions {
        gap: 0.5rem;
    }

    .navbar-actions .btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
    padding-top: 80px;
}

.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    /* Removed static gradient, now using blobs */
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob-float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--color-primary);
    animation-duration: 25s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--color-secondary);
    animation-delay: -5s;
    animation-duration: 30s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--color-accent);
    animation-delay: -10s;
    animation-duration: 22s;
    opacity: 0.2;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Abstract Background Shapes */
/* Removing old abstract shapes as we use mesh gradient now */

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    /* Animation handled by AOS now */
}

.hero-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 1px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 9999px;
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.hero-logo-img {
    max-height: 220px;
    width: auto;
    max-width: 90%;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
    animation: fadeInUp 0.8s ease-out, levitate 4s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, filter;
}

@media (max-width: 768px) {
    .hero-logo-img {
        max-height: 160px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        max-height: 120px;
        margin-bottom: 1rem;
    }
}

.hero-logo-img:hover {
    animation-play-state: paused;
    filter: drop-shadow(0 0 30px rgba(45, 212, 191, 0.8));
    transform: scale(1.05) translateY(-10px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    /* Improved line height */
    margin-bottom: 2rem;
    color: var(--color-text-heading);
    letter-spacing: -0.04em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: text-shimmer 4s linear infinite;
}

@keyframes text-shimmer {
    to {
        background-position: 200% center;
    }
}

/* TTS Player - Hide by Default */
#audio-player-container.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

#init-listen-btn.hidden {
    display: none !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-body);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 20px -5px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px var(--color-primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-heading);
    border-color: var(--color-border);
    backdrop-filter: blur(10px);
}

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

/* Value Proposition Section */
.value-section {
    padding: 6rem 0;
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 0 2rem;
    max-width: 1280px;
    margin: 3rem auto 0;
}

/* Feature Cards with Glow Effect */
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.04),
            transparent 40%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

#features-cards:hover .feature-card::before {
    opacity: 1;
}

.feature-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(59, 130, 246, 0.08),
            transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

#features-cards:hover .feature-card-glow {
    opacity: 1;
}


.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.feature-icon-wrapper {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(45, 212, 191, 0.1);
    border-radius: 0.75rem;
    color: var(--color-accent);
}

.value-icon {
    width: 2rem;
    height: 2rem;
}

.value-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 0.75rem;
}

.value-content p {
    font-size: 1rem;
    color: var(--color-text-body);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 8rem 0;
    position: relative;
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-body);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0;
    width: 100%;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.2));
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
}

.feature-card:hover {
    transform: translateY(-12px) perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
    border-color: var(--color-primary);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.7);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    transition: all 0.5s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transform: translateZ(20px);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--color-primary);
    color: white;
    transform: translateZ(30px) scale(1.1);
    box-shadow: 0 10px 20px -5px var(--color-primary-glow);
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 1rem;
    transform: translateZ(10px);
    transition: all 0.5s ease;
}

.feature-card:hover .feature-title {
    transform: translateZ(20px);
}

.feature-description {
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 2rem;
    transform: translateZ(5px);
    transition: all 0.5s ease;
}

.feature-card:hover .feature-description {
    color: rgba(255, 255, 255, 0.9);
}

.feature-learn-more {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-learn-more {
    opacity: 1;
    transform: translateX(0);
}

.feature-learn-more svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-learn-more svg {
    transform: translateX(4px);
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(90deg,
            rgba(2, 6, 23, 1) 0%,
            rgba(15, 23, 42, 1) 50%,
            rgba(2, 6, 23, 1) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-title {
    position: relative;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text-heading);
    margin-bottom: 1.5rem;
    z-index: 1;
}

.cta-description {
    position: relative;
    font-size: 1.25rem;
    color: var(--color-text-body);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    background-color: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-brand {
    color: var(--color-text-heading);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, -20px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes levitate {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 5px 15px rgba(45, 212, 191, 0.4));
    }

    50% {
        transform: translateY(-20px);
        filter: drop-shadow(0 25px 25px rgba(45, 212, 191, 0.2));
    }

    100% {
        transform: translateY(0);
        filter: drop-shadow(0 5px 15px rgba(45, 212, 191, 0.4));
    }
}

/* Minimal Audio Player - Fixed Styles */
.minimal-player {
    position: relative;
    width: 100%;
    max-width: 32rem;
    /* max-w-lg */
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.85);
    /* bg-slate-900/85 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    /* rounded-full */
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    /* p-2 pr-6 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.minimal-player:hover {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.minimal-player #play-pause-btn {
    position: relative;
    z-index: 10;
    width: 3rem;
    /* w-12 */
    height: 3rem;
    /* h-12 */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #6366f1;
    /* indigo-500 */
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s transform;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.minimal-player #play-pause-btn:hover {
    background-color: #818cf8;
    /* indigo-400 */
    transform: scale(1.05);
}

.minimal-player #play-pause-btn svg {
    width: 1.25rem;
    /* w-5 */
    height: 1.25rem;
    /* h-5 */
    margin-left: 0.125rem;
    /* ml-0.5 for centering visual */
}

.minimal-player #play-pause-btn svg#icon-pause {
    margin-left: 0;
}

/* Prevent huge SVGs globally within player */
.minimal-player svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

/* Text and Progress Area */
.minimal-player .player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0;
}

.minimal-player #demo-player-title {
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    /* text-sm */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.minimal-player #player-status-text {
    font-size: 0.625rem;
    /* text-[10px] */
    color: #a5b4fc;
    /* indigo-300 */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: inline-block;
}

/* Progress Bar */
.minimal-player .progress-track {
    position: relative;
    height: 0.375rem;
    /* h-1.5 */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
    width: 100%;
    cursor: pointer;
}

.minimal-player #player-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

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

    100% {
        background-position: -100% 0;
    }
}

/* Controls */
.minimal-player .controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    margin-left: 0.25rem;
}

.minimal-player .control-btn {
    padding: 0.5rem;
    color: #94a3b8;
    /* slate-400 */
    border-radius: 50%;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minimal-player .control-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.minimal-player .control-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Inline Listen Overlay */
#inline-listen-btn {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    cursor: pointer;
    transition: opacity 0.3s;
}

#inline-listen-btn.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#inline-listen-btn .listen-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

#inline-listen-btn .listen-icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Custom Minimal Scrollbar for Textarea */
#ai-demo-input::-webkit-scrollbar {
    width: 6px;
}

#ai-demo-input::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

#ai-demo-input::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.6) 0%, rgba(168, 85, 247, 0.6) 100%);
    border-radius: 10px;
    transition: background 0.3s ease;
}

#ai-demo-input::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.8) 0%, rgba(168, 85, 247, 0.8) 100%);
}

/* Firefox Scrollbar */
#ai-demo-input {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(15, 23, 42, 0.3);
}

/* Custom Minimal Scrollbar for Main Page */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.5);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.6) 0%, rgba(168, 85, 247, 0.6) 100%);
    border-radius: 10px;
    transition: background 0.3s ease;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.9) 0%, rgba(168, 85, 247, 0.9) 100%);
}

/* Firefox Main Scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(2, 6, 23, 0.5);
}

/* Custom Utilities */
.animate-pulse-slow {
    animation: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.delay-700 {
    animation-delay: 700ms;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.animate-float {
    animation: levitate 4s ease-in-out infinite;
}

.animate-gradient-xy {
    background-size: 200% 200%;
    animation: gradient-xy 6s ease infinite;
}

@keyframes gradient-xy {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes wave {

    0%,
    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

.animate-wave {
    animation: wave 1s ease-in-out infinite;
}

@keyframes float {

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

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