/* ==========================================================================
   Prophets Stories — Premium dark theme with rich accent colors
   Midnight navy · teal · violet · gold · glassmorphism · 3D depth
   ========================================================================== */

:root {
    --bg: #0a0f1e;
    --bg-deep: #060912;
    --bg-elevated: #121a2e;
    --panel: rgba(14, 20, 38, 0.84);
    --panel-strong: rgba(20, 28, 52, 0.92);
    --panel-soft: rgba(10, 14, 28, 0.76);
    --accent-teal: #6E96CC;
    --accent-cyan: #22d3ee;
    --accent-violet: #818cf8;
    --accent-gold: #e8b84a;
    --accent-blue: #60a5fa;
    --accent-emerald: #34d399;
    --accent-rose: #f472b6;
    --accent-gradient: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-violet) 52%, var(--accent-gold) 100%);
    --accent-gradient-soft: linear-gradient(135deg, rgba(110, 150, 204, 0.16), rgba(129, 140, 248, 0.14), rgba(232, 184, 74, 0.12));
    --border: rgba(129, 140, 248, 0.16);
    --border-strong: rgba(110, 150, 204, 0.32);
    --text: #eef2ff;
    --silver: #c7d2fe;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --dim: #64748b;
    --shadow: rgba(0, 0, 0, 0.78);
    --glow: rgba(110, 150, 204, 0.18);
    --glow-strong: rgba(129, 140, 248, 0.24);
    --glow-gold: rgba(232, 184, 74, 0.22);
    --radius: 8px;
    --radius-lg: 14px;
    --nav-height: 82px;
    --max: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --mouse-x: 50vw;
    --mouse-y: 50vh;
    --spotlight-x: var(--mouse-x);
    --spotlight-y: var(--mouse-y);
    --gradient-angle: 0deg;
    --glass-surface: rgba(16, 16, 20, 0.72);
    --glass-surface-deep: rgba(12, 12, 16, 0.82);
    --glass-surface-button: rgba(18, 18, 22, 0.88);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-strong: rgba(255, 255, 255, 0.16);
    --glass-highlight: rgba(255, 255, 255, 0.52);
    --glass-highlight-soft: rgba(255, 255, 255, 0.14);
    --glass-fill: rgba(255, 255, 255, 0.04);
    --glass-blur: blur(20px) saturate(120%);
    --glass-bevel:
        inset 1px 1px 0 rgba(255, 255, 255, 0.14),
        inset -1px -1px 0 rgba(0, 0, 0, 0.42);
    --glass-window-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
    --glass-button-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        inset 0 -1px 0 rgba(255, 255, 255, 0.12),
        0 10px 32px rgba(0, 0, 0, 0.48);
    --glass-button-shadow-hover:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        inset 0 -1px 0 rgba(255, 255, 255, 0.16),
        0 14px 40px rgba(0, 0, 0, 0.52);
    --glass-shadow: var(--glass-bevel), var(--glass-window-shadow);
    --glass-tint: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.12) 52%, rgba(255, 255, 255, 0.02) 100%);
    --window-radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    overflow-x: hidden;
}

html[lang="ar"] {
    direction: rtl;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    width: 100%;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    position: relative;
    z-index: 2;
}

html[lang="ar"] body,
html[lang="ar"] .arabic-text {
    font-family: "Amiri", "Manrope", serif;
}

html[lang="ko"] body {
    font-family: "Manrope", "Apple SD Gothic Neo", "Malgun Gothic", Inter, ui-sans-serif, system-ui, sans-serif;
}

html[lang="zh"] body {
    font-family: "Manrope", "PingFang SC", "Microsoft YaHei", Inter, ui-sans-serif, system-ui, sans-serif;
}

html[lang="ja"] body {
    font-family: "Manrope", "Hiragino Sans", "Yu Gothic", Inter, ui-sans-serif, system-ui, sans-serif;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

[id] {
    scroll-margin-top: 112px;
}

:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 4px;
}

::selection {
    color: var(--bg-deep);
    background: var(--accent-teal);
}

/* ── Skip link ── */
.skip-link {
    position: fixed;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 20px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--bg-deep);
    background: var(--accent-gradient);
    box-shadow: 0 12px 40px rgba(110, 150, 204, 0.25);
    font-size: 0.84rem;
    font-weight: 800;
    transition: top 320ms var(--ease), box-shadow 320ms ease;
}

.skip-link:focus {
    top: 16px;
    outline: none;
    box-shadow: 0 16px 52px rgba(129, 140, 248, 0.35);
}

html[lang="ar"] .skip-link {
    left: auto;
    right: 16px;
}

body.is-loading {
    overflow: hidden;
}

body.is-loading main,
body.is-loading .navbar,
body.is-loading .floating-actions {
    visibility: hidden;
}

/* ── Loader ── */
.loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    isolation: isolate;
    background:
        radial-gradient(ellipse at center, rgba(110, 150, 204, 0.08), transparent 35rem),
        radial-gradient(ellipse at 70% 30%, rgba(129, 140, 248, 0.06), transparent 30rem),
        var(--bg-deep);
    opacity: 1;
    pointer-events: none;
    transition: opacity 700ms var(--ease), visibility 700ms var(--ease);
}

body:not(.is-loading) .loader {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 88px;
    height: 88px;
    margin: -44px 0 0 -44px;
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: 50%;
    animation: loaderRingSpin 2.4s var(--ease) infinite;
}

.loader-ring::before,
.loader-ring::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid transparent;
}

.loader-ring::before {
    border-top-color: var(--accent-teal);
    border-right-color: rgba(129, 140, 248, 0.35);
    animation: loaderRingSpin 1.1s linear infinite;
}

.loader-ring::after {
    inset: 8px;
    border-bottom-color: var(--accent-gold);
    border-left-color: rgba(34, 211, 238, 0.2);
    animation: loaderRingSpin 1.6s linear infinite reverse;
}

@keyframes loaderRingSpin {
    to {
        transform: rotate(360deg);
    }
}

.loader-mark {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(10, 15, 30, 0.82);
    box-shadow: 0 24px 80px rgba(110, 150, 204, 0.08);
}

.loader-mark span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-teal);
    opacity: 0.5;
    animation: loadPulse 900ms ease-in-out infinite;
}

.loader-mark span:nth-child(2) {
    background: var(--accent-violet);
    animation-delay: 120ms;
}

.loader-mark span:nth-child(3) {
    background: var(--accent-gold);
    animation-delay: 240ms;
}

