/* AudioBook Organizer - Landing Page Styles */

/* Landing Page CSS Variables */
:root {
    /* Color System */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --primary-color-rgb: 102, 126, 234;
    --accent-color: #667eea;
    --success-color: #51cf66;
    --warning-color: #ffd43b;
    --error-color: #ff6b6b;
    
    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #546e7a;
    --text-muted: #90a4ae;
    --text-light: rgba(255, 255, 255, 0.9);
    
    /* Background Colors */
    --background-primary: #ffffff;
    --background-secondary: #f8f9fa;
    --background-light: #f8f9fa;
    --border-color: #dee2e6;
    
    /* Landing Page Specific */
    --landing-hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --landing-text-hero: #ffffff;
    --landing-section-bg: #ffffff;
    --landing-container-max-width: 1200px;
    --landing-section-padding: 60px 0;
    
    /* Corrected Navigation Height - matches actual navbar height */
    --nav-height: 64px;
    
    /* Typography */
    --hero-title-size: clamp(2.5rem, 5vw, 3.5rem);
    --section-title-size: clamp(2rem, 4vw, 2.5rem);
    --feature-title-size: 1.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Animation */
    --animation-duration: 0.3s;
    --animation-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Landing Page Body Styles */
.landing-body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background: white;
    overflow-x: hidden;
    height: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

/* Enhanced scroll configuration for perfect section alignment */
html {
    scroll-padding-top: var(--nav-height);
}

/* Container */
.container {
    max-width: var(--landing-container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 1);
    z-index: 1000;
    transition: all var(--animation-duration) var(--animation-ease);
    padding-bottom: 2px;
}

.nav-container {
    max-width: var(--landing-container-max-width);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--animation-duration) var(--animation-ease);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--animation-duration) var(--animation-ease);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-mobile {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--animation-duration) var(--animation-ease);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.mobile-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
}

/* Hero Section - Fixed height to prevent overlap */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--landing-hero-bg);
    color: var(--landing-text-hero);
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: var(--landing-container-max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: slideInLeft 1s var(--animation-ease);
}

.hero-title {
    font-size: var(--hero-title-size);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(45deg, #ffb74d, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-social-proof {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-proof-item {
    text-align: center;
}

.proof-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffb74d;
}

.proof-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-visual {
    perspective: 1500px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRightAndStay 1s var(--animation-ease);
    animation-fill-mode: forwards; /* Keep the final state */
}

.hero-app-preview {
    perspective: 1000px;
}

.app-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translate3d(0, 0, 0) rotateY(-15deg) rotateX(10deg);
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    /* Smooth transitions when not using RAF */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.app-window:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.app-header {
    background: #f5f5f5;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.app-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.app-title {
    font-weight: 600;
    color: var(--text-primary);
}

.app-content {
    display: flex;
    height: 450px;
}

.app-sidebar {
    background: #f9f9f9;
    width: 180px;
    padding: 0.75rem;
    border-right: 1px solid #e0e0e0;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem;
    margin-bottom: 0.375rem;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background var(--animation-duration) var(--animation-ease);
}

.chapter-item.active {
    background: #4CAF50;
    color: white;
}

.chapter-item:not(.active):hover {
    background: #e8f5e9;
}

.app-main {
    flex: 1;
    padding: 0.75rem;
}

.text-content {
    font-size: 0.8rem;
    line-height: 1.5;
}

.text-line {
    margin-bottom: 0.5rem;
    padding: 0.1875rem 0;
    color: #2c3e50 !important;
    font-weight: 500;
    line-height: 1.4;
    font-size: 0.8rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.text-line:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(-0.5rem);
}

.highlighted-orange {
    background: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #ff9800;
    padding-left: 0.5rem;
    color: #e65100 !important;
    font-weight: 600;
}

.highlighted-green {
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4caf50;
    padding-left: 0.5rem;
    color: #2e7d32 !important;
    font-weight: 600;
}

.highlighted-blue {
    background: rgba(33, 150, 243, 0.1);
    border-left: 3px solid #2196f3;
    padding-left: 0.5rem;
    color: #1565c0 !important;
    font-weight: 600;
}

