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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 100;
    border-bottom: 1px solid rgba(88, 204, 2, 0.1);
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
}

.logo-text {
    font-size: 21px;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #58CC02;
    background: rgba(88, 204, 2, 0.08);
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Contact popup */
.contact-popup {
    position: absolute;
    top: 52px;
    right: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 101;
}

.contact-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-popup-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 6px;
}

.contact-popup-email {
    font-size: 16px;
    font-weight: 700;
    color: #58CC02;
}

/* ===== Hero ===== */
.hero {
    padding-top: 80px;
    padding-bottom: 48px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(88, 204, 2, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(88, 204, 2, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(88, 204, 2, 0.06) 0%, transparent 50%),
        linear-gradient(175deg, #e8fbd4 0%, #f0fff0 35%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative dots pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(88, 204, 2, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 0 1 auto;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    color: #58CC02;
    line-height: 1.05;
    margin-bottom: 4px;
    letter-spacing: -2px;
    text-shadow: 0 2px 0 rgba(70, 163, 2, 0.15);
}

.hero-subtitle {
    font-size: 22px;
    color: #555;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 16px;
    color: #777;
    line-height: 1.8;
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    gap: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
}

.badge:hover {
    transform: translateY(-1px);
}

.badge-free {
    background: linear-gradient(135deg, #58CC02, #46a302);
    color: #fff;
    box-shadow: 0 3px 0 #3d8e02, 0 4px 12px rgba(88, 204, 2, 0.3);
}

.badge-wechat {
    background: #f0f0f0;
    color: #555;
    box-shadow: 0 3px 0 #ddd;
}

.hero-qr {
    flex-shrink: 0;
}

.qr-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.03),
        0 8px 32px rgba(88, 204, 2, 0.12),
        0 0 0 1px rgba(88, 204, 2, 0.06);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.qr-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.03),
        0 12px 40px rgba(88, 204, 2, 0.18),
        0 0 0 1px rgba(88, 204, 2, 0.08);
}

.qr-img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: #f5f5f5;
    display: block;
}

.qr-hint {
    margin-top: 14px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

/* ===== Section Common ===== */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: #999;
    font-size: 16px;
    margin-bottom: 48px;
    font-weight: 400;
}

/* ===== Demo Quiz ===== */
.demo {
    padding: 80px 0;
    background: #f0f2f5;
    position: relative;
}

.demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(240, 242, 245, 0), #f0f2f5);
    pointer-events: none;
}

