/* ═══════════════════════════════════════════════════════════════
   Vocedia Landing Page — Design System
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
    --primary: #6366F1;
    --primary-light: #A5B4FC;
    --primary-dark: #4F46E5;
    --indigo: #6C5CE7;
    --emerald: #00C48C;
    --coral: #FF6B6B;
    --orange: #FF8C42;
    --gold: #FFD700;
    --amber: #FFC857;
    --purple: #B565D8;
    --sky-blue: #4A90E2;
    --electric-blue: #00B4D8;

    --dark: #1A1B2E;
    --dark-card: #232446;
    --dark-surface: #2A2B50;
    --dark-border: #3D3E6B;

    --light: #FFFFFF;
    --light-bg: #F8F7FC;
    --light-border: #E0E2E8;
    --text-muted: #9CA3AF;
    --text-body: #6B7280;

    --font: 'Nunito', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow: 0 4px 24px rgba(99, 102, 241, 0.10);
    --shadow-lg: 0 8px 40px rgba(99, 102, 241, 0.15);
    --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Animated Background ───────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 600px 600px at 15% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 85% 70%, rgba(108, 92, 231, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 50% 50%, rgba(0, 196, 140, 0.06) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

body>* {
    position: relative;
    z-index: 1;
}

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
    padding: 18px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 27, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-brand span {
    background: linear-gradient(135deg, var(--primary), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover {
    color: var(--light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--light);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--indigo) 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* ── Store Badges ──────────────────────────────────────────── */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--light);
    color: var(--dark);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.store-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.store-badge svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-badge .store-label {
    text-align: left;
    line-height: 1.2;
}

.store-badge .store-label small {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-body);
}

.store-badge.apple-badge {
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--dark-border);
}

.store-badge.apple-badge .store-label small {
    color: var(--text-muted);
}

.store-badge.apple-badge:hover {
    border-color: var(--primary);
}

/* ── Features Section ──────────────────────────────────────── */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(35, 36, 70, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-icon.indigo {
    background: rgba(99, 102, 241, 0.15);
}

.feature-icon.emerald {
    background: rgba(0, 196, 140, 0.15);
}

.feature-icon.coral {
    background: rgba(255, 107, 107, 0.15);
}

.feature-icon.orange {
    background: rgba(255, 140, 66, 0.15);
}

.feature-icon.purple {
    background: rgba(181, 101, 216, 0.15);
}

.feature-icon.sky {
    background: rgba(74, 144, 226, 0.15);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Screenshots Section ───────────────────────────────────── */
.screenshots {
    padding: 100px 0;
    overflow: hidden;
}

.screenshots-track {
    display: flex;
    gap: 24px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding: 24px;
}

.screenshots-track::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(99, 102, 241, 0.15);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: scale(1.03);
    border-color: var(--primary);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Languages Section ─────────────────────────────────────── */
.languages {
    padding: 100px 0;
}

.lang-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.lang-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: rgba(35, 36, 70, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.lang-chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.lang-chip .flag {
    font-size: 1.6rem;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(108, 92, 231, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    position: relative;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    padding: 48px 0;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-copy {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

/* ── Legal Pages ───────────────────────────────────────────── */
.legal-page {
    padding: 140px 0 80px;
}

.legal-page .legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-page .last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 48px;
}

.legal-page h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 40px 0 16px;
    color: var(--light);
}

.legal-page h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--primary-light);
}

.legal-page p,
.legal-page li {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-page ul {
    padding-left: 24px;
    list-style: disc;
}

.legal-page ul li {
    margin-bottom: 8px;
}

.legal-page .info-card {
    background: rgba(35, 36, 70, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
}

.legal-page .info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.legal-page .info-card p {
    margin-bottom: 0;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 27, 46, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 130px 0 70px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .store-badge {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-item {
        width: 220px;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .store-badge {
        justify-content: center;
    }

    .lang-chip {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}