:root {
    --bg: #f4f2e8;
    --bg-alt: #e8efe9;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-strong: #ffffff;
    --text: #112126;
    --muted: #36515a;
    --primary: #1e6b5c;
    --primary-strong: #155247;
    --accent: #b57f2f;
    --border: #cfddda;
    --shadow: 0 20px 45px rgba(24, 52, 56, 0.14);
    --radius: 18px;
    --container: min(1120px, calc(100% - 2rem));
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background:
        radial-gradient(circle at 12% 12%, rgba(181, 127, 47, 0.16), transparent 35%),
        radial-gradient(circle at 85% 24%, rgba(30, 107, 92, 0.22), transparent 40%),
        linear-gradient(180deg, var(--bg) 0%, #f8f7f2 45%, var(--bg-alt) 100%);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -100%;
    background: #fff;
    color: #000;
    padding: 0.5rem 0.75rem;
    z-index: 999;
    border-radius: 8px;
}

.skip-link:focus-visible {
    top: 0.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    background: rgba(244, 242, 232, 0.92);
    border-bottom: 1px solid rgba(17, 33, 38, 0.08);
}

.nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text);
    font-family: "Sora", sans-serif;
    font-weight: 700;
}

.brand img {
    border-radius: 10px;
}

.site-nav {
    justify-self: center;
    display: flex;
    gap: 1.2rem;
}

.site-nav a {
    position: relative;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    padding: 0.35rem 0.25rem;
    transition: color 200ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0.2rem;
    right: 0.2rem;
    bottom: -0.15rem;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--primary);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.site-nav a.is-active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    border-radius: 12px;
    width: 46px;
    height: 42px;
    padding: 0.4rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    margin: 0.35rem 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--primary-strong);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #2a555f;
    color: #1d3f47;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
}

.hero {
    padding: 2.4rem 0 1.8rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.6rem;
    align-items: start;
}

.hero-copy {
    padding-top: 0.35rem;
}

.eyebrow {
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2f5f5b;
    font-weight: 700;
    margin: 0 0 0.65rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.2;
    font-family: "Sora", "Segoe UI", sans-serif;
}

h1 {
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    max-width: 18ch;
}

.lead {
    font-size: 1.06rem;
    max-width: 52ch;
    color: #2b4447;
}

.hero-actions {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-meta {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #23393f;
}

.card-glow {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.76));
    border: 1px solid rgba(30, 107, 92, 0.2);
    border-radius: var(--radius);
    padding: 0.85rem;
    box-shadow: var(--shadow);
}

.hero-visual img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.hero-visual {
    width: min(100%, 520px);
    justify-self: end;
}

.hero-visual p {
    margin: 0.65rem 0 0;
    color: #355157;
    font-size: 0.9rem;
}

.section {
    padding: 3.4rem 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(229, 239, 233, 0.45));
    border-top: 1px solid rgba(17, 33, 38, 0.07);
    border-bottom: 1px solid rgba(17, 33, 38, 0.07);
}

.section-head {
    margin-bottom: 1.3rem;
}

.section-head p {
    margin: 0.65rem 0 0;
    color: #37535a;
    max-width: 65ch;
}

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

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 14px 24px rgba(22, 46, 49, 0.07);
}

.pillar-card p {
    margin: 0.5rem 0 0;
    color: #3a5355;
}

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

.feature-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.9rem;
    align-items: center;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem;
    transition: border-color 180ms ease, background-color 180ms ease;
    cursor: pointer;
}

.feature-card:hover,
.feature-card:focus-within {
    border-color: #2f7b6f;
    background: #ffffff;
}

.feature-card img {
    border-radius: 10px;
    border: 1px solid #d6e4e1;
    object-fit: cover;
    height: 100%;
}

.feature-card p {
    margin: 0.45rem 0 0;
    color: #3c5558;
}

.placeholder-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.placeholder-card {
    border: 1.5px dashed #7ea09a;
    border-radius: 14px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.45);
}

.placeholder-card p {
    margin: 0.5rem 0 0;
    color: #42595d;
}

.install-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1rem;
    align-items: start;
}

.install-steps {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.65rem;
}

kbd {
    background: #f8f8f8;
    border: 1px solid #c8d4d1;
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 0.1rem 0.35rem;
    font-size: 0.88rem;
}

.install-card {
    position: sticky;
    top: 98px;
}

.install-card h3 {
    margin-bottom: 0.2rem;
}

.fine-print {
    margin: 0.7rem 0 0;
    color: #4e696f;
    font-size: 0.9rem;
}

