/* ========================================
   EchoTune - Premium Landing Page
   Modern, Apple-Quality Design
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafb;
    --bg-tertiary: #f1f4f7;
    --text-primary: #0f1419;
    --text-secondary: #536471;
    --text-tertiary: #8b98a5;
    --border-color: #e7ecf0;
    --border-subtle: #f1f4f7;
    
    /* Brand Colors */
    --primary: #2eb8d4;
    --primary-hover: #1fa3be;
    --primary-light: #e8f8fb;
    --secondary: #7ed0ec;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2eb8d4 0%, #7ed0ec 100%);
    --gradient-hero: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(46, 184, 212, 0.08) 0%, transparent 60%);
    --gradient-glow: radial-gradient(circle at center, rgba(46, 184, 212, 0.15) 0%, transparent 70%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.04);
    --shadow-md: 0 4px 8px rgba(15, 20, 25, 0.06);
    --shadow-lg: 0 10px 24px rgba(15, 20, 25, 0.08);
    --shadow-xl: 0 20px 40px rgba(15, 20, 25, 0.1);
    --shadow-glow: 0 0 40px rgba(46, 184, 212, 0.2);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f0f14;
    --bg-secondary: #16161d;
    --bg-tertiary: #1e1e28;
    --text-primary: #f7f9fa;
    --text-secondary: #b0b8c1;
    --text-tertiary: #6e7681;
    --border-color: #2a2a35;
    --border-subtle: #1e1e28;
    
    --gradient-hero: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(46, 184, 212, 0.12) 0%, transparent 60%);
    --gradient-glow: radial-gradient(circle at center, rgba(46, 184, 212, 0.2) 0%, transparent 70%);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
    
    --glass-bg: rgba(22, 22, 29, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--transition-base), color var(--transition-base);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.icon-sun {
    display: none;
}

.icon-moon {
    display: block;
}

[data-theme="dark"] .icon-sun {
    display: block;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: calc(72px + var(--space-4xl)) 0 var(--space-4xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

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

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.hero-visual {
    margin-top: var(--space-3xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Mockup Window */
.mockup-window {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.mockup-dots span:nth-child(1) {
    background: #ff5f57;
}

.mockup-dots span:nth-child(2) {
    background: #febc2e;
}

.mockup-dots span:nth-child(3) {
    background: #28c840;
}

.mockup-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.mockup-content {
    padding: var(--space-xl);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.transcription-demo {
    text-align: center;
}

.wave-container {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: flex-end;
    height: 80px;
    margin-bottom: var(--space-lg);
}

.wave-bar {
    width: 6px;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) {
    animation-delay: 0s;
}
.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
}
.wave-bar:nth-child(3) {
    animation-delay: 0.2s;
}
.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
}
.wave-bar:nth-child(5) {
    animation-delay: 0.4s;
}
.wave-bar:nth-child(6) {
    animation-delay: 0.3s;
}
.wave-bar:nth-child(7) {
    animation-delay: 0.2s;
}
.wave-bar:nth-child(8) {
    animation-delay: 0.1s;
}

@keyframes wave {
    0%, 100% {
        height: 20px;
    }
    50% {
        height: 60px;
    }
}

.transcription-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary);
    animation: typing 3.5s steps(60, end) infinite, blink 0.75s step-end infinite;
}

@keyframes typing {
    0%, 100% {
        width: 0;
    }
    50%, 90% {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Social Proof */
.social-proof {
    padding: var(--space-xl) 0;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.social-proof-text {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

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

/* Features Section */
.features {
    padding: var(--space-4xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.glass-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

[data-theme="dark"] .feature-icon {
    background: rgba(46, 184, 212, 0.1);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr 120px;
    gap: var(--space-xl);
    align-items: center;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-visual {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

/* Pricing */
.pricing {
    padding: var(--space-4xl) 0;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    padding: var(--space-xl);
    border-radius: 20px;
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.pricing-price {
    margin: var(--space-md) 0;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-left: var(--space-xs);
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Download Section */
.download {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.download-card {
    padding: var(--space-3xl);
    border-radius: 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.download-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.download-requirements {
    margin-bottom: var(--space-xl);
}

.download-requirements p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.download-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ Section */
.faq {
    padding: var(--space-4xl) 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

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

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .hero {
        padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: var(--space-lg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .step-visual {
        margin: 0 auto;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .download-actions {
        flex-direction: column;
    }
    
    .download-actions .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .mockup-content {
        padding: var(--space-lg);
    }
    
    .wave-container {
        height: 60px;
    }
    
    .download-card {
        padding: var(--space-xl);
    }
}
