/* Landing Page Styles - VEED.io Inspired */

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

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-dark: #3730a3;  /* WCAG AA compliant for white text (6.06:1) */
    --primary-light: rgba(99, 102, 241, 0.1);
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #64748b;
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-footer: #94a3b8;  /* Improved footer text contrast */
    --text-footer-muted: #cbd5e1;  /* Better contrast on dark bg */
    --border: #e2e8f0;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

html {
    scroll-behavior: smooth;
}

/* Skip link for accessibility - visible on focus */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--primary-dark) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: #312e81 !important;  /* Even darker on hover */
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 140px 24px 80px;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

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

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--text);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-dark);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.hero-cta:hover {
    background: #312e81;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.hero-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item svg {
    color: var(--success);
}

/* Hero Visual */
.hero-visual {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.visual-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

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

.demo-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    padding: 0 20px;
}

.wave-bar {
    width: 6px;
    background: linear-gradient(180deg, var(--primary) 0%, #a855f7 100%);
    border-radius: 3px;
    animation: wave 1.2s ease-in-out infinite;
}

.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.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; }
.wave-bar:nth-child(10) { animation-delay: 0.9s; }
.wave-bar:nth-child(11) { animation-delay: 1.0s; }
.wave-bar:nth-child(12) { animation-delay: 1.1s; }
.wave-bar:nth-child(13) { animation-delay: 0.15s; }
.wave-bar:nth-child(14) { animation-delay: 0.25s; }
.wave-bar:nth-child(15) { animation-delay: 0.35s; }
.wave-bar:nth-child(16) { animation-delay: 0.45s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.6); }
}

.demo-label {
    display: block;
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.demo-arrow {
    color: var(--text-light);
}

.demo-output {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.demo-chunk {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
}

.chunk-mini-wave {
    height: 20px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary) 20%,
        var(--primary) 30%,
        transparent 35%,
        transparent 40%,
        var(--primary) 45%,
        var(--primary) 60%,
        transparent 65%,
        transparent 70%,
        var(--primary) 75%,
        var(--primary) 85%,
        transparent 100%
    );
    border-radius: 4px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.demo-chunk span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Comparison Section */
.comparison-section {
    padding: 100px 24px;
    background: var(--bg);
}

.comparison-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.comparison-card.other {
    background: var(--bg-alt);
}

.comparison-card.ours {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: var(--primary);
    position: relative;
}

.ours-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--primary-dark);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.comparison-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.comparison-list li.negative svg {
    color: var(--danger);
}

.comparison-list li.positive svg {
    color: var(--success);
}

/* How It Works */
.how-it-works {
    padding: 100px 24px;
    background: var(--bg-alt);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--primary-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cta-center {
    text-align: center;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-dark);
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary-large:hover {
    background: #312e81;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 100px 24px;
    background: var(--bg);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon.privacy { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.feature-icon.silence { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.feature-icon.formats { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.feature-icon.speed { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.feature-icon.zip { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.feature-icon.free { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Privacy Section */
.privacy-section {
    padding: 100px 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.privacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.privacy-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.privacy-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 32px;
}

.privacy-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.privacy-feature {
    display: flex;
    gap: 16px;
}

.privacy-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.privacy-feature-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: white;
}

.privacy-feature-text p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

.privacy-note {
    margin-top: 32px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--success);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.privacy-note strong {
    color: var(--success);
}

.privacy-visual {
    display: flex;
    justify-content: center;
}

.privacy-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.diagram-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.diagram-step .diagram-icon {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.diagram-step.highlight .diagram-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.diagram-step span {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.diagram-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.arrow-label {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.diagram-server.crossed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.diagram-server .diagram-icon {
    position: relative;
    width: 64px;
    height: 64px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
}

.diagram-server span {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.cross-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 3px;
    background: var(--danger);
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 2px;
}

/* Use Cases */
.use-cases-section {
    padding: 100px 24px;
    background: var(--bg-alt);
}

.use-cases-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.use-case {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.use-case h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.use-case p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: 100px 24px;
    background: var(--bg);
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Final CTA */
.final-cta {
    padding: 100px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.final-cta .hero-cta {
    background: white;
    color: var(--primary-dark);  /* WCAG AA compliant - 6.06:1 contrast ratio */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.final-cta .hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Footer */
.footer {
    padding: 60px 24px 40px;
    background: var(--bg-dark);
    color: #94a3b8;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    color: var(--primary);
}

.footer-brand p {
    color: #94a3b8;  /* Improved contrast on dark bg */
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-heading {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    color: #94a3b8;  /* Improved contrast on dark bg - 4.61:1 ratio */
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #94a3b8;  /* Improved contrast on dark bg */
}

.footer-privacy {
    color: var(--success) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

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

    .trust-badges {
        gap: 20px;
    }

    .visual-demo {
        flex-direction: column;
    }

    .demo-arrow {
        transform: rotate(90deg);
    }

    .comparison-grid,
    .steps-grid,
    .features-grid,
    .use-cases-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .privacy-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .privacy-text h2 {
        font-size: 1.75rem;
    }

    .privacy-visual {
        order: -1;
    }

    .privacy-diagram {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