.developer-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
    align-items: start;
}

.dev-links {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.1rem;
}

.dev-links a {
    color: #194f58;
    text-decoration-thickness: 1px;
}

.dev-links a:hover,
.dev-links a:focus-visible {
    color: #0f3e46;
}

.quote-card {
    border-radius: var(--radius);
    border: 1px solid #d0dbd8;
    background: linear-gradient(155deg, #fcfcf8, #f1f5ef);
    box-shadow: 0 14px 22px rgba(26, 46, 49, 0.08);
    padding: 1rem;
}

.arabic {
    font-family: "Noto Naskh Arabic", serif;
    font-size: 1.75rem;
    margin: 0;
}

.translation {
    margin: 0.45rem 0 0;
    color: #486368;
}

.support-section {
    background:
        radial-gradient(circle at 14% 20%, rgba(30, 107, 92, 0.14), transparent 36%),
        radial-gradient(circle at 82% 30%, rgba(181, 127, 47, 0.14), transparent 40%);
}

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

.support-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    box-shadow: 0 16px 30px rgba(18, 43, 48, 0.1);
    cursor: pointer;
    transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.support-card:hover,
.support-card:focus-within {
    border-color: #2c7469;
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(18, 43, 48, 0.14);
}

.support-card h3 {
    margin: 0.35rem 0 0;
}

.support-card p {
    margin: 0.45rem 0 1rem;
    color: #385257;
}

.support-card-donate {
    border-color: rgba(30, 107, 92, 0.36);
}

.support-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #155247;
    background: linear-gradient(160deg, rgba(62, 218, 178, 0.28), rgba(30, 107, 92, 0.16));
    border: 1px solid rgba(30, 107, 92, 0.28);
}

.support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.floating-donate {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    text-decoration: none;
    padding: 0.58rem 0.82rem;
    color: #ffffff;
    background: linear-gradient(120deg, #1e6b5c, #155247);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 16px 30px rgba(17, 42, 48, 0.35);
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.floating-donate:hover,
.floating-donate:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(17, 42, 48, 0.45);
    background: linear-gradient(120deg, #175d50, #114840);
}

.cta-band {
    background:
        linear-gradient(120deg, rgba(30, 107, 92, 0.95), rgba(17, 68, 78, 0.96)),
        radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.19), transparent 50%);
    color: #ffffff;
}

.cta-wrap {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cta-wrap .btn-primary {
    background: #f2e6cf;
    color: #1a4f45;
}

.cta-wrap .btn-primary:hover,
.cta-wrap .btn-primary:focus-visible {
    background: #e8d8bc;
}

.site-footer {
    border-top: 1px solid rgba(17, 33, 38, 0.1);
    background: rgba(255, 255, 255, 0.45);
}

.footer-grid {
    min-height: 74px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer a {
    color: #1b5059;
}

[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.99);
    transition:
        opacity 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

[data-reveal="left"] {
    transform: translate3d(-18px, 10px, 0) scale(0.99);
}

[data-reveal="right"] {
    transform: translate3d(18px, 10px, 0) scale(0.99);
}

[data-reveal="zoom"] {
    transform: translate3d(0, 12px, 0) scale(0.95);
}

.section-focus {
    animation: section-focus 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes section-focus {
    0% {
        box-shadow: 0 0 0 0 rgba(181, 127, 47, 0);
    }

    30% {
        box-shadow: 0 0 0 10px rgba(181, 127, 47, 0.24);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(181, 127, 47, 0);
    }
}

:focus-visible {
    outline: 3px solid rgba(181, 127, 47, 0.64);
    outline-offset: 2px;
    border-radius: 8px;
}

@media (max-width: 980px) {
    .nav-wrap {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid #d5dfdc;
        display: none;
        padding: 0.75rem 1rem 1rem;
        flex-direction: column;
        gap: 0.6rem;
    }

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

    .hero-grid,
    .install-layout,
    .developer-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 1.9rem 0 1.5rem;
    }

    .hero-copy {
        padding-top: 0;
    }

    .hero-visual {
        justify-self: stretch;
        width: 100%;
    }

    .install-card {
        position: static;
    }

    .pillars {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .site-header .btn-primary {
        display: none;
    }

    .feature-grid,
    .placeholder-grid,
    .pillars,
    .support-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        grid-template-columns: 1fr;
    }

    .feature-card img {
        width: 100%;
        min-height: 180px;
        max-height: 220px;
    }

    .floating-donate {
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.55rem 0.72rem;
    }
}

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

    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}