:root {
    --brand-green: #198754;
    --brand-orange: #d86c3f;
    --dark-bg: #0b1120;
    --dark-bg-2: #162032;
    --font-en: 'Montserrat', sans-serif;
    --font-ar: 'Almarai', sans-serif;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}
body {
    font-family: var(--font-en);
    color: #212529;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
[lang="ar"] body, [lang="ar"] .ar-font { font-family: var(--font-ar); }

/* ── Gradient text ── */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navbar ── */
.landing-navbar {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.landing-navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.landing-navbar .nav-link {
    font-weight: 500;
    font-size: .9rem;
    color: #495057;
    padding: .5rem .85rem;
    transition: color .15s ease;
}
.landing-navbar .nav-link:hover { color: var(--brand-green); }
.navbar-brand { font-weight: 700; font-size: 1.2rem; color: var(--brand-green) !important; }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 76px;
}
.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: .04;
    animation: float 20s ease-in-out infinite;
}
.hero-circle:nth-child(1) { width: 600px; height: 600px; background: var(--brand-green); top: -10%; left: -10%; animation-delay: 0s; }
.hero-circle:nth-child(2) { width: 400px; height: 400px; background: var(--brand-orange); top: 40%; right: -8%; animation-delay: -4s; }
.hero-circle:nth-child(3) { width: 300px; height: 300px; background: var(--brand-green); bottom: -5%; left: 30%; animation-delay: -8s; }
.hero-circle:nth-child(4) { width: 200px; height: 200px; background: var(--brand-orange); top: 15%; left: 50%; animation-delay: -12s; }
.hero-circle:nth-child(5) { width: 500px; height: 500px; background: #0d6efd; bottom: -15%; right: -5%; animation-delay: -16s; }
.hero-circle:nth-child(6) { width: 250px; height: 250px; background: var(--brand-green); top: 60%; left: 10%; animation-delay: -20s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ── Dashboard mockup ── */
.browser-mockup {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.08);
}
.browser-bar {
    background: #0f172a;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot:nth-child(1) { background: #ef4444; }
.browser-dot:nth-child(2) { background: #f59e0b; }
.browser-dot:nth-child(3) { background: #22c55e; }
.browser-url {
    background: #334155;
    color: #94a3b8;
    font-size: .75rem;
    padding: 4px 12px;
    border-radius: 6px;
    flex: 1;
    text-align: center;
    font-family: monospace;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
}
.dash-card {
    background: #0f172a;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.05);
}
.dash-card h6 { color: #64748b; font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.dash-card .value { color: #f1f5f9; font-weight: 700; font-size: 1.1rem; }
.dash-row { display: flex; gap: 8px; }
.dash-row .dash-card { flex: 1; }
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .65rem;
    font-weight: 600;
}
.status-preparing { background: #fef3c7; color: #92400e; }
.status-completed { background: #dcfce7; color: #166534; }
.status-out { background: #fee2e2; color: #991b1b; }
.status-low { background: #fef3c7; color: #92400e; }
.status-ok { background: #dcfce7; color: #166534; }

/* ── Section styling ── */
.section-padding { padding: 5rem 0; }
.section-title { font-weight: 700; font-size: 2rem; margin-bottom: .5rem; }
.section-subtitle { color: #6c757d; font-size: 1.05rem; max-width: 600px; margin: 0 auto 3rem; }

/* ── Pillar cards ── */
.pillar-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    transition: all .25s ease;
    padding: 1.75rem;
    background: #fff;
    height: 100%;
}
.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.pillar-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ── Before/After ── */
.ba-card {
    border: none;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}
.ba-before { background: #fef2f2; }
.ba-after { background: #f0fdf4; }
.ba-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2.2;
}

/* ── Report cards ── */
.report-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    padding: 1.5rem;
    transition: all .2s ease;
    height: 100%;
    background: #fff;
    text-align: center;
}
.report-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.report-card .icon { font-size: 2rem; margin-bottom: .75rem; }
.report-card h6 { font-weight: 700; }
.report-card p { font-size: .875rem; color: #6c757d; margin-bottom: 0; }
.report-card.featured {
    border: 2px solid var(--brand-orange);
    position: relative;
    background: #fffbf5;
}
.report-card.featured::after {
    content: "★ Most important";
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--brand-orange);
    color: #fff;
    font-size: .65rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

/* ── Pricing ── */
.pricing-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all .25s ease;
    background: #fff;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.pricing-card.featured {
    border: 2px solid var(--brand-green);
    transform: scale(1.02);
}
.pricing-card.featured:hover { transform: scale(1.02) translateY(-3px); }
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-green);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
}
.pricing-price { font-size: 2.5rem; font-weight: 800; }
.pricing-period { color: #6c757d; font-size: .9rem; }
.pricing-cta { width: 100%; padding: .75rem; border-radius: 10px; font-weight: 600; }
.price-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 2.5rem; }
.price-toggle label { cursor: pointer; font-weight: 500; color: #6c757d; margin: 0; user-select: none; }
.price-toggle label.active { color: #212529; }
.toggle-switch {
    width: 48px; height: 26px;
    background: #dee2e6;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.toggle-switch.active { background: var(--brand-green); }
.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-switch.active::after { transform: translateX(22px); }

/* ── FAQ ── */
.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color .2s;
    background: #fff;
}
.faq-item:hover { border-color: #ced4da; }
.faq-question {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-question i { transition: transform .2s; font-size: .9rem; color: #6c757d; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    padding: 0 1.25rem;
    color: #6c757d;
    line-height: 1.7;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.25rem 1.25rem;
}

/* ── CTA banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-orange));
    padding: 4rem 0;
    color: #fff;
    text-align: center;
}

/* ── Footer ── */
.landing-footer {
    background: var(--dark-bg);
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
}
.landing-footer a { color: #94a3b8; text-decoration: none; transition: color .15s; }
.landing-footer a:hover { color: #fff; }
.landing-footer h6 { color: #f1f5f9; font-weight: 600; margin-bottom: 1rem; }
.footer-brand { color: var(--brand-green); font-weight: 700; font-size: 1.1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .5rem; }

/* ── Built-for strip ── */
.built-for-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    font-size: .85rem;
    color: #94a3b8;
}
.built-for-strip span { white-space: nowrap; }

/* ── Trust line ── */
.trust-line { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: .85rem; color: #94a3b8; margin-bottom: .75rem; }

/* ── Back to top ── */
.back-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    cursor: pointer;
    font-size: .85rem;
    background: none;
    border: none;
}
.back-top:hover { color: #fff; }

/* ── Language toggle ── */
.lang-btn-group { display: flex; gap: 4px; }
.lang-btn {
    padding: 4px 10px;
    font-size: .8rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #dee2e6;
    background: transparent;
    color: #6c757d;
    transition: all .15s;
}
.lang-btn.active { background: #212529; color: #fff; border-color: #212529; }

/* ── Hidden content ── */
.lang-content-ar { display: none; }
[lang="ar"] .lang-content-en { display: none; }
[lang="ar"] .lang-content-ar { display: inline; }
.lang-content-ar-block { display: none; }
[lang="ar"] .lang-content-en-block { display: none; }
[lang="ar"] .lang-content-ar-block { display: block; }

/* ── Responsive ── */

/* Reduce g-5 gap when columns stack */
@media (max-width: 991.98px) {
    .row.g-5 { --bs-gutter-y: 1.5rem; }
}

/* Tablet (768–991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-3px); }
    .pricing-price { font-size: 1.8rem; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile (≤767px) */
@media (max-width: 767.98px) {
    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-circle { opacity: .015; transform: scale(.4); animation: none; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.5rem; }
    .section-padding { padding: 3rem 0; }
    .section-subtitle { margin-bottom: 1.5rem; }
    .pricing-card { padding: 1.25rem; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-3px); }
    .pricing-price { font-size: 2rem; }
    .ba-card { padding: 1.25rem; }
    .ba-list { line-height: 1.6; }
    .report-card { padding: 1rem; }
    .report-card p { font-size: .8rem; }
    .report-card.featured::after { font-size: .55rem; right: auto; left: 12px; }
    .pillar-card { padding: 1.25rem; }
    #how-it-works .text-center.p-4 { padding: 1.25rem !important; }
    .cta-banner { padding: 2.5rem 0; }
    .cta-banner .btn-lg { font-size: .9rem; padding-left: 1.25rem; padding-right: 1.25rem; white-space: normal; }
    .landing-footer .row { --bs-gutter-y: 1rem; }
}

/* Landscape phones (576–767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero h1 { font-size: 2rem; }
}

/* Small phones (≤575px) */
@media (max-width: 575.98px) {
    .hero h1 { font-size: 1.75rem; }
    .trust-line, .built-for-strip { font-size: .75rem; }
    .cta-banner p { font-size: .95rem; }
}

/* ── RTL overrides ── */
[lang="ar"] .report-card.featured::after { right: auto; left: 12px; }
[lang="ar"] .toggle-switch::after { left: auto; right: 2px; }
[lang="ar"] .toggle-switch.active::after { transform: translateX(-22px); }
