/**
 * Wardiyat public site — tokens + sections that sit on top of marketing.css
 * (the Lamat design system, scoped under `.mkt`).
 *
 * Everything is written with logical properties so Arabic (RTL) mirrors for free.
 * Dark mode = `html[data-theme="dark"]` re-declaring the tokens at the bottom.
 */

:root {
    --primary: #7c3aed;
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #a78bfa;
    --primary-500: #8b5cf6;
    --primary-600: #7c3aed;
    --primary-700: #6d28d9;
    --primary-800: #5b21b6;
    --primary-900: #4c1d95;
    --primary-950: #3b0764;
    --accent: #06d6a0;
    --text: #0f0820;
    --text-2: #3f3a4e;
    --muted: #6b6780;
    --line: #ece9f2;
    --bg: #f5f5f7;
    --surface: #ffffff;
    --danger: #dc2626;
    --success: #16a34a;
    --font-body: 'Thmanyah Serif Display', Inter, 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
    --font-display: 'Thmanyah Serif Display', 'Fraunces', 'IBM Plex Sans Arabic', serif;
    color-scheme: light;
}

[dir='rtl'] {
    --font-body: 'Thmanyah Serif Display', 'IBM Plex Sans Arabic', Inter, system-ui, -apple-system, sans-serif;
    --font-display: 'Thmanyah Serif Display', 'IBM Plex Sans Arabic', serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.mkt img {
    max-width: 100%;
}

.mkt a {
    text-decoration: none;
}

.wd-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ── Nav additions: menu links + theme toggle ─────────────── */

.wd-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}

.wd-menu__link {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--mkt-ink-2);
    border: 1px solid transparent;
    transition: background 180ms var(--mkt-ease), color 180ms var(--mkt-ease), border-color 180ms var(--mkt-ease);
    white-space: nowrap;
}

.wd-menu__link:hover,
.wd-menu__link:focus-visible {
    background: var(--mkt-primary-50, var(--primary-50));
    border-color: var(--primary-100);
    color: var(--mkt-primary);
    outline: none;
}

.wd-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--mkt-line-strong);
    background: var(--mkt-surface);
    color: var(--mkt-ink-2);
    cursor: pointer;
    transition: color 180ms var(--mkt-ease), border-color 180ms var(--mkt-ease), transform 180ms var(--mkt-ease);
}

.wd-theme:hover {
    color: var(--mkt-primary);
    border-color: var(--primary-300);
    transform: translateY(-1px);
}

.wd-theme svg {
    width: 18px;
    height: 18px;
}

.wd-theme .wd-theme__sun,
html[data-theme='dark'] .wd-theme .wd-theme__moon {
    display: none;
}

html[data-theme='dark'] .wd-theme .wd-theme__sun {
    display: block;
}

.mkt-nav__logo {
    height: 44px;
    width: auto;
}

html[data-theme='dark'] .mkt-nav__logo,
.wd-footer__logo {
    filter: brightness(0) invert(1);
}

.wd-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 900 22px/1 var(--font-display);
    color: var(--mkt-ink);
}

.mkt-nav__burger {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mkt-nav__burger svg {
    width: 20px;
    height: 20px;
}

.mkt-drawer[hidden] {
    display: none;
}

@media (max-width: 1080px) {
    .wd-menu {
        display: none;
    }

    .mkt-nav__actions {
        margin-inline-start: auto;
    }

    .mkt-nav__burger {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .wd-hide-sm {
        display: none !important;
    }
}

/* ── Hero: large image with the copy on top ───────────────── */

.wd-hero {
    padding-block: 20px 0;
}

.wd-hero__frame {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: min(78vh, 680px);
    border-radius: var(--mkt-radius-xl);
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #fff;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 30px 70px -40px rgba(49, 16, 110, 0.7);
}

.wd-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 30%;
    z-index: -2;
    transform: scale(1.02);
    animation: wd-hero-zoom 18s var(--mkt-ease) infinite alternate;
}

.wd-hero__frame::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(21, 7, 41, 0.1) 0%, rgba(21, 7, 41, 0) 35%, rgba(21, 7, 41, 0.55) 78%, rgba(21, 7, 41, 0.9) 100%),
        linear-gradient(90deg, rgba(21, 7, 41, 0.94) 0%, rgba(30, 12, 66, 0.86) 34%, rgba(49, 16, 110, 0.45) 56%, rgba(21, 7, 41, 0) 78%);
}

