/* ================================================================
   Wevelink — Landing Page
   ================================================================ */

/* --- Variables ------------------------------------------------- */
:root {
    /* Text — light on dark */
    --ink:          #EFEFEF;
    --ink-mid:      rgba(239,239,239,0.58);
    --ink-muted:    rgba(239,239,239,0.32);

    /* Brand greens */
    --green:        #2ECC71;
    --green-dark:   #27AE60;
    --green-deep:   #071A0E;
    --green-mid:    #0F2E18;
    --green-pale:   rgba(46,204,113,0.09);

    /* Dark backgrounds */
    --bg:           #0D0D0D;   /* page base */
    --surface:      #161616;   /* card surface */
    --surface-2:    #1E1E1E;   /* hover / deeper card */
    --section-alt:  #121212;   /* alternating section bg */

    --white:        #FFFFFF;
    --off-white:    #F8FFF9;   /* kept for store-btn etc */
    --border:       rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.05);

    --font-en:   'Inter', sans-serif;
    --font-ar:   'Tajawal', sans-serif;

    --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out:  cubic-bezier(0, 0, 0.2, 1);
    --spring:    cubic-bezier(0.34, 1.56, 0.64, 1);

    --r-sm:  10px;
    --r-md:  18px;
    --r-lg:  28px;
    --r-xl:  40px;
}

/* --- Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-en);
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: none; }

/* --- Language -------------------------------------------------- */
[data-lang="ar"] {
    font-family: var(--font-ar);
    direction: rtl;
}
[data-lang="en"] .lang-ar { display: none !important; }
[data-lang="ar"] .lang-en { display: none !important; }

/* Arabic font-size bumps for readability */
[data-lang="ar"] .hero-title    { font-size: clamp(1.35rem, 2.2vw, 2.2rem); line-height: 1.2; }
[data-lang="ar"] .section-title { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }

/* --- Custom Cursor -------------------------------------------- */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.12s var(--ease), width 0.25s var(--spring), height 0.25s var(--spring), opacity 0.2s;
    mix-blend-mode: exclusion;
    will-change: transform;
}
.cursor.grow {
    width: 44px;
    height: 44px;
    opacity: 0.6;
}
@media (hover: none) { .cursor { display: none; } }

/* --- Utility --------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================================================
   PRELOADER — Signal Lock
   ================================================================ */

/* SVG ring circumference: 2π × 60 ≈ 376.99 */
:root { --pre-circ: 376.99; }

#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #050D08;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
                transform 0.7s cubic-bezier(0.4,0,0.2,1),
                visibility 0.7s;
}
#preloader.pre-done {
    opacity: 0;
    transform: scale(1.06);
    visibility: hidden;
    pointer-events: none;
}

/* ── Ambient glow blobs ──────────────────────────────────────── */
.pre-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}
.pre-glow-a {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(46,204,113,0.13), transparent 65%);
    top: -160px; right: -120px;
    animation: preGlowDrift 9s ease-in-out infinite;
}
.pre-glow-b {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(46,204,113,0.07), transparent 65%);
    bottom: -80px; left: -80px;
    animation: preGlowDrift 11s ease-in-out infinite reverse 1.5s;
}
@keyframes preGlowDrift {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(30px,-20px) scale(1.06); }
    66%      { transform: translate(-15px,25px) scale(0.96); }
}

/* ── Grain overlay ───────────────────────────────────────────── */
#preloader::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    animation: grainShift 8s steps(10) infinite;
}

/* ── Center content ──────────────────────────────────────────── */
.pre-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    z-index: 1;
}

/* ── SVG ring wrapper ────────────────────────────────────────── */
.pre-ring-wrap {
    position: relative;
    width: 140px; height: 140px;
    display: flex; align-items: center; justify-content: center;
}
.pre-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg); /* start drawing from top */
    overflow: visible;
}

/* Track ring — faint guide circle */
.pre-track-ring {
    stroke: rgba(46,204,113,0.1);
    stroke-width: 1.5;
    fill: none;
}

/* Animated fill ring — draws clockwise */
.pre-fill-ring {
    stroke: var(--green);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: var(--pre-circ);
    stroke-dashoffset: var(--pre-circ);
    filter: drop-shadow(0 0 6px rgba(46,204,113,0.7));
    animation: preRingDraw 1.2s 0.15s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes preRingDraw {
    to { stroke-dashoffset: 0; }
}

/* Pulse ring — expands and fades after fill completes */
.pre-pulse-ring {
    stroke: rgba(46,204,113,0.35);
    stroke-width: 1;
    fill: none;
    opacity: 0;
    animation: preRingPulse 0.7s 1.3s ease-out forwards;
}
@keyframes preRingPulse {
    0%   { opacity: 0.5; r: 60px; stroke-width: 1.5; }
    100% { opacity: 0;   r: 80px; stroke-width: 0; }
}

/* ── W mark ──────────────────────────────────────────────────── */
.pre-mark {
    width: 56px; height: 56px;
    background: linear-gradient(145deg, var(--green) 0%, #27AE60 100%);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08) inset,
        0 8px 32px rgba(46,204,113,0.3),
        0 0 60px rgba(46,204,113,0.15);
    z-index: 1;
    opacity: 0;
    animation: preMarkIn 0.5s 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.pre-mark span {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-en);
    line-height: 1;
    letter-spacing: -0.03em;
}
@keyframes preMarkIn {
    from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── Brand text ──────────────────────────────────────────────── */
.pre-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: preFadeUp 0.65s 0.9s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
.pre-brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: var(--font-en);
}
.pre-brand-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ── Progress bar ────────────────────────────────────────────── */
.pre-bar {
    width: 180px;
    height: 1.5px;
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: preFadeIn 0.4s 1.0s forwards;
}
.pre-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, transparent, var(--green), #6ee5a0, var(--green));
    background-size: 200% 100%;
    border-radius: 2px;
    animation:
        preBarGrow 1.4s 1.1s cubic-bezier(0.4,0,0.2,1) forwards,
        preBarShimmer 1.2s 1.1s linear infinite;
}
@keyframes preBarGrow    { to { width: 100%; } }
@keyframes preBarShimmer { to { background-position: -200% 0; } }

/* ── Shared keyframes ────────────────────────────────────────── */
@keyframes preFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes preFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes grainShift {
    0%,100% { transform: translate(0,0); }
    10%      { transform: translate(-2%,-3%); }
    20%      { transform: translate(3%,1%); }
    30%      { transform: translate(-1%,4%); }
    40%      { transform: translate(2%,-2%); }
    50%      { transform: translate(-3%,2%); }
    60%      { transform: translate(1%,-1%); }
    70%      { transform: translate(-2%,3%); }
    80%      { transform: translate(3%,-2%); }
    90%      { transform: translate(-1%,1%); }
}

/* ── Light mode ──────────────────────────────────────────────── */
[data-theme="light"] #preloader {
    background: #F2FAF5;
}
[data-theme="light"] .pre-glow-a {
    background: radial-gradient(circle, rgba(39,174,96,0.18), transparent 65%);
}
[data-theme="light"] .pre-glow-b {
    background: radial-gradient(circle, rgba(39,174,96,0.1), transparent 65%);
}
[data-theme="light"] #preloader::before { opacity: 0.015; }
[data-theme="light"] .pre-track-ring   { stroke: rgba(39,174,96,0.14); }
[data-theme="light"] .pre-fill-ring    { stroke: #27AE60; filter: drop-shadow(0 0 6px rgba(39,174,96,0.5)); }
[data-theme="light"] .pre-pulse-ring   { stroke: rgba(39,174,96,0.4); }
[data-theme="light"] .pre-mark         { background: linear-gradient(145deg, #27AE60, #1E8449); box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset, 0 8px 32px rgba(39,174,96,0.25), 0 0 60px rgba(39,174,96,0.1); }
[data-theme="light"] .pre-brand-name   { color: #0F1A12; }
[data-theme="light"] .pre-brand-tag    { color: rgba(15,26,18,0.35); }
[data-theme="light"] .pre-bar          { background: rgba(0,0,0,0.07); }
[data-theme="light"] .pre-bar-fill     { background: linear-gradient(90deg, transparent, #27AE60, #6ee5a0, #27AE60); background-size: 200% 100%; }

/* ================================================================
   NAVBAR — floating rounded bar (Moyasar-inspired)
   ================================================================ */
.navbar {
    position: fixed;
    top: 16px;
    inset-inline-start: 0;
    inset-inline-end: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transition: top 0.3s var(--ease);
}
.nav-pill {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(7, 26, 14, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 16px;
    padding: 10px 10px 10px 20px;
    transition: all 0.35s var(--ease);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 0.5px rgba(46,204,113,0.08) inset;
    max-width: 1140px;
    width: calc(100% - 48px);
}
[data-lang="ar"] .nav-pill { padding: 10px 20px 10px 10px; }
.navbar.light .nav-pill {
    background: rgba(15, 15, 15, 0.9);
    border-color: rgba(255,255,255,0.1);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--white);
    white-space: nowrap;
}
.nav-logo-mark {
    width: 28px; height: 28px;
    background: var(--green);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 900; color: var(--white);
    font-family: var(--font-en);
    flex-shrink: 0;
}
.nav-divider {
    width: 1px; height: 20px;
    background: rgba(255,255,255,0.12);
    margin: 0 6px;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 2px;
    flex: 1;
}
.nav-links a {
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}
.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
}
.lang-toggle:hover {
    color: var(--white);
    border-color: var(--green);
    background: rgba(46,204,113,0.1);
}
.theme-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.theme-toggle:hover {
    color: var(--white);
    border-color: var(--green);
    background: rgba(46,204,113,0.1);
}
.nav-btn {
    background: var(--green);
    color: var(--white);
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 0.84rem;
    font-weight: 700;
    border: none;
    font-family: inherit;
    transition: all 0.2s var(--ease);
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.nav-btn:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46,204,113,0.3);
}
.nav-btn-store {
    background: transparent;
    color: var(--green);
    border: 1px solid rgba(46,204,113,0.4);
    box-shadow: none;
}
.nav-btn-store:hover {
    background: rgba(46,204,113,0.08);
    border-color: var(--green);
    color: var(--green);
    box-shadow: none;
    transform: translateY(-1px);
}
[data-theme="light"] .nav-btn-store {
    color: var(--green-dark);
    border-color: rgba(39,174,96,0.35);
}
[data-theme="light"] .nav-btn-store:hover {
    background: rgba(39,174,96,0.07);
    border-color: var(--green-dark);
    color: var(--green-dark);
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-divider { display: none; }
}
@media (max-width: 480px) {
    .nav-pill { padding: 8px 8px 8px 14px; width: calc(100% - 32px); gap: 6px; }
    [data-lang="ar"] .nav-pill { padding: 8px 14px 8px 8px; }
    /* Shrink toggles on small phones */
    .lang-toggle, .theme-toggle { padding: 6px 9px; font-size: 0.76rem; }
    .nav-btn { padding: 7px 13px; font-size: 0.78rem; }
    /* Hide all nav-btn icons except store (store shows icon, hides text) */
    .nav-btn svg { display: none; }
    .nav-btn-store svg { display: block; }
    .nav-btn-store .lang-en,
    .nav-btn-store .lang-ar { display: none !important; }
    .nav-btn-store { padding: 7px 10px; }
}
@media (max-width: 375px) {
    .nav-pill { width: calc(100% - 24px); }
    /* Theme toggle text: show icon only */
    .theme-toggle { padding: 6px 8px; font-size: 0; width: 30px; justify-content: center; }
    .theme-toggle::before { content: '☀'; font-size: 0.8rem; }
    [data-theme="light"] .theme-toggle::before { content: '🌙'; }
    /* Hide store btn entirely on very small phones — keep only Get App CTA */
    .nav-btn-store { display: none; }
}

/* ================================================================
   HERO — Signal Command
   ================================================================ */

/* ── Section base ────────────────────────────────────────────── */
.hero {
    min-height: 100svh;
    background: #071A0E;
    background-image:
        radial-gradient(ellipse 110% 70% at 50% 32%, rgba(46,204,113,0.08) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 18% 78%, rgba(46,204,113,0.04) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* Bottom vignette — keeps text readable over canvas */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 46%;
    background: linear-gradient(to top, rgba(7,26,14,0.94), transparent);
    z-index: 1;
    pointer-events: none;
}

/* ── Canvas ──────────────────────────────────────────────────── */
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Grain ───────────────────────────────────────────────────── */
.hero-grain {
    position: absolute;
    inset: -50%;
    width: 200%; height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
    animation: grainShift 8s steps(10) infinite;
}

/* ── Center content wrapper ──────────────────────────────────── */
.hero-wrap {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(88px, 12vh, 130px) clamp(20px, 5vw, 80px) 44px;
}

/* ── Badge ───────────────────────────────────────────────────── */
.h-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(46,204,113,0.08);
    border: 1px solid rgba(46,204,113,0.2);
    border-radius: 999px;
    padding: 5px 16px 5px 9px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    margin-bottom: 40px;
    opacity: 0;
    animation: hRise 0.7s 0.05s ease-out forwards;
}
.h-badge-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: hPulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes hPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.3; transform: scale(0.6); }
}

/* ── Headline ────────────────────────────────────────────────── */
.h-title {
    font-family: 'Inter', 'Tajawal', sans-serif;
    font-size: clamp(2.6rem, 6.5vw, 7rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.h-title .lang-en,
.h-title .lang-ar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
[data-lang="ar"] .h-title { letter-spacing: -0.02em; line-height: 1.0; }
[data-lang="ar"] .h-tl { padding-bottom: 0.30em; }
.h-tl {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}
.h-tw {
    display: inline-block;
    color: #FFFFFF;
    opacity: 0;
    transform: translateY(70px);
    filter: blur(14px);
    animation: hWordIn 0.8s ease-out forwards;
}
.h-tl-1 .h-tw:nth-child(1) { animation-delay: 0.2s; }
.h-tl-1 .h-tw:nth-child(2) { animation-delay: 0.35s; }
.h-tl-2 .h-tw:nth-child(1) { animation-delay: 0.5s; }
.h-tl-2 .h-tw:nth-child(2) { animation-delay: 0.65s; }
.h-tw-muted { color: rgba(255,255,255,0.28) !important; }
.h-tw-green { color: var(--green) !important; text-shadow: 0 0 80px rgba(46,204,113,0.45); }
.h-dot      { color: var(--green); }
@keyframes hWordIn {
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Sub ─────────────────────────────────────────────────────── */
.h-sub {
    font-size: clamp(0.92rem, 2vw, 1.08rem);
    line-height: 1.8;
    color: rgba(255,255,255,0.38);
    max-width: 540px;
    margin-bottom: 44px;
    opacity: 0;
    animation: hRise 0.9s 0.82s ease-out forwards;
}

/* ── Actions ─────────────────────────────────────────────────── */
.h-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    opacity: 0;
    animation: hRise 0.9s 0.98s ease-out forwards;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: var(--white);
    color: #0D0D0D;
    border-radius: var(--r-md);
    padding: 13px 22px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    flex-shrink: 0;
    white-space: nowrap;
}
.store-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.store-btn svg { flex-shrink: 0; }
.store-btn-info { display: flex; flex-direction: column; gap: 1px; }
.store-btn-info small {
    font-size: 0.62rem;
    font-weight: 400;
    color: rgba(0,0,0,0.38);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.store-btn-info strong { font-size: 0.9rem; line-height: 1.2; }
.h-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.6);
    border-radius: var(--r-md);
    padding: 13px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
}
.h-ghost-btn:hover { border-color: var(--green); color: var(--green); background: rgba(46,204,113,0.05); }

/* ── Stats row ───────────────────────────────────────────────── */
.h-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: hRise 0.9s 1.14s ease-out forwards;
}
.h-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 clamp(14px, 2.5vw, 28px);
}
.h-stat-icon { font-size: 1.1rem; }
.h-stat-num {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}
.h-stat-lbl {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.38);
    letter-spacing: 0.03em;
}
.h-stat-sep {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* ── Floating eSIM card ──────────────────────────────────────── */
.h-esim-card {
    position: absolute;
    inset-inline-end: clamp(24px, 7vw, 80px);
    top: 50%;
    transform: translateY(-50%) rotate(3deg);
    width: 215px;
    background: rgba(8,20,12,0.78);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(46,204,113,0.22);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.5),
        0 32px 72px rgba(0,0,0,0.55),
        0 0 50px rgba(46,204,113,0.08),
        inset 0 1px 0 rgba(255,255,255,0.07);
    z-index: 3;
    opacity: 0;
    animation: hCardIn 1s 1.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.hec-shine {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(140deg, rgba(255,255,255,0.06) 0%, transparent 55%);
    pointer-events: none;
}
.hec-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}
.hec-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green);
    animation: hPulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
