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

/* FIX: use :root, not ::root */
:root {
    /* Colors */
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

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

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    right: 1rem; /* RTL: position on right */
    background: var(--gray-900);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 10px;
}

/* ==========================================
   Container
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   Navigation (Mobile First)
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gray-800);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    position: fixed;
    top: 70px;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: auto;
    max-height: calc(100vh - 90px);
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    padding: 2rem 1.5rem;
    list-style: none;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 999;
}

.nav-menu.active {
    transform: translateX(0);
}

.nav-menu li {
    margin-bottom: 1rem;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* RTL: flip arrow icons to point left by default */
.icon-arrow {
    transform: scaleX(-1);
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ==========================================
   Hero Section (Mobile First)
   ========================================== */
.hero {
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(135deg, #f5f7ff 0%, #fff5f7 100%);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    bottom: -50px;
    left: -50px;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    background: var(--gradient-success);
    top: 50%;
    left: 10%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-text {
    text-align: center;
    max-width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.hero-title-gradient {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.hero-buttons .btn {
    width: 100%;
    max-width: 320px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Game Preview Card */
.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image-card {
    width: 100%;
    max-width: 400px;
}

.game-preview {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    border: 3px solid var(--gray-100);
}

.game-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.preview-emoji {
    font-size: 1.5rem;
}

.preview-text {
    font-weight: 600;
    color: var(--gray-700);
}

.game-preview-question {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.game-preview-answers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.answer-btn {
    padding: 1rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.answer-btn:hover {
    background: var(--gray-200);
}

.answer-correct {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.game-preview-stats {
    display: flex;
    justify-content: space-around;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
}

/* ==========================================
   Section Styles
   ========================================== */
.section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

.section-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Guide page tighter spacing */
body.guide-page .section { padding: 28px 0; }
body.guide-page .section-header { margin-bottom: 1.25rem; }
body.guide-page .section-title { font-size: 1.1rem; }
body.guide-page .section-description { font-size: 0.9rem; line-height: 1.6; }
body.guide-page .guide-content .section-header { text-align: right; }
body.guide-page .guide-list li { line-height: 1.6; }
/* Add extra space under fixed header on guide top section */
body.guide-page #top { padding-top: 100px; }
/* Guide top note styling */
body.guide-page .guide-note { opacity: 0.85; font-size: 0.9rem; }

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

.features-grid {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-100);
    transition: var(--transition);
}

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

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

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ==========================================
   Characters Section
   ========================================== */
.characters {
    background: linear-gradient(135deg, #f5f7ff 0%, #fff 100%);
}

.characters-grid {
    display: grid;
    gap: 1.5rem;
}

.character-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.character-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.character-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.character-card:hover .character-emoji {
    animation: none;
    transform: scale(1.2) rotate(5deg);
}

.character-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.character-quote {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-style: italic;
}

/* ==========================================
   Game Modes Section
   ========================================== */
.modes {
    background: var(--white);
}

.modes-grid {
    display: grid;
    gap: 1.5rem;
}

.mode-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-100);
    position: relative;
    transition: var(--transition);
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mode-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.mode-featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mode-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.mode-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mode-features {
    list-style: none;
}

.mode-features li {
    color: var(--gray-700);
    padding: 0.5rem 0;
    font-weight: 500;
}

/* ==========================================
   Benefits Section
   ========================================== */
.benefits {
    background: linear-gradient(135deg, #f5f7ff 0%, #fff 100%);
}

.benefits-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.benefit-visual {
    position: relative;
    padding: 2rem;
}

.visual-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.visual-card-1 {
    animation: float 3s ease-in-out infinite;
}

.visual-card-2 {
    animation: float 3s ease-in-out 0.5s infinite;
}

.visual-card-3 {
    animation: float 3s ease-in-out 1s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.visual-icon {
    font-size: 2.5rem;
}

.visual-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.visual-subtitle {
    font-size: 0.9rem;
    color: var(--gray-600);
}

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

.benefit-item {
    display: flex;
    gap: 1rem;
}

.benefit-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-full);
}

.benefit-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ==========================================
   Parent Dashboard Section
   ========================================== */
.parent-section {
    background: var(--white);
}

.parent-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.section-description-large {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.parent-features {
    display: grid;
    gap: 2rem;
}

.parent-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.parent-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--radius-lg);
}

.parent-feature-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.parent-feature-content p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

.parent-dashboard-preview {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    border: 3px solid var(--gray-100);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: 1.5rem;
}

.dashboard-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.dashboard-period {
    font-size: 0.9rem;
    color: var(--gray-600);
    background: var(--gray-100);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.dashboard-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    text-align: center;
}

.dashboard-stat .stat-icon {
    font-size: 1.5rem;
}

.dashboard-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.dashboard-stat .stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    line-height: 1;
}

.dashboard-subjects {
    margin-bottom: 1.5rem;
}

.subject-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subject-name {
    width: 60px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.subject-bar {
    flex: 1;
    height: 12px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.subject-progress {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.subject-score {
    width: 50px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-700);
}

.dashboard-recommendation {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.recommendation-icon {
    font-size: 1.5rem;
}

.recommendation-text {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.5;
}

.recommendation-text strong {
    color: var(--warning);
}

/* ==========================================
   CTA Section
   ========================================== */
.cta {
    background: var(--gradient-primary);
    color: var(--white);
}

.cta-content {
    text-align: center;
    padding: 2rem 0;
}

.cta-emoji {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    background: var(--white);
    color: var(--primary);
    font-size: 1.2rem;
    padding: 1.25rem 2.5rem;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-note {
    margin-top: 1.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-brand .logo {
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-description {
    line-height: 1.6;
}

.footer-links {
    display: grid;
    gap: 2rem;
}

.footer-section h4 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ==========================================
   Guide Page Layout
   ========================================== */
.guide-wrapper {
    display: flex;
    gap: 1.5rem;
}

.guide-sidebar {
    position: sticky;
    top: 90px; /* nav height + margin */
    align-self: flex-start;
    flex: 0 0 260px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.guide-toc ul {
    list-style: none;
}

.guide-toc a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.guide-toc a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.guide-content {
    flex: 1;
    min-width: 0;
}

.guide-content .section-header {
    text-align: right;
    margin-top: 1rem;
}

.guide-list {
    margin: 0 0 1rem 0;
    padding: 0 1rem;
}

.guide-list li {
    margin: 0.4rem 0;
    color: var(--gray-700);
}

@media (max-width: 1023px) {
    .guide-wrapper {
        flex-direction: column;
    }
    .guide-sidebar {
        position: static;
        max-height: none;
    }
}

/* (Re-enabled nav) removed previous rules that hid the nav */

/* ==========================================
   FAQ Section
   ========================================== */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    font-weight: 700;
    color: var(--gray-900);
    cursor: pointer;
}

.faq-answer {
    color: var(--gray-700);
    margin-top: 0.75rem;
    line-height: 1.7;
}

/* ==========================================
   Reduced Motion Preference
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================
   Responsive Design - Tablet & Desktop
   ========================================== */

/* Small Mobile Fixes */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .dashboard-stats {
        gap: 0.5rem;
    }

    .dashboard-stat {
        padding: 0.6rem 0.4rem;
    }

    .dashboard-stat .stat-icon {
        font-size: 1.25rem;
    }

    .dashboard-stat .stat-value {
        font-size: 1.1rem;
    }
}

/* Medium Mobile (375px to 767px) */
@media (min-width: 375px) and (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .dashboard-stat {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.75rem;
        gap: 0.6rem;
        text-align: right;
    }

    .dashboard-stat .stat-icon {
        font-size: 1.75rem;
    }

    .dashboard-stat .stat-value {
        font-size: 1.35rem;
    }

    .dashboard-stat .stat-label {
        font-size: 0.8rem;
    }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        max-width: none;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        background: transparent;
        box-shadow: none;
        padding: 0;
        transform: none;
        border-radius: 0;
    }

    .nav-menu li {
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .hero-buttons .btn {
        width: auto;
    }

    .dashboard-stat {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem;
        gap: 0.75rem;
        text-align: right;
    }

    .dashboard-stat .stat-icon {
        font-size: 2rem;
    }

    .dashboard-stat .stat-value {
        font-size: 1.5rem;
    }

    .dashboard-stat .stat-label {
        font-size: 0.8rem;
    }

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

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

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

    .benefits-content {
        flex-direction: row;
        align-items: center;
    }

    .benefits-image,
    .benefits-text {
        flex: 1;
    }

    .parent-content {
        flex-direction: row-reverse;
        align-items: center;
    }

    .parent-text,
    .parent-visual {
        flex: 1;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-brand {
        text-align: right;
        max-width: 400px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero-content {
        flex-direction: row;
        align-items: center;
    }

    .hero-text {
        flex: 1;
        text-align: right;
    }

    .hero-image {
        flex: 1;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .section-title {
        font-size: 2.5rem;
    }

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

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