/* The copy sits on the reading-start side, so the dark wash follows it. */
[dir='rtl'] .wd-hero__frame::before {
    background:
        linear-gradient(180deg, rgba(21, 7, 41, 0.1) 0%, rgba(21, 7, 41, 0) 35%, rgba(21, 7, 41, 0.55) 78%, rgba(21, 7, 41, 0.9) 100%),
        linear-gradient(270deg, rgba(21, 7, 41, 0.94) 0%, rgba(30, 12, 66, 0.86) 34%, rgba(49, 16, 110, 0.45) 56%, rgba(21, 7, 41, 0) 78%);
}

.wd-hero__img {
    object-position: 0% 30%;
}

[dir='ltr'] .wd-hero__img {
    object-position: 100% 30%;
}

.wd-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: clamp(24px, 5vw, 56px);
    max-width: 640px;
    align-self: center;
}

.wd-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
}

.wd-hero__eyebrow i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(6, 214, 160, 0.25);
}

.wd-hero__title {
    margin: 0;
    font: 900 clamp(30px, 4.6vw, 54px) / 1.12 var(--font-display);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

[dir='rtl'] .wd-hero__title {
    letter-spacing: 0;
    line-height: 1.28;
}

.wd-hero__title span {
    display: block;
    background: linear-gradient(100deg, #c4b5fd, #f0abfc 55%, #fda4af);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wd-hero__lead {
    margin: 0;
    max-width: 60ch;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.wd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.wd-hero .mkt-btn--ghost {
    background: rgba(255, 255, 255, 0.94);
    border-color: transparent;
    color: #1e1b4b;
}

.wd-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.wd-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 14px;
    background: rgba(11, 5, 24, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    backdrop-filter: blur(8px);
    transition: transform 200ms var(--mkt-ease), background 200ms var(--mkt-ease);
}

.wd-store:hover {
    transform: translateY(-2px);
    background: rgba(11, 5, 24, 0.8);
    color: #fff;
}

.wd-store svg {
    width: 22px;
    height: 22px;
    flex: none;
}

.wd-store small {
    display: block;
    font-size: 10px;
    opacity: 0.75;
    line-height: 1.2;
}

.wd-store strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    font-family: Inter, system-ui, sans-serif;
}

@keyframes wd-hero-zoom {
    to {
        transform: scale(1.09);
    }
}

/* ── Section heading ──────────────────────────────────────── */

.wd-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 44px;
}

.wd-head .mkt-lead {
    margin: 0;
}

.wd-head .mkt-h2 {
    margin: 0;
}

.wd-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

/* ── Sectors grid (cards: name + icon tile) ───────────────── */

.wd-sectors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* a short last row sits in the middle */
    gap: 18px;
}

.wd-sectors > .wd-sector {
    flex: 0 1 calc((100% - 54px) / 4);
    min-width: 0;
}

.wd-sector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 96px;
    padding: 16px 18px;
    border-radius: 20px;
    background: var(--mkt-tint);
    border: 1px solid var(--mkt-line);
    color: var(--mkt-ink);
    transition: transform 240ms var(--mkt-ease), box-shadow 240ms var(--mkt-ease), border-color 240ms var(--mkt-ease), background 240ms var(--mkt-ease);
}