.hec-tag {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--green);
    text-transform: uppercase;
    flex: 1;
}
.hec-sig { font-size: 0.68rem; color: var(--green); opacity: 0.7; letter-spacing: -2px; }
.hec-dest {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.hec-flag { font-size: 1.9rem; line-height: 1; flex-shrink: 0; }
.hec-name { font-size: 1rem; font-weight: 800; color: var(--white); line-height: 1.2; }
.hec-plan { font-size: 0.68rem; color: rgba(239,239,239,0.45); margin-top: 2px; }
.hec-bar { display: flex; flex-direction: column; gap: 5px; }
.hec-bar-track {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.hec-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), #6ee5a0);
    border-radius: 2px;
    transition: width 0.6s ease;
}
.hec-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: rgba(239,239,239,0.3);
}
@keyframes hCardIn {
    from { opacity: 0; transform: translateY(calc(-50% + 24px)) rotate(3deg); }
    to   { opacity: 1; transform: translateY(-50%) rotate(3deg); }
}

/* hv-fc-* aliases for card cycling JS */
.hv-fc-body  { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hv-fc-flag  { font-size: 1.9rem; line-height: 1; flex-shrink: 0; }
.hv-fc-name  { font-size: 1rem; font-weight: 800; color: var(--white); line-height: 1.2; }
.hv-fc-plan  { font-size: 0.68rem; color: rgba(239,239,239,0.45); margin-top: 2px; }
.hv-fc-bar-wrap  { display: flex; flex-direction: column; gap: 5px; }
.hv-fc-bar-fill  { height: 100%; background: linear-gradient(90deg, var(--green), #6ee5a0); border-radius: 2px; transition: width 0.6s ease; }
.hv-fc-bar-labels { display: flex; justify-content: space-between; font-size: 0.62rem; color: rgba(239,239,239,0.3); }

/* ── Proof bar ───────────────────────────────────────────────── */
.hero-proof {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 24px;
    flex-wrap: wrap;
    opacity: 0;
    animation: hRise 0.8s 1.3s ease-out forwards;
}
.proof-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(239,239,239,0.45);
    white-space: nowrap;
}
.proof-item svg { color: #F5C518; flex-shrink: 0; }
.proof-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

@keyframes hRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Light mode ──────────────────────────────────────────────── */
[data-theme="light"] .hero {
    background: #f2fbf5;
    background-image:
        radial-gradient(ellipse 110% 70% at 50% 32%, rgba(46,204,113,0.14) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 18% 78%, rgba(46,204,113,0.06) 0%, transparent 60%);
}
[data-theme="light"] .hero::before { background: linear-gradient(to top, rgba(242,251,245,0.96), transparent); }
[data-theme="light"] .h-badge { background: rgba(46,204,113,0.1); border-color: rgba(46,204,113,0.25); color: rgba(15,26,18,0.55); }
[data-theme="light"] .h-tw          { color: #0F1A12; }
[data-theme="light"] .h-tw-muted    { color: rgba(15,26,18,0.28) !important; }
[data-theme="light"] .h-sub         { color: rgba(15,26,18,0.48); }
[data-theme="light"] .h-stat-num    { color: #0F1A12; }
[data-theme="light"] .h-stat-lbl    { color: rgba(15,26,18,0.42); }
[data-theme="light"] .h-stat-sep    { background: rgba(15,26,18,0.1); }
[data-theme="light"] .store-btn     { background: #0F1A12; color: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.12); }
[data-theme="light"] .store-btn-info small { color: rgba(255,255,255,0.48); }
[data-theme="light"] .h-ghost-btn   { border-color: rgba(15,26,18,0.15); color: rgba(15,26,18,0.6); background: rgba(15,26,18,0.02); }
[data-theme="light"] .h-ghost-btn:hover { border-color: var(--green-dark); color: var(--green-dark); }
[data-theme="light"] .h-esim-card   { background: rgba(255,255,255,0.88); border-color: rgba(46,204,113,0.28); box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 32px 72px rgba(0,0,0,0.1); }
[data-theme="light"] .hec-name      { color: #0F1A12; }
[data-theme="light"] .hec-plan      { color: rgba(15,26,18,0.5); }
[data-theme="light"] .hec-bar-track { background: rgba(0,0,0,0.07); }
[data-theme="light"] .hec-bar-labels { color: rgba(15,26,18,0.35); }
[data-theme="light"] .hec-shine     { background: linear-gradient(140deg, rgba(255,255,255,0.9) 0%, transparent 55%); }
[data-theme="light"] .proof-item    { color: rgba(15,26,18,0.48); }
[data-theme="light"] .proof-sep     { background: rgba(15,26,18,0.1); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .h-esim-card { inset-inline-end: 20px; width: 198px; }
}
@media (max-width: 860px) {
    .h-esim-card { display: none; }
    .h-title { font-size: clamp(2.4rem, 9vw, 4.5rem); }
    /* Tighten hero element spacing */
    .h-badge { margin-bottom: 28px; }
    .h-title { margin-bottom: 24px; }
    .h-sub { margin-bottom: 32px; }
    .h-actions { margin-bottom: 36px; }
}
@media (max-width: 640px) {
    /* Hide radar canvas on phones — too noisy at small sizes */
    .hero-canvas { display: none; }
    /* Reduce hero top padding so content fits on phone screens */
    .hero-wrap { padding: clamp(72px, 11vh, 100px) 20px 36px; }
    .h-title { font-size: clamp(2.2rem, 10vw, 3.5rem); line-height: 1.0; }
    .h-badge { margin-bottom: 20px; font-size: 0.68rem; }
    .h-title { margin-bottom: 20px; }
    .h-sub { margin-bottom: 28px; font-size: 0.92rem; line-height: 1.65; }
    /* Actions: side-by-side store buttons, ghost btn below */
    .h-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
    .store-btn { padding: 10px 14px; font-size: 0.82rem; gap: 8px; flex: 1; min-width: 130px; max-width: 170px; }
    .store-btn-info strong { font-size: 0.82rem; }
    .h-ghost-btn { padding: 10px 16px; font-size: 0.82rem; width: 100%; justify-content: center; }
    /* Stats: tighter row */
    .h-stats { gap: 0; }
    .h-stat { padding: 0 10px; gap: 6px; }
    .h-stat-num { font-size: 1rem; }
    .h-stat-lbl { font-size: 0.65rem; }
}
@media (max-width: 440px) {
    .hero-wrap { padding: clamp(60px, 10vh, 80px) 16px 28px; }
    .h-title { font-size: clamp(1.9rem, 11vw, 2.6rem); letter-spacing: -0.03em; }
    .h-badge { margin-bottom: 16px; }
    .h-title { margin-bottom: 16px; }
    .h-sub { margin-bottom: 20px; max-width: 100%; }
    .h-actions { margin-bottom: 20px; }
    /* Stats wrap to 2×2 */
    .h-stats { flex-wrap: wrap; row-gap: 6px; column-gap: 0; }
    .h-stat-sep { display: none; }
    .h-stat { padding: 4px 10px; width: 50%; justify-content: center; }
    /* Store buttons: stack cleanly */
    .store-btn { max-width: none; flex: 1 1 calc(50% - 4px); }
    .h-ghost-btn { width: 100%; justify-content: center; }
    .hero-proof { gap: 8px; padding: 10px 16px; }
    .proof-item { font-size: 0.75rem; }
    .proof-sep { display: none; }
}

/* ================================================================
   COUNTRIES TICKER
   ================================================================ */
.ticker {
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(46,204,113,0.12);
    overflow: hidden;
    padding: 14px 0;
    /* Must be LTR so the overflow container anchors from the left edge.
       In RTL the overflow window starts from the right end of the track,
       causing the loop to start mid-track and appear to vanish/respawn. */
    direction: ltr;
}
.ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: tickerScroll 30s linear infinite;
    /* Force LTR so duplicated items sit correctly for seamless loop in both EN and AR */
    direction: ltr;
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    border-inline-end: 1px solid rgba(255,255,255,0.08);
}
.ticker-item:last-child { border-inline-end: none; }
.ticker-item span:first-child { font-size: 1.1rem; }

[data-theme="light"] .ticker {
    background: rgba(46,204,113,0.05);
    border-top: 1px solid rgba(46,204,113,0.25);
}
[data-theme="light"] .ticker-item {
    color: rgba(7,26,14,0.55);
    border-inline-end-color: rgba(46,204,113,0.18);
}

/* ================================================================
   FEATURES — Moyasar 3-col grid
   ================================================================ */
.features {
    padding: 120px 0;
    background: var(--bg);
}
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    display: block;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.section-sub {
    font-size: clamp(0.88rem, 2vw, 1rem);
    line-height: 1.75;
    color: var(--ink-muted);
    max-width: 500px;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }

/* Moyasar-style feature grid: shared border lines between cards */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.feat-card {
    padding: 44px 40px;
    border-inline-end: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s var(--ease);
    position: relative;
}
.feat-card:hover { background: rgba(46,204,113,0.04); }
/* Last card in each row — no inline-end border (works in both LTR & RTL) */
.feat-card:nth-child(3n) { border-inline-end: none; }
/* Last row cards — no bottom border */
.feat-card:nth-child(n+4) { border-bottom: none; }

.feat-icon {
    width: 48px; height: 48px;
    background: rgba(46,204,113,0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--green);
    margin-bottom: 24px;
}
.feat-icon svg { width: 22px; height: 22px; }
.feat-icon-emoji { font-size: 1.5rem; line-height: 1; }
.feat-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--ink);
}
.feat-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--ink-muted);
}

/* ================================================================
   HOW IT WORKS — Moyasar sticky-scroll layout
   ================================================================ */
.how {
    padding: 120px 0;
    background: #080808;
    position: relative;
}
.how::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(46,204,113,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,204,113,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
}
.how .section-eyebrow { color: var(--green); }
.how .section-title { color: var(--white); }
.how .section-sub { color: rgba(255,255,255,0.45); max-width: 380px; }

/* Two-column: sticky left, scrollable right */
.how-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}
.how-left {
    position: sticky;
    top: 100px;
}
.how-left .section-head { margin-bottom: 40px; }

/* Step nav buttons */
.how-nav { display: flex; flex-direction: column; }
.how-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-left: none; border-right: none; border-top: none;
    background: none;
    font-family: inherit;
    text-align: start;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: color 0.25s var(--ease);
    width: 100%;
}
[data-lang="ar"] .how-nav-item { text-align: end; }
.how-nav-item:last-child { border-bottom: none; }
.how-nav-item.active { color: var(--green); }
.how-nav-item:hover { color: rgba(255,255,255,0.7); }
.how-nav-item.active:hover { color: var(--green); }
.how-nav-num {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-en);
    letter-spacing: 0.08em;
    min-width: 24px;
    flex-shrink: 0;
}
.how-nav-label { font-size: 0.92rem; font-weight: 600; line-height: 1.3; }

