/* ========================================================
   altayebat.ai — Design System
   Warm, lifestyle-driven food-tech aesthetic
   ======================================================== */

:root {
    /* Core palette — natural, food-inspired */
    --olive:        #6B8E4E;
    --olive-deep:   #4A6B33;
    --olive-soft:   #A8C079;
    --olive-mist:   #E8EFD9;

    --tomato:       #C84B31;
    --tomato-deep:  #9F3622;
    --tomato-soft:  #E89177;

    --earth:        #B8860B;
    --earth-deep:   #8A6608;
    --earth-soft:   #E8C77E;

    --cream:        #FAF0DC;
    --bone:         #F7F2E8;
    --sand:         #E8DBC2;
    --paper:        #FFFBF3;

    --ink:          #1F1B16;
    --char:         #2C2A26;
    --mute:         #6B6358;
    --hair:         rgba(31, 27, 22, 0.10);

    /* Gradients */
    --grad-warm:    linear-gradient(135deg, #FAF0DC 0%, #F7E9CC 50%, #E8DBC2 100%);
    --grad-leaf:    linear-gradient(135deg, #6B8E4E 0%, #4A6B33 100%);
    --grad-sun:     linear-gradient(135deg, #E8C77E 0%, #B8860B 100%);
    --grad-tomato:  linear-gradient(135deg, #E89177 0%, #C84B31 100%);

    /* Spacing scale */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;
    --s-10: 8rem;

    /* Type scale */
    --t-xs:    0.8125rem;
    --t-sm:    0.9375rem;
    --t-base:  1.0625rem;
    --t-lg:    1.25rem;
    --t-xl:    1.5rem;
    --t-2xl:   2rem;
    --t-3xl:   2.75rem;
    --t-4xl:   3.75rem;
    --t-hero:  clamp(2.75rem, 7vw, 5.5rem);

    /* Radii */
    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  22px;
    --r-xl:  32px;
    --r-pill: 999px;

    /* Shadows — soft, layered */
    --shadow-sm: 0 1px 2px rgba(31,27,22,0.04), 0 1px 3px rgba(31,27,22,0.06);
    --shadow-md: 0 4px 12px rgba(31,27,22,0.06), 0 2px 4px rgba(31,27,22,0.04);
    --shadow-lg: 0 18px 40px -12px rgba(31,27,22,0.18), 0 6px 16px -8px rgba(31,27,22,0.10);
    --shadow-glow-olive: 0 20px 50px -20px rgba(107,142,78,0.45);
    --shadow-glow-earth: 0 20px 50px -20px rgba(184,134,11,0.45);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --container: 1200px;
    --container-narrow: 880px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Tajawal', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: var(--t-base);
    line-height: 1.7;
    color: var(--char);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: var(--ink);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
    letter-spacing: 0;
    line-height: 1.4;
}
h1 { font-size: var(--t-hero); }
h2 { font-size: clamp(1.875rem, 4vw, 2.875rem); }
h3 { font-size: var(--t-xl); font-weight: 700; }
h4 { font-size: var(--t-lg); font-weight: 700; }
p  { color: var(--char); }
.lead {
    font-size: var(--t-lg);
    color: var(--mute);
    line-height: 1.7;
    max-width: 60ch;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--olive-deep);
    padding: var(--s-2) var(--s-4);
    background: var(--olive-mist);
    border-radius: var(--r-pill);
}
[dir="rtl"] .eyebrow { letter-spacing: 0.06em; }

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--s-5);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--s-9); position: relative; }
.section--sm { padding-block: var(--s-7); }
.section--lg { padding-block: var(--s-10); }
.center { text-align: center; }
.grid { display: grid; gap: var(--s-5); }
.flex { display: flex; gap: var(--s-4); align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 0.95rem 1.75rem;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: var(--t-base);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s var(--ease);
    will-change: transform;
    white-space: nowrap;
}
.btn--primary {
    background: var(--grad-leaf);
    color: var(--paper);
    box-shadow: var(--shadow-glow-olive);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -18px rgba(107,142,78,0.6); }
