/* ============================================
   LuminaVox AI — Premium Website Stylesheet
   Synced with app colors (indigo/purple)
   Full dark/light mode support
   ============================================ */

/* CSS Custom Properties — App-synced palette */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --header-bg: rgba(10, 10, 15, 0.85);
    --footer-bg: #06060a;
    --faq-bg: rgba(255, 255, 255, 0.03);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.light-mode {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.06);
    --text-primary: #1d1d1f;
    --text-secondary: rgba(29, 29, 31, 0.6);
    --text-tertiary: rgba(29, 29, 31, 0.35);
    --accent: #5856d6;
    --accent-light: #6366f1;
    --accent-glow: rgba(88, 86, 214, 0.12);
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --header-bg: rgba(245, 245, 247, 0.9);
    --footer-bg: #f0f0f2;
    --faq-bg: rgba(0, 0, 0, 0.02);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography — Otter.ai-inspired clean style */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ============================================
   Header / Nav
   ============================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: var(--header-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.logo span {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.header-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cta-button {
    background: var(--accent);
    color: white;
    padding: 9px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
    background: var(--accent-light);
}

.cta-large {
    padding: 14px 36px;
    font-size: 1rem;
}

/* Language Select */
#lang-select {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

#lang-select:hover {
    border-color: var(--border-hover);
}

#lang-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Theme Toggle */
#theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 160px 24px 60px;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
    font-weight: 400;
}

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

/* App Store Badge */
.appstore-badge {
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.appstore-badge img {
    height: 52px;
    width: auto;
    display: block;
}

.appstore-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ============================================
   Demo Section
   ============================================ */
.demo-section {
    display: flex;
    justify-content: center;
    padding: 20px 24px 100px;
}

.demo-phone {
    max-width: 300px;
    width: 100%;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 40px 80px -16px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
    border: 6px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-secondary);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

body.light-mode .demo-phone {
    box-shadow: 0 40px 80px -16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

.demo-video {
    width: 100%;
    display: block;
}

/* ============================================
   Value Propositions — Clean card grid
   ============================================ */
.value-props {
    padding: 40px 24px 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.value-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.value-text {
    padding: 24px 24px 28px;
}

.value-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.value-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: 80px 24px 100px;
    max-width: 720px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.faq-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--faq-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--accent);
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item summary:hover {
    color: var(--accent-light);
}

/* ============================================
   Final CTA Section
   ============================================ */
.final-cta {
    text-align: center;
    padding: 80px 24px 100px;
    background: linear-gradient(180deg, transparent 0%, var(--accent-glow) 100%);
}

.final-cta h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.final-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* ============================================
   Footer
   ============================================ */
footer {
    padding: 60px 40px 32px;
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    transition: background-color 0.4s ease;
}

.footer-content {
    max-width: 100%;
    margin: 0 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

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

.footer-brand .logo {
    margin-bottom: 12px;
}

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

.footer-links-group {
    display: flex;
    gap: 60px;
    margin: 0 auto;
}

.footer-column h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.footer-column a {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
}

.legal-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 140px 40px 100px;
}

.legal-main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.legal-separator {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 40px;
}

.legal-sub-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.legal-updated {
    font-size: 0.95rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.legal-updated span {
    color: var(--accent-light);
}

.legal-updated time {
    color: var(--text-secondary);
}

.legal-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.legal-content a {
    color: var(--accent-light);
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-top: 48px;
    margin-bottom: 20px;
}

.legal-content p,
.legal-content li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.legal-content ul {
    margin: 16px 0 24px;
    padding-left: 20px;
}

.legal-content li {
    list-style-type: disc;
    margin-bottom: 8px;
    padding-left: 4px;
}

/* Hide footer on legal pages */
.legal-page footer {
    display: none !important;
}

/* Legal pages nav style */
.legal-page header nav {
    display: flex;
    gap: 24px;
}

.legal-page header nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.legal-page header nav a:hover {
    color: var(--text-primary);
}

.legal-page header nav a.cta-button {
    color: white;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    header {
        padding: 14px 20px;
    }

    nav ul {
        display: none;
    }

    .header-controls .cta-button {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 130px 20px 40px;
    }

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

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

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

    .faq-section h2 {
        font-size: 1.8rem;
    }

    .final-cta h2 {
        font-size: 1.8rem;
    }

    .demo-phone {
        max-width: 260px;
    }

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

    .footer-links-group {
        gap: 40px;
    }

    .legal-container {
        padding: 120px 20px 60px;
    }

    .legal-main-title {
        font-size: 2rem;
    }

    .legal-sub-title {
        font-size: 1.4rem;
    }

    .legal-page header nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .value-card {
        padding: 24px 20px;
    }

    .faq-item summary {
        padding: 16px 18px;
        font-size: 0.9rem;
    }

    .faq-item p {
        padding: 0 18px 16px;
        font-size: 0.85rem;
    }
}

/* ============================================
   Coming Soon Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: 24px;
    padding: 40px 36px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

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

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 20px;
}

.modal-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.modal-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-cta {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modal-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
    background: var(--accent-light);
}

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

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

.hero-badge,
.hero h1,
.hero-subtitle,
.hero-cta-group {
    animation: fadeInUp 0.6s ease forwards;
}

.hero h1 {
    animation-delay: 0.1s;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.hero-cta-group {
    animation-delay: 0.3s;
}