/* Right scrollable panels */
.how-right { display: flex; flex-direction: column; }
.how-panel {
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.how-panel:last-child { border-bottom: none; }
.how-panel-num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    font-family: var(--font-en);
    margin-bottom: 20px;
}
.how-panel h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.how-panel p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.45);
    max-width: 460px;
}
.how-panel-icon {
    width: 56px; height: 56px;
    background: rgba(46,204,113,0.12);
    border: 1px solid rgba(46,204,113,0.2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--green);
    margin-bottom: 28px;
}
.how-panel-icon svg { width: 26px; height: 26px; }

/* ================================================================
   TESTIMONIALS — scrolling marquee (restored)
   ================================================================ */

/* ── Signal section wrapper ── */
.signal-section {
    padding: 100px 0 0;
    background: var(--section-alt);
    overflow: hidden;
}
.signal-section .section-head { text-align: center; }
.signal-section .section-sub  { margin: 0 auto; max-width: 560px; }

/* ── Stat grid ── */
.sig-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 60px;
}
.sig-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 32px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
                box-shadow 0.3s var(--ease);
}
.sig-card:hover {
    border-color: rgba(46,204,113,0.28);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* ── Glyph area ── */
.sig-card-glyph {
    height: 44px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* ── Big number ── */
.sig-card-num {
    font-size: clamp(2.6rem, 3.5vw, 3.6rem);
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    font-family: var(--font-en); /* always latin numerals */
    letter-spacing: -0.03em;
}

/* ── Label & sub ── */
.sig-card-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.01em;
    margin-top: 4px;
}
.sig-card-sub {
    font-size: 0.76rem;
    color: var(--ink-muted);
    line-height: 1.55;
}

/* ── Animated bottom accent bar ── */
.sig-card-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s var(--ease-out) 0.4s;
}
[data-lang="ar"] .sig-card-bar {
    transform-origin: right;
    background: linear-gradient(270deg, var(--green), transparent);
}
.sig-card.in .sig-card-bar { transform: scaleX(1); }

/* ── Orbit (card 1: globe) ── */
.sig-orbit {
    position: relative;
    width: 40px; height: 40px;
}
.sig-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(46,204,113,0.28);
}
.sig-orbit-ring-1 { animation: sigOrbit 5s linear infinite; }
.sig-orbit-ring-2 {
    animation: sigOrbit 9s linear infinite reverse;
    inset: 20%;
}
.sig-orbit-dot {
    position: absolute;
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    top: -3px; left: calc(50% - 3px);
    box-shadow: 0 0 7px var(--green);
    animation: sigOrbit 5s linear infinite;
    transform-origin: 3px calc(20px + 3px);
}
@keyframes sigOrbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Signal bars (card 2: activation) ── */
.sig-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 36px;
}
.sig-bar {
    width: 7px;
    border-radius: 3px 3px 0 0;
    background: rgba(46,204,113,0.22);
    animation: sigBarPulse 1.6s ease-in-out infinite;
}
.sig-bar-1 { height: 30%; animation-delay: 0s;    }
.sig-bar-2 { height: 55%; animation-delay: 0.22s; }
.sig-bar-3 { height: 78%; animation-delay: 0.44s; }
.sig-bar-4 { height: 100%; animation-delay: 0.66s; }
@keyframes sigBarPulse {
    0%, 100% { background: rgba(46,204,113,0.22); }
    50%       { background: var(--green); box-shadow: 0 0 8px rgba(46,204,113,0.5); }
}

/* ── Pulse rings (card 3: travelers) ── */
.sig-pulse-wrap {
    position: relative;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
}
.sig-pulse-core {
    width: 10px; height: 10px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    position: relative; z-index: 2;
}
.sig-pulse-ring-a,
.sig-pulse-ring-b {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(46,204,113,0.6);
    animation: sigPulseRing 2.2s ease-out infinite;
}
.sig-pulse-ring-a { width: 22px; height: 22px; animation-delay: 0s;    }
.sig-pulse-ring-b { width: 38px; height: 38px; animation-delay: 0.8s;  }
@keyframes sigPulseRing {
    0%   { opacity: 0.8; transform: scale(0.5); }
    100% { opacity: 0;   transform: scale(1);   }
}

/* ── Price split (card 4: cheaper) ── */
.sig-split {
    display: flex;
    gap: 8px;
    align-items: stretch;
    height: 40px;
}
.sig-split-old,
.sig-split-new {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 7px;
    padding: 0 10px;
}
.sig-split-old {
    background: rgba(255,255,255,0.05);
    flex: 2;
}
.sig-split-new {
    background: rgba(46,204,113,0.14);
    border: 1px solid rgba(46,204,113,0.28);
    flex: 1;
}
.sig-split-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.sig-split-new .sig-split-label { color: var(--green); }
.sig-split-price {
    font-size: 0.92rem;
    font-weight: 800;
    font-family: var(--font-en);
    color: var(--ink-mid);
    line-height: 1.2;
}
.sig-split-new .sig-split-price { color: var(--green); }

/* ── Journey strip ── */
.sig-journey {
    margin-top: 80px;
    padding: 70px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}
