:root {
    /* Light, Quran-inspired palette: soft parchment, emerald green, and subtle gold accents */
    color-scheme: light;
    --color-bg: #fafbf8;
    /* page background */
    --color-bg-alt: #ffffff;
    /* surfaces/cards */
    --color-surface: #ffffff;
    --color-primary: #188a49;
    /* emerald */
    --color-primary-dark: #136f3a;
    --color-primary-light: #e8f5ee;
    --color-accent: #c8a646;
    /* soft gold */
    --color-text: #1f2937;
    --color-text-subtle: rgba(31, 41, 55, 0.78);
    --color-text-muted: rgba(31, 41, 55, 0.62);
    --color-border: rgba(31, 41, 55, 0.10);
    --color-border-strong: rgba(31, 41, 55, 0.16);
    --shadow-lg: 0 24px 40px rgba(24, 138, 73, 0.08);
    --shadow-md: 0 14px 28px rgba(24, 138, 73, 0.07);
    --shadow-sm: 0 6px 16px rgba(24, 138, 73, 0.06);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --font-base: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-alt: "Cairo", "Inter", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
}

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

a {
    color: inherit;
}

p {
    margin-top: 0;
}

ul,
ol {
    padding-left: 1.1rem;
}

.container {
    width: min(1080px, 92vw);
    margin: 0 auto;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button--primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.button--ghost {
    background: #ffffff;
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    color: inherit;
    text-decoration: none;
}

.brand__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(24, 138, 73, 0.12);
    border: 1px solid var(--color-border);
}

.brand__mark {
    font-family: var(--font-alt);
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand__text {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-nav {
    position: relative;
}

.site-nav__links {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 600;
}

.site-nav__links a {
    text-decoration: none;
    color: rgba(31, 41, 55, 0.7);
    transition: color 0.2s ease;
}

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

.site-nav__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    cursor: pointer;
}

.site-nav__toggle:hover,
.site-nav__toggle:focus {
    border-color: var(--color-primary);
}

.site-nav__toggle .hamburger,
.site-nav__toggle .hamburger::before,
.site-nav__toggle .hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 999px;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav__toggle .hamburger::before,
.site-nav__toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.site-nav__toggle .hamburger::before {
    top: -6px;
}

.site-nav__toggle .hamburger::after {
    bottom: -6px;
}

.site-nav__toggle.is-open .hamburger {
    background: transparent;
}

.site-nav__toggle.is-open .hamburger::before {
    transform: translateY(6px) rotate(45deg);
}

.site-nav__toggle.is-open .hamburger::after {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    position: relative;
    padding: 6rem 0 5rem 0;
    background: var(--color-bg);
}

/* Remove decorative blobs for a cleaner, classic look */

.hero__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
    align-items: center;
}

.hero__copy {
    display: grid;
    gap: 1.5rem;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    letter-spacing: -0.01em;
}

.lead {
    font-size: 1.1rem;
    color: var(--color-text-subtle);
}

.hero__cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.hero__stats div {
    background: rgba(255, 255, 255, 0.88);
    padding: 1.4rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 159, 143, 0.14);
    text-align: center;
}