.btn--earth {
    background: var(--grad-sun);
    color: var(--ink);
    box-shadow: var(--shadow-glow-earth);
}
.btn--earth:hover { transform: translateY(-2px); }
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--hair);
}
.btn--ghost:hover { border-color: var(--olive); color: var(--olive-deep); background: var(--olive-mist); }
.btn--lg { padding: 1.1rem 2.25rem; font-size: var(--t-lg); }
.btn .arrow { transition: transform .3s var(--ease); }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px); }
[dir="ltr"] .btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    background: rgba(255, 251, 243, 0.78);
    border-bottom: 1px solid var(--hair);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
    padding-block: var(--s-4);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: var(--t-lg);
    color: var(--ink);
}
.brand-mark {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--grad-leaf);
    display: grid; place-items: center;
    color: white;
    box-shadow: var(--shadow-md);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--s-5);
    list-style: none;
}
.nav-links a {
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--char);
    padding: var(--s-2) 0;
    position: relative;
    transition: color .25s ease;
}
.nav-links a:hover { color: var(--olive-deep); }
.nav-links a.active { color: var(--olive-deep); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 2px;
    background: var(--olive);
    border-radius: 2px;
}
.nav-utils {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}
.geo-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 0.35rem 0.75rem;
    border-radius: var(--r-pill);
    background: var(--bone);
    border: 1px solid var(--hair);
    font-size: var(--t-xs);
    color: var(--mute);
    font-weight: 600;
}
.geo-dot { width: 6px; height: 6px; background: var(--olive); border-radius: 50%; }
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--bone);
    border: 1px solid var(--hair);
    border-radius: var(--r-pill);
}
.lang-toggle button {
    padding: 0.3rem 0.65rem;
    border-radius: var(--r-pill);
    font-size: var(--t-xs);
    font-weight: 700;
    color: var(--mute);
    transition: all .2s ease;
}
.lang-toggle button.active {
    background: var(--ink);
    color: var(--paper);
}
.hamburger {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--bone);
    border: 1px solid var(--hair);
    place-items: center;
}
.hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s ease;
    position: relative;
}
.hamburger span + span { margin-top: 5px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
    display: none;
    border-top: 1px solid var(--hair);
    background: rgba(255, 251, 243, 0.96);
    backdrop-filter: blur(18px);
}
.mobile-menu.is-open { display: block; }
.mobile-menu .nav-links {
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-4) var(--s-5);
    gap: var(--s-2);
}
.mobile-menu .nav-links a {
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-md);
    background: transparent;
    transition: background .2s ease;
}
.mobile-menu .nav-links a:hover { background: var(--olive-mist); }
.mobile-menu .nav-utils {
    padding: var(--s-2) var(--s-5) var(--s-5);
    justify-content: space-between;
    border-top: 1px solid var(--hair);
    margin-top: var(--s-3);
    padding-top: var(--s-4);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 45% at 15% 0%,  rgba(168,192,121,0.35) 0%, transparent 70%),
        radial-gradient(45% 40% at 95% 20%, rgba(232,199,126,0.30) 0%, transparent 70%),
        radial-gradient(55% 50% at 85% 100%, rgba(232,145,119,0.20) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--s-8);
    align-items: center;
}
.hero h1 {
    margin-block: var(--s-5) var(--s-5);
}
.hero h1 .accent {
    position: relative;
    display: inline-block;
    background: linear-gradient(120deg, var(--olive-deep) 0%, var(--earth-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero h1 .accent::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 12px;
    background: var(--earth-soft);
    opacity: 0.35;
    border-radius: 4px;
    z-index: -1;
}
.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--mute);
    line-height: 1.75;
    max-width: 52ch;
    margin-bottom: var(--s-6);
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-3);
    margin-bottom: var(--s-6);
}
.hero-trust {
    display: flex;
    gap: var(--s-5);
    color: var(--mute);
    font-size: var(--t-sm);
    flex-wrap: wrap;
}
.hero-trust span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-trust .dot { width: 6px; height: 6px; background: var(--olive); border-radius: 50%; }

