/* TaraOno - Visual UX Redesign v2.0
 * Inspired by: Stripe, Linear, Vercel, Raycast, Framer
 * Focus: Premium feel, color coordination, seamless flow
 */

/* ===== MODERN COLOR PALETTE ===== */
:root {
    /* Primary Colors - Navy & Blue only */
    --color-primary-start: #364568;  /* Primary Navy */
    --color-primary-mid: #5F7FA3;    /* Secondary Blue */
    --color-primary-end: #5F7FA3;    /* Secondary Blue (no gold) */

    /* Accent Colors - Only navy and blue */
    --color-accent-purple: #5F7FA3;  /* Secondary Blue */
    --color-accent-blue: #5F7FA3;    /* Secondary Blue */
    --color-accent-teal: #5F7FA3;    /* Secondary Blue */
    --color-accent-pink: #5F7FA3;    /* Secondary Blue */
    --color-accent-gold: #B8A136;    /* Complement Gold (use sparingly) */

    /* Neutrals */
    --color-text: #1F2430;          /* Text Dark */
    --color-text-light: #5B6478;    /* Text Muted */
    --color-text-muted: #5B6478;    /* Text Muted */
    --color-bg: #FFFFFF;            /* White */
    --color-bg-light: #F4F6FA;      /* Background */
    --color-bg-alt: #E6E9F1;        /* Surface */
    --color-border: #C5CAD8;        /* Border */

    /* Dark Mode */
    --color-dark-bg: #364568;       /* Use primary navy */
    --color-dark-bg-light: #5F7FA3; /* Use secondary blue */
    --color-dark-text: #FFFFFF;

    /* Gradients - Navy to Blue only */
    --gradient-primary: linear-gradient(135deg, #364568 0%, #5F7FA3 100%);
    --gradient-hero: linear-gradient(180deg, rgba(54, 69, 104, 0.4) 0%, rgba(54, 69, 104, 0.8) 100%);
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(95, 127, 163, 0.15) 0%, transparent 50%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.3);

    /* Z-index */
    --z-navbar: 1000;
    --z-video: 1;
    --z-overlay: 2;
    --z-content: 10;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Prevent horizontal scroll on all pages */
html {
    overflow-x: hidden;
}

main, .section, .container {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
}
h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
}
h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

/* ===== MODERN NAVBAR (Transparent → Solid on Scroll) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--color-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== HERO SECTION (Enhanced) ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary-start) 0%, var(--color-primary-mid) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: var(--z-overlay);
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: var(--z-video);
    overflow: hidden;
    background: var(--color-primary-start);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--color-accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--spacing-sm);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-content-top,
.hero-content-bottom {
    position: absolute;
    left: 0;
    right: 0;
    z-index: var(--z-content);
    text-align: center;
    color: white;
    padding: 0 var(--spacing-lg);
}

.hero-content-top {
    top: 0;
    padding-top: 18vh;
    padding-bottom: 6vh;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 50%, transparent 100%);
}

.hero-content-bottom {
    bottom: 0;
    padding-bottom: 12vh;
    padding-top: 8vh;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 50%, transparent 100%);
}

/* Mobile: Keep hero text at extreme top/bottom to not cover center animation */
@media (max-width: 768px) {
    .hero-content-top {
        padding-top: 18vh;
        padding-bottom: 3vh;
    }

    .hero-content-bottom {
        padding-bottom: 8vh;
        padding-top: 4vh;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
        margin-bottom: var(--spacing-sm);
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-cta .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(30px);
    color: var(--color-bg);
    letter-spacing: -0.04em;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6))
            drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
            drop-shadow(0 0 40px rgba(15, 23, 42, 0.8));
}

.hero-subtitle {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 600;
    opacity: 0;
    transform: translateY(30px);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(20px);
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6),
                 0 4px 8px rgba(0, 0, 0, 0.4),
                 0 0 20px rgba(15, 23, 42, 0.8);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

/* ===== MODERN BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    z-index: var(--z-content);
    opacity: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    margin: var(--spacing-xs) auto;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
}

/* ===== SECTIONS (Color Coordinated) ===== */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: #364568;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #4A5568;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Vision Section - Light Background */
.vision-section {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-alt) 100%);
    padding-top: var(--spacing-xl);
    position: relative;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--color-primary-start) 0%, transparent 100%);
    pointer-events: none;
}

/* Features Section - Clean White with Gradient Cards */
.features-section {
    background: var(--color-bg);
}

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

.feature-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 24px;
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

/* Translator Preview - Light Background */
.translator-preview-section {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-alt) 100%);
    position: relative;
}

/* Languages Section - Light Background */
.languages-section {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-alt) 100%);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.language-badge {
    background: white;
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(20, 184, 166, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
}

.language-badge:hover {
    border-color: var(--color-accent-teal);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.2);
}