.wd-sector:hover,
.wd-sector:focus-visible {
    transform: translateY(-4px);
    background: var(--mkt-surface);
    border-color: var(--primary-200);
    box-shadow: var(--mkt-shadow-md);
    color: var(--mkt-primary);
    outline: none;
}

.wd-sector__name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
}

.wd-sector__count {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mkt-muted);
}

.wd-sector__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-line);
    color: var(--mkt-primary);
    box-shadow: var(--mkt-shadow-xs);
    transition: transform 280ms var(--mkt-ease-spring);
}

.wd-sector:hover .wd-sector__icon {
    transform: rotate(-6deg) scale(1.08);
}

.wd-sector__icon {
    overflow: hidden;
}

/* Category images are usually photos: fill the tile instead of shrinking them to a sliver */
.wd-sector__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wd-sector__icon svg {
    width: 28px;
    height: 28px;
}

/* ── Trusted companies ────────────────────────────────────── */

.wd-clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.wd-client {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 calc((100% - 72px) / 5);
    min-width: 0;
    height: 96px;
    padding: 16px 22px;
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-line);
    border-radius: 18px;
    box-shadow: 0 6px 18px -12px rgba(15, 8, 40, 0.25);
    transition: transform 240ms var(--mkt-ease), box-shadow 240ms var(--mkt-ease);
}

.wd-client:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--primary) 35%, transparent);
}

.wd-client img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter 240ms, opacity 240ms;
}

.wd-client:hover img {
    filter: none;
    opacity: 1;
}

/* ── Stats ────────────────────────────────────────────────── */

.wd-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.wd-stat {
    position: relative;
    padding: 34px 18px 26px;
    text-align: center;
    background: var(--mkt-surface);
    border: 1px solid var(--mkt-line);
    border-radius: 24px;
    box-shadow: var(--mkt-shadow-sm);
    overflow: hidden;
    transition: transform 240ms var(--mkt-ease), box-shadow 240ms var(--mkt-ease), border-color 240ms var(--mkt-ease);
}

.wd-stat::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mkt-primary), var(--mkt-accent));
    opacity: 0.5;
}

.wd-stat:hover {
    transform: translateY(-6px);
    border-color: var(--primary-200);
    box-shadow: var(--mkt-shadow-md);
}

.wd-stat__value {
    font: 900 clamp(34px, 3.6vw, 50px) / 1.1 var(--font-display);
    font-variant-numeric: tabular-nums;
    direction: ltr;
    background: linear-gradient(120deg, var(--mkt-primary), var(--mkt-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wd-stat__label {
    margin-top: 12px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--mkt-muted);
}

/* ── Features ─────────────────────────────────────────────── */

.wd-feats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.wd-feat {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 26px 24px;
    border-radius: 22px;
}

.wd-feat__icon {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    color: var(--mkt-primary);
    isolation: isolate;
}

.wd-feat__icon::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
    background: linear-gradient(150deg, var(--primary-100), rgb(240 171 252 / 35%));
    transform: rotate(-8deg);
    transition: transform 320ms var(--mkt-ease-spring);
}

.wd-feat:hover .wd-feat__icon::before {
    transform: rotate(6deg) scale(1.06);
}

.wd-feat__icon svg {
    width: 30px;
    height: 30px;
}

.wd-audience {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wd-audience .mkt-card {
    padding: 28px;
}

.wd-audience p {
    margin: 14px 0 0;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--mkt-on-dark-muted);
}

/* ── Blog cards ───────────────────────────────────────────── */

.wd-blogs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.wd-blog {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--mkt-line);
    border-radius: 20px;
    background: var(--mkt-surface);
    overflow: hidden;
    color: var(--mkt-ink);
    transition: transform 240ms var(--mkt-ease), box-shadow 240ms var(--mkt-ease), border-color 240ms var(--mkt-ease);
}

.wd-blog:hover {
    transform: translateY(-4px);
    border-color: var(--primary-200);
    box-shadow: var(--mkt-shadow-md);
    color: var(--mkt-ink);
}