/* Hero visual: stacked card composition */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-inline-start: auto;
    width: 100%;
}
.h-card {
    position: absolute;
    border-radius: var(--r-lg);
    background: var(--paper);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--hair);
}
.h-card--main {
    inset: 8% 5% 12% 12%;
    background: var(--grad-warm);
    display: grid;
    place-items: center;
    transform: rotate(-3deg);
    animation: floatA 8s ease-in-out infinite;
}
.h-card--main .plate {
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #fff 0%, #f6ead0 60%, #e8dbc2 100%);
    box-shadow: inset 0 4px 30px rgba(31,27,22,0.06), 0 12px 40px -16px rgba(31,27,22,0.25);
    display: grid;
    place-items: center;
    position: relative;
}
.h-card--main .food-emoji {
    font-size: clamp(4rem, 10vw, 7rem);
    filter: drop-shadow(0 8px 16px rgba(31,27,22,0.15));
}
.h-card--verdict {
    top: 8%;
    inset-inline-end: 0;
    width: 58%;
    padding: var(--s-4);
    background: white;
    transform: rotate(4deg);
    animation: floatB 9s ease-in-out infinite;
}
.h-card--verdict .tag {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-pill);
    background: var(--olive-mist);
    color: var(--olive-deep);
    font-size: var(--t-xs);
    font-weight: 800;
    margin-bottom: var(--s-3);
}
.h-card--verdict .tag .check {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--olive);
    color: white;
    display: grid; place-items: center;
    font-size: 10px;
}
.h-card--verdict h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.h-card--verdict p {
    font-size: var(--t-xs);
    color: var(--mute);
    line-height: 1.5;
}
.h-card--meta {
    bottom: 6%;
    inset-inline-start: 0;
    width: 55%;
    padding: var(--s-4);
    background: white;
    transform: rotate(-5deg);
    animation: floatC 10s ease-in-out infinite;
}
.h-card--meta .row {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}
.h-card--meta .ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--grad-sun);
    display: grid; place-items: center;
    color: white;
    flex-shrink: 0;
}
.h-card--meta .label { font-size: var(--t-xs); color: var(--mute); }
.h-card--meta .value { font-size: var(--t-sm); font-weight: 800; color: var(--ink); }

@keyframes floatA { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
@keyframes floatB { 0%, 100% { transform: rotate(4deg) translateY(0); }  50% { transform: rotate(4deg) translateY(-14px); } }
@keyframes floatC { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-8px); } }

/* ---------- Sections — generic ---------- */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--s-7);
}
.section-head h2 { margin-block: var(--s-4) var(--s-3); }
.section-head p { color: var(--mute); font-size: var(--t-lg); line-height: 1.7; }

/* ---------- How it works (steps) ---------- */
.steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
    counter-reset: step;
}
.step {
    padding: var(--s-6);
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--hair);
    position: relative;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--olive-soft); }
.step-num {
    position: absolute;
    inset-inline-end: var(--s-5);
    top: var(--s-5);
    font-family: 'Cairo', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--sand);
    opacity: 0.65;
    line-height: 1;
}
.step-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: var(--olive-mist);
    color: var(--olive-deep);
    display: grid; place-items: center;
    margin-bottom: var(--s-4);
    font-size: 1.75rem;
}
.step:nth-child(2) .step-icon { background: #FBEFD9; color: var(--earth-deep); }
.step:nth-child(3) .step-icon { background: #FCE3DD; color: var(--tomato-deep); }
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--mute); font-size: var(--t-sm); line-height: 1.7; }

/* ---------- Why us (features) ---------- */
.features { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.feature {
    padding: var(--s-6);
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--hair);
    display: flex;
    gap: var(--s-4);
    transition: all .4s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--olive-mist);
    color: var(--olive-deep);
    display: grid; place-items: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}
