/* =================================================================
   LingoVoice Landing Page Stylesheet
   Version: 1.0.0
   Design: Glassmorphism, Aurora Gradients, 2025 Trends
   ================================================================= */

/* ====== FONT IMPORTS ====== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600&display=swap');

/* ====== CSS VARIABLES & DESIGN TOKENS ====== */
:root {
    --primary-color: #FF6B6B;
    --primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --secondary-color: #4ECDC4;
    
    --bg-primary: #0A0B0E;
    --text-primary: #F0F2F5;
    --text-secondary: #A8B2C2;
    --text-tertiary: #6C7A91;

    --glass-bg: rgba(26, 29, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-primary: 'Plus Jakarta Sans', 'Noto Sans', sans-serif;
    --font-secondary: 'Noto Sans', sans-serif;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.3);
}

/* ====== BASE & RESET STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====== ANIMATED AURORA BACKGROUND ====== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(at 20% 20%, hsla(8, 100%, 71%, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 20%, hsla(175, 79%, 62%, 0.2) 0px, transparent 50%),
        radial-gradient(at 20% 80%, hsla(339, 79%, 72%, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 80%, hsla(240, 79%, 72%, 0.2) 0px, transparent 50%);
    animation: aurora 15s ease-in-out infinite;
}

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

/* ====== UTILITY CLASSES ====== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 50%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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


/* ====== HEADER & NAVIGATION ====== */
.main-header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ====== HERO SECTION ====== */
.hero {
    padding-top: 200px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.hero-headline {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 60%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

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

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hero-image-container {
    margin-top: 80px;
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* ====== MOCK UI STYLES (HERO & FEATURES) ====== */
.mock-ui {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    background: #0E1015;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mock-header {
    background: #1A1D24;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 12px; height: 12px; border-radius: 50%; background: #2D323D; }
.mock-dots span:first-child { background: #FF5E57; }
.mock-dots span:nth-child(2) { background: #FFBD2E; }

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

.mock-chat-area {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
}

.mock-message {
    display: flex;
    gap: 12px;
    max-width: 80%;
    animation: message-in 0.5s ease forwards;
    opacity: 0;
}

@keyframes message-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mock-message.self { align-self: flex-end; flex-direction: row-reverse; }
.mock-message.other { align-self: flex-start; }
.mock-message.ai-response, .mock-message.visual-widget { max-width: 100%; }


.mock-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mock-message.self .mock-avatar { background: rgba(255, 255, 255, 0.1); }
.mock-message.other .mock-avatar { background: var(--glass-bg); }
.mock-message.ai-response .mock-avatar { background: var(--primary-gradient); }
.mock-message.visual-widget .mock-avatar { background: var(--glass-bg); }


.mock-bubble {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
}

.mock-message.self .mock-bubble { background: var(--primary-gradient); border-bottom-right-radius: 6px; }
.mock-message.other .mock-bubble { background: #262A34; border-bottom-left-radius: 6px; }
.mock-message.translated .mock-bubble-translated {
    font-style: italic;
    color: var(--text-secondary);
    padding: 10px 18px;
    font-size: 0.9rem;
}
.mock-message.self.translated { align-self: flex-end; text-align: right; }
.mock-message.other.translated { align-self: flex-start; }

.highlight-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.mock-message.ai-response .mock-bubble {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    width: 100%;
}

.mock-widget {
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
    border: 1px solid var(--glass-border);
}
.widget-icon { font-size: 1.5rem; }
.widget-content strong { display: block; }
.widget-content span { font-size: 0.875rem; color: var(--text-secondary); }


/* ====== FEATURES SECTION ====== */
.interactive-features {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}

.feature-tabs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tab-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: var(--text-primary);
}

.tab-link:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-link.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
}

.tab-link .feature-icon { margin-bottom: 0; }
.tab-link .feature-title { font-size: 1.25rem; margin-bottom: 4px; }
.tab-link .feature-description { font-size: 0.9rem; color: var(--text-secondary); }


.feature-content .tab-content {
    display: none;
    animation: content-fade-in 0.6s ease;
}

.feature-content .tab-content.active {
    display: block;
}

@keyframes content-fade-in {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}


.mock-ui-features {
    border-radius: 16px;
    background: #0E1015;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.feature-card, .pricing-card, .faq-item {
    position: relative;
    z-index: 1;
}

.feature-card::before, .pricing-card::before, .faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px; /* Match the card's border-radius */
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before, .pricing-card:hover::before, .faq-item:hover::before {
    opacity: 0.5;
}

.pricing-card.popular::before {
    opacity: 0.7;
}


/* ====== HOW IT WORKS SECTION ====== */
.how-it-works-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    position: relative;
}

.step {
    text-align: center;
    max-width: 300px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border: 4px solid var(--bg-primary);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* ====== PRICING SECTION ====== */
.pricing-toggle {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;
}

.pricing-card {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-card.popular:hover {
    transform: translateY(-10px) scale(1.07);
}


.pricing-tier {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-period {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ====== FAQ SECTION ====== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-item.open {
     background: rgba(26, 29, 36, 0.8);
     border-color: rgba(255, 255, 255, 0.2);
}

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

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}


/* ====== TESTIMONIALS SECTION ====== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--glass-bg);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.testimonial-text {
    font-size: 1.125rem;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
}

.author-name {
    font-weight: 600;
}

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

/* ====== FOOTER ====== */
.main-footer {
    background: #050608;
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about .logo {
    margin-bottom: 24px;
}

.footer-about p {
    color: var(--text-secondary);
    max-width: 300px;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.footer-column h4 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    font-weight: 600;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-tertiary);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
    .nav-links, .nav-actions .btn-secondary {
        display: none;
    }
    .interactive-features {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    .hero-headline {
        font-size: 3rem;
    }
    .how-it-works-steps {
        flex-direction: column;
        align-items: center;
    }
}