.sig-journey-connector {
    position: absolute;
    top: 50%; left: 60px; right: 60px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}
.sig-journey-svg {
    width: 100%; height: 2px;
    overflow: visible;
}
.sig-journey-line {
    stroke: var(--green);
    stroke-width: 1.5;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    opacity: 0.25;
    transition: stroke-dashoffset 1.4s var(--ease-out);
}
.sig-journey.in .sig-journey-line { stroke-dashoffset: 0; }

.sig-moments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}
.sig-moment {
    text-align: center;
    padding: 28px 24px;
}
.sig-moment-node {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid var(--green);
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}
.sig-moment-node-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}
.sig-moment-step {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--green);
    margin-bottom: 12px;
    font-family: var(--font-en);
    opacity: 0.65;
}
.sig-moment-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
    line-height: 1;
}
.sig-moment-title {
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.025em;
}
[data-lang="ar"] .sig-moment-title { font-family: var(--font-ar); }
.sig-moment-body {
    font-size: 0.875rem;
    line-height: 1.72;
    color: var(--ink-mid);
    max-width: 240px;
    margin: 0 auto;
}
[data-lang="ar"] .sig-moment-body { font-family: var(--font-ar); max-width: 260px; }

/* ── Flag ticker ── */
.sig-flags-outer {
    overflow: hidden;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    direction: ltr;
    position: relative;
}
.sig-flags-outer::before,
.sig-flags-outer::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.sig-flags-outer::before { left: 0; background: linear-gradient(90deg, var(--section-alt), transparent); }
.sig-flags-outer::after  { right: 0; background: linear-gradient(270deg, var(--section-alt), transparent); }
.sig-flags-track {
    display: flex;
    gap: 0;
    width: max-content;
    direction: ltr;
}
.sig-flag-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 26px;
    border-right: 1px solid var(--border);
    white-space: nowrap;
}
.sig-flag-emoji { font-size: 1.15rem; line-height: 1; }
.sig-flag-name {
    font-size: 0.78rem;
    color: var(--ink-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── Light mode ── */
[data-theme="light"] .signal-section  { background: #F3F9F5; }
[data-theme="light"] .sig-flags-outer::before { background: linear-gradient(90deg, #F3F9F5, transparent); }
[data-theme="light"] .sig-flags-outer::after  { background: linear-gradient(270deg, #F3F9F5, transparent); }
[data-theme="light"] .sig-journey     { background: #fff; }
[data-theme="light"] .sig-card        { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
[data-theme="light"] .sig-split-old   { background: rgba(0,0,0,0.04); }
[data-theme="light"] .sig-card:hover  { box-shadow: 0 16px 40px rgba(0,0,0,0.10); }

/* ================================================================
   FAQ — accordion (Moyasar style)
   ================================================================ */
.faq {
    padding: 100px 0;
    background: var(--bg);
}
.faq .section-head { text-align: center; }
.faq-list {
    max-width: 760px;
    margin: 56px auto 0;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: start;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1.4;
}
[data-lang="ar"] .faq-q { text-align: end; }
.faq-q:hover { color: var(--green); }
.faq-q-icon {
    width: 22px; height: 22px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease), border-color 0.2s, background 0.2s;
    color: var(--ink-muted);
    font-size: 1rem;
    font-style: normal;
    line-height: 1;
}
.faq-item.open .faq-q-icon {
    transform: rotate(45deg);
    border-color: var(--green);
    background: rgba(46,204,113,0.08);
    color: var(--green);
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
    padding-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ink-mid);
}

/* ================================================================
   DOWNLOAD CTA
   ================================================================ */
.cta-section {
    padding: 120px 0;
    background: var(--bg);
}
.cta-block {
    background: var(--green-mid);
    border-radius: var(--r-xl);
    overflow: hidden;
    position: relative;
    text-align: center;
}
/* Grain overlay */
.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}
/* Decorative orbs */
.cta-block::after {
    content: '';
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(46,204,113,0.12), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.cta-text-side {
    padding: 90px 56px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
}
.cta-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(46,204,113,0.7);
    display: block;
    margin-bottom: 16px;
}
.cta-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.cta-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    margin-bottom: 44px;
    max-width: 460px;
}
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: #080D08;
    padding: 72px 0 0;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.f-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 14px;
    font-family: var(--font-en);
}
.f-logo-mark {
    width: 30px; height: 30px;
    background: var(--green);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 900; color: var(--white);
    font-family: var(--font-en);
    flex-shrink: 0;
}
.footer-brand > p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.7;
    max-width: 260px;
    margin-bottom: 28px;
}
.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 18px;
}
.footer-col ul li + li { margin-top: 12px; }
.footer-col a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--green); }
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.footer-social a {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.35);
    transition: all 0.2s;
}
.footer-social a svg { width: 15px; height: 15px; }
.footer-social a:hover { border-color: var(--green); color: var(--green); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.2);
}
.footer-made { font-style: italic; }
.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-legal a {
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal a:hover { color: var(--green); }
.footer-legal-sep { color: rgba(255,255,255,0.15); }
[data-theme="light"] .footer-legal a { color: rgba(15,26,18,0.35); }
[data-theme="light"] .footer-legal a:hover { color: var(--green); }
[data-theme="light"] .footer-legal-sep { color: rgba(15,26,18,0.2); }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
    opacity: 1;
    transform: none;
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

@keyframes riseUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

/* ================================================================
   ABOUT
   ================================================================ */
.about {
    padding: 100px 0;
    background: var(--section-alt);
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
}
.about-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink-mid);
    margin-bottom: 16px;
}
.about-mission {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    border-inline-start: 3px solid var(--green);
    padding-inline-start: 16px;
    padding-block: 4px;
    margin-top: 24px;
    line-height: 1.6;
    background: rgba(46,204,113,0.05);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.astat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 28px 24px;
    text-align: center;
}
.astat-num {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: var(--ink);
    font-family: var(--font-en);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.astat-label {
    font-size: 0.8rem;
    color: var(--ink-muted);
    font-weight: 500;
}

/* ================================================================
   HOW IT WORKS — extra note
   ================================================================ */
.how-note {
    margin-top: 52px;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.04em;
}

/* ================================================================
   WHAT MAKES US DIFFERENT
   ================================================================ */
.diff {
    padding: 100px 0;
    background: var(--bg);
}
.diff .section-head.center { text-align: center; }
.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 60px;
}
.diff-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 28px 24px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.diff-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    border-color: rgba(46,204,113,0.22);
}
.diff-star {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1.2;
}
.diff-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.3;
}
.diff-desc {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--ink-muted);
}

/* ================================================================
   FUTURE SERVICES
   ================================================================ */
.future-sect {
    padding: 100px 0;
    background: var(--section-alt);
}
.future-sect .section-head.center { text-align: center; }
.future-sect .section-sub { text-align: center; max-width: 580px; margin: 16px auto 0; }
.future-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}
.future-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 32px 28px;
    position: relative;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.future-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    border-color: rgba(46,204,113,0.25);
}
.future-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1;
}
.future-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.3;
}
.future-desc {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--ink-muted);
    margin-bottom: 16px;
}
.future-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(46,204,113,0.15);
    color: var(--green);
}
.future-badge.coming {
    background: rgba(255,255,255,0.06);
    color: var(--ink-muted);
}

/* ================================================================
   TARGET AUDIENCE — animated card grid
   ================================================================ */