.feature:nth-child(2) .feature-icon { background: #FBEFD9; color: var(--earth-deep); }
.feature:nth-child(3) .feature-icon { background: #FCE3DD; color: var(--tomato-deep); }
.feature:nth-child(4) .feature-icon { background: var(--olive-mist); color: var(--olive-deep); }
.feature h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.feature p { color: var(--mute); font-size: var(--t-sm); line-height: 1.7; }

/* ---------- Stats strip ---------- */
.stats-band {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--r-xl);
    padding: var(--s-7) var(--s-6);
    position: relative;
    overflow: hidden;
}
.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 60% at 10% 0%, rgba(168,192,121,0.18) 0%, transparent 70%),
        radial-gradient(40% 60% at 100% 100%, rgba(232,199,126,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.stats-grid {
    position: relative;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-5);
}
.stat { text-align: center; }
.stat-num {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    background: linear-gradient(135deg, #E8C77E 0%, #A8C079 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    margin-bottom: var(--s-2);
}
.stat-label { font-size: var(--t-sm); color: rgba(255,251,243,0.7); }

/* ---------- Countries strip ---------- */
.countries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-3);
    margin-top: var(--s-7);
}
.country {
    padding: 0.6rem 1.1rem;
    border-radius: var(--r-pill);
    background: var(--paper);
    border: 1px solid var(--hair);
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--char);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    transition: all .25s ease;
}
.country:hover { border-color: var(--olive-soft); background: var(--olive-mist); transform: translateY(-2px); }
.country .flag { font-size: 1.05rem; }

/* ---------- Testimonials placeholder ---------- */
.testimonials {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
}
.testi {
    padding: var(--s-6);
    border-radius: var(--r-lg);
    background: var(--grad-warm);
    border: 1px solid var(--hair);
    position: relative;
}
.testi-quote {
    font-size: 2.5rem;
    font-family: 'Cairo', sans-serif;
    color: var(--earth);
    line-height: 1;
    margin-bottom: var(--s-2);
    opacity: 0.6;
}
.testi-body {
    color: var(--char);
    font-size: var(--t-base);
    line-height: 1.8;
    margin-bottom: var(--s-4);
    min-height: 5em;
}
.testi-meta { display: flex; align-items: center; gap: var(--s-3); }
.testi-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--grad-leaf);
    color: white;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: var(--t-base);
}
.testi-name { font-weight: 700; font-size: var(--t-sm); }
.testi-loc  { font-size: var(--t-xs); color: var(--mute); }
.testi--soon {
    display: grid; place-items: center;
    text-align: center;
    background: var(--bone);
    color: var(--mute);
    min-height: 220px;
    border: 1px dashed var(--hair);
}
.testi--soon .soon-icon { font-size: 2rem; margin-bottom: var(--s-2); }

/* ---------- Final CTA ---------- */
.cta-final {
    background: var(--grad-leaf);
    color: var(--paper);
    border-radius: var(--r-xl);
    padding: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 80% at 50% 0%, rgba(255,251,243,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.cta-final h2 { color: var(--paper); margin-bottom: var(--s-4); }
.cta-final p { color: rgba(255,251,243,0.85); font-size: var(--t-lg); max-width: 50ch; margin: 0 auto var(--s-6); }
.cta-final .btn--earth { box-shadow: 0 14px 40px -10px rgba(0,0,0,0.4); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 251, 243, 0.85);
    padding-block: var(--s-9) var(--s-5);
    margin-top: var(--s-9);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--s-7);
    margin-bottom: var(--s-7);
}
.footer-brand { max-width: 360px; }
.footer-brand .brand { color: var(--paper); margin-bottom: var(--s-4); }
.footer-brand p { color: rgba(255,251,243,0.6); font-size: var(--t-sm); line-height: 1.8; }
.footer-col h4 { color: var(--paper); font-size: var(--t-sm); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: grid; gap: var(--s-3); }
.footer-col a { font-size: var(--t-sm); color: rgba(255,251,243,0.6); transition: color .2s ease; }
.footer-col a:hover { color: var(--earth-soft); }
.footer-bottom {
    border-top: 1px solid rgba(255,251,243,0.08);
    padding-top: var(--s-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-3);
    font-size: var(--t-xs);
    color: rgba(255,251,243,0.4);
}

