/* =========================================================
   Taqwa Time — Design System
   Minimaliste · Premium · Accent "or doux" #E7C170
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Backgrounds (warm espresso, dérivé du logo) */
    --bg-deep: #120B08;
    --bg: #18100B;
    --bg-alt: #1F1610;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(231, 193, 112, 0.14);
    --border-soft: rgba(255, 255, 255, 0.08);

    /* Accent */
    --gold: #E7C170;
    --gold-soft: #F2D89C;
    --gold-deep: #C79A4E;
    --gold-glow: rgba(231, 193, 112, 0.35);

    /* Text */
    --text: #F6F1E9;
    --text-muted: #B4A698;
    --text-dim: #897C70;

    /* Layout */
    --max: 1180px;
    --radius: 22px;
    --radius-sm: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Ambient glow background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 600px at 78% -5%, rgba(231, 193, 112, 0.12), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(199, 154, 78, 0.10), transparent 55%),
        var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============== Typography ============== */
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(231, 193, 112, 0.06);
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin: 22px 0 16px;
}
.section-lead {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 640px;
}
.text-gold { color: var(--gold); }

.section {
    padding: clamp(72px, 11vw, 150px) 0;
    position: relative;
}
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(48px, 7vw, 80px);
}
.section-head .section-lead { margin: 0 auto; }

/* ============== Header / Nav ============== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(18, 11, 8, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.15rem;
}
.brand img {
    width: 40px; height: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
}
.nav-links a {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    transition: color .25s var(--ease);
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--gold);
    color: #1a1106;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    box-shadow: 0 8px 24px -8px var(--gold-glow);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px var(--gold-glow); }

/* ---- Language switcher ---- */
.lang-switch { position: relative; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 9px 14px;
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.lang-btn:hover { border-color: var(--gold); background: var(--surface-2); }
.lang-flag { font-size: 1.1rem; line-height: 1; }
.lang-btn .chev { width: 15px; height: 15px; stroke: var(--text-muted); fill: none; transition: transform .25s var(--ease); }
.lang-switch.open .chev { transform: rotate(180deg); }
.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    list-style: none;
    background: #1c130d;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 26px 56px -18px rgba(0,0,0,.75);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    z-index: 220;
}
.lang-switch.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: 0;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 11px 14px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button.active { color: var(--gold); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============== Buttons ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #1a1106;
    box-shadow: 0 12px 30px -10px var(--gold-glow);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px var(--gold-glow); }
.btn-ghost {
    background: var(--surface);
    border-color: var(--border-soft);
    color: var(--text);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--gold); }

/* Store badges */
.store-badges {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 14px;
    background: #0c0805;
    border: 1px solid var(--border-soft);
    transition: transform .25s var(--ease), border-color .25s var(--ease);
    min-width: 178px;
}
.store-badge:hover { transform: translateY(-3px); border-color: var(--gold); }
.store-badge svg { width: 30px; height: 30px; flex-shrink: 0; fill: var(--text); }
.store-badge .store-icon { width: 30px; height: 30px; flex-shrink: 0; object-fit: contain; }
.store-badge .store-icon-sm { width: 22px; height: 22px; }
.store-badge .sb-text { line-height: 1.15; text-align: left; }
.store-badge .sb-small { font-size: 0.68rem; color: var(--text-muted); display: block; }
.store-badge .sb-big { font-size: 1.12rem; font-weight: 700; }

