/* Home Page Styles - Elegant Serif Theme */

/* ==========================================================================
   Feature Showcase Sections
   ========================================================================== */

.feature-showcase {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.88);
}

.feature-showcase.alt-bg {
    background: rgba(250, 248, 243, 0.92);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-grid.reverse {
    direction: rtl;
}

.showcase-grid.reverse > * {
    direction: ltr;
}

.showcase-text {
    max-width: 500px;
}

.showcase-badge {
    display: inline-block;
    background: var(--color-burgundy);
    color: var(--color-cream);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.showcase-text h2 {
    font-size: 2.2em;
    margin: 0 0 20px 0;
    color: var(--color-ink);
    font-weight: 600;
    font-family: var(--font-serif);
    line-height: 1.2;
}

.showcase-text p {
    font-size: 1.1em;
    color: #5a5347;
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.showcase-note {
    font-size: 0.95em !important;
    font-style: italic;
    color: #777 !important;
    margin-top: 25px !important;
}

.showcase-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.showcase-benefits li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #5a5347;
    font-size: 1.05em;
}

.showcase-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-burgundy);
    font-weight: bold;
}

.showcase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* AI Gloss Example */
.showcase-example {
    background: var(--color-parchment);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
}

.example-word {
    font-family: var(--font-greek);
    font-size: 2em;
    color: var(--color-navy);
    margin-bottom: 15px;
    font-weight: 500;
}