/* ---------- Scan page ---------- */
.scan-wrap {
    max-width: 720px;
    margin: 0 auto;
}
.upload-card {
    background: var(--paper);
    border-radius: var(--r-xl);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--hair);
}
.dropzone {
    border: 2px dashed var(--olive-soft);
    border-radius: var(--r-lg);
    background: var(--olive-mist);
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--s-5);
    text-align: center;
    cursor: pointer;
    transition: all .3s var(--ease);
    position: relative;
}
.dropzone:hover, .dropzone.is-hover {
    background: #DFEAC6;
    border-color: var(--olive);
    transform: translateY(-2px);
}
.dropzone-ico {
    width: 88px; height: 88px;
    border-radius: 28px;
    background: var(--paper);
    margin: 0 auto var(--s-4);
    display: grid; place-items: center;
    color: var(--olive-deep);
    box-shadow: var(--shadow-md);
}
.dropzone h3 { margin-bottom: var(--s-2); }
.dropzone p { color: var(--mute); font-size: var(--t-sm); margin-bottom: var(--s-5); }
.upload-actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }
.upload-actions .btn { padding: 0.85rem 1.5rem; }
.scan-note {
    margin-top: var(--s-5);
    padding: var(--s-4);
    background: var(--bone);
    border-radius: var(--r-md);
    color: var(--mute);
    font-size: var(--t-sm);
    line-height: 1.7;
    border-inline-start: 3px solid var(--earth);
}
.scan-tips {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    margin-top: var(--s-7);
}
.tip {
    text-align: center;
    padding: var(--s-5);
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--hair);
}
.tip-ico { font-size: 1.75rem; margin-bottom: var(--s-3); }
.tip h4 { font-size: var(--t-base); margin-bottom: var(--s-2); }
.tip p { font-size: var(--t-sm); color: var(--mute); line-height: 1.6; }

/* Result skeleton */
.result-area {
    margin-top: var(--s-6);
    display: none;
}
.result-area.is-visible { display: block; }
.skel-card {
    background: var(--paper);
    border-radius: var(--r-lg);
    padding: var(--s-6);
    border: 1px solid var(--hair);
}
.skel {
    height: 16px;
    background: linear-gradient(90deg, var(--bone) 0%, var(--sand) 50%, var(--bone) 100%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 1.4s linear infinite;
}
.skel + .skel { margin-top: var(--s-3); }
.skel--lg { height: 28px; width: 60%; }
.skel--sm { width: 40%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- How (methodology) page ---------- */
.channels-flow {
    position: relative;
    display: grid;
    gap: var(--s-5);
}
.channel-card {
    padding: var(--s-6);
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--hair);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--s-5);
    align-items: start;
    position: relative;
    transition: all .4s var(--ease);
}
.channel-card:hover { transform: translateX(0) translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--olive-soft); }
[dir="rtl"] .channel-card:hover { transform: translateY(-4px); }
.channel-num {
    width: 72px; height: 72px;
    border-radius: 22px;
    background: var(--grad-leaf);
    color: var(--paper);
    display: grid; place-items: center;
    font-family: 'Cairo', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    box-shadow: var(--shadow-md);
}
.channel-card:nth-child(2) .channel-num { background: var(--grad-sun); color: var(--ink); }
.channel-card:nth-child(3) .channel-num { background: var(--grad-tomato); color: var(--paper); }
.channel-card:nth-child(4) .channel-num { background: var(--grad-leaf); }
.channel-card:nth-child(5) .channel-num { background: var(--grad-sun); color: var(--ink); }
.channel-card:nth-child(6) .channel-num { background: var(--grad-tomato); color: var(--paper); }
.channel-card:nth-child(7) .channel-num { background: var(--grad-leaf); }
.channel-body h3 { margin-bottom: var(--s-2); display: flex; align-items: center; gap: var(--s-3); }
.channel-body h3 .ch-ico { font-size: 1.5rem; }
.channel-body p { color: var(--mute); line-height: 1.8; }