.hero__stats dt {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.hero__stats dd {
    margin: 0.4rem 0 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.device-frame {
    width: min(320px, 90%);
    border-radius: 22px;
    padding: 1rem;
    background: var(--color-bg-alt);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.device-frame__screen {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.section {
    padding: 4.5rem 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.section__header h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 0.8rem;
}

.section__header p {
    color: var(--color-text-subtle);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.feature-card {
    background: var(--color-bg-alt);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-text-subtle);
}

.feature-card ul {
    margin: 1.5rem 0 0 0;
    padding-left: 1.1rem;
    color: var(--color-text-muted);
}

.screenshot-grid {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.screenshot-card {
    background: var(--color-bg-alt);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.screenshot-card img {
    border-radius: var(--radius-sm);
}

.screenshot-card figcaption {
    font-size: 0.95rem;
    color: var(--color-text-subtle);
}

.dataset {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
}

.dataset__list {
    margin: 2rem 0 0 0;
    padding-left: 1.2rem;
    color: var(--color-text-subtle);
}

.dataset__aside {
    display: grid;
    gap: 1.5rem;
}

.dataset__card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.workflow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.workflow li {
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.workflow__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: inset 0 0 0 1px var(--color-border);
}

.testimonial blockquote {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1rem auto;
    max-width: 700px;
    line-height: 1.4;
}

.testimonial cite {
    font-style: normal;
    color: var(--color-text-muted);
}

.download {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
}

.download__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.download__meta {
    display: grid;
    gap: 1.5rem;
}

.download__meta div {
    background: var(--color-bg-alt);
    padding: 1.6rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.site-footer {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    padding: 2.2rem 0;
    border-top: 1px solid var(--color-border);
}

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

.site-footer nav {
    display: flex;
    gap: 1.4rem;
}

.site-footer a {
    color: var(--color-text-subtle);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: white;
}

/* Privacy page */
.privacy-page {
    background: var(--color-bg);
    min-height: 100vh;
}

.privacy__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem 0;
}

.privacy__header h1 {
    font-size: clamp(2.4rem, 5vw, 3.1rem);
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

.privacy__updated {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.privacy__intro {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-subtle);
    margin: 0;
}

.privacy__content {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.privacy__toc {
    position: sticky;
    top: 96px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.privacy__toc h2 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--color-text);
    letter-spacing: 0.02em;
    text-transform: none;
}

.privacy__toc ol {
    list-style: none;
    margin: 1.2rem 0 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.privacy__toc a {
    text-decoration: none;
    color: var(--color-text-subtle);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 500;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* simple dot bullets are not necessary for a classic doc */

.privacy__toc a:hover,
.privacy__toc a:focus {
    color: var(--color-primary-dark);
    border-left-color: rgba(15, 159, 143, 0.45);
}

.privacy__toc a:hover::before,
.privacy__toc a:focus::before {
    transform: scale(1.6);
    background: rgba(15, 159, 143, 0.7);
}

.privacy__sections {
    display: grid;
    gap: 2rem;
}

.privacy__section {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: none;
    border: 1px solid var(--color-border);
}

/* remove interactive hover/decorative effects for a classic policy */

/* no hover lift on policy cards */

.privacy__section:hover::after {
    opacity: 1;
}

/* icons removed to honor no-emoticons request */

.privacy__section h2 {
    color: var(--color-text);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.privacy__section p {
    line-height: 1.8;
    color: var(--color-text-subtle);
    margin-bottom: 1rem;
}

.privacy__section p:last-child {
    margin-bottom: 0;
}

.privacy__list {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.privacy__list li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.7;
    color: var(--color-text-subtle);
}

.privacy__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.privacy__list strong {
    color: var(--color-text);
    font-weight: 600;
}

.privacy__list--summary li::before {
    color: rgba(15, 159, 143, 0.8);
}

.privacy__contact {
    margin-top: 1rem;
}

.privacy__contact li::before {
    content: "→";
}

.privacy__contact a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.privacy__contact a:hover,
.privacy__contact a:focus {
    border-bottom-color: var(--color-primary);
}

.privacy__summary {
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
}

.privacy__summary h2 {
    color: var(--color-primary-dark);
}

.privacy__summary p {
    font-size: 1.1rem;
    margin: 0;
}

.privacy__summary strong {
    color: var(--color-primary-dark);
    font-weight: 700;
}

/* Error page */
body.error {
    background: var(--color-bg);
}

.error__main {
    padding: 4rem 0 2rem 0;
}

.error__content {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    text-align: center;
}

.error__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.error__number {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 0.9;
}

.error__glyph {
    font-family: var(--font-alt);
    font-size: 3rem;
    color: var(--color-text-muted);
    opacity: 0.6;
}

.error__text h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.error__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.error__suggestions {
    margin-top: 3rem;
    text-align: center;
}

.error__suggestions h2 {
    margin-bottom: 2rem;
    color: var(--color-text-subtle);
}

.error__links {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.error__link {
    background: var(--color-bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.error__link:hover,
.error__link:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.error__link h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-primary-dark);
}

.error__link p {
    margin: 0;
    color: var(--color-text-subtle);
    font-size: 0.95rem;
}

.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;
}

@media (max-width: 1024px) {
    .hero__content {
        gap: 2.5rem;
    }

    .hero {
        padding: 5.5rem 0;
    }
}

@media (max-width: 860px) {
    .site-nav__toggle {
        display: inline-flex;
    }

    .site-nav__links {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: var(--color-bg-alt);
        padding: 1rem 1.4rem;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-nav__links[aria-hidden="false"] {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: all;
    }

    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__stats {
        justify-items: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__stats div {
        width: 100%;
    }

    .dataset,
    .download {
        grid-template-columns: 1fr;
    }

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

    .privacy__toc {
        position: static;
        box-shadow: 0 12px 24px rgba(15, 159, 143, 0.08);
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4rem 0;
    }

    .feature-card,
    .dataset__card,
    .workflow li,
    .privacy__section {
        padding: 2rem;
    }

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

    .button {
        width: 100%;
    }

    .error__actions {
        flex-direction: column;
    }
}

/* Dark mode intentionally omitted for a consistently light presentation per request */