.wd-blog__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--mkt-tint-2);
}

.wd-blog__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 20px;
}

.wd-blog__date {
    font-size: 12.5px;
    color: var(--mkt-muted);
}

.wd-blog__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.wd-blog__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--mkt-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wd-blog__more {
    margin-top: 4px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--mkt-primary);
}

/* ── Contact ──────────────────────────────────────────────── */

.wd-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.wd-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 28px;
}

.wd-form .mkt-btn {
    justify-self: start;
    cursor: pointer;
}

.wd-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.wd-field--full {
    grid-column: 1 / -1;
}

.wd-field label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mkt-ink-2);
}

.wd-input {
    width: 100%;
    padding: 13px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--mkt-ink);
    background: var(--mkt-tint);
    border: 1px solid var(--mkt-line);
    border-radius: 12px;
    outline: none;
    transition: border-color 160ms, box-shadow 160ms, background 160ms;
}

textarea.wd-input {
    min-height: 130px;
    resize: vertical;
}

.wd-input:focus {
    border-color: var(--mkt-primary);
    background: var(--mkt-surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.wd-input.is-invalid {
    border-color: var(--danger);
}

.wd-input[type='tel'],
.wd-input[type='email'] {
    direction: ltr;
    text-align: start;
}

[dir='rtl'] .wd-input[type='tel'],
[dir='rtl'] .wd-input[type='email'] {
    text-align: right;
}

.wd-error {
    font-size: 12.5px;
    color: var(--danger);
}

.wd-alert {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.wd-alert--danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.wd-side {
    padding: 28px;
}

.wd-side h3 {
    margin: 0 0 8px;
}

.wd-side p {
    margin: 0 0 18px;
    color: var(--mkt-muted);
    font-size: 14.5px;
    line-height: 1.7;
}

.wd-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid var(--mkt-line);
    background: var(--mkt-tint);
    color: var(--mkt-ink);
    font-weight: 700;
    font-size: 14.5px;
    transition: border-color 180ms, color 180ms, transform 180ms;
}

a.wd-channel:hover {
    border-color: var(--primary-300);
    color: var(--mkt-primary);
    transform: translateY(-2px);
}

.wd-channel svg {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--mkt-primary);
}

.wd-channel span {
    direction: ltr;
    unicode-bidi: isolate;
    overflow-wrap: anywhere;
}

/* ── Footer bits ──────────────────────────────────────────── */

.wd-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-block: 12px 36px;
}

.wd-footer__about {
    margin: 14px 0 0;
    max-width: 44ch;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--mkt-on-dark-muted);
}

.wd-footer__logo {
    height: 48px;
    width: auto;
    align-self: flex-start;
}

.wd-footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.wd-footer .wd-stores {
    flex-direction: column;
    align-items: flex-start;
}

/* ── Scroll reveal (hidden state added by JS only) ────────── */

.wd-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms var(--mkt-ease), transform 620ms var(--mkt-ease);
    transition-delay: var(--wd-delay, 0ms);
}