.audience-sect {
    padding: 100px 0;
    background: var(--bg);
    overflow: hidden;
}
.audience-sect .section-head.center { text-align: center; }
.aud-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 56px;
}
.aud-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
    cursor: default;
}
/* Hover gradient glow */
.aud-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46,204,113,0.08), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
.aud-card:hover::before { opacity: 1; }
.aud-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    border-color: rgba(46,204,113,0.28);
}
/* Corner accent */
.aud-card::after {
    content: '';
    position: absolute;
    top: 0; inset-inline-end: 0;
    width: 60px; height: 60px;
    background: radial-gradient(circle at top right, rgba(46,204,113,0.12), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s;
}
.aud-card:hover::after { opacity: 1; }

.aud-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s var(--spring);
}
.aud-card:hover .aud-icon { transform: scale(1.15) translateY(-2px); }
.aud-label {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 8px;
}
.aud-desc {
    font-size: 0.83rem;
    line-height: 1.65;
    color: var(--ink-muted);
}
/* Stagger directions for reveal */
.aud-card:nth-child(odd)  { --reveal-x: -20px; }
.aud-card:nth-child(even) { --reveal-x: 20px; }
.aud-card.reveal {
    opacity: 0;
    transform: translateY(28px) translateX(var(--reveal-x, 0));
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.aud-card.reveal.in {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ================================================================
   CTA TAGLINE
   ================================================================ */
.cta-tagline {
    margin-top: 32px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.04em;
}

/* RTL specifics */
[data-lang="ar"] .hero-title .line-2::after { right: unset; left: unset; }
[data-lang="ar"] .footer-brand > p { max-width: 280px; }
[data-lang="ar"] .how-panel p { max-width: none; }

/* ================================================================
   LIGHT MODE — full page theme
   ================================================================ */
[data-theme="light"] {
    --ink:          #0F1A12;
    --ink-mid:      rgba(15, 26, 18, 0.62);
    --ink-muted:    rgba(15, 26, 18, 0.38);
    --bg:           #FFFFFF;
    --surface:      #FFFFFF;
    --surface-2:    #F0F4F1;
    --section-alt:  #F4F8F5;
    --border:       rgba(0, 0, 0, 0.09);
    --border-light: rgba(0, 0, 0, 0.05);
}

/* Body */
[data-theme="light"] body { background: var(--bg); color: var(--ink); }

/* Cursor */
[data-theme="light"] .cursor {
    background: var(--green-dark);
    mix-blend-mode: normal;
}

/* Navbar pill */
[data-theme="light"] .nav-pill {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .navbar.light .nav-pill {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(0, 0, 0, 0.13);
}
[data-theme="light"] .nav-logo          { color: #0F1A12; }
[data-theme="light"] .nav-divider       { background: rgba(0, 0, 0, 0.1); }
[data-theme="light"] .nav-links a       { color: rgba(15, 26, 18, 0.6); }
[data-theme="light"] .nav-links a:hover { color: var(--green-dark); background: rgba(46, 204, 113, 0.08); }
[data-theme="light"] .lang-toggle       { border-color: rgba(0, 0, 0, 0.15); color: rgba(15, 26, 18, 0.65); }
[data-theme="light"] .lang-toggle:hover { color: var(--green-dark); border-color: var(--green-dark); background: rgba(46, 204, 113, 0.08); }
[data-theme="light"] .theme-toggle       { border-color: rgba(0, 0, 0, 0.15); color: rgba(15, 26, 18, 0.65); }
[data-theme="light"] .theme-toggle:hover { color: var(--green-dark); border-color: var(--green-dark); background: rgba(46, 204, 113, 0.08); }

/* Ticker is inside the hero (always dark green bg) — no light-mode override needed */

/* Features grid */
[data-theme="light"] .feat-card:hover    { background: rgba(46, 204, 113, 0.03); }

/* Diff items */
[data-theme="light"] .diff-item:hover    { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1); }

/* Future cards */
[data-theme="light"] .future-card:hover  { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1); }
[data-theme="light"] .future-badge.coming { background: rgba(0, 0, 0, 0.06); }

/* Testimonials */
[data-theme="light"] .testi-card         { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }

/* Audience cards */
[data-theme="light"] .aud-card:hover     { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12); }

/* About stats */
[data-theme="light"] .astat             { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }

/* Footer — full light treatment */
[data-theme="light"] .footer {
    background: #F4F8F5;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .footer-top        { border-bottom-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .f-logo            { color: #0F1A12; }
[data-theme="light"] .footer-brand > p  { color: rgba(15, 26, 18, 0.45); }
[data-theme="light"] .footer-col-title  { color: rgba(15, 26, 18, 0.32); }
[data-theme="light"] .footer-col a      { color: rgba(15, 26, 18, 0.55); }
[data-theme="light"] .footer-bottom     { color: rgba(15, 26, 18, 0.3); border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .footer-social a   { border-color: rgba(0, 0, 0, 0.1); color: rgba(15, 26, 18, 0.4); }

/* FAQ borders in light mode */
[data-theme="light"] .faq-item          { border-bottom-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .faq-item:first-child { border-top-color: rgba(0, 0, 0, 0.08); }

/* Testi track fade gradients in light mode */
[data-theme="light"] .testi-track-wrap::before {
    background: linear-gradient(90deg, var(--section-alt), transparent);
}
[data-theme="light"] .testi-track-wrap::after {
    background: linear-gradient(270deg, var(--section-alt), transparent);
}

/* ================================================================
   HOW SECTION — LIGHT MODE
   ================================================================ */
[data-theme="light"] .how {
    background: #F4F8F5;
}
[data-theme="light"] .how::before {
    background-image:
        linear-gradient(rgba(46,204,113,0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,204,113,0.09) 1px, transparent 1px);
}
[data-theme="light"] .how .section-title   { color: #0F1A12; }
[data-theme="light"] .how .section-sub     { color: rgba(15, 26, 18, 0.55); }
[data-theme="light"] .how-nav-item         { color: rgba(15, 26, 18, 0.45); border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .how-nav-item:hover   { color: rgba(15, 26, 18, 0.75); }
[data-theme="light"] .how-nav-item.active  { color: var(--green-dark); }
[data-theme="light"] .how-nav-num          { color: var(--green-dark); opacity: 0.7; }
[data-theme="light"] .how-panel            { border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .how-panel-num        { color: rgba(15, 26, 18, 0.25); }
[data-theme="light"] .how-panel h3         { color: #0F1A12; }
[data-theme="light"] .how-panel p          { color: rgba(15, 26, 18, 0.6); }
[data-theme="light"] .how-panel-icon       { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.2); }
[data-theme="light"] .how-panel-icon svg   { stroke: var(--green-dark); }
[data-theme="light"] .how-nav-item.active:hover { color: var(--green-dark); }
[data-theme="light"] .how-note             { color: rgba(15, 26, 18, 0.5); border-color: rgba(0,0,0,0.1); }

/* Light mode: step cards on mobile */
@media (max-width: 600px) {
    [data-theme="light"] .how-panel {
        background: rgba(46,204,113,0.03);
        border-color: rgba(46,204,113,0.15);
        border-inline-start-color: var(--green-dark);
    }
}

/* ================================================================
   UPDATE MODAL
   ================================================================ */
.update-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.update-modal.visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}
.update-modal-card {
    background: rgba(10, 20, 12, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(46,204,113,0.25);
    border-radius: 20px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(46,204,113,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
    max-width: 400px;
    min-width: 340px;
    flex-wrap: wrap;
}
[data-theme="light"] .update-modal-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(46,204,113,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.update-modal-icon {
    width: 40px; height: 40px;
    background: rgba(46,204,113,0.12);
    border: 1px solid rgba(46,204,113,0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.update-modal-icon svg {
    width: 18px; height: 18px;
    stroke: var(--green);
}
.update-modal-content { flex: 1; min-width: 0; }
.update-modal-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 3px;
    line-height: 1.2;
}
[data-theme="light"] .update-modal-title { color: #0F1A12; }
.update-modal-sub {
    font-size: 0.75rem;
    color: rgba(239,239,239,0.5);
    line-height: 1.4;
    margin: 0;
}
[data-theme="light"] .update-modal-sub { color: rgba(15,26,18,0.55); }
.update-modal-countdown {
    position: relative;
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.update-countdown-ring {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg);
}
#countdownCircle {
    transition: stroke-dashoffset 1s linear;
}
.update-modal-countdown span {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--green);
    position: relative;
    z-index: 1;
}
.update-modal-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}
.update-btn-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--green);
    color: #071A0E;
    border: none;
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font-en);
}
.update-btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(46,204,113,0.35);
}
.update-btn-dismiss {
    background: rgba(255,255,255,0.06);
    color: rgba(239,239,239,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: var(--font-en);
}
[data-theme="light"] .update-btn-dismiss {
    background: rgba(0,0,0,0.04);
    color: rgba(15,26,18,0.5);
    border-color: rgba(0,0,0,0.1);
}
.update-btn-dismiss:hover {
    color: rgba(239,239,239,0.8);
    border-color: rgba(255,255,255,0.2);
}
[data-theme="light"] .update-btn-dismiss:hover {
    color: rgba(15,26,18,0.8);
    border-color: rgba(0,0,0,0.2);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── 1100px: minor tightening before hero card hides ─────────── */
@media (max-width: 1100px) {
    .container { padding: 0 20px; }
    .footer-container { padding: 0 20px; }
    .how-inner { gap: 56px; }
    .about-inner { gap: 52px; }
    .footer-top { gap: 48px; }
}

/* ── 960px: tablet — stack / 2-col grids ─────────────────────── */
@media (max-width: 960px) {
    /* Global section padding reduction */
    .features, .how, .cta-section { padding: 88px 0; }
    .about, .diff, .future-sect, .audience-sect, .signal-section, .faq { padding: 80px 0; }
    .section-head { margin-bottom: 44px; }

    /* Signal: 2-col grid at tablet */
    .sig-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .sig-moments { grid-template-columns: 1fr; gap: 0; }
    .sig-journey-connector { display: none; }
    .sig-moment {
        text-align: start;
        padding: 28px 0;
        border-bottom: 1px solid var(--border);
    }
    [data-lang="ar"] .sig-moment { text-align: end; }
    .sig-moment:last-child { border-bottom: none; }
    .sig-moment-body { max-width: none; margin: 0; }
    .sig-moment-node { margin: 0 0 16px; }

    /* Features: 2 col */
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-card:nth-child(3n) { border-inline-end: 1px solid var(--border); }
    .feat-card:nth-child(2n) { border-inline-end: none; }
    .feat-card:nth-child(n+4) { border-bottom: 1px solid var(--border); }
    .feat-card:nth-child(n+5) { border-bottom: none; }
    .feat-card { padding: 36px 32px; }

    /* How it works: stack, nav becomes scrollable pill-row */
    .how-inner { grid-template-columns: 1fr; gap: 48px; }
    .how-left { position: static; }
    .how-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .how-nav::-webkit-scrollbar { display: none; }
    .how-nav-item {
        border-bottom: none;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 10px 16px;
        width: auto;
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.82rem;
    }
    .how-nav-item.active { border-color: var(--green); background: rgba(46,204,113,0.06); }
    .how-panel { min-height: auto; padding: 40px 0; }

    /* About: stack */
    .about-inner { grid-template-columns: 1fr; gap: 48px; }

    /* Diff: 2-col preserved on tablet, 1-col added below */
    .diff-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

    /* Future: 2 col */
    .future-grid { grid-template-columns: 1fr 1fr; }

    /* Audience: 2 col */
    .aud-grid { grid-template-columns: repeat(2, 1fr); }

    /* CTA */
    .cta-text-side { padding: 64px 40px; }

    /* Footer */
    .footer { padding: 56px 0 0; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
    /* Footer bottom: legal links on own row (top), copyright & slogan side-by-side below */
    .footer-bottom { flex-wrap: wrap; gap: 8px 0; align-items: center; }
    .footer-legal { flex: 0 0 100%; order: -1; justify-content: center; margin-bottom: 2px; }
    .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

/* ── 768px: large phones / small tablet ──────────────────────── */
@media (max-width: 768px) {
    .container { padding: 0 18px; }
    .footer-container { padding: 0 18px; }

    /* Section padding */
    .features, .how, .cta-section { padding: 72px 0; }
    .about, .diff, .future-sect, .audience-sect, .testimonials, .faq { padding: 64px 0; }

    /* Hero subtitle max-width */
    .h-sub { max-width: 90%; margin-inline: auto; }

    /* How panels slightly tighter */
    .how-panel { padding: 32px 0; }

    /* Diff: stack on 768 */
    .diff-grid { grid-template-columns: 1fr; }

    /* Audience: keep 2-col but tighter */
    .aud-grid { gap: 12px; }
    .aud-card { padding: 28px 22px; }

    /* Future: keep 2-col */
    .future-card { padding: 26px 22px; }

    /* FAQ: increase max-height for longer answers on mobile */
    .faq-item.open .faq-a { max-height: 480px; }
    .faq-list { margin-top: 40px; }

    /* CTA */
    .cta-text-side { padding: 56px 32px; }

    /* Footer */
    .footer-nav { grid-template-columns: 1fr 1fr; }
}

/* ── 600px: phones — single column ───────────────────────────── */
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .footer-container { padding: 0 16px; }

    /* Section padding */
    .features, .how, .cta-section { padding: 60px 0; }
    .about, .diff, .future-sect, .audience-sect, .signal-section, .faq { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }
    .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }

    /* Signal: single column on phone, like audience-sect */
    .sig-grid { grid-template-columns: 1fr; gap: 10px; }
    .sig-card { padding: 18px 20px; flex-direction: row; align-items: center; gap: 18px; }
    .sig-card-glyph { height: 44px; width: 44px; flex-shrink: 0; margin-bottom: 0; }
    .sig-card-num { font-size: 2rem; line-height: 1; }
    .sig-card-bar { display: none; }
    .sig-journey { padding: 48px 0; margin-top: 40px; }
    /* Journey moments: center on mobile for cleaner look */
    .sig-moment { text-align: center; }
    [data-lang="ar"] .sig-moment { text-align: center; }
    .sig-moment-node { margin: 0 auto 16px; }
    .sig-moment-body { max-width: 340px; margin: 0 auto; }

    /* Ticker: tighter items on phone */
    .ticker-item { padding: 0 18px; font-size: 0.78rem; }

    /* Features: 1 col */
    .feat-grid { grid-template-columns: 1fr; border-radius: var(--r-md); }
    .feat-card { border-inline-end: none !important; padding: 28px 24px; }
    .feat-card:nth-child(n+2) { border-bottom: 1px solid var(--border); }
    .feat-card:last-child { border-bottom: none; }
    .feat-icon { width: 42px; height: 42px; margin-bottom: 18px; }

    /* How it works — full mobile redesign as step cards */
    .how-inner { gap: 0; }
    /* Section header: center it on mobile */
    .how-left .section-head { text-align: center; margin-bottom: 28px; }
    .how-left .section-head .section-sub { margin-inline: auto; }
    /* Hide nav pills — all steps visible, no scrolling needed */
    .how-nav { display: none; }
    /* Right panels: stacked cards */
    .how-right { gap: 12px; display: flex; flex-direction: column; }
    .how-panel {
        min-height: 0;
        padding: 20px 20px 20px 22px;
        border-bottom: none;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        border-inline-start: 3px solid var(--green);
    }
    .how-panel-num { margin-bottom: 10px; font-size: 0.65rem; }
    .how-panel-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }
    .how-panel h3 { font-size: 1.1rem; margin-bottom: 8px; }
    .how-panel p { font-size: 0.88rem; line-height: 1.7; max-width: none; }

    /* About stats: keep 2x2 but tighter */
    .about-stats { gap: 12px; }
    .astat { padding: 22px 16px; }

    /* Diff: single col */
    .diff-grid { grid-template-columns: 1fr; gap: 10px; }
    .diff-item { padding: 22px 18px; gap: 14px; }

    /* Future: single col */
    .future-grid { grid-template-columns: 1fr; gap: 12px; }
    .future-card { padding: 24px 20px; }

    /* Audience: single col */
    .aud-grid { grid-template-columns: 1fr; gap: 10px; }
    .aud-card { padding: 24px 20px; }

    /* Testimonial cards: shrink to fit screen */
    .testi-card { width: 275px; padding: 22px; }
    .testi-track-wrap { margin-top: 36px; }
    .testi-track-wrap::before,
    .testi-track-wrap::after { width: 60px; }

    /* FAQ */
    .faq-list { margin-top: 32px; }
    .faq-q { font-size: 0.93rem; padding: 18px 0; gap: 12px; }
    .faq-item.open .faq-a { max-height: 560px; }

    /* CTA */
    .cta-text-side { padding: 44px 20px; }
    .cta-btns { gap: 10px; flex-direction: column; align-items: center; }
    .cta-btns .store-btn { width: 100%; justify-content: center; max-width: 280px; }

    /* Footer */
    .footer { padding: 48px 0 0; }
    .footer-top { padding-bottom: 36px; }
    .footer-nav { grid-template-columns: 1fr 1fr; }

    /* Update modal: no forced min-width on phones */
    .update-modal-card { min-width: 0; width: calc(100vw - 32px); max-width: 380px; padding: 18px 18px; }
}

/* ── 480px: small phones ──────────────────────────────────────── */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .footer-container { padding: 0 14px; }

    /* Section padding */
    .features, .how, .cta-section { padding: 52px 0; }
    .about, .diff, .future-sect, .audience-sect, .signal-section, .testimonials, .faq { padding: 48px 0; }
    .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }

    /* Ticker items even tighter */
    .ticker-item { padding: 0 14px; font-size: 0.75rem; }

    /* How nav: full-width pill stack */
    .how-nav { gap: 6px; }
    .how-nav-item { font-size: 0.75rem; padding: 7px 10px; }

    /* Features card */
    .feat-card { padding: 24px 18px; }
    .feat-title { font-size: 0.95rem; }

    /* Testimonials */
    .testi-card { width: 248px; padding: 18px; }

    /* About stats: 2x2 → 2-col single row look at edge */
    .about-stats { gap: 10px; }
    .astat { padding: 18px 12px; }
    .astat-num { font-size: clamp(1.5rem, 6vw, 2rem); }

    /* Audience */
    .aud-card { padding: 20px 16px; }
    .aud-icon { font-size: 2rem; }

    /* Signal: tighter horizontal cards */
    .sig-card { padding: 14px 16px; gap: 14px; }
    .sig-card-glyph { height: 36px; width: 36px; }
    .sig-card-num { font-size: 1.75rem; }

    /* Future */
    .future-card { padding: 20px 16px; }
    .future-icon { font-size: 1.6rem; }

    /* CTA */
    .cta-text-side { padding: 36px 16px; }
    .cta-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }

    /* Footer: keep 2-col nav on small phones */
    .footer-nav { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .footer-bottom { font-size: 0.75rem; }

    /* Update modal */
    .update-modal-card { flex-direction: column; gap: 12px; padding: 16px; }
    .update-modal-actions { margin-top: 0; }
}

/* ── 375px: compact phones (iPhone SE etc.) ───────────────────── */
@media (max-width: 375px) {
    .container { padding: 0 12px; }
    .footer-container { padding: 0 12px; }

    /* Section padding */
    .features, .how, .cta-section { padding: 44px 0; }
    .about, .diff, .future-sect, .audience-sect, .signal-section, .testimonials, .faq { padding: 40px 0; }

    /* Section titles */
    .section-title { font-size: clamp(1.4rem, 8vw, 1.9rem); }
    .section-sub { font-size: 0.9rem; }

    /* About stats: full-width single col at tiny screens */
    .about-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .astat { padding: 16px 10px; }

    /* How nav: wraps fine, just smaller */
    .how-nav-item { font-size: 0.72rem; padding: 6px 9px; }

    /* Testi cards */
    .testi-card { width: 224px; }

    /* FAQ */
    .faq-q { font-size: 0.88rem; }
    .faq-a-inner { font-size: 0.88rem; }

    /* CTA */
    .cta-text-side { padding: 32px 12px; }
    .store-btn { max-width: 100%; }

    /* Footer */
    .footer { padding: 40px 0 0; }
    .footer-top { gap: 28px; }
}

/* ================================================================
   Legal Pages (Terms, Privacy, Refund)
   ================================================================ */

.legal-page { min-height: 100vh; }

/* ── Hero ───────────────────────────────────────────────────────── */
.legal-hero {
    padding: 140px 0 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(46,204,113,0.07), transparent 70%);
    pointer-events: none;
}
.legal-hero-icon {
    width: 60px; height: 60px;
    background: var(--green-pale);
    border: 1px solid rgba(46,204,113,0.25);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 24px;
}
.legal-hero-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}
.legal-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}
[data-lang="ar"] .legal-hero-title { letter-spacing: 0; line-height: 1.25; }
.legal-hero-sub {
    font-size: 1rem;
    color: var(--ink-mid);
    max-width: 540px;
    margin: 0 auto 20px;
    line-height: 1.7;
}
.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 5px 14px;
}
[data-theme="light"] .legal-updated { background: #f0f4f1; }

/* ── Body — 2-col grid: main content + sticky TOC sidebar ────────── */
.legal-body {
    max-width: 1060px;
    margin: 0 auto;
    padding: 72px 24px 100px;
    display: grid;
    grid-template-columns: 1fr 228px;
    column-gap: 40px;
    align-items: start;
}
/* All direct children go to the main (left) column */
.legal-body > * { grid-column: 1; }
/* TOC: float into the sidebar (right) column, sticky */
.legal-body > .legal-toc {
    grid-column: 2;
    grid-row: 1 / 999;
    position: sticky;
    top: 88px;
    margin-bottom: 0;
    align-self: start;
}
/* RTL: flip columns */
[data-lang="ar"] .legal-body {
    grid-template-columns: 228px 1fr;
}
[data-lang="ar"] .legal-body > * { grid-column: 2; }
[data-lang="ar"] .legal-body > .legal-toc { grid-column: 1; }

/* ── Section ─────────────────────────────────────────────────────── */
.legal-section {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--border-light);
    /* Offset anchor scroll so heading isn't hidden under navbar */
    scroll-margin-top: 90px;
}
.legal-section:last-child { border-bottom: none; }