.example-meanings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meaning-generic,
.meaning-contextual {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meaning-label {
    font-size: 0.85em;
    color: #888;
    font-weight: 600;
}

.meaning-generic span:not(.meaning-label) {
    color: #666;
    font-style: italic;
}

.meaning-ai {
    color: var(--color-burgundy);
    font-weight: 500;
    font-size: 1.05em;
}

/* Reader Mockup */
.reader-mockup {
    background: var(--color-parchment);
    border: 2px solid var(--color-gold);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.mockup-header {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a2a3d 100%);
    color: var(--color-cream);
    padding: 12px 20px;
    font-size: 0.9em;
    border-bottom: 2px solid var(--color-gold);
}

.mockup-content {
    padding: 25px;
    position: relative;
}

.mockup-line {
    font-family: var(--font-greek);
    font-size: 1.4em;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mockup-line-with-gloss {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.word-gloss-pair {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.word-gloss-pair .mockup-word {
    font-family: var(--font-greek);
    font-size: 1.4em;
}

.word-gloss-pair .gloss-word {
    font-size: 0.85em;
    color: var(--color-burgundy);
    font-style: italic;
    margin-top: 4px;
}

.mockup-word {
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.mockup-word.highlighted {
    background: rgba(201, 162, 39, 0.3);
    border: 1px solid var(--color-gold);
}

.mockup-gloss {
    display: flex;
    gap: 12px;
    font-size: 0.95em;
    color: var(--color-burgundy);
    font-style: italic;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.gloss-word {
    padding: 0 10px;
}

.mockup-popup {
    background: white;
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 280px;
}

.popup-word {
    font-family: var(--font-greek);
    font-size: 1.3em;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.popup-lemma {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
}

.popup-context {
    font-size: 0.9em;
    color: var(--color-burgundy);
    line-height: 1.5;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   Transliteration Demo
   ========================================================================== */

.translit-demo {
    background: var(--color-parchment);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.translit-row {
    text-align: center;
    margin-bottom: 12px;
}

.translit-row:last-child {
    margin-bottom: 0;
}

.translit-greek {
    font-family: var(--font-greek);
    font-size: 1.6em;
    color: var(--color-navy);
}

.translit-row.latin {
    padding: 10px 0;
    border-top: 1px dashed #ccc;
    border-bottom: 1px dashed #ccc;
}

.translit-latin {
    font-size: 1.3em;
    color: var(--color-burgundy);
    font-family: var(--font-serif);
    letter-spacing: 1px;
}

.translit-row.english {
    padding-top: 10px;
}

.translit-english {
    font-style: italic;
    color: #666;
    font-size: 1.1em;
}

/* Alphabet Preview Grid */
.alphabet-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 350px;
    margin: 0 auto;
}

.letter-pair {
    background: var(--color-parchment);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.2s;
}

.letter-pair:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.greek-letter {
    display: block;
    font-family: var(--font-greek);
    font-size: 1.8em;
    color: var(--color-navy);
    margin-bottom: 5px;
}

.latin-letter {
    display: block;
    font-size: 1em;
    color: var(--color-burgundy);
    font-weight: 500;
}

/* ==========================================================================
   Selection Demo (Bulk Add)
   ========================================================================== */

.selection-demo {
    background: var(--color-parchment);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.selection-label {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 12px 0;
}

.selection-visual {
    margin-bottom: 15px;
}

.selection-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid #eee;
    font-size: 0.95em;
}

.selection-line.selected {
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--color-gold);
}

.selection-check {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: transparent;
}

.selection-line.selected .selection-check {
    background: var(--color-burgundy);
    border-color: var(--color-burgundy);
    color: white;
}

.selection-count {
    margin-left: auto;
    color: #888;
    font-size: 0.85em;
}

.btn-small {
    padding: 10px 18px;
    font-size: 0.9em;
}

/* ==========================================================================
   Static Flashcard Demo
   ========================================================================== */

.demo-flashcard-static {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a2a3d 100%);
    border: 2px solid var(--color-gold);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.flashcard-front-demo {
    color: var(--color-cream);
}

.flashcard-word-demo {
    font-family: var(--font-greek);
    font-size: 2.2em;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.flashcard-source-demo {
    font-size: 0.9em;
    opacity: 0.7;
    margin-bottom: 10px;
}

.flashcard-hint-demo {
    font-size: 0.85em;
    opacity: 0.6;
    font-style: italic;
}

.flashcard-answer-preview {
    background: var(--color-parchment);
    border: 2px solid var(--color-gold);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.answer-word {
    font-family: var(--font-greek);
    font-size: 1.5em;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.answer-meaning {
    font-size: 1.1em;
    color: var(--color-burgundy);
    font-weight: 500;
    margin-bottom: 8px;
}

.answer-context {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.answer-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-again-demo,
.btn-hard-demo,
.btn-good-demo,
.btn-easy-demo {
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.btn-again-demo { background: #d9534f; color: white; }
.btn-hard-demo { background: #f0ad4e; color: white; }
.btn-good-demo { background: #5cb85c; color: white; }
.btn-easy-demo { background: #5bc0de; color: white; }

/* ==========================================================================
   Readiness Demo
   ========================================================================== */

.readiness-demo {
    margin-top: 25px;
}

.readiness-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.readiness-title {
    width: 130px;
    font-size: 0.95em;
    color: var(--color-ink);
}

.readiness-bar {
    flex: 1;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.readiness-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-burgundy) 0%, var(--color-gold) 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.readiness-percent {
    width: 45px;
    font-weight: 600;
    color: var(--color-burgundy);
    text-align: right;
}

/* Dashboard Preview */
.dashboard-preview {
    background: var(--color-parchment);
    border: 2px solid var(--color-gold);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.dashboard-stat {
    margin-bottom: 25px;
}

.stat-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.stat-circle svg {
    transform: rotate(-90deg);
}

.stat-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 10;
}

.stat-fill {
    fill: none;
    stroke: var(--color-burgundy);
    stroke-width: 10;
    stroke-linecap: round;
}

.stat-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-burgundy);
}

.stat-label-sm {
    font-size: 0.8em;
    color: #666;
}

.dashboard-breakdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: #666;
}

.breakdown-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.breakdown-item.mastered .dot { background: #5cb85c; }
.breakdown-item.learning .dot { background: #f0ad4e; }
.breakdown-item.new .dot { background: #5bc0de; }

.dashboard-milestone {
    text-align: left;
}

.milestone-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.milestone-fill {
    height: 100%;
    background: var(--color-gold);
    border-radius: 4px;
}

.dashboard-milestone span {
    font-size: 0.85em;
    color: #666;
}

/* ==========================================================================
   Odyssey Spotlight Section
   ========================================================================== */

.odyssey-spotlight {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, #0d1520 100%);
    color: var(--color-cream);
    text-align: center;
}

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

.odyssey-badge {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-navy);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 25px;
}

.odyssey-spotlight h2 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    color: var(--color-gold);
    font-weight: 600;
}

.odyssey-spotlight p {
    font-size: 1.15em;
    line-height: 1.7;
    margin: 0 0 35px 0;
    opacity: 0.9;
}

.odyssey-preview {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
}

.odyssey-greek {
    font-family: var(--font-greek);
    font-size: 1.4em;
    color: var(--color-gold);
    line-height: 1.8;
    margin-bottom: 20px;
}

.odyssey-english {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    line-height: 1.6;
}

.odyssey-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

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

.odyssey-stat .num {
    display: block;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--color-gold);
}

.odyssey-stat .label {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ==========================================================================
   Corpus Section
   ========================================================================== */

.corpus-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.88);
}

.corpus-section .section-title {
    margin-bottom: 15px;
}

.corpus-section .section-subtitle {
    color: #666;
    margin: 0 auto 50px auto;
}

.corpus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.corpus-card {
    display: block;
    background: var(--color-parchment);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.corpus-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--color-gold);
}

.corpus-card.featured {
    border-color: var(--color-gold);
    border-width: 2px;
}

.corpus-greek {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a2a3d 100%);
    color: var(--color-gold);
    padding: 25px 20px;
    font-family: var(--font-greek);
    font-size: 1.5em;
    text-align: center;
    letter-spacing: 3px;
    border-bottom: 2px solid var(--color-gold);
}

.corpus-info {
    padding: 20px;
}

.corpus-info h3 {
    margin: 0 0 5px 0;
    color: var(--color-ink);
    font-size: 1.2em;
    font-weight: 600;
}

.corpus-info p {
    margin: 0;
    color: var(--color-burgundy);
    font-style: italic;
    font-size: 0.95em;
}

.corpus-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-burgundy);
    color: var(--color-cream);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
}

.corpus-cta {
    text-align: center;
}

/* ==========================================================================
   API Section
   ========================================================================== */

.api-section {
    padding: 80px 0;
    background: rgba(250, 248, 243, 0.92);
}

.api-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.api-content h2 {
    font-size: 2.2em;
    margin: 0 0 15px 0;
    color: var(--color-ink);
    font-weight: 600;
}

.api-content > p {
    font-size: 1.1em;
    color: #5a5347;
    margin: 0 0 30px 0;
}

.api-example {
    background: var(--color-navy);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    margin-bottom: 20px;
}

.api-example code {
    display: block;
    color: var(--color-gold);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.api-example pre {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85em;
    line-height: 1.5;
    overflow-x: auto;
}

.api-note {
    font-size: 0.95em;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   Responsive Adjustments for New Sections
   ========================================================================== */

@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-grid.reverse {
        direction: ltr;
    }

    .showcase-text {
        max-width: 100%;
    }

    .alphabet-preview {
        grid-template-columns: repeat(3, 1fr);
    }

    .odyssey-stats {
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .feature-showcase {
        padding: 60px 0;
    }

    .showcase-text h2 {
        font-size: 1.8em;
    }

    .alphabet-preview {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .letter-pair {
        padding: 10px 5px;
    }

    .greek-letter {
        font-size: 1.4em;
    }

    .odyssey-spotlight {
        padding: 60px 0;
    }

    .odyssey-spotlight h2 {
        font-size: 1.8em;
    }

    .odyssey-greek {
        font-size: 1.1em;
    }

    .odyssey-stats {
        gap: 20px;
    }

    .odyssey-stat .num {
        font-size: 1.6em;
    }

    .readiness-item {
        flex-wrap: wrap;
    }

    .readiness-title {
        width: 100%;
        margin-bottom: -5px;
    }

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

/* Hero Section */
.hero {
    background: transparent;
    color: var(--color-ink);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5em;
    margin: 0 0 25px 0;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: var(--font-serif);
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
    color: var(--color-ink);
}

.hero-subtitle {
    font-size: 1.35em;
    max-width: 650px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
    font-weight: 400;
    color: var(--color-ink);
}

.hero-demo {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(201, 162, 39, 0.5);
    border-radius: 12px;
    padding: 35px 40px;
    max-width: 750px;
    margin: 0 auto 50px auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.demo-label {
    font-size: 0.95em;
    margin: 0 0 20px 0;
    font-style: italic;
    color: #5a5347;
}

.demo-text {
    font-size: 2.2em;
    line-height: 1.9;
    margin-bottom: 20px;
    font-family: var(--font-greek);
}

.demo-text .word {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-block;
    margin: 4px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--color-ink);
}

.demo-text .word:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--color-gold);
    background: rgba(201, 162, 39, 0.3);
}

.demo-translation {
    font-style: italic;
    margin: 0;
    font-size: 1.15em;
    color: var(--color-burgundy);
    transition: opacity 0.5s ease;
}

.demo-source {
    font-size: 0.95em;
    margin: 10px 0 0 0;
    color: #666;
    transition: opacity 0.5s ease;
}

.demo-text {
    transition: opacity 0.5s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.05em;
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    background: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-ink);
    border: 2px solid var(--color-burgundy);
}

.btn-secondary:hover {
    background: var(--color-burgundy);
    color: var(--color-cream);
    border-color: var(--color-burgundy);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.15em;
}

/* Stats Bar */
.stats-bar {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-ink);
    padding: 35px 0;
    border-top: 1px solid var(--color-gold);
    border-bottom: 1px solid var(--color-gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 10px;
}

.stat-number {
    display: block;
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-burgundy);
    font-family: var(--font-serif);
}

.stat-label {
    font-size: 0.95em;
    letter-spacing: 0.5px;
    color: var(--color-ink);
}

/* Flashcard Demo Section */
.flashcard-demo-section {
    padding: 80px 0;
    background: rgba(250, 248, 243, 0.95);
    border-top: 1px solid var(--color-gold);
}

.flashcard-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.flashcard-demo-text h2 {
    font-size: 2.2em;
    margin: 0 0 20px 0;
    color: var(--color-ink);
    font-weight: 600;
    font-family: var(--font-serif);
}

.flashcard-demo-text p {
    font-size: 1.1em;
    color: #5a5347;
    line-height: 1.7;
    margin: 0 0 25px 0;
}

.flashcard-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.flashcard-benefits li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #5a5347;
    font-size: 1.05em;
}

.flashcard-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-burgundy);
    font-weight: bold;
}

/* Demo Flashcard */
.flashcard-demo-card {
    display: flex;
    justify-content: center;
}

.demo-flashcard {
    width: 320px;
    height: 220px;
    perspective: 1000px;
    cursor: pointer;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.demo-flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.flashcard-front {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a2a3d 100%);
    color: var(--color-cream);
    border: 2px solid var(--color-gold);
}

.flashcard-back {
    background: var(--color-parchment);
    color: var(--color-ink);
    border: 2px solid var(--color-gold);
    transform: rotateY(180deg);
}

.flashcard-word {
    font-size: 2.2em;
    font-family: var(--font-greek);
    margin-bottom: 10px;
}

.flashcard-front .flashcard-word {
    color: var(--color-gold);
}

.flashcard-morph {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 15px;
}

.flashcard-hint {
    font-size: 0.85em;
    opacity: 0.6;
    font-style: italic;
}

.flashcard-definition {
    font-size: 1.1em;
    color: var(--color-burgundy);
    margin-bottom: 12px;
    font-weight: 500;
}

.flashcard-context {
    font-size: 0.9em;
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.flashcard-buttons {
    display: flex;
    gap: 8px;
}

.flashcard-buttons button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: transform 0.2s;
}

.flashcard-buttons button:hover {
    transform: scale(1.05);
}

.btn-again {
    background: #d9534f;
    color: white;
}

.btn-hard {
    background: #f0ad4e;
    color: white;
}

.btn-good {
    background: #5cb85c;
    color: white;
}

.btn-easy {
    background: #5bc0de;
    color: white;
}

/* Features Section */
.features-section {
    padding: 90px 0;
    background: rgba(255, 255, 255, 0.85);
}

.section-title {
    text-align: center;
    font-size: 2.4em;
    margin: 0 0 60px 0;
    color: var(--color-ink);
    font-weight: 600;
    font-family: var(--font-serif);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 35px;
}

.feature-card {
    background: var(--color-parchment);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid rgba(201, 162, 39, 0.15);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(201, 162, 39, 0.4);
}

.feature-icon {
    font-size: 2.8em;
    margin-bottom: 18px;
}

.feature-card h3 {
    margin: 0 0 12px 0;
    color: var(--color-ink);
    font-size: 1.3em;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    color: #5a5347;
    line-height: 1.7;
    font-size: 1.05em;
}

/* How It Works */
.how-it-works {
    padding: 90px 0;
    background: rgba(250, 248, 243, 0.9);
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 200px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-burgundy);
    color: var(--color-cream);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95em;
    border: 2px solid var(--color-gold);
}

.step-icon {
    font-size: 3.2em;
    margin: 25px 0 18px 0;
    display: block;
}

.step h3 {
    margin: 0 0 10px 0;
    color: var(--color-ink);
    font-size: 1.15em;
    font-weight: 600;
}

.step p {
    margin: 0;
    color: #5a5347;
    font-size: 0.95em;
    line-height: 1.55;
}

.step-arrow {
    font-size: 2.2em;
    color: var(--color-gold);
    margin-top: 55px;
}

/* Featured Texts */
.featured-texts {
    padding: 90px 0;
    background: rgba(255, 255, 255, 0.85);
}

.texts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 45px;
}

.text-card {
    display: block;
    background: var(--color-parchment);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.text-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color-gold);
}

.text-card-greek {
    background: linear-gradient(135deg, var(--color-navy) 0%, #0d1520 100%);
    color: var(--color-gold);
    padding: 35px;
    font-size: 2em;
    text-align: center;
    font-family: var(--font-greek);
    letter-spacing: 4px;
    border-bottom: 2px solid var(--color-gold);
}

.text-card-info {
    padding: 25px;
}

.text-card-info h3 {
    margin: 0 0 6px 0;
    color: var(--color-ink);
    font-size: 1.4em;
    font-weight: 600;
}

.text-card-author {
    margin: 0 0 12px 0;
    color: var(--color-burgundy);
    font-style: italic;
    font-size: 1.05em;
}

.text-card-desc {
    margin: 0;
    color: #5a5347;
    font-size: 0.95em;
    line-height: 1.55;
}

.texts-cta {
    text-align: center;
}

.texts-cta .btn-secondary {
    background: var(--color-burgundy);
    border-color: var(--color-burgundy);
    color: var(--color-cream);
}

.texts-cta .btn-secondary:hover {
    background: #4a1c22;
    border-color: #4a1c22;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: rgba(250, 248, 243, 0.92);
    color: var(--color-ink);
    text-align: center;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-gold);
}

.final-cta h2 {
    font-size: 2.8em;
    margin: 0 0 18px 0;
    font-weight: 600;
    color: var(--color-ink);
}

.final-cta p {
    font-size: 1.25em;
    margin: 0 0 35px 0;
    color: #5a5347;
}

.cta-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
}

/* Data Sources Section */
.data-sources-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, #0d1520 100%);
    color: var(--color-cream);
}