@keyframes loadPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.28;
    }
    50% {
        transform: translateY(-7px);
        opacity: 1;
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2500;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-teal), var(--accent-violet), var(--accent-gold), transparent);
    box-shadow: 0 0 24px rgba(110, 150, 204, 0.55);
}

.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1;
    width: 420px;
    height: 420px;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    transform: translate3d(calc(var(--mouse-x) - 210px), calc(var(--mouse-y) - 210px), 0);
    background: radial-gradient(circle, rgba(110, 150, 204, 0.14), rgba(129, 140, 248, 0.06) 34%, transparent 67%);
    filter: blur(14px);
    transition: opacity 400ms ease;
    mix-blend-mode: screen;
}

body.cursor-active .cursor-glow {
    opacity: 1;
}

/* ── Spotlight (mouse-tracking via CSS vars) ── */
.spotlight {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(
            520px circle at var(--spotlight-x) var(--spotlight-y),
            rgba(110, 150, 204, 0.09),
            rgba(129, 140, 248, 0.04) 32%,
            transparent 68%
        ),
        radial-gradient(
            280px circle at var(--spotlight-x) var(--spotlight-y),
            rgba(232, 184, 74, 0.07),
            transparent 72%
        );
    transition: opacity 480ms ease;
    mix-blend-mode: screen;
}

body.cursor-active .spotlight {
    opacity: 1;
}

/* ── Site background layers ── */
.site-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(129, 140, 248, 0.04), transparent 28rem),
        radial-gradient(ellipse at 20% -10%, rgba(110, 150, 204, 0.12), transparent 42rem),
        radial-gradient(ellipse at 85% 15%, rgba(232, 184, 74, 0.08), transparent 38rem),
        radial-gradient(ellipse at 50% 100%, rgba(96, 165, 250, 0.06), transparent 45rem),
        var(--bg);
}

.site-background::before {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(116deg, transparent 0 36%, rgba(255, 255, 255, 0.06) 36.2%, transparent 37%),
        linear-gradient(156deg, transparent 0 58%, rgba(255, 255, 255, 0.035) 58.25%, transparent 59%);
    background-size: 560px 560px, 740px 740px;
    background-position: 0 0, 180px -120px;
    filter: blur(1px);
    animation: waveShift 36s linear infinite;
}

.background-mesh,
.background-grid,
.background-noise,
.background-light,
.background-wave,
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.background-mesh {
    opacity: 0.65;
    background:
        radial-gradient(ellipse 80% 60% at 18% 12%, rgba(110, 150, 204, 0.1), transparent 58%),
        radial-gradient(ellipse 70% 50% at 82% 22%, rgba(129, 140, 248, 0.09), transparent 52%),
        radial-gradient(ellipse 90% 70% at 50% 88%, rgba(232, 184, 74, 0.06), transparent 62%),
        conic-gradient(from 210deg at 62% 38%, transparent 0deg, rgba(34, 211, 238, 0.05) 60deg, transparent 120deg);
    filter: blur(2px);
    animation: meshDrift 28s var(--ease) infinite alternate;
}

@keyframes meshDrift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(-2%, 1.5%, 0) scale(1.04);
    }
}

.background-light-one {
    inset: auto auto 14vh -16vw;
}

.particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0;
    animation: particleDrift 12s ease-in-out infinite;
}

.particles span:nth-child(1) { left: 8%; top: 18%; background: var(--accent-teal); box-shadow: 0 0 10px rgba(110, 150, 204, 0.6); animation-delay: 0s; animation-duration: 14s; }
.particles span:nth-child(2) { left: 22%; top: 62%; background: var(--accent-violet); box-shadow: 0 0 10px rgba(129, 140, 248, 0.55); animation-delay: -2s; animation-duration: 11s; }
.particles span:nth-child(3) { left: 38%; top: 34%; background: var(--accent-gold); box-shadow: 0 0 10px rgba(232, 184, 74, 0.5); animation-delay: -4s; animation-duration: 16s; }
.particles span:nth-child(4) { left: 54%; top: 78%; background: var(--accent-cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.5); animation-delay: -1s; animation-duration: 13s; }
.particles span:nth-child(5) { left: 68%; top: 22%; background: var(--accent-teal); box-shadow: 0 0 10px rgba(110, 150, 204, 0.5); animation-delay: -3s; animation-duration: 15s; }
.particles span:nth-child(6) { left: 82%; top: 48%; background: var(--accent-violet); box-shadow: 0 0 10px rgba(129, 140, 248, 0.45); animation-delay: -5s; animation-duration: 12s; }
.particles span:nth-child(7) { left: 14%; top: 82%; background: var(--accent-gold); box-shadow: 0 0 10px rgba(232, 184, 74, 0.45); animation-delay: -6s; animation-duration: 17s; }
.particles span:nth-child(8) { left: 46%; top: 12%; background: var(--accent-blue); box-shadow: 0 0 10px rgba(96, 165, 250, 0.45); animation-delay: -7s; animation-duration: 10s; }
.particles span:nth-child(9) { left: 72%; top: 68%; background: var(--accent-cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.45); animation-delay: -8s; animation-duration: 14s; }
.particles span:nth-child(10) { left: 92%; top: 36%; background: var(--accent-emerald); box-shadow: 0 0 10px rgba(52, 211, 153, 0.45); animation-delay: -9s; animation-duration: 11s; }

@keyframes particleDrift {
    0%, 100% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.6);
    }
    15% {
        opacity: 0.45;
    }
    50% {
        opacity: 0.22;
        transform: translate3d(18px, -42px, 0) scale(1);
    }
    85% {
        opacity: 0.08;
    }
}

.background-grid {
    background-image:
        linear-gradient(rgba(129, 140, 248, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 150, 204, 0.035) 1px, transparent 1px);
    background-size: 78px 78px;
    mask-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.96), transparent 82%),
        radial-gradient(ellipse at 50% 0%, var(--bg), transparent 72%);
}

.background-noise {
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

.background-light {
    width: 78vw;
    height: 28vh;
    inset: auto auto 10vh -18vw;
    background: linear-gradient(90deg, transparent, rgba(110, 150, 204, 0.12), rgba(129, 140, 248, 0.08), transparent);
    filter: blur(62px);
    transform: rotate(-10deg);
    animation: lightDrift 16s var(--ease) infinite alternate;
}

.background-light-two {
    inset: 18vh -22vw auto auto;
    transform: rotate(13deg);
    opacity: 0.58;
    animation-delay: -5s;
}

.background-wave {
    opacity: 0.2;
    background:
        repeating-linear-gradient(130deg, transparent 0 42px, rgba(129, 140, 248, 0.05) 43px, transparent 45px);
    mask-image: radial-gradient(ellipse at 72% 28%, var(--bg), transparent 52%);
    animation: waveShift 24s linear infinite;
}

@keyframes lightDrift {
    from {
        transform: translate3d(0, 0, 0) rotate(-12deg);
    }
    to {
        transform: translate3d(8vw, -4vh, 0) rotate(-8deg);
    }
}

@keyframes waveShift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 280px 180px;
    }
}