.legal-section-num {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 10px;
}
.legal-h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    padding-inline-start: 14px;
    border-inline-start: 3px solid var(--green);
}
[data-lang="ar"] .legal-h2 { letter-spacing: 0; }

.legal-h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 20px 0 8px;
}
.legal-p {
    font-size: 0.92rem;
    color: var(--ink-mid);
    line-height: 1.85;
    margin-bottom: 12px;
}
.legal-ul {
    list-style: none;
    margin: 8px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.legal-ul li {
    font-size: 0.92rem;
    color: var(--ink-mid);
    line-height: 1.75;
    padding-inline-start: 20px;
    position: relative;
}
.legal-ul li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 10px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.7;
}
.legal-highlight {
    background: var(--green-pale);
    border: 1px solid rgba(46,204,113,0.2);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
}
.legal-highlight p {
    font-size: 0.9rem;
    color: var(--ink-mid);
    line-height: 1.75;
    margin: 0;
}
.legal-highlight strong { color: var(--ink); }

/* ── TOC ──────────────────────────────────────────────────────────── */
.legal-toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 20px;
    margin-bottom: 52px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(46,204,113,0.2) transparent;
}
.legal-toc::-webkit-scrollbar { width: 4px; }
.legal-toc::-webkit-scrollbar-thumb { background: rgba(46,204,113,0.25); border-radius: 2px; }
[data-theme="light"] .legal-toc { background: #f7fbf8; }
.legal-toc-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 12px;
}
.legal-toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr; /* single col in sidebar */
    gap: 4px;
}
.legal-toc-list li a {
    font-size: 0.78rem;
    color: var(--ink-mid);
    text-decoration: none;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}
.legal-toc-list li a::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    opacity: 0.6;
}
.legal-toc-list li a:hover { color: var(--green); }
.legal-toc-list li a.toc-active {
    color: var(--green);
    font-weight: 600;
}
.legal-toc-list li a.toc-active::before {
    opacity: 1;
    transform: scale(1.4);
}