.flow-banner {
    background: var(--grad-warm);
    border-radius: var(--r-xl);
    padding: var(--s-7);
    margin-top: var(--s-7);
    border: 1px solid var(--hair);
}
.flow-banner h3 { text-align: center; margin-bottom: var(--s-5); }
.flow-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
}
.flow-pill {
    padding: 0.75rem 1.25rem;
    background: var(--paper);
    border-radius: var(--r-pill);
    border: 1px solid var(--hair);
    font-size: var(--t-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}
.flow-pill .num {
    width: 24px; height: 24px;
    background: var(--olive);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: var(--t-xs);
    font-weight: 800;
}
.flow-arrow { color: var(--olive); font-weight: 900; font-size: 1.2rem; }

/* ---------- Diseases page ---------- */
.diseases-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--s-5);
}
.disease {
    padding: var(--s-6);
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--hair);
    text-align: center;
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.disease::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--grad-leaf);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .4s var(--ease);
}
.disease:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.disease:hover::before { transform: scaleX(1); }
.disease-ico {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: var(--olive-mist);
    color: var(--olive-deep);
    display: grid; place-items: center;
    font-size: 1.75rem;
    margin: 0 auto var(--s-4);
}
.disease:nth-child(3n+2) .disease-ico { background: #FBEFD9; color: var(--earth-deep); }
.disease:nth-child(3n)   .disease-ico { background: #FCE3DD; color: var(--tomato-deep); }
.disease h3 { font-size: var(--t-base); margin-bottom: var(--s-2); }
.disease .badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: var(--r-pill);
    background: var(--bone);
    color: var(--mute);
    font-size: var(--t-xs);
    font-weight: 600;
}
.disease.is-ready .badge { background: var(--olive-mist); color: var(--olive-deep); }

/* ---------- About page ---------- */
.about-hero {
    padding-block: var(--s-9);
    text-align: center;
    background: var(--grad-warm);
    border-radius: var(--r-xl);
    margin-bottom: var(--s-8);
}
.about-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: var(--s-4); }
.about-hero p { max-width: 60ch; margin: 0 auto; color: var(--mute); font-size: var(--t-lg); }
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-7);
    align-items: start;
}
.about-content h2 { font-size: var(--t-2xl); margin-bottom: var(--s-4); }
.about-content p { color: var(--mute); line-height: 1.85; margin-bottom: var(--s-4); }
.values-list { list-style: none; display: grid; gap: var(--s-4); }
.values-list li {
    display: flex;
    gap: var(--s-3);
    align-items: start;
    padding: var(--s-4);
    background: var(--paper);
    border: 1px solid var(--hair);
    border-radius: var(--r-md);
}
.values-list li .v-ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--olive-mist);
    color: var(--olive-deep);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.values-list li h4 { font-size: var(--t-base); margin-bottom: 2px; }
.values-list li p { margin: 0; font-size: var(--t-sm); }

