:root {
    color-scheme: light;
    --bg: #f4f6fb;
    --body-gradient: radial-gradient(circle at top right, #e6eeff, #f4f6fb 55%);
    --hero-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(219, 234, 254, 0.9));
    --text-primary: #07122d;
    --text-secondary: rgba(7, 18, 45, 0.75);
    --brand: #2563eb;
    --brand-strong: #1d4ed8;
    --surface: #ffffff;
    --surface-muted: rgba(255, 255, 255, 0.92);
    --surface-border: rgba(15, 23, 42, 0.08);
    --section-alt-bg: rgba(255, 255, 255, 0.98);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(37, 99, 235, 0.12);
    --footer-bg: #e2e8f0;
    --control-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #040c24;
    --body-gradient: radial-gradient(circle at top right, #0f2b57, #050b1f 45%);
    --hero-bg: linear-gradient(135deg, rgba(7, 22, 58, 0.9), rgba(4, 12, 36, 0.95));
    --text-primary: #e8ecff;
    --text-secondary: rgba(232, 236, 255, 0.75);
    --brand: #7dd3fc;
    --brand-strong: #38bdf8;
    --surface-muted: rgba(255, 255, 255, 0.06);
    --surface-border: rgba(255, 255, 255, 0.12);
    --section-alt-bg: rgba(3, 7, 18, 0.65);
    --card-bg: rgba(255, 255, 255, 0.07);
    --card-border: rgba(255, 255, 255, 0.1);
    --footer-bg: #020817;
    --control-bg: rgba(255, 255, 255, 0.08);
    --shadow: 0 25px 60px rgba(5, 14, 42, 0.45);
}

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

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", "Noto Sans Arabic", "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
    background: var(--body-gradient);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background 250ms ease, color 250ms ease;
}

body[dir="rtl"] {
    font-family: "Noto Sans Arabic", "Space Grotesk", "Segoe UI", "Inter", system-ui, sans-serif;
}

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

a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    transition: color 200ms ease;
}

a:hover {
    color: var(--brand-strong);
}

button,
select {
    font: inherit;
    color: inherit;
}

.hero {
    min-height: 80vh;
    padding: 3rem 1.5rem 2.5rem;
    background: var(--hero-bg);
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero__inner {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.control-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    background: var(--control-bg);
    border-radius: 28px;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(12px);
}

.control-bar__label {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.control-bar__group {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.control-bar__contact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}

.control-bar__contact:hover {
    border-color: var(--brand);
}

.control-bar__contact-icon {
    font-size: 0.9rem;
}

.control-bar__divider {
    width: 1px;
    height: 28px;
    background: var(--surface-border);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    border: 1px solid var(--surface-border);
    padding: 0.15rem;
}

html[data-theme="dark"] .language-switch {
    background: rgba(255, 255, 255, 0.08);
}

.language-switch__btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.language-switch__btn.is-active {
    background: var(--brand);
    color: #04122d;
}

html[data-theme="dark"] .language-switch__btn.is-active {
    color: #04122d;
}

.dot-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    z-index: 1000;
}

.dot-nav__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 150ms ease, background 150ms ease, border 150ms ease;
}

html[data-theme="dark"] .dot-nav__dot {
    background: rgba(255, 255, 255, 0.08);
}

.dot-nav__dot span {
    position: absolute;
    right: 180%;
    white-space: nowrap;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(7, 18, 45, 0.85);
    color: #f8fafc;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    top: 50%;
    transition: opacity 120ms ease;
}

html[data-theme="dark"] .dot-nav__dot span {
    background: rgba(248, 250, 252, 0.9);
    color: #050b1f;
}

.dot-nav__dot:hover span,
.dot-nav__dot:focus-visible span {
    opacity: 1;
}

.dot-nav__dot.is-active {
    transform: scale(1.4);
    background: var(--brand);
    border-color: var(--brand);
}

.dot-nav__dot:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.theme-toggle {
    border: 1px solid var(--surface-border);
    background: var(--surface-muted);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: transform 200ms ease, background 200ms ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

.theme-toggle__icon {
    font-size: 1rem;
    line-height: 1;
}

.theme-toggle__icon--sun {
    display: none;
}

html[data-theme="light"] .theme-toggle__icon--sun {
    display: inline;
}

html[data-theme="light"] .theme-toggle__icon--moon {
    display: none;
}

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

.hero__content {
    max-width: 960px;
}

.hero__logo {
    width: 180px;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 5px 25px rgba(0, 0, 0, 0.25));
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--brand);
    margin-bottom: 0.6rem;
}

.hero__lead {
    font-size: 1.1rem;
    margin: 1rem auto 2rem;
    color: var(--text-secondary);
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.95rem;
}

.hero__nav a {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn {
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 200ms ease, background 200ms ease, color 200ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--brand);
    color: #04122d;
    border-color: var(--brand-strong);
}

.btn--ghost {
    background: transparent;
    border-color: var(--surface-border);
    color: var(--text-primary);
}

main {
    background: var(--bg);
    padding-bottom: 4rem;
}

.section {
    padding: 4rem 1.5rem;
}

.section__content {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--surface-muted);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(12px);
}

.section--highlight .section__content {
    border-color: var(--surface-border);
}

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

.section__intro {
    margin-bottom: 2rem;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.metric {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.08);
    text-align: center;
    border: 1px solid var(--surface-border);
}

html[data-theme="dark"] .metric {
    background: rgba(255, 255, 255, 0.05);
}

.metric__value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--brand);
}

.metric__label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.card {
    padding: 1.75rem;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--card-border);
    transition: transform 200ms ease, border 200ms ease;
    min-height: 220px;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--brand);
}

.founder__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.founder__links a {
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.founder__links a:hover {
    border-color: var(--brand);
}

.contact {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact__details {
    min-width: 220px;
}

.contact__details p {
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact__details span {
    color: var(--text-secondary);
}

.footer {
    padding: 2rem 1.5rem 3rem;
    background: var(--footer-bg);
}

.footer__content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer__content a {
    text-transform: uppercase;
    font-size: 0.75rem;
}

.footer__content a:hover {
    color: var(--brand-strong);
}

[dir="rtl"] .control-bar {
    flex-direction: column;
}

[dir="rtl"] .hero__nav {
    flex-direction: row-reverse;
    direction: rtl;
}

[dir="rtl"] .hero__nav a {
    letter-spacing: 0;
}

[dir="rtl"] .contact__details {
    text-align: right;
}

@media (max-width: 768px) {
    .control-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
        gap: 0.85rem;
    }

    .control-bar__contact {
        justify-content: center;
    }

    .control-bar__divider {
        display: none;
    }

    .hero__content {
        text-align: start;
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .control-bar {
        border-radius: 24px;
        justify-content: space-between;
    }

    .section__content {
        padding: 2.25rem;
    }

    .contact {
        flex-direction: column;
    }

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

    .dot-nav {
        display: none;
    }
}

@media (max-width: 540px) {
    .control-bar__group--brand {
        flex-direction: column;
        align-items: flex-start;
    }
}