/* ── Contact box ──────────────────────────────────────────────────── */
.legal-contact-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 16px;
}
[data-theme="light"] .legal-contact-box { background: #f7fbf8; }
.legal-contact-icon {
    width: 44px; height: 44px;
    background: var(--green-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.legal-contact-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.legal-contact-p { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.7; }
.legal-contact-p a { color: var(--green); }
.legal-contact-p a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
    /* Collapse sidebar to inline block on tablet/mobile */
    .legal-body,
    [data-lang="ar"] .legal-body {
        display: block;
    }
    .legal-body > .legal-toc,
    [data-lang="ar"] .legal-body > .legal-toc {
        grid-column: unset;
        grid-row: unset;
        position: static;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 40px;
    }
    .legal-toc-list { grid-template-columns: 1fr 1fr; gap: 6px 20px; }
}
@media (max-width: 768px) {
    .legal-hero { padding: 110px 0 52px; }
    .legal-body { padding: 48px 18px 72px; }
    .legal-contact-box { flex-direction: column; gap: 14px; }
}
@media (max-width: 480px) {
    .legal-hero-title { letter-spacing: -0.5px; }
    .legal-h2 { font-size: 1.1rem; }
}

/* ================================================================
   CONSENT BANNER
   ================================================================ */
.consent-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999999999;
    padding: 0 24px 20px;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.consent-banner.consent-visible {
    transform: translateY(0);
    pointer-events: all;
}
.consent-banner.consent-hiding {
    transform: translateY(calc(100% + 24px));
    transition: transform 0.3s var(--ease);
}
.consent-inner {
    max-width: 960px;
    margin: 0 auto;
    background: rgba(7, 26, 14, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(46,204,113,0.22);
    border-radius: 20px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55),
                0 0 0 0.5px rgba(46,204,113,0.1) inset;
}
.consent-cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}
.consent-text {
    flex: 1;
    font-size: 0.81rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
}
.consent-text strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.consent-text a { color: var(--green); text-decoration: none; }
.consent-text a:hover { text-decoration: underline; }
.consent-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.consent-btn-accept {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
}
.consent-btn-accept:hover { background: var(--green-dark); transform: translateY(-1px); }
.consent-btn-decline {
    background: none;
    color: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 9px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.consent-btn-decline:hover {
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.28);
}

/* Light mode */
[data-theme="light"] .consent-inner {
    background: rgba(255,255,255,0.97);
    border-color: rgba(46,204,113,0.18);
    box-shadow: 0 20px 60px rgba(0,0,0,0.14);
}
[data-theme="light"] .consent-text { color: rgba(15,26,18,0.65); }
[data-theme="light"] .consent-text strong { color: rgba(15,26,18,0.88); }
[data-theme="light"] .consent-btn-decline {
    color: rgba(15,26,18,0.45);
    border-color: rgba(15,26,18,0.14);
}
[data-theme="light"] .consent-btn-decline:hover {
    color: rgba(15,26,18,0.75);
    border-color: rgba(15,26,18,0.28);
}

/* Mobile: stack to column */
@media (max-width: 640px) {
    .consent-banner { padding: 0 12px 14px; }
    .consent-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 18px;
        border-radius: 16px;
    }
    .consent-actions { width: 100%; gap: 8px; }
    .consent-btn-accept { flex: 1; justify-content: center; }
    .consent-btn-decline { flex: 1; text-align: center; }
}

/* ================================================================
   SETTINGS WIDGET — floating right-edge panel
   ================================================================ */

/* Container: panel + tab side-by-side, anchored to right edge */
.sw {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8500;
    display: flex;
    align-items: stretch;
}

/* Tab — always visible handle */
.sw-tab {
    flex-shrink: 0;
    width: 28px;
    min-height: 88px;
    background: rgba(7, 26, 14, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(46,204,113,0.22);
    border-right: none;
    border-radius: 12px 0 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255,255,255,0.38);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    position: relative;
    box-shadow: -4px 0 18px rgba(0,0,0,0.35);
}
.sw-tab:hover {
    background: rgba(7, 26, 14, 0.97);
    border-color: rgba(46,204,113,0.45);
    color: var(--green);
}
.sw-chevron {
    transition: transform 0.3s var(--ease);
}
.sw.open .sw-chevron { transform: rotate(180deg); }

/* Orange badge — shown when consent not yet given */
.sw-badge {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #e67e22;
    position: absolute;
    top: 12px; right: 6px;
    display: none;
    box-shadow: 0 0 6px rgba(230,126,34,0.6);
}
.sw-badge.visible { display: block; }

/* Panel — slides open via max-width */
.sw-panel {
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.36s var(--ease);
    background: rgba(7, 26, 14, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(46,204,113,0.2);
    border-right: none;
    border-radius: 16px 0 0 16px;
    box-shadow: -12px 4px 48px rgba(0,0,0,0.5);
}
.sw.open .sw-panel { max-width: 256px; }

/* Inner content — fixed width so text doesn't reflow */
.sw-inner {
    width: 236px;
    padding: 18px 16px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
}
.sw.open .sw-inner {
    opacity: 1;
    pointer-events: all;
    transition-delay: 0.22s;
}

/* Section title */
.sw-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    font-family: var(--font-en);
}

/* Rows */
.sw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.055);
}
.sw-row:last-of-type { border-bottom: none; }
.sw-row-l {
    display: flex;
    align-items: center;
    gap: 9px;
}
.sw-ico { font-size: 0.95rem; line-height: 1; }
.sw-lbl { font-size: 0.82rem; color: rgba(255,255,255,0.68); font-weight: 500; }

/* Theme toggle switch */
.sw-switch {
    width: 40px; height: 22px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.22s, border-color 0.22s;
    flex-shrink: 0;
}
.sw-switch[aria-checked="true"] {
    background: var(--green);
    border-color: var(--green);
}
.sw-thumb {
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.22s var(--spring);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    pointer-events: none;
}
.sw-switch[aria-checked="true"] .sw-thumb { left: 20px; }

/* Language segmented control */
.sw-segs {
    display: flex;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.sw-seg {
    padding: 4px 11px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-en);
    letter-spacing: 0.04em;
}
.sw-segs .sw-seg:not(:last-child) { border-inline-end: 1px solid rgba(255,255,255,0.08); }
.sw-seg.active { background: var(--green); color: #fff; }

/* Separator */
.sw-sep {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 12px 0 10px;
}

/* Consent section */
.sw-ct {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-bottom: 10px;
    font-family: var(--font-en);
}
.sw-cl { display: flex; flex-direction: column; gap: 7px; }
.sw-ci {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.3;
}
.sw-ci-dot {
    width: 17px; height: 17px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sw-ci-dot.ok      { background: rgba(46,204,113,0.18); color: var(--green); }
.sw-ci-dot.pending { background: rgba(230,126,34,0.18); color: #e67e22; }
.sw-ci-review {
    margin-top: 6px;
    width: 100%;
    padding: 8px 12px;
    background: rgba(230,126,34,0.1);
    border: 1px solid rgba(230,126,34,0.28);
    border-radius: 8px;
    font-size: 0.75rem;
    color: #e67e22;
    cursor: pointer;
    font-family: inherit;
    text-align: start;
    transition: background 0.15s;
    font-weight: 600;
}
.sw-ci-review:hover { background: rgba(230,126,34,0.18); }

/* Light mode */
[data-theme="light"] .sw-tab {
    background: rgba(255,255,255,0.92);
    border-color: rgba(46,204,113,0.2);
    color: rgba(15,26,18,0.3);
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
}
[data-theme="light"] .sw-tab:hover {
    background: #fff;
    border-color: rgba(46,204,113,0.45);
    color: var(--green-dark);
}
[data-theme="light"] .sw-panel {
    background: rgba(255,255,255,0.98);
    border-color: rgba(46,204,113,0.18);
    box-shadow: -12px 4px 40px rgba(0,0,0,0.1);
}
[data-theme="light"] .sw-title { color: var(--green-dark); }
[data-theme="light"] .sw-lbl { color: rgba(15,26,18,0.65); }
[data-theme="light"] .sw-row { border-bottom-color: rgba(15,26,18,0.06); }
[data-theme="light"] .sw-switch { background: rgba(15,26,18,0.08); border-color: rgba(15,26,18,0.12); }
[data-theme="light"] .sw-segs { background: rgba(15,26,18,0.04); border-color: rgba(15,26,18,0.1); }
[data-theme="light"] .sw-seg { color: rgba(15,26,18,0.4); }
[data-theme="light"] .sw-segs .sw-seg:not(:last-child) { border-inline-end-color: rgba(15,26,18,0.08); }
[data-theme="light"] .sw-sep { background: rgba(15,26,18,0.07); }
[data-theme="light"] .sw-ct { color: rgba(15,26,18,0.28); }
[data-theme="light"] .sw-ci { color: rgba(15,26,18,0.5); }

/* RTL: flip to left side */
[data-lang="ar"] .sw {
    right: auto;
    left: 0;
    /* flex-direction: row already reverses to right→left in RTL dir,
       so the tab (last DOM child) lands on the left edge naturally */
}
[data-lang="ar"] .sw-tab {
    border-radius: 0 12px 12px 0;
    border-right: 1px solid rgba(46,204,113,0.22);
    border-left: none;
    box-shadow: 4px 0 18px rgba(0,0,0,0.35);
}
[data-lang="ar"] .sw-panel {
    border-radius: 0 16px 16px 0;
    border-right: 1px solid rgba(46,204,113,0.2);
    border-left: none;
    box-shadow: 12px 4px 48px rgba(0,0,0,0.5);
}
[data-lang="ar"] .sw-chevron { transform: rotate(180deg); }
[data-lang="ar"] .sw.open .sw-chevron { transform: rotate(0deg); }
[data-theme="light"][data-lang="ar"] .sw-tab {
    border-right-color: rgba(46,204,113,0.2);
    border-left: none;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
}
[data-theme="light"][data-lang="ar"] .sw-panel {
    border-right-color: rgba(46,204,113,0.18);
}

/* Mobile: shrink the tab so it doesn't cover content */
@media (max-width: 640px) {
    .sw {
        top: auto;
        bottom: 80px;
        transform: none;
    }
    .sw-tab {
        width: 22px;
        min-height: 52px;
    }
    .sw-chevron {
        width: 7px;
        height: 11px;
    }
    .sw-badge {
        top: 8px;
        right: 4px;
    }
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */

/* ── Body wrapper ────────────────────────────────────────────── */
.contact-body {
    padding: 64px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
}
.contact-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

/* ── Info panel (left) ───────────────────────────────────────── */
.contact-info-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 88px;
}
.ci-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.ci-icon {
    width: 38px; height: 38px;
    background: var(--green-pale);
    border: 1px solid rgba(46,204,113,0.18);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--green);
}
.ci-icon svg { width: 17px; height: 17px; }
.ci-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 4px;
}
.ci-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-mid);
    text-decoration: none;
    transition: color 0.15s;
    display: block;
}
a.ci-value:hover { color: var(--green); }
.ci-sep {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}
.ci-social-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: -8px;
}
.ci-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ci-soc-link {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-muted);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ci-soc-link svg { width: 16px; height: 16px; }
.ci-soc-link:hover { color: var(--green); border-color: rgba(46,204,113,0.35); background: var(--green-pale); }

/* ── Form card (right) ───────────────────────────────────────── */
.contact-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 40px 40px;
}

/* ── Honeypot ────────────────────────────────────────────────── */
.cf-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

/* ── Form layout ─────────────────────────────────────────────── */
.cf {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cf-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.cf-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-mid);
    display: flex;
    align-items: center;
    gap: 6px;
}
.cf-optional {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--ink-muted);
}

/* ── Inputs ──────────────────────────────────────────────────── */
.cf-input,
.cf-select,
.cf-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--ink);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.cf-input::placeholder,
.cf-textarea::placeholder { color: var(--ink-muted); }
.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
    border-color: rgba(46,204,113,0.5);
    box-shadow: 0 0 0 3px rgba(46,204,113,0.09);
    background: var(--surface);
}
.cf-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* ── Select wrapper (custom arrow) ──────────────────────────── */
.cf-select-wrap {
    position: relative;
}
.cf-select { padding-inline-end: 40px; cursor: pointer; }
.cf-select-arrow {
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--ink-muted);
    pointer-events: none;
}