.navbar {
    position: fixed;
    inset: 14px 0 auto 0;
    z-index: 1000;
    padding: 0 18px;
    transition: transform 420ms var(--ease), inset 420ms var(--ease);
}

.navbar.is-scrolled {
    inset: 8px 0 auto 0;
}

.navbar.is-scrolled .nav-content {
    min-height: 54px;
    padding: 7px 12px 7px 14px;
    border-color: var(--border-strong);
    background: rgba(10, 15, 30, 0.92);
    box-shadow:
        0 20px 72px rgba(0, 0, 0, 0.75),
        0 0 56px rgba(110, 150, 204, 0.08),
        inset 0 1px 0 rgba(129, 140, 248, 0.14);
    backdrop-filter: blur(28px) saturate(155%);
    -webkit-backdrop-filter: blur(28px) saturate(155%);
}

.nav-toggle {
    display: none;
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.5)),
        rgba(0, 0, 0, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: border-color 260ms ease, background 260ms ease, transform 260ms var(--ease);
}

.nav-toggle span {
    position: absolute;
    width: 16px;
    height: 1.5px;
    border-radius: 999px;
    background: #fff;
    transition: transform 320ms var(--ease), opacity 220ms ease, width 320ms var(--ease);
}

.nav-toggle span:first-child {
    transform: translateY(-4px);
}

.nav-toggle span:last-child {
    transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
    width: 18px;
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
    width: 18px;
}

.nav-toggle:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu.is-open {
    display: flex;
}

.nav-content {
    max-width: var(--max);
    min-height: 62px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--bg-deep);
    background: var(--accent-gradient);
    box-shadow: 0 12px 36px rgba(110, 150, 204, 0.28);
    font-size: 0.72rem;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.nav-links a,
.footer-links a {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    transition: color 240ms ease, background 240ms ease, transform 240ms ease;
}

.nav-links a {
    padding: 8px 13px;
    border-radius: 999px;
}

.nav-links a:hover,
.footer-links a:hover {
    color: var(--accent-teal);
}

.nav-links a:hover {
    background: rgba(110, 150, 204, 0.1);
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-picker {
    position: relative;
}

.lang-picker-toggle {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px 0 10px;
    border-radius: 999px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--glass-border);
    background:
        var(--glass-tint),
        var(--glass-surface-button);
    box-shadow: var(--glass-button-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: transform 280ms var(--ease), border-color 280ms ease, box-shadow 280ms ease, background 280ms ease;
}

.lang-picker-toggle::before {
    content: "";
    position: absolute;
    inset: 1px 10px auto;
    height: 1px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.58);
    pointer-events: none;
}

.lang-picker-toggle::after {
    content: "";
    position: absolute;
    inset: auto 14px 1px;
    height: 1px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.lang-picker-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.62);
}

.lang-picker-icon svg {
    width: 100%;
    height: 100%;
}

.lang-picker-label {
    min-width: 2.4ch;
    text-align: start;
}

.lang-picker-chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.72);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.72);
    transform: rotate(45deg) translateY(-1px);
    transition: transform 240ms ease;
}

.lang-picker-toggle[aria-expanded="true"] .lang-picker-chevron {
    transform: rotate(-135deg) translateY(1px);
}

.lang-picker-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 188px;
    padding: 8px;
    border: 1px solid var(--glass-border);
    border-radius: var(--window-radius);
    background: var(--glass-surface-deep);
    box-shadow: var(--glass-bevel), 0 24px 64px rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(22px) saturate(120%);
    -webkit-backdrop-filter: blur(22px) saturate(120%);
}

html[lang="ar"] .lang-picker-menu {
    right: auto;
    left: 0;
}

.lang-picker-menu[hidden] {
    display: none;
}

.lang-picker-option {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: start;
    transition: color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.lang-picker-option:hover,
.lang-picker-option:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.lang-picker-option.active {
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--glass-border-strong);
    background:
        var(--glass-tint),
        rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.lang-picker-option.active::before {
    content: "";
    position: absolute;
    inset: 1px 10px auto;
    height: 1px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.38);
    pointer-events: none;
}

.nav-donate {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--glass-border);
    background:
        var(--glass-tint),
        var(--glass-surface-button);
    box-shadow: var(--glass-button-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    font-size: 0.83rem;
    font-weight: 600;
    transition: transform 280ms var(--ease), border-color 280ms ease, box-shadow 280ms ease, background 280ms ease, filter 280ms ease;
}

.nav-donate::before,
.btn::before,
.close-btn::before {
    content: "";
    position: absolute;
    inset: 1px 12px auto;
    height: 1px;
    z-index: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.58);
    pointer-events: none;
    opacity: 1;
    transition: opacity 260ms ease, transform 260ms var(--ease);
}

.nav-donate::after,
.btn::after {
    content: "";
    position: absolute;
    inset: auto 16px 1px;
    height: 1px;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.12);
}

.nav-donate:hover::before,
.btn:hover::before,
.close-btn:hover::before {
    opacity: 1;
    transform: none;
}

.floating-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1750;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

html[lang="ar"] .floating-actions {
    right: auto;
    left: 22px;
}

.floating-actions > * {
    pointer-events: auto;
}

.floating-donate-button,
.agent-toggle,
.agent-panel,
.agent-close {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background:
        var(--glass-tint),
        var(--glass-surface-button);
    box-shadow: var(--glass-button-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.floating-donate-button::before,
.agent-toggle::before,
.agent-panel::before,
.agent-close::before {
    content: "";
    position: absolute;
    inset: 1px 10px auto;
    height: 1px;
    z-index: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.floating-donate-button::after,
.agent-toggle::after,
.agent-panel::after,
.agent-close::after {
    content: "";
    position: absolute;
    inset: auto 12px 1px;
    height: 1px;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.1);
}

.floating-donate-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    font-weight: 600;
    transition: transform 280ms var(--ease), border-color 280ms ease, box-shadow 280ms ease;
}

.floating-donate-button:hover,
.agent-toggle:hover,
.agent-toggle[aria-expanded="true"],
.agent-close:hover {
    border-color: var(--glass-border-strong);
    filter: brightness(1.06);
    box-shadow: var(--glass-button-shadow-hover);
}

.floating-donate-button:active,
.agent-toggle:active,
.agent-close:active,
.agent-actions button:active,
.agent-actions a:active {
    transform: translateY(1px) scale(0.985);
}

.floating-action-orb,
.agent-orb {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--bg-deep);
    background: var(--accent-gradient);
    box-shadow:
        0 12px 30px rgba(110, 150, 204, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 5px rgba(0, 0, 0, 0.22);
    font-weight: 900;
}

.floating-action-orb {
    width: 38px;
    height: 38px;
    font-size: 0.76rem;
}

.floating-donate-button span:last-child {
    position: relative;
    z-index: 1;
}

.floating-agent-widget {
    position: relative;
}

.agent-toggle {
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px 8px 8px;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    transition: transform 280ms var(--ease), border-color 280ms ease, box-shadow 280ms ease;
}

.agent-orb {
    width: 46px;
    height: 46px;
    font-size: 0.8rem;
    letter-spacing: 0;
}

.agent-toggle-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1px;
    text-align: left;
}