.data-sources-section .section-title {
    color: var(--color-gold);
}

.section-subtitle {
    text-align: center;
    font-size: 1.15em;
    max-width: 700px;
    margin: -40px auto 50px auto;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.source-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    transition: all 0.3s;
}

.source-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-gold);
    transform: translateY(-4px);
}

.source-card h3 {
    color: var(--color-gold);
    margin: 0 0 12px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.source-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95em;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-ink);
    padding: 35px 0;
    text-align: center;
    border-top: 1px solid rgba(201, 162, 39, 0.5);
}

.footer p {
    margin: 0 0 8px 0;
    font-size: 0.95em;
}

.footer p:last-child {
    margin-bottom: 0;
}

.footer-sources {
    font-size: 0.85em !important;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .demo-text {
        font-size: 1.7em;
    }

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

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 15px 0;
    }

    .flashcard-demo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .flashcard-demo-text {
        text-align: center;
    }

    .flashcard-benefits li {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .demo-text {
        font-size: 1.4em;
    }

    .hero-demo {
        padding: 25px 20px;
    }

    .welcome-content {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 1.9em;
    }
}

/* ==========================================================================
   Dark Mode Overrides
   ========================================================================== */

[data-theme="dark"] .feature-showcase {
    background: rgba(13, 21, 32, 0.88);
}

