:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --accent: #f59e0b;
    --accent-soft: #fffbeb;
    --success-soft: #ecfdf5;
    --success: #059669;
    --danger-soft: #fef2f2;
    --danger: #dc2626;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
    --max: 760px;
    --max-wide: 960px;
}

.legal-homebar {
    background: #f3f0ff;
    border-bottom: 1px solid #e8e2f6;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    direction: rtl;
    font-family: "IBM Plex Sans Arabic", "SF Arabic", "Segoe UI", Tahoma, sans-serif;
}
.legal-homebar a { color: #4c1d95; font-weight: 800; text-decoration: none; }
.legal-homebar nav { display: flex; gap: 14px; flex-wrap: wrap; }
.legal-homebar nav a { color: #6b6280; font-weight: 700; font-size: 13.5px; }

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; font-weight: 500; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Hero */
.hero {
    background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 45%, #3b82f6 100%);
    color: #fff;
    padding: 56px 24px 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 100%, rgba(255,255,255,0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 10%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max-wide);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-inner.text-left { text-align: left; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero .brand {
    display: block;
    font-size: clamp(15px, 3vw, 17px);
    font-weight: 500;
    opacity: 0.92;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    font-size: 14px;
    opacity: 0.9;
}

.hero-inner.text-left .hero-meta { justify-content: flex-start; }

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-meta svg {
    width: 16px;
    height: 16px;
    opacity: 0.85;
    flex-shrink: 0;
}

.hero-meta a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-meta a:hover { opacity: 0.9; text-decoration: underline; }

.lang-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.lang-pills span {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

/* Layout */
.page-wrap {
    max-width: var(--max);
    margin: -36px auto 48px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.page-wrap.wide { max-width: var(--max-wide); }

/* TOC */
.toc-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 24px 28px;
    margin-bottom: 28px;
}

.toc-card h2 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 16px;
}

.toc-grid a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 4px 0;
}

.toc-grid a:hover { color: var(--primary); text-decoration: none; }

/* Section cards */
.section-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 28px 28px 26px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.section-card:hover { box-shadow: var(--shadow); }

.section-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: var(--primary-soft);
}

.section-card h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    padding-top: 8px;
}

.section-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 16px 0 8px;
}

.section-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 15px;
}

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

.section-card ul {
    margin: 12px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.section-card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.section-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.section-card ul li strong {
    color: var(--text);
    font-weight: 600;
}

/* Notices */
.notice {
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.65;
}

.notice-blue {
    background: var(--primary-soft);
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.notice-green {
    background: var(--success-soft);
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.notice-amber {
    background: var(--accent-soft);
    border: 1px solid #fde68a;
    color: #92400e;
}

.notice-red {
    background: var(--danger-soft);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.notice strong { font-weight: 600; }

/* Store boxes */
.store-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 14px;
}

.store-box.google { border-left-color: #34a853; }

.store-box h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.store-box p { margin: 0; font-size: 14px; }

/* Steps */
.steps-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    counter-reset: step;
}

.steps-list li {
    counter-increment: step;
    position: relative;
    padding-left: 44px;
    margin-bottom: 14px;
    color: var(--text-secondary);
    font-size: 15px;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
}

.faq-q {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 15px;
}

.faq-a {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-a a { font-weight: 500; }

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-sm);
}

.feature-card .fc-icon { font-size: 28px; margin-bottom: 10px; }

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Contact card */
.contact-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    margin-top: 14px;
}

.contact-card .cc-icon { font-size: 36px; margin-bottom: 12px; }

.contact-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-card a {
    font-size: 15px;
    font-weight: 600;
}

/* Buttons */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    text-decoration: none;
    color: var(--primary);
}

/* Home link grid */
.intro-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 28px 28px 8px;
    margin-bottom: 24px;
    text-align: center;
}

.intro-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 8px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.link-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #bfdbfe;
    text-decoration: none;
}

.link-card .link-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.link-card .link-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.link-card .link-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.link-card:hover .link-title { color: var(--primary); }

.contact-strip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.contact-strip h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-strip a {
    font-size: 15px;
    font-weight: 600;
}

/* Footer */
.site-footer {
    max-width: var(--max-wide);
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: center;
}

.site-footer.narrow { max-width: var(--max); }

.footer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 500;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
}

.back-home:hover { color: var(--primary); text-decoration: none; }

.text-muted { color: var(--text-muted); font-size: 14px; }

@media (max-width: 600px) {
    .hero { padding: 44px 18px 64px; }
    .section-card { padding: 22px 20px; }
    .toc-card { padding: 20px; }
    .section-head { gap: 12px; }
    .section-icon { width: 40px; height: 40px; font-size: 20px; }
    .links-grid { grid-template-columns: 1fr; }
}