html[lang="ar"] .agent-toggle-copy {
    text-align: right;
}

.agent-toggle-copy strong {
    font-size: 0.91rem;
    line-height: 1.1;
}

.agent-toggle-copy small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.agent-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(360px, calc(100vw - 28px));
    padding: 20px;
    border-radius: var(--window-radius);
    color: rgba(255, 255, 255, 0.88);
}

html[lang="ar"] .agent-panel {
    right: auto;
    left: 0;
}

.agent-panel[hidden] {
    display: none;
}

.agent-panel.is-open {
    display: block;
    animation: agentPanelIn 320ms var(--ease);
}

@keyframes agentPanelIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.agent-panel-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.agent-panel h2 {
    margin: 9px 0 0;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.12;
}

.agent-panel p {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    color: var(--soft);
    font-size: 0.94rem;
}

.agent-close {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.agent-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.agent-actions button,
.agent-actions a {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.76);
    background:
        var(--glass-tint),
        var(--glass-surface-button);
    box-shadow: var(--glass-button-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 600;
    text-align: center;
    transition: transform 220ms var(--ease), border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.agent-actions button::before,
.agent-actions a::before {
    content: "";
    position: absolute;
    inset: 1px 8px auto;
    height: 1px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.agent-actions button:hover,
.agent-actions a:hover {
    transform: translateY(-2px);
    border-color: var(--glass-border-strong);
    filter: brightness(1.06);
    box-shadow: var(--glass-button-shadow-hover);
}

.section-shell {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: auto;
    display: block;
    grid-template-columns: unset;
    align-items: stretch;
    gap: 0;
    padding: 48px 0 72px;
}

.hero-copy {
    position: relative;
    z-index: 3;
}

.status-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent-teal);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-badge {
    padding: 8px 11px;
    border: 1px solid rgba(110, 150, 204, 0.22);
    border-radius: 999px;
    background: rgba(110, 150, 204, 0.08);
    box-shadow: 0 0 34px rgba(110, 150, 204, 0.12), inset 0 1px 0 rgba(129, 140, 248, 0.1);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 20px rgba(110, 150, 204, 0.85);
    animation: statusPulse 1.8s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(0.85);
        opacity: 0.55;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero h1 {
    max-width: 14em;
    margin: 16px 0 18px;
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hero h1 span,
.hero h1 .gx {
    display: inline;
    filter: none;
}

.hero h1 span.gx {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p,
.hero .sub {
    max-width: 34em;
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* ── Magnetic interaction support ── */
.magnetic {
    transition: transform 380ms var(--ease);
    will-change: transform;
}

/* ── Beveled glass surface (reference-style windows) ── */
.gradient-border {
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--window-radius) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.14) 54%, rgba(255, 255, 255, 0.02) 100%),
        var(--glass-surface) !important;
    box-shadow: var(--glass-bevel), var(--glass-window-shadow) !important;
    animation: none;
}

.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition:
        transform 280ms var(--ease),
        border-color 280ms ease,
        box-shadow 280ms ease,
        background 280ms ease,
        filter 280ms ease;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn,
.nav-donate,
.close-btn {
    text-shadow: none;
}

.btn-primary {
    color: rgba(255, 255, 255, 0.82);
    border-color: var(--glass-border-strong);
    background:
        var(--glass-tint),
        var(--glass-surface-button);
    box-shadow: var(--glass-button-shadow);
}

.btn-secondary {
    color: rgba(255, 255, 255, 0.72);
    border-color: var(--glass-border);
    background:
        var(--glass-tint),
        var(--glass-surface-button);
    box-shadow: var(--glass-button-shadow);
}

.btn-lg {
    min-height: 58px;
    padding: 0 30px;
    font-size: 1rem;
}

.btn:hover,
.nav-donate:hover,
.lang-picker-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--glass-border-strong);
    filter: brightness(1.06);
    box-shadow: var(--glass-button-shadow-hover);
}

.btn-secondary:hover {
    background:
        var(--glass-tint),
        rgba(22, 22, 26, 0.92);
}

.btn:active,
.btn.is-pressed,
.nav-donate:active,
.nav-donate.is-pressed,
.lang-picker-toggle:active,
.story-card:active,
.timeline-node:active {
    transform: translateY(1px) scale(0.985);
    filter: brightness(0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 2px 8px rgba(0, 0, 0, 0.38),
        0 4px 16px rgba(0, 0, 0, 0.28);
}

.btn:active::before,
.btn.is-pressed::before,
.nav-donate:active::before,
.nav-donate.is-pressed::before {
    opacity: 0.45;
    transform: none;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 600px;
    margin-top: 36px;
}

.metric-card,
.hero-metrics div {
    padding: 15px;
    border: 1px solid rgba(129, 140, 248, 0.14);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(110, 150, 204, 0.06), transparent 42%),
        rgba(10, 15, 30, 0.72);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(129, 140, 248, 0.08);
    transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(110, 150, 204, 0.28);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52), 0 0 32px rgba(110, 150, 204, 0.1), inset 0 1px 0 rgba(129, 140, 248, 0.12);
}

.hero-metrics strong {
    display: block;
    color: transparent;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 1.55rem;
    line-height: 1;
}

.hero-metrics span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    height: 620px;
    perspective: 1300px;
    transform-style: preserve-3d;
}

.visual-halo {
    position: absolute;
    inset: 6% 2% 12% 0;
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse at 50% 50%, rgba(110, 150, 204, 0.18), rgba(129, 140, 248, 0.08) 43%, transparent 74%);
    filter: blur(34px);
    opacity: 0.85;
    animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.95;
    }
}