[data-theme="dark"] .feature-showcase.alt-bg {
    background: rgba(15, 26, 40, 0.92);
}

[data-theme="dark"] .showcase-text p,
[data-theme="dark"] .showcase-benefits li,
[data-theme="dark"] .flashcard-demo-text p,
[data-theme="dark"] .flashcard-benefits li {
    color: #b0a898;
}

[data-theme="dark"] .showcase-note {
    color: #8898a8 !important;
}

[data-theme="dark"] .showcase-example {
    background: #131e2e;
    border-color: rgba(201, 162, 39, 0.3);
}

[data-theme="dark"] .meaning-label {
    color: #8898a8;
}

[data-theme="dark"] .meaning-generic span:not(.meaning-label) {
    color: #8898a8;
}

[data-theme="dark"] .reader-mockup {
    background: #131e2e;
}

[data-theme="dark"] .mockup-content {
    background: #131e2e;
}

[data-theme="dark"] .mockup-popup {
    background: #1a2a3e;
    border-color: var(--color-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .popup-lemma {
    color: #8898a8;
}

[data-theme="dark"] .popup-context {
    border-top-color: #263346;
}

[data-theme="dark"] .translit-demo {
    background: #131e2e;
    border-color: rgba(201, 162, 39, 0.3);
}

[data-theme="dark"] .translit-row.latin {
    border-top-color: #263346;
    border-bottom-color: #263346;
}

[data-theme="dark"] .translit-english {
    color: #8898a8;
}

[data-theme="dark"] .letter-pair {
    background: #131e2e;
    border-color: rgba(201, 162, 39, 0.3);
}

[data-theme="dark"] .letter-pair:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .greek-letter {
    color: var(--color-gold);
}

[data-theme="dark"] .latin-letter {
    color: #e8e2d6;
}

[data-theme="dark"] .translit-greek {
    color: var(--color-gold);
}

[data-theme="dark"] .translit-latin {
    color: #b0a898;
}

[data-theme="dark"] .selection-demo {
    background: #131e2e;
    border-color: rgba(201, 162, 39, 0.3);
}

[data-theme="dark"] .selection-label {
    color: #8898a8;
}

[data-theme="dark"] .selection-line {
    background: #1a2a3e;
    border-color: #263346;
    color: #e8e2d6;
}

[data-theme="dark"] .selection-line.selected {
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--color-gold);
}

[data-theme="dark"] .selection-check {
    border-color: #607080;
}

[data-theme="dark"] .selection-count {
    color: #607080;
}

[data-theme="dark"] .flashcard-answer-preview {
    background: #131e2e;
}

[data-theme="dark"] .answer-context {
    color: #8898a8;
}

[data-theme="dark"] .readiness-bar {
    background: #263346;
}

[data-theme="dark"] .dashboard-preview {
    background: #131e2e;
}

[data-theme="dark"] .stat-bg {
    stroke: #263346;
}

[data-theme="dark"] .stat-label-sm,
[data-theme="dark"] .breakdown-item,
[data-theme="dark"] .dashboard-milestone span {
    color: #8898a8;
}

[data-theme="dark"] .milestone-bar {
    background: #263346;
}

[data-theme="dark"] .corpus-section {
    background: rgba(13, 21, 32, 0.88);
}

[data-theme="dark"] .corpus-section .section-subtitle {
    color: #8898a8;
}

[data-theme="dark"] .corpus-card {
    background: #131e2e;
    border-color: rgba(201, 162, 39, 0.2);
}

[data-theme="dark"] .corpus-card:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .corpus-info h3 {
    color: #e8e2d6;
}

[data-theme="dark"] .api-section {
    background: rgba(15, 26, 40, 0.92);
}

[data-theme="dark"] .api-content > p {
    color: #b0a898;
}

[data-theme="dark"] .api-note {
    color: #8898a8;
}

[data-theme="dark"] .stats-bar {
    background: rgba(13, 21, 32, 0.9);
}

[data-theme="dark"] .flashcard-demo-section {
    background: rgba(15, 26, 40, 0.95);
}

[data-theme="dark"] .features-section {
    background: rgba(13, 21, 32, 0.85);
}

[data-theme="dark"] .feature-card {
    background: #131e2e;
    border-color: rgba(201, 162, 39, 0.15);
}

[data-theme="dark"] .feature-card:hover {
    border-color: rgba(201, 162, 39, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-card p {
    color: #b0a898;
}

[data-theme="dark"] .how-it-works {
    background: rgba(15, 26, 40, 0.9);
}

[data-theme="dark"] .step p {
    color: #b0a898;
}

[data-theme="dark"] .featured-texts {
    background: rgba(13, 21, 32, 0.85);
}

[data-theme="dark"] .text-card {
    background: #131e2e;
    border-color: rgba(201, 162, 39, 0.2);
}

[data-theme="dark"] .text-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .text-card-info h3 {
    color: #e8e2d6;
}

[data-theme="dark"] .text-card-desc {
    color: #b0a898;
}

[data-theme="dark"] .final-cta {
    background: rgba(15, 26, 40, 0.92);
}

[data-theme="dark"] .final-cta p {
    color: #b0a898;
}

[data-theme="dark"] .footer {
    background: rgba(13, 21, 32, 0.9);
    border-top-color: rgba(201, 162, 39, 0.5);
}

[data-theme="dark"] .footer-sources {
    color: #607080;
}

[data-theme="dark"] .hero h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero-demo {
    background: rgba(19, 30, 46, 0.85);
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .demo-label {
    color: #8898a8;
}

[data-theme="dark"] .demo-source {
    color: #8898a8;
}

[data-theme="dark"] .demo-text .word {
    background: rgba(201, 162, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.3);
}

[data-theme="dark"] .demo-text .word:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .btn-primary {
    color: #0d1520;
}