/* ---------- Reveal animations ---------- */
/* Only hide reveal elements when JS is active (html.js class) */
html.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
html.js .reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: var(--s-7); }
    .hero-visual { max-width: 420px; margin-inline: auto; }
    .steps { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-content { grid-template-columns: 1fr; }
    .scan-tips { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .nav-links, .nav-utils { display: none; }
    .hamburger { display: grid; }
    .channel-card { grid-template-columns: 1fr; text-align: start; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .section { padding-block: var(--s-8); }
    .hero { padding-block: var(--s-7) var(--s-8); }
    h1 { font-size: clamp(2.25rem, 8vw, 3.25rem); }
    .hero-trust { gap: var(--s-3); font-size: var(--t-xs); }
    .stats-band { padding: var(--s-6) var(--s-5); }
    .footer-brand { max-width: 100%; }
}

@media (max-width: 420px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
    .container { padding-inline: var(--s-4); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- LTR overrides (for HE/EN) ---------- */
[dir="ltr"] body { font-family: 'Inter', 'Tajawal', system-ui, sans-serif; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] h4 {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* ============================================================
   Result card (scan page)
   ============================================================ */
.result-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: 0 8px 30px rgba(0,0,0,.06);
  margin-top: var(--s-5);
}
.result-card--error {
  border: 1px solid #FBE3E0;
  background: #FFF8F7;
}
.verdict-banner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.verdict-emoji {
  font-size: 2.5rem;
  line-height: 1;
}
.verdict-label {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.verdict-summary {
  font-size: 0.95rem;
  line-height: 1.5;
}
.matches {
  margin-top: var(--s-4);
}
.matches h3 {
  font-size: 1.1rem;
  margin-bottom: var(--s-3);
}
.match-block {
  background: var(--cream, #FAF6EE);
  padding: var(--s-3);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
}
.match-block h4 {
  margin: 0 0 var(--s-2);
  font-size: 1rem;
}
.match-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.match-block li {
  background: #fff;
  padding: var(--s-3);
  border-radius: var(--r-sm);
  margin-bottom: var(--s-2);
}
.match-block li p {
  margin: var(--s-2) 0 0;
  font-size: 0.9rem;
  color: var(--mute);
  line-height: 1.5;
}
.verdict-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-inline-start: var(--s-2);
  text-transform: uppercase;
}
.ocr-block {
  margin-top: var(--s-4);
  padding: var(--s-3);
  background: var(--cream, #FAF6EE);
  border-radius: var(--r-md);
}
.ocr-block summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}
.ocr-block pre {
  margin: var(--s-3) 0 0;
  padding: var(--s-3);
  background: #fff;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 240px;
  overflow-y: auto;
  font-family: 'Tajawal', sans-serif;
}
.result-actions {
  margin-top: var(--s-5);
  text-align: center;
}

/* ============================================================
   Hero — تحديثات النسخة الثانية (نهج د. ضياء العوضي)
   ============================================================ */

/* SVG الطبق - حجم متجاوب داخل الـ plate */
.plate-svg {
  width: 100%;
  height: 100%;
  max-width: 280px;
  max-height: 280px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(80, 50, 20, 0.18));
}

/* الـ accent text بنمط تراثي */
.hero h1 .accent {
  color: #8B5A12;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  position: relative;
  display: inline-block;
}

.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg,
    rgba(139, 90, 18, 0) 0%,
    rgba(139, 90, 18, 0.4) 20%,
    rgba(139, 90, 18, 0.7) 50%,
    rgba(139, 90, 18, 0.4) 80%,
    rgba(139, 90, 18, 0) 100%);
  border-radius: 2px;
}

/* زر primary بلون تراثي (عسلي/تمر) */
.btn--primary {
  background: linear-gradient(135deg, #8B5A12 0%, #6B4410 100%);
  color: #FFFBF3;
  border: none;
  box-shadow: 0 6px 18px rgba(139, 90, 18, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #9B6516 0%, #7B4D12 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(139, 90, 18, 0.42);
}

.btn--primary svg {
  margin-inline-end: 8px;
  flex-shrink: 0;
}

/* بطاقة الحكم - tag طيّب */
.tag--allowed {
  background: #E8F0DC !important;
  color: #3E5C20 !important;
  border: 1px solid rgba(62, 92, 32, 0.18);
}

/* تحسين بطاقة الـ verdict */
.h-card--verdict {
  background: #fff;
  border: 1px solid #F0E8D6;
}

.h-card--verdict h4 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  color: #2C2418;
}

.h-card--verdict p {
  color: #6B5D45;
  font-size: 0.85rem;
}

/* بطاقة المصدر */
.h-card--meta .ico {
  color: #8B5A12;
}

.h-card--meta .label {
  font-size: 0.75rem;
  color: #6B5D45;
  margin-bottom: 2px;
}

.h-card--meta .value {
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2C2418;
}

/* تنسيق الـ eyebrow الجديد */
.hero .eyebrow {
  color: #8B5A12;
  font-weight: 700;
  letter-spacing: 0.02em;
}