.floating-window,
.showcase-window,
.feature-card,
.benefit-card,
.testimonial-card,
.ad-card,
.support-panel,
.resource-panel,
.resource-link,
.timeline-wrapper,
.story-card,
.modal-content {
    border: 1px solid var(--glass-border);
    border-radius: var(--window-radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.14) 54%, rgba(255, 255, 255, 0.02) 100%),
        var(--glass-surface);
    box-shadow: var(--glass-bevel), var(--glass-window-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.floating-window {
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 600ms var(--ease), box-shadow 320ms ease, border-color 320ms ease;
}

.floating-window::after,
.showcase-window::after,
.resource-panel::after,
.support-panel::after,
.modal-content::after,
.ad-card::after,
.testimonial-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--window-radius) - 1px);
    pointer-events: none;
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.12), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.04)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 18%);
    opacity: 0.55;
}

.showcase-window,
.resource-panel,
.support-panel,
.modal-content,
.ad-card,
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.window-main {
    top: 90px;
    right: 28px;
    width: 440px;
    min-height: 420px;
    overflow: hidden;
    transform: rotateY(-18deg) rotateX(8deg) translateZ(40px);
    animation: floatMain 8s ease-in-out infinite;
}

.window-main::before,
.feature-card::before,
.testimonial-card::before,
.ad-card::before,
.support-panel::before,
.resource-link::before,
.story-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 34%, rgba(255, 255, 255, 0.12) 70%, transparent);
    opacity: 0;
    transition: opacity 320ms ease;
}

.window-main:hover,
.showcase-window:hover,
.feature-card:hover,
.testimonial-card:hover,
.ad-card:hover,
.resource-link:hover,
.story-card:hover {
    border-color: var(--glass-border-strong);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.18),
        inset -1px -1px 0 rgba(0, 0, 0, 0.42),
        0 34px 88px rgba(0, 0, 0, 0.58);
}

.window-main:hover::before,
.feature-card:hover::before,
.testimonial-card:hover::before,
.ad-card:hover::before,
.support-panel:hover::before,
.resource-link:hover::before,
.story-card:hover::before {
    opacity: 1;
}

@keyframes floatMain {
    0%, 100% {
        transform: rotateY(-18deg) rotateX(8deg) translate3d(0, 0, 40px);
    }
    50% {
        transform: rotateY(-14deg) rotateX(6deg) translate3d(0, -18px, 70px);
    }
}

@keyframes floatMobileWindow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.window-topbar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18)),
        rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.window-topbar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.window-topbar span:nth-child(2) {
    opacity: 0.62;
}

.window-topbar span:nth-child(3) {
    opacity: 0.38;
}

.window-content {
    padding: 34px;
}

.window-kicker,
.showcase-window small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.window-content h2 {
    margin: 48px 0 14px;
    color: #fff;
    font-size: 2.6rem;
    line-height: 1.05;
}

.window-content p {
    margin: 0;
    color: var(--soft);
}

.preview-line {
    display: grid;
    gap: 10px;
    margin-top: 42px;
}

.preview-line span {
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.04));
}

.preview-line span:nth-child(2) {
    width: 78%;
}

.preview-line span:nth-child(3) {
    width: 54%;
}

.window-mini {
    width: 180px;
    min-height: 142px;
    padding: 18px;
    animation: floatMini 7s ease-in-out infinite;
}

.window-mini-one {
    top: 34px;
    left: 8px;
    transform: rotateY(18deg) rotateX(4deg) translateZ(88px);
}

.window-mini-two {
    right: 0;
    bottom: 70px;
    transform: rotateY(-22deg) rotateX(-2deg) translateZ(120px);
    animation-delay: -2s;
}

@keyframes floatMini {
    0%, 100% {
        margin-top: 0;
    }
    50% {
        margin-top: -16px;
    }
}

.window-mini span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.window-mini strong {
    display: block;
    margin-top: 12px;
    color: #fff;
    font-size: 1.6rem;
}

.mini-bars {
    display: flex;
    align-items: end;
    gap: 7px;
    height: 38px;
    margin-top: 18px;
}

.mini-bars i {
    flex: 1;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.08));
}

.mini-bars i:nth-child(1) {
    height: 42%;
}

.mini-bars i:nth-child(2) {
    height: 72%;
}

.mini-bars i:nth-child(3) {
    height: 54%;
}

.mini-bars i:nth-child(4) {
    height: 88%;
}

.mini-toggle {
    width: 76px;
    height: 36px;
    margin-top: 22px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.52);
}

.mini-toggle i {
    display: block;
    width: 28px;
    height: 28px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 22px rgba(110, 150, 204, 0.45);
}

.section-divider {
    width: min(var(--max), calc(100% - 40px));
    height: 1px;
    margin: 0 auto 110px;
    background: linear-gradient(90deg, transparent, rgba(110, 150, 204, 0.35), rgba(129, 140, 248, 0.35), rgba(232, 184, 74, 0.3), transparent);
    box-shadow: 0 0 34px rgba(110, 150, 204, 0.15);
}

.feature-section,
.showcase-section,
.benefits-section,
.testimonial-section,
.stories-section,
.support-section,
.resource-section {
    padding: 42px 0 112px;
}

.section-heading {
    max-width: 740px;
    margin-bottom: 34px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-title,
.section-heading h2,
.showcase-copy h2,
.ad-card h2,
.support-panel h2 {
    margin: 13px 0 0;
    color: #fff;
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading p,
.showcase-copy p,
.ad-card p,
.support-panel p {
    max-width: 640px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.feature-card {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    padding: 24px;
    transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms ease;
}

.feature-card::after,
.benefit-card::after,
.resource-link::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    pointer-events: none;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.14), transparent 28%, transparent 68%, rgba(255, 255, 255, 0.04)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 26%);
    opacity: 0.66;
    mix-blend-mode: screen;
}

.feature-index {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 50%;
    color: var(--accent-teal);
    background: rgba(110, 150, 204, 0.08);
    font-size: 0.78rem;
    font-weight: 900;
}

.feature-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(110, 150, 204, 0.22);
    border-radius: 50%;
    color: var(--accent-teal);
    background:
        radial-gradient(circle at 30% 20%, rgba(110, 150, 204, 0.22), transparent 55%),
        rgba(10, 15, 30, 0.72);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(129, 140, 248, 0.12);
    transition: transform 320ms var(--ease), box-shadow 320ms ease, color 320ms ease, border-color 320ms ease;
}

.feature-card:nth-child(2) .feature-icon {
    color: var(--accent-violet);
    border-color: rgba(129, 140, 248, 0.28);
    background: radial-gradient(circle at 30% 20%, rgba(129, 140, 248, 0.22), transparent 55%), rgba(10, 15, 30, 0.72);
}