/* CTA Section - Full Gradient */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-title,
.cta-description {
    color: white;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-dark-bg);
    color: var(--color-dark-text);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: #FFFFFF;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: var(--spacing-md);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #FFFFFF;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-copyright p {
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        min-width: 250px;
        border-radius: 12px;
        margin-right: var(--spacing-md);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--color-text);
    }

    .hero-content-top {
        top: 100px;
    }

    .hero-content-bottom {
        bottom: 100px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-brand {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm) var(--spacing-md);
    }
}

/* ===== HOMEPAGE PANEL STYLES ===== */

/* Panel Headers */
.panel-header {
    text-align: center;
    margin-bottom: 3rem;
}

.panel-tag {
    display: inline-block;
    background: var(--color-bg-light);
    color: var(--color-primary-mid);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.panel-cta {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.panel-cta .btn {
    min-width: 200px;
}

/* ===== PANEL 2: ALPHABET PREVIEW ===== */
.alphabet-preview-section {
    background: var(--color-bg-light);
    padding: 6rem 0;
}

.alphabet-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

/* Sample Letters Grid */
.sample-letters-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.sample-letter {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.sample-letter .letter {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary-start);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.sample-letter .sound {
    display: block;
    font-size: 1rem;
    color: var(--color-primary-mid);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.sample-letter .example {
    display: block;
    font-size: 0.875rem;
    color: #374151;
    padding: 0.375rem 0.75rem;
    background: var(--color-bg-light);
    border-radius: 6px;
}

.sample-letter .example strong {
    color: var(--color-primary-mid);
    font-weight: 700;
}

/* Alphabet Stats Row */
.alphabet-stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.alphabet-stat {
    text-align: center;
}

.alphabet-stat .stat-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary-start);
    line-height: 1;
}

.alphabet-stat .stat-label {
    display: block;
    font-size: 0.875rem;
    color: #374151;
    margin-top: 0.5rem;
}

/* Alphabet Benefits */
.alphabet-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: var(--color-primary-mid);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 0.9375rem;
    color: #374151;
}

/* ===== PANEL 3: LEARN PREVIEW ===== */
.learn-preview-section {
    background: white;
    padding: 6rem 0;
}

.learn-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

/* Learning Timeline */
.learning-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.timeline-item {
    background: var(--color-bg-light);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.timeline-item.completed {
    background: var(--gradient-primary);
    color: white;
}

.timeline-item.completed .timeline-week,
.timeline-item.completed h4,
.timeline-item.completed p {
    color: white;
}

.timeline-item.completed .timeline-status {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.timeline-week {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-mid);
    margin-bottom: 0.75rem;
}

.timeline-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.timeline-status {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-primary-mid);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-link:hover {
    background: var(--color-primary-start);
    transform: scale(1.05);
}

/* Learn Comparison */
.learn-comparison {
    background: var(--color-bg-light);
    border-radius: 20px;
    padding: 2.5rem;
}

.comparison-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.comparison-item {
    text-align: center;
}

.comparison-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.comparison-values {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comparison-values .traditional {
    background: #F3F4F6;
    color: #6B7280;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-decoration: line-through;
    opacity: 0.7;
}

.comparison-values .taraono {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===== RESPONSIVE - HOMEPAGE PANELS ===== */
@media (max-width: 768px) {
    .sample-letters-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .alphabet-stats-row {
        gap: 2rem;
    }

    .alphabet-stat .stat-value {
        font-size: 2.5rem;
    }

    .alphabet-benefits {
        flex-direction: column;
        align-items: center;
    }

    .learning-timeline {
        grid-template-columns: 1fr;
    }

    .timeline-item.completed::after {
        display: none;
    }

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

@media (max-width: 480px) {
    .sample-letters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sample-letter .letter {
        font-size: 2.5rem;
    }

    .panel-cta {
        flex-direction: column;
    }

    .panel-cta .btn {
        width: 100%;
    }
}

/* ===== LANGUAGES SECTION ===== */
.languages-section {
    background: var(--color-bg-light);
    padding: 6rem 0;
}

.top-languages-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

.languages-subheading {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.top-languages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.top-language-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.top-language-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(54, 69, 104, 0.15);
    border-color: var(--color-primary-start);
}

.language-flag {
    font-size: 2.5rem;
    line-height: 1;
}

.language-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.language-speakers {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.languages-more {
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* Responsive - Languages Grid */
@media (max-width: 900px) {
    .top-languages-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1rem;
    }

    .top-language-card {
        padding: 1.25rem 0.75rem;
    }

    .language-flag {
        font-size: 2rem;
    }

    .language-name {
        font-size: 0.875rem;
    }

    .language-speakers {
        font-size: 0.7rem;
    }
}

@media (max-width: 700px) {
    .top-languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .top-language-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .language-flag {
        font-size: 2rem;
    }

    .language-name {
        font-size: 1rem;
        text-align: left;
    }

    .language-speakers {
        font-size: 0.75rem;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .top-languages-grid {
        grid-template-columns: 1fr;
    }

    .languages-subheading {
        font-size: 1rem;
    }
}