/* ============== Hero ============== */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 90px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.6rem, 6.2vw, 4.7rem);
    margin: 24px 0 22px;
}
.hero h1 em {
    font-style: italic;
    color: var(--gold);
    font-weight: 800;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 34px;
}
.hero-actions { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

/* ============== iPhone Mockup (vide) ============== */
.phone {
    position: relative;
    width: 300px;
    aspect-ratio: 300 / 612;
    margin: 0 auto;
    border-radius: 52px;
    padding: 13px;
    background: linear-gradient(160deg, #2c2018, #0d0905 60%);
    box-shadow:
        inset 0 0 0 2px rgba(231,193,112,0.18),
        0 50px 90px -30px rgba(0,0,0,0.85),
        0 0 70px -20px var(--gold-glow);
}
.phone-screen {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 40px;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(231,193,112,0.10), transparent 55%),
        linear-gradient(180deg, #1c130d, #100a06);
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* placeholder shimmer (zone vide, prête pour screenshot) */
.phone-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(231,193,112,0.06) 50%, transparent 70%);
    background-size: 250% 100%;
    animation: shimmer 4.5s var(--ease) infinite;
}
@keyframes shimmer { 0% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.phone-placeholder {
    position: relative;
    z-index: 1;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.55;
}
/* Dynamic Island */
.phone .island {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px; height: 28px;
    background: #000;
    border-radius: 100px;
    z-index: 3;
}

.phone-float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* ============== Real media : video + screenshots ============== */
.video-card {
    position: relative;
    width: min(370px, 82vw);
    aspect-ratio: 1080 / 1920;
    margin: 0 auto;
    border-radius: 44px;
    overflow: hidden;
    background: #0d0905;
    box-shadow:
        inset 0 0 0 2px rgba(231,193,112,0.22),
        0 55px 100px -32px rgba(0,0,0,0.85),
        0 0 80px -18px var(--gold-glow);
}
.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shot {
    width: min(300px, 78vw);
    aspect-ratio: 1290 / 2796;
    object-fit: cover;
    object-position: top center;
    border-radius: 40px;
    display: block;
    margin: 0 auto;
    box-shadow:
        0 45px 85px -30px rgba(0,0,0,0.82),
        0 0 60px -22px var(--gold-glow);
}
.shot-lock { aspect-ratio: 473 / 1024; width: min(290px, 76vw); }

.shot-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .glow-ring {
    position: absolute;
    width: 460px; height: 460px;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--gold-glow), transparent 62%);
    filter: blur(20px);
    z-index: -1;
    animation: pulse 7s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: .9; } }

/* ============== Social proof bar ============== */
.proof {
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-deep);
}
.proof-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    padding: 48px 0;
}
.proof-stat .num {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
}
.proof-stat .label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}
.proof-stat + .proof-stat { border-left: 1px solid var(--border-soft); }

/* ============== Feature cards ============== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 34px;
    transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border);
    background: var(--surface-2);
}
.feature-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(231, 193, 112, 0.12);
    border: 1px solid var(--border);
    margin-bottom: 22px;
}
.feature-icon svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.98rem; }

/* ============== Split / showcase rows ============== */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.showcase.reverse .showcase-text { order: 2; }
.showcase-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 18px 0 16px; }
.showcase-text p { color: var(--text-muted); font-size: 1.05rem; max-width: 460px; }
.showcase-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.showcase-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.showcase-list li svg { width: 22px; height: 22px; stroke: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ============== Timeline (À propos) ============== */
.timeline {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--border), transparent);
}
.tl-item {
    position: relative;
    width: 50%;
    padding: 0 48px 64px;
}
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }
.tl-dot {
    position: absolute;
    top: 6px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(231,193,112,0.15), 0 0 20px var(--gold-glow);
}
.tl-item:nth-child(odd) .tl-dot { right: -9px; }
.tl-item:nth-child(even) .tl-dot { left: -9px; }
.tl-year {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
}
.tl-tag {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
}
.tl-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 24px 26px;
    margin-top: 8px;
}
.tl-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.tl-card p { color: var(--text-muted); font-size: 0.97rem; }

/* ============== Carousel (Features page) ============== */
.carousel { position: relative; }
.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 4px 36px;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
    scroll-snap-align: center;
    flex: 0 0 auto;
}
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
}
.carousel-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.carousel-btn:hover { border-color: var(--gold); background: var(--surface-2); transform: scale(1.06); }
.carousel-btn svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; }

/* Staggered phones */
.phone-stagger {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.phone-stagger .phone { width: 240px; }
.phone-stagger .phone:nth-child(odd) { transform: translateY(28px); }
.phone-stagger .phone:nth-child(2) { transform: translateY(-22px); }

/* ============== CTA band ============== */
.cta-band {
    background: linear-gradient(135deg, var(--bg-alt), var(--bg-deep));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(44px, 7vw, 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    width: 380px; height: 380px;
    background: radial-gradient(circle, var(--gold-glow), transparent 65%);
    top: -120px; right: -80px;
    filter: blur(12px);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); position: relative; }
.cta-band p { color: var(--text-muted); margin: 16px auto 32px; max-width: 540px; position: relative; }
.cta-band .store-badges { justify-content: center; position: relative; }

/* ============== Footer ============== */
.footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-soft);
    padding: 64px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 280px; margin: 16px 0 22px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 18px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--text-dim);
    font-size: 0.88rem;
}