.feature-card:nth-child(3) .feature-icon {
    color: var(--accent-cyan);
    border-color: rgba(34, 211, 238, 0.25);
    background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.2), transparent 55%), rgba(10, 15, 30, 0.72);
}

.feature-card:nth-child(4) .feature-icon {
    color: var(--accent-gold);
    border-color: rgba(232, 184, 74, 0.28);
    background: radial-gradient(circle at 30% 20%, rgba(232, 184, 74, 0.2), transparent 55%), rgba(10, 15, 30, 0.72);
}

html[lang="ar"] .feature-icon {
    right: auto;
    left: 24px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    opacity: 0.92;
}

.feature-card:hover .feature-icon {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(110, 150, 204, 0.15);
}

.feature-card h3,
.benefit-card h3 {
    margin: 76px 0 12px;
    color: #fff;
    font-size: 1.28rem;
    line-height: 1.2;
}

.feature-card p,
.benefit-card p,
.testimonial-card blockquote,
.story-card p {
    margin: 0;
    color: var(--muted);
}

.showcase-section {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(460px, 1fr);
    align-items: center;
    gap: 54px;
}

.showcase-stage {
    position: relative;
    min-height: 520px;
    perspective: 1200px;
}

.showcase-window {
    position: absolute;
    overflow: hidden;
    transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms ease;
}

.showcase-large {
    inset: 40px 40px 74px 10px;
    transform: rotateY(15deg) rotateX(5deg);
}

.showcase-dashboard {
    display: grid;
    grid-template-columns: 1fr 140px;
    grid-template-rows: auto 1fr;
    gap: 26px;
    padding: 34px;
}

.showcase-dashboard strong {
    display: block;
    margin-top: 10px;
    color: transparent;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 3.4rem;
    line-height: 1;
}

.dashboard-ring {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(10, 15, 30, 0.95) 0 48%, transparent 49%),
        conic-gradient(var(--accent-teal) 0 55%, var(--accent-violet) 55% 82%, rgba(129, 140, 248, 0.15) 82% 100%);
    box-shadow: 0 0 44px rgba(110, 150, 204, 0.2);
}

.dashboard-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.dashboard-list span {
    height: 58px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.02));
}

.showcase-card-one,
.showcase-card-two {
    display: grid;
    align-content: end;
    width: 190px;
    min-height: 164px;
    padding: 20px;
}

.showcase-card-one {
    left: -10px;
    bottom: 12px;
    transform: rotateY(-16deg) translateZ(80px);
}

.showcase-card-two {
    top: 8px;
    right: 0;
    transform: rotateY(18deg) translateZ(110px);
}

.showcase-window strong {
    color: #fff;
    font-size: 1.8rem;
}

.ad-section {
    padding: 0 0 112px;
}

.ad-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 28px;
    overflow: hidden;
    padding: 30px;
}

.adsense-slot {
    min-height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.024) 18px 19px),
        rgba(0, 0, 0, 0.56);
}

.adsense-slot > span {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.adsense-slot ins {
    display: block;
    width: 100%;
    min-height: 1px;
}

.ad-lines {
    display: grid;
    gap: 8px;
    width: min(190px, 80%);
}

.ad-lines i {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.ad-lines i:nth-child(2) {
    width: 72%;
}

.ad-lines i:nth-child(3) {
    width: 48%;
}

.benefit-grid,
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.benefit-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    min-height: 230px;
    transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(110, 150, 204, 0.32);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), 0 0 32px rgba(110, 150, 204, 0.08);
}

.benefit-index {
    display: inline-block;
    margin-top: 8px;
    color: var(--dim);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.benefit-card span.benefit-index {
    color: var(--dim);
}

.benefit-icon {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(110, 150, 204, 0.22);
    border-radius: var(--radius);
    color: var(--accent-teal);
    background:
        linear-gradient(145deg, rgba(110, 150, 204, 0.16), rgba(129, 140, 248, 0.06) 58%, rgba(10, 15, 30, 0.5)),
        rgba(10, 15, 30, 0.72);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(110, 150, 204, 0.12);
    transition: transform 320ms var(--ease), box-shadow 320ms ease, color 320ms ease;
}

.benefit-card:nth-child(2) .benefit-icon {
    color: var(--accent-violet);
    border-color: rgba(129, 140, 248, 0.25);
}

.benefit-card:nth-child(3) .benefit-icon {
    color: var(--accent-gold);
    border-color: rgba(232, 184, 74, 0.25);
}

html[lang="ar"] .benefit-icon {
    left: auto;
    right: 24px;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-card:hover .benefit-icon {
    transform: translateY(-2px) rotate(-3deg);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 28px rgba(110, 150, 204, 0.12);
}

.benefit-card h3 {
    margin-top: 62px;
}

.testimonial-card {
    position: relative;
    min-height: 240px;
    margin: 0;
    padding: 28px;
    transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms ease;
}

.testimonial-card blockquote {
    font-size: 1.14rem;
}

.testimonial-card figcaption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
}

html[lang="ar"] .testimonial-card figcaption {
    left: 28px;
    right: 28px;
}

.stories-section {
    padding-top: 16px;
}

.timeline-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 188px;
    margin: 32px 0 30px;
    padding: 26px 18px;
    cursor: grab;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.45) rgba(255, 255, 255, 0.035);
}

.timeline-wrapper:active {
    cursor: grabbing;
}

.timeline-wrapper::-webkit-scrollbar {
    height: 8px;
}

.timeline-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.035);
}

.timeline-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 999px;
}

.timeline-container {
    position: relative;
    display: flex;
    align-items: center;
    min-width: max-content;
    height: 126px;
    padding: 0 18px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(110, 150, 204, 0.4), rgba(129, 140, 248, 0.35), transparent);
}

.timeline-node {
    position: relative;
    z-index: 2;
    width: 154px;
    display: grid;
    justify-items: center;
    gap: 14px;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(110, 150, 204, 0.55);
    border-radius: 50%;
    background: var(--bg-elevated);
    box-shadow: 0 0 22px rgba(110, 150, 204, 0.2);
    transition: transform 260ms var(--ease), background 260ms ease, box-shadow 260ms ease;
}

.timeline-label {
    max-width: 148px;
    color: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    transition: color 260ms ease, transform 260ms ease;
}

.timeline-node:hover .timeline-dot,
.timeline-node:focus-visible .timeline-dot {
    transform: scale(1.14);
    background: var(--accent-gradient);
    box-shadow: 0 0 34px rgba(110, 150, 204, 0.45);
}

