/* ===== CSS Variables - LexiVerses Brand Colors ===== */
:root {
    /* Primary Colors */
    --color-primary: #2D3A5C;
    --color-primary-dark: #1E2840;
    --color-primary-light: #4A5A7C;
    --color-gold: #C98A2E;
    --color-gold-light: #E8B84A;
    --color-gold-dark: #A67325;
    
    /* Text Colors */
    --color-text: #3D2E1E;
    --color-text-light: #6B5A48;
    --color-text-lighter: #9A8A7A;
    
    /* Background Colors */
    --color-bg: #FFFFFF;
    --color-bg-cream: #FAF8F3;
    --color-bg-parchment: #F5EFE0;
    --color-bg-dark: #2D3A5C;
    
    /* Feedback Colors */
    --color-success: #4A8B3C;
    --color-error: #C54B4B;
    
    /* UI Colors */
    --color-border: #E0D5C7;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 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);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-text);
}

.btn-primary:hover {
    background-color: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* ===== Header ===== */
.site-header {
    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(--color-border);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
}

.footer-logo {
    height: 80px;
}

.footer-brand-link {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-gold);
    letter-spacing: -0.02em;
}

.footer-logo-text:hover {
    color: var(--color-gold-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-light);
    transition: color 0.2s;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    padding: 10rem 1.5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

.hero-content .highlight {
    color: var(--color-gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-gold);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg-cream);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lesson-badge {
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--color-bg-parchment);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-gold);
    border-radius: var(--radius-full);
    transition: width 0.3s;
}

.app-content {
    flex: 1;
}

.exercise-prompt {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* Audio Player Mockup */
.audio-player-mockup {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0.625rem 0.875rem;
    margin-bottom: 1rem;
}

.play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-gold);
    border: none;
    color: var(--color-text);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.audio-waveform {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
}

.audio-waveform span {
    flex: 1;
    background: var(--color-gold);
    border-radius: 2px;
    opacity: 0.6;
}

.audio-waveform span:nth-child(1) { height: 40%; }
.audio-waveform span:nth-child(2) { height: 70%; }
.audio-waveform span:nth-child(3) { height: 50%; }
.audio-waveform span:nth-child(4) { height: 90%; }
.audio-waveform span:nth-child(5) { height: 60%; }
.audio-waveform span:nth-child(6) { height: 80%; }
.audio-waveform span:nth-child(7) { height: 45%; }
.audio-waveform span:nth-child(8) { height: 95%; }
.audio-waveform span:nth-child(9) { height: 55%; }
.audio-waveform span:nth-child(10) { height: 75%; }
.audio-waveform span:nth-child(11) { height: 40%; }
.audio-waveform span:nth-child(12) { height: 65%; }
.audio-waveform span:nth-child(13) { height: 85%; }
.audio-waveform span:nth-child(14) { height: 50%; }
.audio-waveform span:nth-child(15) { height: 35%; }

.audio-duration {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 500;
    flex-shrink: 0;
}

.scripture-text {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.word-chip {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.word-chip.selected {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-text);
}

.app-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-gold);
    color: var(--color-text);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: auto;
}

/* Phone Small Variant */
.phone-small {
    width: 240px;
    height: 500px;
}

.phone-small .phone-screen {
    border-radius: 28px;
}

.phone-small .app-preview {
    padding: 1.25rem;
}

.phone-small .app-header {
    margin-bottom: 1.5rem;
}

.phone-small .exercise-prompt {
    font-size: 0.8rem;
}

.phone-small .app-btn {
    padding: 0.75rem;
    font-size: 0.875rem;
}

.phone-small .audio-player-mockup {
    padding: 0.5rem 0.625rem;
}

.phone-small .play-btn {
    width: 28px;
    height: 28px;
    font-size: 0.625rem;
}

.phone-small .audio-duration {
    font-size: 0.7rem;
}

.phone-small .word-chip {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
}

/* MCQ Options (Listening MCQ) */
.mcq-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mcq-option {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mcq-option.selected {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-text);
}