/* ============== Legal pages ============== */
.legal-hero {
    padding: 150px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
}
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 18px 0 14px; }
.legal-hero p { color: var(--text-muted); }
.legal-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 90px) 24px;
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 56px;
    align-items: start;
}
.legal-toc {
    position: sticky;
    top: 100px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 22px;
    background: var(--surface);
}
.legal-toc h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 14px; }
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal-toc a { color: var(--text-muted); font-size: 0.9rem; transition: color .2s; padding-left: 12px; border-left: 2px solid transparent; display: block; }
.legal-toc a:hover { color: var(--gold); }
.legal-toc a.active { color: var(--gold); border-left-color: var(--gold); }
.legal-content h2 {
    font-size: 1.4rem;
    margin: 40px 0 14px;
    padding-top: 14px;
    scroll-margin-top: 100px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h2 .n { color: var(--gold); margin-right: 10px; }
.legal-content p { color: var(--text-muted); margin-bottom: 14px; }
.legal-content ul { color: var(--text-muted); margin: 0 0 16px 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-content a { color: var(--gold); }
.legal-updated {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--text-dim);
    border: 1px solid var(--border-soft);
    border-radius: 100px;
    padding: 6px 16px;
}

/* ============== Scroll reveal ============== */
[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal="left"] { transform: translateX(-40px); }
[data-reveal][data-reveal="right"] { transform: translateX(40px); }
[data-reveal].in { transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============== RTL (Arabic) ============== */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .lang-menu button { text-align: right; }
html[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
html[dir="rtl"] .legal-toc a { padding-left: 0; padding-right: 12px; border-left: 0; border-right: 2px solid transparent; }
html[dir="rtl"] .legal-toc a.active { border-right-color: var(--gold); }
html[dir="rtl"] .legal-content h2 .n { margin-right: 0; margin-left: 10px; }
html[dir="rtl"] .legal-content ul { margin: 0 22px 16px 0; }

/* Timeline mirrored */
html[dir="rtl"] .tl-item:nth-child(odd) { left: 50%; text-align: left; }
html[dir="rtl"] .tl-item:nth-child(even) { left: 0; text-align: right; }
html[dir="rtl"] .tl-item:nth-child(odd) .tl-dot { left: -9px; right: auto; }
html[dir="rtl"] .tl-item:nth-child(even) .tl-dot { right: -9px; left: auto; }

/* ============== Responsive ============== */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .hero-actions { align-items: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero .eyebrow { margin: 0 auto; }
    .showcase { grid-template-columns: 1fr; gap: 36px; }
    .showcase.reverse .showcase-text { order: 0; }
    .showcase-text { text-align: center; }
    .showcase-text p { margin: 0 auto; }
    .showcase-list { align-items: flex-start; max-width: 360px; margin-left: auto; margin-right: auto; text-align: left; }
    .feature-grid { grid-template-columns: 1fr; }
    .proof-inner { grid-template-columns: 1fr; gap: 34px; }
    .proof-stat + .proof-stat { border-left: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .legal-wrap { grid-template-columns: 1fr; }
    .legal-toc { position: static; }

    /* Timeline -> single column left aligned */
    .timeline::before { left: 9px; }
    .tl-item { width: 100%; left: 0 !important; text-align: left !important; padding: 0 0 50px 44px; }
    .tl-item .tl-dot { left: 1px !important; right: auto !important; }

    /* RTL single-column timeline */
    html[dir="rtl"] .timeline::before { left: auto; right: 9px; }
    html[dir="rtl"] .tl-item { text-align: right !important; padding: 0 44px 50px 0; }
    html[dir="rtl"] .tl-item .tl-dot { right: 1px !important; left: auto !important; }

    .nav-links {
        position: fixed;
        top: 74px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(18,11,8,0.96);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border-soft);
        padding: 12px 24px 22px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s var(--ease), transform .3s var(--ease);
    }
    .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
    .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
    .nav-links a::after { display: none; }
    .nav-links .nav-cta { margin-top: 14px; justify-content: center; border-bottom: 0; }
    .nav-toggle { display: flex; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .phone { width: 260px; }
    .store-badge { min-width: 0; flex: 1; }
}