.quiz-card {
    max-width: 480px;
    margin: 0 auto 0;
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px 24px;
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.quiz-progress-bar {
    height: 10px;
    background: #e8e8e8;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #58CC02, #7ED321);
    border-radius: 5px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    box-shadow: 0 0 8px rgba(88, 204, 2, 0.4);
}

.quiz-chinese {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.quiz-audio {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.quiz-audio-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f0f9e8, #e3f5d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    box-shadow: 0 3px 0 #c8e6b0;
    position: relative;
    top: 0;
}

.quiz-audio-btn:hover {
    background: linear-gradient(135deg, #e3f5d0, #d4e8c0);
}

.quiz-audio-btn:active {
    top: 2px;
    box-shadow: 0 1px 0 #c8e6b0;
}

.quiz-english {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 18px 14px;
    background: linear-gradient(135deg, #f8fff0, #f4fce8);
    border-radius: 14px;
    min-height: 80px;
    gap: 8px;
    border: 1px solid rgba(88, 204, 2, 0.1);
}

.quiz-english .word-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
}

.quiz-english .word-text {
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.quiz-english .word-text.prefilled {
    color: #999;
}

.quiz-english .blank-box {
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    background: #fff;
    border: 2px solid #58CC02;
    border-radius: 10px;
    gap: 0;
    box-shadow: 0 2px 0 rgba(88, 204, 2, 0.15);
    transition: all 0.15s;
}

.quiz-english .blank-box.active {
    background: #f0f9e8;
    border-color: #4CAF50;
    box-shadow: 0 2px 0 rgba(88, 204, 2, 0.15), 0 0 0 3px rgba(88, 204, 2, 0.2);
}

/* 实际app中空格框不改颜色，只有下划线变色 */

.letter-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1px;
}

.letter-char {
    width: 24px;
    height: 32px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 32px;
}

.letter-line {
    width: 20px;
    height: 3px;
    background: #ddd;
    border-radius: 2px;
    transition: background 0.2s;
}

.letter-line.filled {
    background: #58CC02;
}

.letter-line.correct {
    background: #58CC02;
}

.letter-line.wrong {
    background: #FF4B4B;
}

.letter-cell.current .letter-char {
    background: rgba(88, 204, 2, 0.15);
    border-radius: 4px;
}

/* Hint */
.quiz-hint {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 16px;
    padding: 8px;
    background: #fafafa;
    border-radius: 8px;
}

/* Action buttons */
.quiz-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.quiz-hint-btn {
    flex: 1;
    padding: 14px;
    background: #f5f5f5;
    border: none;
    border-radius: 12px;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 3px 0 #ddd;
    position: relative;
    top: 0;
}

.quiz-hint-btn:hover {
    background: #eee;
}

.quiz-hint-btn:active {
    top: 2px;
    box-shadow: 0 1px 0 #ddd;
}

.quiz-submit-btn {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, #58CC02, #4ab802);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 4px 0 #3d8e02;
    position: relative;
    top: 0;
    letter-spacing: 1px;
}

.quiz-submit-btn:hover {
    background: linear-gradient(135deg, #4ab802, #42a800);
}

.quiz-submit-btn:active {
    top: 3px;
    box-shadow: 0 1px 0 #3d8e02;
}

/* Feedback */
.quiz-feedback {
    text-align: center;
    margin-top: 16px;
    font-size: 18px;
    font-weight: bold;
    min-height: 24px;
}

.quiz-feedback.success {
    color: #58CC02;
}

.quiz-feedback.fail {
    color: #FF4B4B;
}

/* Answer section（与实际app一致） */
.quiz-answer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.quiz-answer-header {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.quiz-answer-header.success {
    color: #58CC02;
}

.quiz-answer-header.fail {
    color: #FF4B4B;
}

.quiz-answer-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.answer-word-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 12px;
    min-width: 80px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.answer-word-card:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.answer-word-card:active {
    background: #e8e8e8;
}

.answer-word-card .phonetic {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.answer-word-card .word-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.answer-word-card .word-row .word {
    font-size: 20px;
    font-weight: bold;
}

.answer-word-card .word-row .correct-word {
    color: #58CC02;
}

.answer-word-card .word-row .wrong-word {
    color: #FF4B4B;
}

.answer-word-card .audio-icon-small {
    font-size: 14px;
    opacity: 0.5;
}

.answer-word-card .meaning {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Next button */
.btn-next {
    display: block;
    margin: 20px auto 0;
    padding: 14px 48px;
    background: linear-gradient(135deg, #58CC02, #4ab802);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 4px 0 #3d8e02;
    position: relative;
    top: 0;
    letter-spacing: 1px;
}

.btn-next:hover {
    background: linear-gradient(135deg, #4ab802, #42a800);
}

.btn-next:active {
    top: 3px;
    box-shadow: 0 1px 0 #3d8e02;
}

/* Virtual Keyboard */
.keyboard {
    max-width: 480px;
    margin: 0 auto;
    background: #c8ccd0;
    padding: 10px 6px 16px;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 7px;
}

.key {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 42px;
    margin: 0 3px;
    background: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 0 #999;
    cursor: pointer;
    user-select: none;
    transition: all 0.08s;
    position: relative;
    top: 0;
}

.key:active {
    background: #e5e7eb;
    top: 2px;
    box-shadow: 0 0 0 #999;
}

.key.key-wide {
    min-width: 52px;
    background: #9ca3af;
    color: #fff;
    font-size: 14px;
}

.key.key-wide:active {
    background: #6b7280;
}

/* ===== Features ===== */
.features {
    padding: 80px 0;
    background: #fff;
    position: relative;
}

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

.feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f0f0;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(88, 204, 2, 0.3);
}

.feature-card.feature-free {
    border-color: #58CC02;
    background: linear-gradient(135deg, #f8fff0, #fff);
}

.feature-card.feature-free:hover {
    border-color: #58CC02;
    box-shadow: 0 12px 32px rgba(88, 204, 2, 0.15);
}

.feature-icon {
    font-size: 44px;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-card p {
    font-size: 14px;
    color: #999;
    line-height: 1.7;
}

/* ===== Modes ===== */
.modes {
    padding: 80px 0;
    background: #f8faf8;
}

.mode-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.mode-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    top: 0;
}

.mode-tab:hover {
    border-color: #58CC02;
    color: #58CC02;
}

.mode-tab.active {
    background: #58CC02;
    border-color: #58CC02;
    color: #fff;
    box-shadow: 0 3px 0 #3d8e02;
    top: -1px;
}

.mode-tab-icon {
    font-size: 18px;
}

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

.mode-panel {
    display: none;
    align-items: center;
    gap: 48px;
}

.mode-panel.active {
    display: flex;
}

.mode-text {
    flex: 1;
}

.mode-text h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
}

.mode-text p {
    font-size: 15px;
    color: #888;
    line-height: 1.9;
}

.mode-preview {
    flex-shrink: 0;
}

/* Phone Mockup */
.phone-mockup {
    width: 220px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 12px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.phone-screen {
    background: #fff;
    border-radius: 20px;
    padding: 20px 16px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mock-bar {
    height: 4px;
    width: 40px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 0 auto;
}

.mock-sentence {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-line {
    height: 18px;
    background: #333;
    border-radius: 4px;
    width: 70%;
    font-size: 12px;
    color: #333;
    line-height: 18px;
    background: transparent;
    font-weight: 500;
}

.mock-line.long {
    width: 100%;
}

.mock-line.mock-muted {
    color: #ccc;
    background: #f5f5f5;
    width: 60%;
    text-align: center;
    font-size: 11px;
}

.mock-blank-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.mock-blank-box {
    display: inline-flex;
    padding: 3px 4px;
    border: 2px solid #58CC02;
    border-radius: 6px;
    gap: 0;
}

.mock-cell {
    width: 10px;
    height: 16px;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: #ccc;
    line-height: 16px;
}

.mock-blank {
    padding: 4px 12px;
    border: 1.5px dashed #ccc;
    border-radius: 6px;
    font-size: 12px;
    color: #ccc;
    font-family: monospace;
}

.mock-play {
    text-align: center;
    padding: 8px;
    border: 2px solid #58CC02;
    border-radius: 8px;
    color: #58CC02;
    font-size: 12px;
    cursor: default;
    font-weight: 600;
}

.mock-word {
    font-size: 20px;
    font-weight: 700;
    color: #58CC02;
    text-align: center;
}

.mock-phonetic {
    text-align: center;
    color: #999;
    font-size: 13px;
}

.mock-meaning {
    text-align: center;
    color: #666;
    font-size: 13px;
}

.mock-label {
    text-align: center;
    font-size: 11px;
    color: #bbb;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    font-weight: 500;
}

/* ===== Philosophy ===== */
.philosophy {
    padding: 100px 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 0, 0, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #58CC02 0%, #46a302 50%, #3d8e02 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle texture overlay */
.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 2%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 2%),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 3%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.07) 0%, transparent 2%);
    pointer-events: none;
}

.philosophy > .container {
    position: relative;
    z-index: 1;
}

.philosophy-quote {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 56px;
    border: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    padding: 28px 36px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.85;
    margin-top: 4px;
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 40px;
    background: #1a1a1a;
    color: #999;
    position: relative;
}

.footer-content {
    text-align: center;
}

.footer-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-bottom: 44px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-qr-img {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    background: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.footer-qr-text {
    text-align: left;
}

.footer-scan {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.footer-search {
    font-size: 15px;
    color: #999;
    line-height: 1.8;
}

.footer-search strong {
    color: #58CC02;
    font-weight: 700;
}

.footer-copy {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
}

/* ===== Animations ===== */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fade-in {
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-desc {
        font-size: 16px;
    }

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

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

    .mode-panel.active {
        flex-direction: column;
    }

    .stats {
        gap: 20px;
    }

    .stat {
        padding: 20px 24px;
    }

    .stat-number {
        font-size: 32px;
    }

    .philosophy-quote {
        font-size: 24px;
    }

    .footer-qr {
        flex-direction: column;
        padding: 24px;
    }

    .footer-qr-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

    .section-title {
        font-size: 24px;
    }

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

    .stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat {
        flex-direction: row;
        gap: 16px;
        width: 100%;
        justify-content: center;
    }

    .mode-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
}