/* ── Submit button ───────────────────────────────────────────── */
.cf-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--green);
    color: #071A0E;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    overflow: hidden;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(46,204,113,0.3);
    align-self: flex-start;
    min-width: 180px;
}
.cf-submit:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(46,204,113,0.38); }
.cf-submit:active { transform: none; }
.cf-submit-inner {
    display: flex; align-items: center; gap: 9px;
    transition: opacity 0.2s;
}
.cf-submit-arrow { width: 15px; height: 15px; }
[data-lang="ar"] .cf-submit-arrow { transform: scaleX(-1); }
.cf-spinner {
    position: absolute;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(7,26,14,0.25);
    border-top-color: #071A0E;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    animation: cfSpin 0.7s linear infinite;
}
@keyframes cfSpin { to { transform: rotate(360deg); } }
.cf-submit.loading .cf-submit-inner { opacity: 0; }
.cf-submit.loading .cf-spinner      { opacity: 1; }
.cf-submit.loading { pointer-events: none; }

/* ── Feedback modal overlay (success / error) ─────────────────── */
.cf-feedback {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cf-feedback[hidden] { display: none; }
.cf-fb-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    animation: cfModalIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes cfModalIn {
    from { opacity: 0; transform: scale(0.88) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.cf-fb-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.cf-fb-icon svg { width: 28px; height: 28px; }
.cf-fb-icon-ok  { background: rgba(46,204,113,0.12); color: var(--green); border: 1px solid rgba(46,204,113,0.3); }
.cf-fb-icon-err { background: rgba(231,76,60,0.1);   color: #e74c3c;     border: 1px solid rgba(231,76,60,0.25); }
.cf-fb-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin: 0;
}
.cf-fb-sub {
    font-size: 0.9rem;
    color: var(--ink-mid);
    line-height: 1.7;
    max-width: 320px;
    margin: 0;
}
.cf-fb-btn {
    padding: 11px 28px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--ink-mid);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    margin-top: 6px;
}
.cf-fb-btn:hover { border-color: var(--green); color: var(--green); }
[data-theme="light"] .cf-fb-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

/* ── Light mode ──────────────────────────────────────────────── */
[data-theme="light"] .contact-info-panel,
[data-theme="light"] .contact-form-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}
[data-theme="light"] .cf-input,
[data-theme="light"] .cf-select,
[data-theme="light"] .cf-textarea {
    background: #f6faf7;
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .cf-input:focus,
[data-theme="light"] .cf-select:focus,
[data-theme="light"] .cf-textarea:focus {
    background: #fff;
    border-color: rgba(46,204,113,0.5);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .contact-info-panel {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px 32px;
        padding: 24px;
    }
    .ci-block { flex: 1 1 180px; }
    .ci-sep { flex: 0 0 100%; margin: 0; }
    .ci-social-label, .ci-social { flex: 0 0 100%; }
}
@media (max-width: 640px) {
    .contact-body { padding: 40px 16px 72px; }
    .contact-form-card { padding: 24px 20px; }
    .cf-row { grid-template-columns: 1fr; }
    .cf-submit { align-self: stretch; justify-content: center; }
    .contact-info-panel { flex-direction: column; gap: 18px; }
    .ci-block { flex: none; }
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.btt {
    position: fixed;
    bottom: 32px;
    inset-inline-end: 32px;
    width: 44px; height: 44px;
    background: var(--green);
    color: #071A0E;
    border: none;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 800;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s;
    pointer-events: none;
    box-shadow: 0 4px 18px rgba(46,204,113,0.35);
}
.btt.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}
.btt:hover { background: var(--green-dark); transform: translateY(-2px); }
.btt:active { transform: translateY(0); }
.btt svg { width: 18px; height: 18px; }

[data-theme="light"] .btt { box-shadow: 0 4px 18px rgba(46,204,113,0.25); }

@media (max-width: 640px) {
    .btt { bottom: 20px; inset-inline-end: 20px; width: 40px; height: 40px; border-radius: 10px; }
    .btt svg { width: 16px; height: 16px; }
}

/* ================================================================
   READING PROGRESS BAR
   ================================================================ */
.read-progress {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--green), #6ee5a0);
    z-index: 10001;
    opacity: 0;
    transition: width 0.08s linear;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
}
.read-progress.active { opacity: 1; }
[data-lang="ar"] .read-progress { border-radius: 2px 0 0 2px; }
[data-theme="light"] .read-progress { background: linear-gradient(90deg, var(--green-dark), var(--green)); }

/* ================================================================
   PAGE TRANSITION OVERLAY
   ================================================================ */
#pgOverlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    will-change: opacity;
}
#pgOverlay.out {
    opacity: 1;
    pointer-events: all;
}

/* ================================================================
   404 / ERROR PAGES
   ================================================================ */
.err-page {
    min-height: 100svh;
    background: #071A0E;
    background-image:
        radial-gradient(ellipse 110% 70% at 50% 32%, rgba(46,204,113,0.08) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 18% 78%, rgba(46,204,113,0.04) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(100px, 14vh, 140px) 24px 60px;
}
.err-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 520px;
    width: 100%;
    animation: hRise 0.8s var(--ease) both;
}
.err-mark {
    width: 64px; height: 64px;
    background: linear-gradient(145deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(46,204,113,0.35), 0 0 60px rgba(46,204,113,0.15);
    margin-bottom: 8px;
}
.err-mark span {
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-en);
    letter-spacing: -0.03em;
}
.err-code {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--green);
    text-shadow: 0 0 80px rgba(46,204,113,0.3);
}
.err-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.err-sub {
    font-size: clamp(0.88rem, 2vw, 1rem);
    color: rgba(255,255,255,0.42);
    line-height: 1.75;
    max-width: 400px;
}
.err-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}
.err-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--green);
    color: #071A0E;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: var(--r-md);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(46,204,113,0.3);
}
.err-btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(46,204,113,0.4);
}
.err-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1.5px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--r-md);
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.err-btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* Light mode */
[data-theme="light"] .err-page {
    background: #f2fbf5;
    background-image:
        radial-gradient(ellipse 110% 70% at 50% 32%, rgba(46,204,113,0.14) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 18% 78%, rgba(46,204,113,0.06) 0%, transparent 60%);
}
[data-theme="light"] .err-title { color: #0F1A12; }
[data-theme="light"] .err-sub   { color: rgba(15,26,18,0.48); }
[data-theme="light"] .err-btn-ghost { border-color: rgba(15,26,18,0.14); color: rgba(15,26,18,0.6); }
[data-theme="light"] .err-btn-ghost:hover { border-color: var(--green-dark); color: var(--green-dark); }

/* Mobile */
@media (max-width: 480px) {
    .err-actions { flex-direction: column; align-items: center; }
    .err-btn-primary, .err-btn-ghost { width: 100%; justify-content: center; }
}

/* ── Skip-to-content link (accessibility) ───────────────────── */
.skip-link {
    position: fixed;
    top: -100%;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--green);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: top 0.2s ease;
    white-space: nowrap;
}
.skip-link:focus { top: 0; }

/* ── Active nav link ─────────────────────────────────────────── */
.nav-links a.nav-active {
    color: var(--green);
    font-weight: 600;
}

/* ── Contact form: inline field errors ──────────────────────── */
.cf-err {
    display: block;
    font-size: 0.775rem;
    color: #e74c3c;
    margin-top: 5px;
    min-height: 1.1em;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s, transform 0.18s;
}
.cf-err.visible { opacity: 1; transform: translateY(0); }
.cf-field.has-error .cf-input,
.cf-field.has-error .cf-select,
.cf-field.has-error .cf-textarea {
    border-color: rgba(231,76,60,0.6);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.08);
}

/* ── Floating App Download Nudge ─────────────────────────────── */
.app-nudge {
    position: fixed;
    inset-inline-start: 1rem;
    inset-inline-end: 4.5rem;
    bottom: 1.25rem;
    z-index: 400;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.75rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(130%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
}
.app-nudge.visible   { transform: translateY(0); opacity: 1; }
.app-nudge-inner     { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.app-nudge-mark {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.app-nudge-text      { flex: 1; min-width: 0; }
.app-nudge-title     { display: block; font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.app-nudge-sub       { display: block; font-size: 0.725rem; color: var(--ink-mid); margin-top: 1px; }
.app-nudge-btn {
    padding: 7px 14px;
    background: var(--green);
    color: #fff;
    border-radius: 20px;
    font-size: 0.775rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}
.app-nudge-btn:hover { background: var(--green-dark); }
.app-nudge-close {
    width: 28px; height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-mid);
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}
.app-nudge-close:hover { color: var(--ink); }
.app-nudge-close svg  { width: 14px; height: 14px; }
/* Desktop: hide nudge */
@media (min-width: 769px) { .app-nudge { display: none !important; } }
[data-theme="light"] .app-nudge {
    background: #fff;
    border-color: rgba(0,0,0,0.09);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* ================================================================
   PRINT STYLES — legal pages
   ================================================================ */
@media print {
    /* Hide everything that isn't content */
    .navbar, .footer, .btt, .sw, .read-progress, #pgOverlay,
    .consent-banner, .update-modal, .app-nudge, .skip-link,
    .legal-toc, #preloader, .cursor { display: none !important; }

    /* Page setup */
    body { background: #fff !important; color: #000 !important; font-size: 11pt; }
    * { box-shadow: none !important; text-shadow: none !important; }

    /* Hero */
    .legal-hero {
        background: none !important;
        border-bottom: 1.5pt solid #000;
        padding: 12pt 0 10pt;
        margin-bottom: 16pt;
    }
    .legal-hero-title { font-size: 20pt !important; color: #000 !important; }
    .legal-hero-sub   { font-size: 10pt !important; color: #333 !important; }
    .legal-updated    { font-size: 9pt  !important; color: #555 !important; }

    /* Body layout — single column */
    .legal-body { display: block !important; padding: 0 !important; max-width: 100% !important; }
    .legal-content { max-width: 100% !important; }

    /* Section headings */
    .legal-section-title { font-size: 13pt !important; color: #000 !important; page-break-after: avoid; }
    .legal-p, .legal-li  { font-size: 10pt !important; color: #111 !important; line-height: 1.6; }

    /* Links */
    a { color: #000 !important; text-decoration: underline; }
    a[href]::after { content: ' (' attr(href) ')'; font-size: 8pt; color: #555; }
    a[href^="#"]::after, a[href^="javascript"]::after { content: ''; }

    /* Page breaks */
    .legal-section { page-break-inside: avoid; }

    /* Language: show only English when printing */
    .lang-ar { display: none !important; }
    .lang-en { display: inline !important; }
}