.timeline-node:hover .timeline-label,
.timeline-node:focus-visible .timeline-label {
    color: var(--accent-teal);
    transform: translateY(-3px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.story-card {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    padding: 24px;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms ease;
}

.story-card .card-meta,
.story-card .card-title,
.story-card .card-arabic,
.story-card .card-excerpt,
.story-card .card-action,
.feature-card > *,
.benefit-card > *,
.testimonial-card > *,
.resource-link > *,
.support-panel > *,
.ad-card > *,
.modal-content > * {
    position: relative;
    z-index: 1;
}

html[lang="ar"] .story-card {
    text-align: right;
}

.story-card::after {
    content: "";
    position: absolute;
    inset: auto 20px 20px 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    opacity: 0;
    transition: opacity 260ms ease;
}

.story-card:hover,
.story-card:focus-visible {
    transform: translateY(-6px);
}

.story-card:hover::after,
.story-card:focus-visible::after {
    opacity: 1;
}

.card-meta {
    color: var(--dim);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.card-title {
    margin: 42px 0 10px;
    color: #fff;
    font-size: 1.62rem;
    line-height: 1.12;
}

.card-arabic {
    margin: 0 0 14px;
    color: var(--soft);
    font-family: "Amiri", serif;
    font-size: 1.5rem;
    line-height: 1.35;
}

.card-excerpt {
    font-size: 0.96rem;
}

.card-action {
    margin-top: auto;
    color: var(--accent-teal);
    font-size: 0.84rem;
    font-weight: 900;
}

.support-section {
    padding-top: 20px;
}

.support-panel {
    position: relative;
    overflow: hidden;
    padding: 54px;
    text-align: center;
}

.support-glow {
    position: absolute;
    inset: -20% -10%;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(110, 150, 204, 0.14), transparent 68%),
        radial-gradient(ellipse 40% 30% at 30% 60%, rgba(129, 140, 248, 0.12), transparent 72%),
        radial-gradient(ellipse 35% 25% at 70% 40%, rgba(232, 184, 74, 0.1), transparent 70%);
    filter: blur(40px);
    opacity: 0.85;
    animation: supportGlowPulse 8s ease-in-out infinite;
}

@keyframes supportGlowPulse {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.96);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.04);
    }
}

.support-panel p {
    margin-left: auto;
    margin-right: auto;
}

.support-panel .btn {
    margin-top: 28px;
}

.resource-section {
    padding-top: 0;
}

.resource-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: 24px;
    padding: 28px;
}

.resource-heading h2 {
    margin: 13px 0 0;
    color: #fff;
    font-size: 2rem;
    line-height: 1.12;
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.resource-link {
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 20px;
    transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms ease;
}

.resource-link:hover,
.resource-link:focus-visible {
    transform: translateY(-5px);
}

.resource-link span {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.28;
}

.resource-link strong {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    overflow-wrap: break-word;
}

.resource-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(110, 150, 204, 0.22);
    border-radius: 50%;
    color: var(--accent-teal);
    background: rgba(110, 150, 204, 0.1);
    font-size: 0.9rem;
    font-weight: 900;
    transition: transform 320ms var(--ease), background 320ms ease, border-color 320ms ease;
}

html[lang="ar"] .resource-arrow {
    right: auto;
    left: 18px;
}

.resource-link:hover .resource-arrow {
    transform: translate(2px, -2px) scale(1.06);
    border-color: rgba(110, 150, 204, 0.45);
    background: rgba(110, 150, 204, 0.18);
    color: var(--accent-cyan);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    overflow-y: auto;
    padding: 38px 20px;
    opacity: 0;
    transition: opacity 280ms ease;
}

.modal[hidden] {
    display: none !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
        rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(22px) saturate(120%);
    -webkit-backdrop-filter: blur(22px) saturate(120%);
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 42px;
    transform: translateY(24px) scale(0.98);
    opacity: 0;
    transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}

.modal.show .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    background:
        var(--glass-tint),
        var(--glass-surface-button);
    box-shadow: var(--glass-button-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 240ms var(--ease), border-color 240ms ease, box-shadow 240ms ease, filter 240ms ease;
}

html[lang="ar"] .close-btn {
    right: auto;
    left: 18px;
}

