/* Sahlah company site. No external fonts or assets: system fonts with good Arabic coverage. */
:root {
    --bg: #f7f5f0;
    --surface: #ffffff;
    --surface-2: #efece4;
    --ink: #14161b;
    --muted: #5b606b;
    --line: #e2ddd1;
    --accent: #2c4bd8;
    --accent-ink: #ffffff;
    --na3eman: #c47a98;
    --wasel: #f26b1d;
    --widdy: #1f6f50;
    --e3rfni: #6b4fd8;
    --radius: 20px;
    --shadow: 0 1px 2px rgb(20 22 27 / 6%), 0 12px 32px -12px rgb(20 22 27 / 18%);
    --font: "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", "Noto Sans", "Geeza Pro", Tahoma, Arial, sans-serif;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1115;
        --surface: #171a20;
        --surface-2: #13161b;
        --ink: #eef0f4;
        --muted: #a2a8b4;
        --line: #272b33;
        --accent: #7d94ff;
        --accent-ink: #0f1115;
        --na3eman: #e3a3bd;
        --wasel: #ff8a45;
        --widdy: #4fbf8f;
        --e3rfni: #a28dff;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    font-size: 1.0625rem;
    text-rendering: optimizeLegibility;
}
[dir="ltr"] body { line-height: 1.6; }

a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip {
    position: absolute; inset-inline-start: 1rem; top: -3rem;
    background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 10px; z-index: 10;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.topbar {
    position: sticky; top: 0; z-index: 5;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__bg { fill: var(--ink); }
.brand__s { fill: none; stroke: var(--bg); stroke-width: 2.6; stroke-linecap: round; }
.brand__name { font-weight: 800; font-size: 1.3rem; }
.nav { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.lang {
    font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
    min-width: 44px; height: 38px; padding: 0 .8rem;
    color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.lang:hover { border-color: var(--ink); }
@media (max-width: 640px) { .nav { display: none; } .lang { margin-inline-start: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero__glow {
    position: absolute; inset: -30% -10% auto; height: 120%; pointer-events: none; opacity: .55;
    background:
        radial-gradient(40% 50% at 20% 30%, color-mix(in srgb, var(--na3eman) 45%, transparent), transparent 70%),
        radial-gradient(35% 45% at 80% 20%, color-mix(in srgb, var(--wasel) 35%, transparent), transparent 70%),
        radial-gradient(40% 50% at 60% 80%, color-mix(in srgb, var(--widdy) 35%, transparent), transparent 70%),
        radial-gradient(30% 40% at 35% 85%, color-mix(in srgb, var(--e3rfni) 30%, transparent), transparent 70%);
    filter: blur(40px);
}
.hero__inner { position: relative; max-width: 820px; }
.eyebrow {
    display: inline-block; font-size: .85rem; font-weight: 700; color: var(--muted);
    letter-spacing: .02em; margin-bottom: 1rem;
}
[dir="ltr"] .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.hero__title { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; }
.hero__lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 680px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 1.5rem;
    border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); }
.hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.chip {
    font-size: .88rem; font-weight: 700; padding: .35rem .9rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
}
.chip::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-inline-end: .45rem; vertical-align: middle; }
.chip--na3eman::before { background: var(--na3eman); }
.chip--wasel::before { background: var(--wasel); }
.chip--widdy::before { background: var(--widdy); }
.chip--e3rfni::before { background: var(--e3rfni); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 2.75rem; }
.section__head h2, .about h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.section__lead { margin-top: .9rem; color: var(--muted); font-size: 1.1rem; }

/* Product cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
    --c: var(--accent);
    position: relative; display: flex; flex-direction: column; gap: .7rem;
    padding: 1.75rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease;
}
.card::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--radius) var(--radius) 0 0;
    background: var(--c);
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.card--na3eman { --c: var(--na3eman); }
.card--wasel { --c: var(--wasel); }
.card--widdy { --c: var(--widdy); }
.card--e3rfni { --c: var(--e3rfni); }
.card__icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.45rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; }
.card__tag { font-weight: 700; color: var(--c); font-size: .98rem; }
.card__body { color: var(--muted); font-size: 1rem; flex: 1; }
.card__link {
    margin-top: .6rem; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .75rem;
    padding: .75rem 1rem; border-radius: 14px; text-decoration: none; font-weight: 700;
    background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--ink);
}
.card__link > span:first-child { white-space: nowrap; }
.card__link::after { content: "←"; grid-column: 2; grid-row: 1 / span 2; color: var(--c); font-weight: 800; font-size: 1.15rem; }
[dir="ltr"] .card__link::after { content: "→"; }
.card__link:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
.card__host { grid-column: 1; font-size: .8rem; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; text-align: start; }
.card__link.card__link--disabled { color: var(--muted); cursor: default; }
.card__link.card__link--disabled::after { content: none; }
.card--soon:hover { transform: none; }
.badge {
    font-size: .72rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px;
    background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
}

/* About */
.about { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
.about__text { display: grid; gap: 1.1rem; color: var(--muted); font-size: 1.1rem; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* Principles */
.principles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.principle { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.principle__num { display: block; font-weight: 800; color: var(--accent); font-size: .9rem; margin-bottom: .9rem; font-variant-numeric: tabular-nums; }
.principle h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: .5rem; }
.principle p { color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.footer__brand { display: flex; flex-direction: column; }
.footer__tagline { color: var(--muted); font-size: .92rem; }
.footer__links { display: flex; gap: 1.25rem; margin-inline-start: auto; }
.footer__links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { width: 100%; color: var(--muted); font-size: .85rem; }
