/* ============================================================================
   base.css — design tokens, reset, typography and shared primitives.
   Loaded first; everything else builds on top of it.
   ========================================================================== */

/* ─────────────────────────────  tokens  ───────────────────────────── */
:root {
    --red: #e51d28;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.13);
    --hairline: rgba(255, 255, 255, 0.1);
    --gutter: 88px;
    --container: 1264px;

    /* Self-hosted brand face; see css/fonts.css. The rest is a system stack
       that only shows if the woff2 files fail to load. */
    --font: 'thmanyah sans', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

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

ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dt, dd { margin: 0; }

/* The header is `position: fixed` and 84px tall, so every one of the five nav links used to put
   the section's own heading *behind* it — the visitor arrived at a section already scrolled past its
   title. `scroll-padding` on the scroller rather than `scroll-margin` on each target: it is stated
   once and covers any anchor added later. 100 is the bar plus a little air. */
html { scroll-behavior: smooth; scroll-padding-block-start: 100px; }

body {
    margin: 0;
    padding: 0;
    /* Deep navy sampled from the footage itself — no black wash over the
       frame sequence, it just prevents a flash before frame 0 decodes. */
    background-color: #050d1f;
    color: #fff;
    text-shadow: 0 1px 20px rgba(3, 8, 20, 0.55);
    font-family: var(--font);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ───────────────────────────  primitives  ─────────────────────────── */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

section {
    position: relative;
    overflow: hidden;
}

/* Glass keeps the design's white translucency, with a navy tint drawn
   from the footage so copy stays readable over the bright cloud frames. */
.glass {
    background:
        linear-gradient(rgba(6, 14, 32, 0.44), rgba(6, 14, 32, 0.44)),
        var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    text-align: center;
    margin: 0;
}

.headline {
    font-size: 54px;
    line-height: 68px;
    font-weight: 500;
    letter-spacing: -1.08px;
    text-align: center;
    margin: 0;
    /* The English headlines are longer than the Arabic ones and were dropping a
       single word onto a line of its own; balancing evens the lines instead. */
    text-wrap: balance;
    /* Large type lands over the brightest cloud frames — this reads as
       depth rather than a plate behind the text. */
    text-shadow: 0 2px 32px rgba(3, 8, 20, 0.72), 0 1px 3px rgba(3, 8, 20, 0.45);
}

.lede {
    font-size: 15px;
    line-height: 26px;
    text-align: center;
    opacity: 0.55;
    margin: 0 auto;
    max-width: 560px;
    /* A lede that spills one last word onto a line of its own reads as a mistake;
       this pulls a word down instead of leaving the orphan. */
    text-wrap: pretty;
}

/* ────────────────────────────  buttons  ───────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 99px;
    text-decoration: none;
    color: #fff;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--red); font-weight: 700; }
.btn--primary:hover { background: #f52a36; }

.btn--secondary { border-color: rgba(255, 255, 255, 0.3); font-weight: 500; }
.btn--secondary:hover { border-color: rgba(255, 255, 255, 0.6); }

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
}

.glow {
    position: absolute;
    pointer-events: none;
    max-width: none;
}