/* Cloze (Fill in the Blank) */
.cloze-sentence {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.cloze-blank {
    display: inline-block;
    min-width: 80px;
    border-bottom: 2px dashed var(--color-gold);
    color: var(--color-gold);
    font-weight: 700;
}

.cloze-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* Reorder Exercise */
.reorder-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reorder-drop-zone {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.75rem;
    background: var(--color-bg);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
}

.reorder-placeholder {
    width: 60px;
    height: 32px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
}

.reorder-chip {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: grab;
}

.reorder-chip.placed {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.reorder-word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* Dictation Exercise */
.dictation-input {
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    min-height: 80px;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-top: 1rem;
}

.typed-text {
    font-weight: 500;
}

.cursor {
    color: var(--color-gold);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== Section Styles ===== */
section {
    padding: 5rem 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

/* ===== Features Section ===== */
.features {
    background: var(--color-bg);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.features-with-phone {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.features-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-bg-cream);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid var(--color-border);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* ===== How It Works Section ===== */
.how-it-works {
    max-width: 1100px;
    margin: 0 auto;
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-gold);
    color: var(--color-text);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--color-text-light);
}

/* ===== Curriculum Section ===== */
.curriculum {
    background: var(--color-bg);
}

.curriculum-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.unit-preview {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.unit-card {
    background: var(--color-bg-cream);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.unit-header {
    margin-bottom: 1rem;
}

.unit-badge {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skills-list {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-icon {
    color: var(--color-success);
    font-weight: 700;
}

.lessons-count {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.unit-teaser {
    background: var(--color-bg-cream);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 2px dashed var(--color-border);
}

.unit-teaser p {
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.unit-teaser ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--color-text-light);
}

.unit-teaser li::before {
    content: "→ ";
    color: var(--color-gold);
}

/* ===== Exercise Types Section ===== */
.exercise-types {
    max-width: 1100px;
    margin: 0 auto;
}

.exercise-showcase {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.exercise-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

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

.exercise-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s;
}

.exercise-card:hover {
    background: var(--color-bg-cream);
    box-shadow: var(--shadow);
    border-color: var(--color-gold);
}

.exercise-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.exercise-card h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.exercise-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: var(--color-gold);
    color: var(--color-text);
}

.cta-section .btn-primary:hover {
    background: var(--color-gold-light);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-bg-parchment);
    border-top: 1px solid var(--color-border);
    padding: 4rem 1.5rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-light);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--color-text-light);
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ===== Download Page ===== */
.download-hero {
    padding-top: 10rem;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-cream) 100%);
}

/* ===== Page Hero (About, Contact, Privacy) ===== */
.page-hero {
    padding: 10rem 1.5rem 4rem;
    text-align: center;
    background: var(--color-bg);
}

.page-hero h1 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.page-hero p {
    color: var(--color-text-light);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download-content h1 {
    margin-bottom: 1rem;
}

.download-content > p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.store-button:hover {
    background: var(--color-gold);
    color: var(--color-text);
    transform: translateY(-2px);
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.store-name {
    font-size: 1.125rem;
    font-weight: 600;
}

.qr-section {
    margin-top: 2rem;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    background: var(--color-bg-parchment);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
}

.qr-section p {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.download-features {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.download-features h2 {
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.feature-item .check {
    color: var(--color-success);
    font-weight: 700;
}

/* ===== Error Page ===== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem;
}

.error-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ===== About & Content Pages ===== */
.content-page {
    padding-top: 8rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-page h1 {
    margin-bottom: 2rem;
}

.content-page p {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.content-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
        min-height: auto;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-with-phone {
        grid-template-columns: 1fr;
    }

    .features-phone {
        display: flex;
        justify-content: center;
    }

    .how-it-works-content {
        grid-template-columns: 1fr;
    }

    .how-it-works-phone {
        display: flex;
        justify-content: center;
        order: -1;
    }

    .curriculum-content {
        grid-template-columns: 1fr;
    }

    .curriculum-phone {
        display: flex;
        justify-content: center;
    }

    .exercise-showcase {
        grid-template-columns: 1fr;
    }

    .exercise-phone {
        display: flex;
        justify-content: center;
    }

    .exercise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .logo-img {
        height: 60px;
    }

    .nav-links {
        display: none;
    }

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

    .hero {
        padding: 8rem 1rem 3rem;
    }

    .page-hero,
    .download-hero {
        padding-top: 8rem;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .phone-mockup {
        width: 240px;
        height: 500px;
    }

    .features-grid,
    .features-grid-compact,
    .exercise-grid,
    .exercise-grid-compact {
        grid-template-columns: 1fr;
    }

    .phone-small {
        width: 200px;
        height: 420px;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .phone-mockup {
        width: 220px;
        height: 460px;
    }

    .word-chip {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}