.highlighted-purple {
    background: rgba(156, 39, 176, 0.1);
    border-left: 3px solid #9c27b0;
    padding-left: 0.5rem;
    color: #7b1fa2 !important;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--animation-duration) var(--animation-ease);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Enhanced Home Section Buttons - More Prominent */
.hero .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.hero .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero .btn-primary:hover::before {
    left: 100%;
}

.hero .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.features .section-header {
    transform: translateY(-80px);
}

.section-title {
    font-size: var(--section-title-size);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Pricing Tagline */
.pricing-tagline {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-tagline span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Features Section */
.features {
    min-height: calc(100vh - var(--nav-height));
    padding: 30px 0;
    background: var(--landing-section-bg);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.features .section-header,
.features .features-grid {
    transform: translateY(-100px); /* Move elements upward */
    transition: transform 0.3s ease; /* Optional smooth animation */
}

/* Feature card content optimization for carousel with crisp text */
.feature-card .feature-description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
    flex-grow: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: visible;
}

.feature-card .feature-highlights {
    gap: 0.5rem;
}

.feature-card .highlight-item {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.feature-card .feature-title {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation Controls - Hidden */
.carousel-nav {
    display: none;
}

.features-grid {
    position: relative;
    padding: 2rem 0;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    perspective: 1200px;
    perspective-origin: center center;
    overflow: visible;
}

.features-carousel {
    position: relative;
    width: 250px;
    height: 250px;
    transform-style: preserve-3d;
    transform: rotateY(0deg) translateX(-10px);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    cursor: grab;
    user-select: none;
}

.features-carousel:hover {
    animation-play-state: paused;
}

.features-carousel:hover .feature-card {
    animation-play-state: paused;
}

/* Each card rotates individually with its own delay */
.feature-card {
    position: absolute;
    width: 280px;
    height: 420px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    
    /* Each card moves in a circle but stays facing forward */
    animation: cardRotate 45s linear infinite;
    animation-delay: calc(var(--rotation) * -45s / 360);
    transform-origin: 140px 210px -220px;
}

@keyframes cardRotate {
    from {
        transform: rotateY(0deg) translateZ(220px);
    }
    to {
        transform: rotateY(360deg) translateZ(220px);
    }
}

.feature-card:hover {
    animation-play-state: paused;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: var(--feature-title-size);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Create wrapper for top content */
.feature-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-shrink: 0;
}

.highlight-item {
    background: var(--background-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* How It Works Section */
.how-it-works {
    min-height: calc(100vh - var(--nav-height));
    padding: var(--landing-section-padding);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Enhanced step connector lines - properly connecting circle edges */
.step::after {
    content: '';
    position: absolute;
    top: 30px; /* Align with center of circle */
    right: -120px; /* Start from right edge of circle */
    width: calc(9rem + 60px); /* Grid gap + circle diameter */
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    opacity: 0.8;
    z-index: 0;
}

/* Hide connector on last step */
.step:last-child::after {
    display: none;
}

/* Make connectors properly sized for larger screens */
@media (min-width: 769px) {
    .step::after {
        right: -120px; /* Start from right edge of circle */
        width: calc(9rem + 60px); /* Grid gap + circle diameter */
        height: 4px;
        box-shadow: 0 1px 3px rgba(102, 126, 234, 0.2);
    }
}

/* Vertical connectors for mobile - properly connecting circles */
@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Vertical connectors for mobile */
    .step::after {
        top: auto;
        bottom: -calc(1.5rem + 30px); /* Start from bottom edge of circle */
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 4px;
        height: calc(3rem + 60px); /* Gap + circle diameter */
        background: linear-gradient(180deg, #667eea, #764ba2);
    }
    
    .step:last-child::after {
        display: none;
    }
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-visual {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.upload-demo, .chapters-demo, .audio-demo, .export-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    font-size: 2rem;
}

.upload-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.chapter-demo-item {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.audio-player {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.play-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.audio-progress {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
}

.audio-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
}

.audio-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.export-option {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    width: 100%;
}

/* Demo Section */
.demo {
    min-height: calc(100vh - var(--nav-height));
    padding: var(--landing-section-padding);
    background: var(--landing-section-bg);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-video {
    position: relative;
}

.video-placeholder {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--animation-duration) var(--animation-ease);
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.play-button-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--animation-duration) var(--animation-ease);
    z-index: 2;
}

.play-button-large:hover {
    background: white;
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
}

.video-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.demo-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.demo-icon {
    font-size: 1.5rem;
    width: 50px;
    text-align: center;
}

.demo-text {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Hide mobile-specific elements on desktop */
@media screen and (min-width: 769px) {
    .landing-body .bottom-nav,
    body .bottom-nav {
        display: none !important;
    }
    
    .landing-body .footer-links-simple,
    body .footer-links-simple {
        display: none !important;
    }
    
    .landing-body .pricing-scroll-hint,
    body .pricing-scroll-hint {
        display: none !important;
    }
}

/* Pricing Section */
.pricing {
    min-height: 100vh;
    padding: 1.5rem 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 15vh;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* Force 4 columns on larger screens */
@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 2x2 grid on medium screens */
@media (min-width: 768px) and (max-width: 1199px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pricing-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all var(--animation-duration) var(--animation-ease);
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.pricing-card:not(.featured):hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Best Value badge with green/success color */
.pricing-badge.best-value-badge {
    background: #10b981; /* Green for best value */
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

/* Optional: Add subtle styling to best-value card */
.pricing-card.best-value {
    position: relative;
}

/* Enterprise card styling */
.pricing-card.enterprise {
    border-color: #6b7280;
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(107, 114, 128, 0.05) 100%);
}

.pricing-card.enterprise:hover {
    border-color: #4b5563;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.enterprise-badge {
    background: #6b7280;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-features {
    text-align: left;
    margin-bottom: 1.5rem;
    flex: 1;
}

.pricing-feature {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.3;
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-feature.disabled {
    opacity: 0.5;
}

.pricing-btn {
    width: 100%;
    justify-content: center;
    padding: 1.2rem 2.2rem; /* Further increased padding for larger button */
    font-size: 1.1rem; /* Larger font size to match credits modal */
    font-weight: 600;
}

/* Integrated Trust Signals */
.pricing-trust {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.trust-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Credits Display in Pricing Cards */
.pricing-card .credits-display {
    text-align: center;
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 8px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.credits-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.credits-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Ensure credits display text maintains original colors on card hover */
.pricing-card:hover .credits-amount {
    color: var(--primary-color) !important; /* Keep the blue color */
}

.pricing-card:hover .credits-label {
    color: var(--text-secondary) !important; /* Keep the gray color */
}

/* Pricing Value Text */
.pricing-value {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.value-text {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
}



/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--animation-duration) var(--animation-ease);
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--animation-duration) var(--animation-ease);
}

.social-link:hover {
    color: white;
}

/* Authentication Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.show {
    display: flex;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    position: relative;
    z-index: 2001;
    animation: modalSlideIn 0.3s var(--animation-ease);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-modal-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--animation-duration) var(--animation-ease);
}

.auth-modal-close:hover {
    color: var(--text-primary);
}

.auth-modal-body {
    padding: 2rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Intersection Observer Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--animation-ease);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .mobile-menu.show {
        display: flex;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-social-proof {
        justify-content: center;
    }
    
    .features-grid {
        height: 650px;
        padding-top: 80px;
        perspective: 800px;
        perspective-origin: center center;
        overflow: visible;
    }
    
    .features-carousel {
        width: 500px;
        height: 300px;
        transform: translateX(150px);
    }
    
    .feature-card {
        width: 220px;
        height: 320px;
        padding: 1rem;
        transform-origin: 110px 160px -220px;
    }
    
    .feature-card:hover {
        animation-play-state: paused;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        z-index: 10;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
    
    .carousel-nav {
        display: none;
    }
    
    /* Steps container is now handled in the step connector section above */
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing {
        padding: 1rem 0;
        min-height: 100vh;
        max-height: none;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    

    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-container {
        padding: 1rem 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .features-grid {
        height: 550px;
        padding-top: 60px;
        perspective: 600px;
        perspective-origin: center center;
        overflow: visible;
    }
    
    .features-carousel {
        transform: translateX(80px);
    }
    
    .feature-card {
        width: 200px;
        height: 300px;
        transform-origin: 100px 150px -200px;
    }
    
    .feature-card:hover {
        animation-play-state: paused;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 10;
    }
    
    /* Extra mobile styles for pricing */
    .credits-amount {
        font-size: 1.5rem;
    }
    
    .pricing-card {
        padding: 1rem;
    }
    
    .pricing-tagline {
        gap: 1rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.footer-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #2E7D0F;
        --text-secondary: #000000;
    }
    
    .btn-primary {
        background: #2E7D0F;
        border: 2px solid #2E7D0F;
    }
    
    .feature-card {
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
/* Desktop viewport optimizations for 1920x1080 */
@media (min-width: 1200px) and (min-height: 900px) {
    .hero {
        height: 95vh; /* Slightly reduce to prevent cut-off */
    }
    
    .features,
    .how-it-works,
    .demo,
    .pricing {
        padding: 50px 0; /* Reduce padding for better viewport fit */
    }
    
    .section-header {
        margin-bottom: 2.5rem; /* Tighter spacing */
    }
    
    /* Features grid is now 3D carousel, no grid gap needed */
    
    .steps-container {
        gap: 2rem; /* Reduce step gap */
    }
    
    .pricing-grid {
        gap: 1.5rem; /* Reduce pricing gap */
    }
}

/* High resolution desktop optimization */
@media (min-width: 1600px) and (min-height: 1000px) {
    .features,
    .how-it-works,
    .demo,
    .pricing {
        padding: 60px 0; /* Slightly more padding for larger screens */
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *:not(.features-carousel),
    *:not(.features-carousel)::before,
    *:not(.features-carousel)::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-pattern {
        animation: none;
    }
    
    /* Keep 3D carousel animation even with reduced motion preference */
    .feature-card {
        animation: cardRotate 45s linear infinite !important;
    }
}

/* User Navigation Styles */
.user-nav {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.75rem; /* Add consistent spacing after credits */
}

/* Ensure consistent spacing between credits and user nav */
.nav-links .credits-display + .user-nav {
    margin-left: 0.75rem;
}

/* Ensure credits display has proper spacing */
.nav-links .credits-display {
    margin-right: 0; /* Remove any conflicting margins */
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.user-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-icon {
    font-size: 16px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-btn:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #2d3748;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f7fafc;
}

.dropdown-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dropdown-item.logout-btn {
    color: #dc3545;
    border-top: 1px solid #e9ecef;
}

.dropdown-item.logout-btn:hover {
    background-color: #f8d7da;
}

.item-icon {
    font-size: 16px;
}

/* Mobile User Navigation */
.mobile-user-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.mobile-user-info {
    padding: 0 20px 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.mobile-user-name {
    font-weight: 500;
    color: white;
}

.mobile-user-nav .mobile-link {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.mobile-user-nav .mobile-link:hover,
.mobile-user-nav .mobile-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-user-nav .logout-btn {
    color: #ffb3ba;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-user-nav .logout-btn:hover {
    background-color: rgba(255, 0, 0, 0.1);
}

/* Close dropdown when clicking outside */
.user-dropdown::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    display: none;
}

.user-dropdown.show::before {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-nav {
        display: none; /* Hide desktop user nav on mobile */
    }
    
    .user-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .user-name {
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        right: -10px;
        min-width: 160px;
    }
}

/* Animation for user nav appearance */
.user-nav {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dark mode support removed - Landing page should always be light theme */

@keyframes slideInRightAndStay {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(5%);
        opacity: 1;
    }
}

/* Landing Page Theme Isolation - Prevent app dark theme from affecting landing page */
.landing-body .highlighted-orange,
.landing-body .highlighted-green,
.landing-body .highlighted-blue,
.landing-body .highlighted-purple,
.landing-body .highlight-item,
.landing-body .step-visual,
.landing-body .upload-demo,
.landing-body .chapters-demo,
.landing-body .audio-demo,
.landing-body .export-demo,
.landing-body .chapter-demo-item,
.landing-body .audio-player,
.landing-body .export-option{
    /* Force light theme styles regardless of global theme - using fixed colors */
    background: #f8f9fa !important;
    color: #333 !important;
    border-color: #dee2e6 !important;
}

.landing-body .feature-card .highlight-item {
    background: rgba(76, 175, 80, 0.1) !important; /* Light green background */
    color: #2e7d32 !important;                    /* Strong green text */
    border: 1px solid #81c784 !important;         /* Softer green border */
}

/* Override specific highlighted text colors for landing page */
.landing-body .highlighted-orange {
    background: rgba(255, 152, 0, 0.1) !important;
    border-left: 3px solid #ff9800 !important;
    color: #e65100 !important;
}

.landing-body .highlighted-green {
    background: rgba(76, 175, 80, 0.1) !important;
    border-left: 3px solid #4caf50 !important;
    color: #2e7d32 !important;
}

.landing-body .highlighted-blue {
    background: rgba(33, 150, 243, 0.1) !important;
    border-left: 3px solid #2196f3 !important;
    color: #1565c0 !important;
}

.landing-body .highlighted-purple {
    background: rgba(156, 39, 176, 0.1) !important;
    border-left: 3px solid #9c27b0 !important;
    color: #7b1fa2 !important;
}

/* Override highlight-item styles for landing page */
.landing-body .highlight-item {
    background: #f8f9fa !important;
    color: #667eea !important;
    border: 1px solid #e9ecef !important;
}

/* Override step-visual styles for landing page */
.landing-body .step-visual {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
}

.landing-body .chapter-demo-item {
    background: white !important;
    border-left: 3px solid #667eea !important;
    color: #333 !important;
}

/* Landing page should never be affected by dark theme - this rule is no longer needed */

.landing-body .audio-player {
    background: white !important;
    border: 1px solid #e9ecef !important;
}

.landing-body .export-option {
    background: white !important;
    border: 1px solid #e9ecef !important;
    color: #333 !important;
}

/* Root variables - Light theme colors for reference */ 