.close-btn::after {
    content: "";
    position: absolute;
    inset: auto 12px 1px;
    height: 1px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.close-btn:hover {
    transform: translateY(-2px);
    border-color: var(--glass-border-strong);
    filter: brightness(1.06);
    box-shadow: var(--glass-button-shadow-hover);
}

.modal-header {
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.modal-header h2 {
    margin: 12px 0 0;
    color: #fff;
    font-size: 3rem;
    line-height: 1.08;
}

.modal-header h3 {
    margin: 12px 0 0;
    color: var(--soft);
    font-size: 2.1rem;
    line-height: 1.25;
}

.modal-body {
    padding-top: 28px;
}

.story-content {
    color: var(--soft);
    font-size: 1.05rem;
    line-height: 1.85;
}

html[lang="ar"] .story-content {
    font-size: 1.25rem;
    line-height: 2.05;
}

.story-content p {
    margin: 0 0 1.35rem;
}

.story-content h4 {
    margin: 2.1rem 0 0.85rem;
    color: #fff;
    font-size: 1.28rem;
}

.story-notice {
    margin: 2rem 0;
    padding: 14px 16px;
    border: 1px solid rgba(232, 184, 74, 0.28);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(232, 184, 74, 0.12), rgba(232, 184, 74, 0.04)),
        rgba(10, 15, 30, 0.72);
    color: #f5e6b8;
    font-size: 0.92rem;
    line-height: 1.65;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    background: #000;
    padding: 34px 20px 42px;
}

.footer-inner {
    width: min(var(--max), 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-inner .footer-meta {
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer p {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    color: var(--dim);
    font-size: 0.78rem;
    font-weight: 700;
}

.footer-meta a {
    color: var(--muted);
    transition: color 220ms ease;
}

.footer-meta a:hover {
    color: #fff;
}

.footer-meta span {
    opacity: 0.45;
}

.arabic-text {
    font-family: "Amiri", "Manrope", serif;
    font-weight: 400;
    line-height: 1.65;
    direction: rtl;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 820ms var(--ease), transform 820ms var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 420ms var(--ease), box-shadow 320ms ease, border-color 320ms ease;
    will-change: transform;
}

html[lang="ar"] .nav-links,
html[lang="ar"] .nav-actions,
html[lang="ar"] .hero-actions,
html[lang="ar"] .hero-metrics,
html[lang="ar"] .footer-inner {
    direction: rtl;
}

@media (max-width: 1120px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-content {
        flex-wrap: wrap;
        align-items: center;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px 4px 6px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 4px;
    }

    .nav-menu.is-open {
        display: flex;
        animation: navMenuIn 360ms var(--ease);
    }

    @keyframes navMenuIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
        padding: 12px 14px;
    }

    html[lang="ar"] .nav-links a {
        text-align: right;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .lang-picker-menu {
        min-width: 170px;
    }

    .nav-donate {
        width: 100%;
        min-height: 44px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 128px;
    }

    .hero h1 {
        font-size: clamp(1.65rem, 5vw, 2.15rem);
    }

    .hero-visual {
        height: 540px;
    }

    .window-main {
        right: 10%;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-section {
        grid-template-columns: 1fr;
    }

    .showcase-stage {
        min-height: 460px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .resource-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --nav-height: 72px;
    }

    .cursor-glow {
        display: none;
    }

    .navbar {
        inset: 10px 0 auto 0;
        padding: 0 10px;
    }

    .nav-content {
        min-height: auto;
        border-radius: 28px;
        align-items: flex-start;
        gap: 12px;
    }

    .logo {
        max-width: 145px;
        white-space: normal;
        line-height: 1.15;
    }

    .logo-mark {
        flex: 0 0 auto;
    }

    .nav-actions {
        margin-left: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        max-width: none;
    }

    .lang-picker-toggle {
        min-height: 34px;
        padding: 0 10px 0 8px;
    }

    html[lang="ar"] .nav-actions {
        margin-left: 0;
        margin-right: auto;
        justify-content: flex-start;
    }

    .nav-donate {
        min-height: 34px;
        padding: 0 13px;
    }

    .section-shell {
        width: min(100% - 28px, var(--max));
    }

    .hero {
        gap: 32px;
        padding-top: 128px;
        padding-bottom: 54px;
    }

    .hero h1 {
        font-size: clamp(1.55rem, 6vw, 2rem);
        line-height: 1.12;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-metrics div {
        padding: 12px 10px;
    }

    .hero-metrics strong {
        font-size: 1.25rem;
    }

    .hero-metrics span {
        font-size: 0.72rem;
    }

    .hero-visual {
        height: 420px;
        margin-top: -56px;
    }

    .window-main {
        top: 38px;
        right: 12px;
        width: min(330px, calc(100vw - 74px));
        min-height: 330px;
        transform: none;
        animation: floatMobileWindow 7s ease-in-out infinite;
    }

    .window-content {
        padding: 24px;
    }

    .window-content h2 {
        margin-top: 36px;
        font-size: 2rem;
    }

    .window-mini {
        width: 142px;
        min-height: 118px;
        padding: 14px;
    }

    .window-mini-one {
        left: -4px;
        top: 0;
    }

    .window-mini-two {
        right: -2px;
        bottom: 8px;
    }

    .section-divider {
        margin-bottom: 70px;
    }

    .feature-section,
    .showcase-section,
    .benefits-section,
    .testimonial-section,
    .stories-section,
    .support-section,
    .resource-section,
    .ad-section {
        padding-bottom: 78px;
    }

    .section-heading h2,
    .showcase-copy h2,
    .ad-card h2,
    .support-panel h2 {
        font-size: 2.25rem;
    }

    .feature-grid,
    .benefit-grid,
    .testimonial-grid,
    .grid,
    .ad-card,
    .resource-panel,
    .resource-links {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .benefit-card,
    .testimonial-card,
    .story-card {
        min-height: auto;
    }

    .feature-card h3,
    .benefit-card h3 {
        margin-top: 46px;
    }

    .showcase-stage {
        min-height: 420px;
    }

    .showcase-large {
        inset: 34px 0 80px 0;
    }

    .showcase-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-ring {
        width: 104px;
        height: 104px;
    }

    .showcase-card-one,
    .showcase-card-two {
        width: 154px;
        min-height: 126px;
        transform: none;
    }

    .showcase-card-one {
        left: 8px;
    }

    .showcase-card-two {
        right: 8px;
    }

    .timeline-wrapper {
        margin-top: 26px;
    }

    .story-card {
        padding: 22px;
    }

    .card-title {
        margin-top: 34px;
        font-size: 1.42rem;
    }

    .support-panel {
        padding: 34px 20px;
    }

    .resource-panel {
        padding: 22px;
    }

    .resource-heading h2 {
        font-size: 1.7rem;
    }

    .resource-link {
        min-height: 124px;
    }

    .modal {
        padding: 18px 10px;
    }

    .modal-content {
        padding: 34px 20px;
    }

    .modal-header h2 {
        font-size: 2.1rem;
    }

    .modal-header h3 {
        font-size: 1.65rem;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: clamp(1.45rem, 7vw, 1.75rem);
    }

    .lang-picker-label {
        font-size: 0.76rem;
    }

    .nav-donate {
        font-size: 0.76rem;
    }

    .hero-visual {
        height: 390px;
    }

    .window-mini {
        display: none;
    }
}

@media (max-width: 640px) {
    .floating-actions {
        left: 14px;
        right: 14px;
        bottom: 14px;
        align-items: flex-end;
        justify-content: space-between;
        gap: 10px;
    }

    html[lang="ar"] .floating-actions {
        left: 14px;
        right: 14px;
    }

    .floating-donate-button {
        min-height: 50px;
        padding: 7px 13px 7px 7px;
        font-size: 0.8rem;
    }

    .floating-action-orb {
        width: 36px;
        height: 36px;
    }

    .agent-toggle {
        min-height: 56px;
        gap: 9px;
        padding: 7px 13px 7px 7px;
    }

    .agent-orb {
        width: 42px;
        height: 42px;
    }

    .agent-toggle-copy strong {
        font-size: 0.84rem;
    }

    .agent-toggle-copy small {
        display: none;
    }

    .agent-panel {
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 86px;
        width: auto;
        max-height: min(64vh, 430px);
        overflow-y: auto;
        padding: 18px;
    }

    html[lang="ar"] .agent-panel {
        left: 14px;
        right: 14px;
    }

    .agent-panel h2 {
        font-size: 1.25rem;
    }

    .agent-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .cursor-glow,
    .spotlight,
    .particles,
    .background-mesh,
    .background-wave,
    .support-glow,
    .visual-halo {
        display: none;
    }

    .gradient-border {
        border-color: var(--glass-border) !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.14) 54%, rgba(255, 255, 255, 0.02) 100%),
            var(--glass-surface) !important;
        box-shadow: var(--glass-bevel), var(--glass-window-shadow) !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .magnetic {
        transition: none;
    }
}