.wd-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1024px) {
    .wd-sectors > .wd-sector {
        flex-basis: calc((100% - 18px) / 2);
    }

    .wd-client {
        flex-basis: calc((100% - 36px) / 3);
    }

    .wd-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wd-blogs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wd-contact {
        grid-template-columns: minmax(0, 1fr);
    }

    .wd-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mkt,
    .mkt-portal {
        --mkt-gutter: 16px;
        --mkt-section-y: 64px;
    }

    .wd-hero__frame {
        min-height: 620px;
        border-radius: 24px;
    }

    .wd-hero__actions .mkt-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .wd-head {
        margin-bottom: 28px;
    }

    .wd-sectors {
        gap: 10px;
    }

    .wd-sectors > .wd-sector {
        flex-basis: calc((100% - 10px) / 2);
    }

    .wd-sector {
        flex-direction: column-reverse;
        align-items: flex-start;
        min-height: 0;
        padding: 14px;
    }

    .wd-sector__name {
        font-size: 15px;
    }

    .wd-sector__icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .wd-sector__icon img {
        width: 100%;
        height: 100%;
    }

    .wd-clients {
        gap: 10px;
    }

    .wd-client {
        flex-basis: calc((100% - 10px) / 2);
        height: 78px;
    }

    .wd-stats {
        gap: 10px;
    }

    .wd-stat {
        padding: 24px 10px 18px;
    }

    .wd-feats,
    .wd-audience,
    .wd-blogs {
        grid-template-columns: minmax(0, 1fr);
    }

    .wd-form {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
    }

    .wd-form .mkt-btn {
        justify-self: stretch;
        justify-content: center;
    }

    .wd-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .mkt-cta {
        padding: 48px 20px;
    }
}

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

    .wd-hero__img {
        animation: none;
    }

    .wd-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Dark mode ────────────────────────────────────────────── */

html[data-theme='dark'] {
    color-scheme: dark;
    --text: #f7f3ff;
    --text-2: #d9d2ee;
    --muted: #a8a1c0;
    --line: #2f2350;
    --bg: #0f0720;
    --surface: #150a2b;
}

html[data-theme='dark'] .mkt,
html[data-theme='dark'] .mkt-portal {
    --mkt-ink: #f7f3ff;
    --mkt-ink-2: #d9d2ee;
    --mkt-muted: #a8a1c0;
    --mkt-muted-2: #8780a1;
    --mkt-surface: #150a2b;
    --mkt-tint: #1b0f36;
    --mkt-tint-2: #23143f;
    --mkt-line: #2f2350;
    --mkt-line-strong: #40305f;
    --mkt-primary: #a78bfa;
    --mkt-primary-hover: #c4b5fd;
    --mkt-primary-50: #23143f;
    --mkt-primary-100: #2f1c57;
    --mkt-primary-200: #45297c;
    --primary-50: #23143f;
    --primary-100: #2f1c57;
    --primary-200: #45297c;
    --primary-300: #5b3aa0;
    --mkt-shadow-xs: 0 1px 2px rgb(0 0 0 / 40%);
    --mkt-shadow-sm: 0 2px 8px rgb(0 0 0 / 40%);
    --mkt-shadow-md: 0 12px 32px -12px rgb(0 0 0 / 60%);
    --mkt-shadow-lg: 0 32px 64px -24px rgb(0 0 0 / 70%);
}

html[data-theme='dark'] body {
    background: #150a2b;
}

html[data-theme='dark'] .mkt-nav {
    background: rgb(21 10 43 / 78%);
}

html[data-theme='dark'] .mkt-nav.is-stuck {
    background: rgb(21 10 43 / 94%);
}

html[data-theme='dark'] .mkt-card,
html[data-theme='dark'] .mkt-drawer__panel,
html[data-theme='dark'] .mkt-lang__btn.is-on {
    background: var(--mkt-tint);
}

html[data-theme='dark'] .mkt-btn--ghost {
    background: var(--mkt-tint-2);
    color: var(--mkt-ink);
}

html[data-theme='dark'] .mkt-btn--primary {
    background: #7c3aed;
    color: #fff;
}

html[data-theme='dark'] .mkt-btn--primary:hover {
    background: #8b5cf6;
}

html[data-theme='dark'] .mkt-eyebrow {
    color: #c4b5fd;
}

html[data-theme='dark'] .wd-client {
    background: #f4f1fb;
}

html[data-theme='dark'] .wd-alert {
    background: #052e16;
    color: #bbf7d0;
    border-color: #14532d;
}

html[data-theme='dark'] .wd-alert--danger {
    background: #450a0a;
    color: #fecaca;
    border-color: #7f1d1d;
}