/* ── Landing page (index) ── */
body.landing {
    font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

.landing-hero {
    background: linear-gradient(155deg, #0f172a 0%, #1e3a8a 40%, #2563eb 75%, #3b82f6 100%);
    color: #fff;
    padding: 48px 24px 32px;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 85% 20%, rgba(251, 191, 36, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.landing-hero-inner {
    max-width: var(--max-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.landing-hero-content { text-align: right; }

.landing-hero .hero-badge {
    margin-bottom: 16px;
}

.landing-hero h1 {
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-tagline {
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 14px;
    opacity: 0.96;
}

.hero-sub {
    font-size: 16px;
    line-height: 1.75;
    opacity: 0.88;
    max-width: 480px;
    margin-bottom: 24px;
}

.hero-cta { justify-content: flex-start; margin-top: 0; }

.btn-app-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #0f172a;
    padding: 10px 20px 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-app-store svg { width: 28px; height: 28px; flex-shrink: 0; }

.btn-app-store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.btn-app-store-text small {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.7;
}

.btn-app-store-text strong {
    font-size: 17px;
    font-weight: 700;
}

.btn-app-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    text-decoration: none;
    color: #0f172a;
}

.btn-app-store-light {
    background: #fff;
    color: #1e3a8a;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background 0.15s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat strong {
    font-size: 18px;
    font-weight: 700;
}

.hero-stat span {
    font-size: 12px;
    opacity: 0.75;
    font-weight: 500;
}

.landing-lang-pills {
    max-width: var(--max-wide);
    margin: 28px auto 0;
    position: relative;
    z-index: 1;
}

/* Phone mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    perspective: 800px;
}

.phone-frame {
    width: 240px;
    background: #1e293b;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 0 0 2px #334155,
        0 30px 60px rgba(0,0,0,0.4),
        inset 0 0 0 1px rgba(255,255,255,0.08);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.4s ease;
}

.phone-mockup:hover .phone-frame {
    transform: rotateY(-4deg) rotateX(2deg);
}

.phone-notch {
    width: 80px;
    height: 22px;
    background: #1e293b;
    border-radius: 0 0 14px 14px;
    margin: -4px auto 8px;
    position: relative;
    z-index: 2;
}

.phone-screen {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 26px;
    padding: 16px 14px;
    min-height: 340px;
    color: var(--text);
    font-family: 'Cairo', sans-serif;
}

.mock-app-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.mock-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.mock-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 100px;
    margin-bottom: 16px;
    overflow: hidden;
}

.mock-progress-fill {
    width: 68%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: 100px;
}

.mock-flashcard {
    background: #fff;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15,23,42,0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 14px;
}

.mock-card-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.mock-card-word {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

.mock-card-translation {
    display: block;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.mock-card-actions {
    display: flex;
    gap: 8px;
}

.mock-btn {
    flex: 1;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.mock-btn-know {
    background: var(--success-soft);
    color: var(--success);
}

.mock-btn-learn {
    background: var(--primary-soft);
    color: var(--primary);
}

.mock-mini-cards {
    display: flex;
    gap: 8px;
}

.mock-mini {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
}

.mock-mini span { font-size: 18px; display: block; margin-bottom: 2px; }
.mock-mini small { font-size: 10px; color: var(--text-muted); font-weight: 600; }

/* Landing sections */
.landing-section {
    padding: 64px 24px;
}

.landing-section-alt {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.landing-section-inner {
    max-width: var(--max-wide);
    margin: 0 auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.landing-h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.25;
}

.landing-h2-sm { font-size: clamp(22px, 3.5vw, 28px); }

.landing-lead {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.landing-features { margin-top: 8px; }

.landing-features .feature-card {
    background: var(--surface);
    padding: 28px 20px;
}

.landing-features .feature-card h3 {
    font-size: 16px;
    font-weight: 700;
}

.landing-steps {
    list-style: none;
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    text-align: right;
}

.landing-steps li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.landing-steps li:last-child { border-bottom: none; }

.step-num {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
}

.landing-steps strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.landing-steps p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* CTA band */
.landing-cta-band {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 56px 24px;
    text-align: center;
    color: #fff;
}

.landing-cta-inner {
    max-width: 560px;
    margin: 0 auto;
}

.landing-cta-band h2 {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 800;
    margin-bottom: 10px;
}

.landing-cta-band p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.landing-cta-band .btn-app-store {
    margin: 0 auto;
}

/* Legal section on landing */
.landing-legal {
    margin-top: 0;
    padding-top: 56px;
}

.legal-section-header {
    text-align: center;
    margin-bottom: 28px;
}

.link-card-muted {
    opacity: 0.85;
}

.link-card-muted:hover { opacity: 1; }

@media (max-width: 860px) {
    .landing-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .landing-hero-content { text-align: center; }

    .hero-sub { margin-left: auto; margin-right: auto; }

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

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

    .phone-mockup { order: -1; }

    .phone-frame { transform: none; width: 220px; }

    .phone-mockup:hover .phone-frame { transform: none; }
}

@media (max-width: 600px) {
    .landing-hero { padding: 36px 18px 28px; }
    .landing-section { padding: 48px 18px; }
    .hero-stats { gap: 16px 20px; }
    .landing-steps { text-align: center; }
    .landing-steps li { flex-direction: column; align-items: center; text-align: center; }
}

/* Language switcher */
.lang-switcher {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 14px 6px 10px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

html[dir="rtl"] .lang-switcher {
    left: auto;
    right: 16px;
    padding: 6px 10px 6px 14px;
}

.lang-switcher-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: default;
}

.lang-select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    padding: 4px 2px;
    max-width: 140px;
    outline: none;
}

.lang-select:focus {
    color: var(--primary);
}

body.rtl {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[dir="rtl"] .landing-hero-content { text-align: right; }
html[dir="rtl"] .hero-sub { margin-left: 0; margin-right: 0; }
html[dir="rtl"] .hero-cta { justify-content: flex-start; }
html[dir="rtl"] .hero-stats { justify-content: flex-start; }
html[dir="rtl"] .landing-steps { text-align: right; }
html[dir="rtl"] .btn-app-store-text { align-items: flex-start; }

@media (max-width: 860px) {
    html[dir="rtl"] .landing-hero-content { text-align: center; }
    html[dir="rtl"] .hero-cta { justify-content: center; }
    html[dir="rtl"] .hero-stats { justify-content: center; }
    html[dir="rtl"] .landing-steps { text-align: center; }
}

@media (max-width: 480px) {
    .lang-switcher-label { display: none; }
    .lang-switcher { padding: 6px 10px; }
}
