/* =========================================================================
   Drugate — Landing stylesheet v3
   Brand: Night / Lapis / Pulse (teal) / Gold / Ice.
   Light mode uses darkened teal (#159C89) + darkened gold (#C7912E) so every
   text pairing clears WCAG AA on the ice background.
   ========================================================================= */

:root {
    /* ---- Brand core ---- */
    --night: #081A45;
    --lapis: #1A3E8C;
    --pulse: #22CDB4;

    /* ---- Light-mode tokens ---- */
    --bg: #F3F7FC;
    --bg-2: #E9F1FA;
    --panel: #FFFFFF;
    --line: #D8E2F0;
    --line-soft: rgba(8, 26, 69, .07);
    --txt: #081A45;
    --muted: #5A6C96;
    --dim: #8A9BC4;
    --accent: #159C89;         /* teal — CTAs & links */
    --accent-strong: #22CDB4;  /* bright pulse for glows/gradients */
    --gold: #C7912E;
    --danger: #D64545;

    /* ---- Legacy aliases (keep older rules + inline styles working) ---- */
    --green: #159C89;
    --green-600: #0f8577;
    --green-700: #0b6a5e;
    --green-050: #e4f5f1;
    --green-100: #c8ebe4;
    --accent-600: #0f8577;
    --accent-050: #e4f5f1;
    --accent-ink: #ffffff;
    --ink: #081A45;
    --ink-2: #3a4d7a;
    --bg-soft: #EDF3FB;
    --blue: #1A3E8C;
    --blue-050: #e7ecf8;
    --gold-ink: #C7912E;

    /* ---- Gradients ---- */
    --grad-brand: linear-gradient(150deg, #1A3E8C, #081A45);
    --grad-night: linear-gradient(140deg, #0C2560 0%, #081A45 52%, #050E2A 100%);
    --grad-accent: linear-gradient(135deg, #2FE0C6 0%, #22CDB4 42%, #0F8577 100%);
    --grad-gold: linear-gradient(135deg, #F2D68C 0%, #D9A63F 50%, #B87F22 100%);
    --grad-hairline: linear-gradient(90deg, transparent, rgba(34, 205, 180, .55), rgba(199, 145, 46, .45), transparent);

    /* ---- Glass ---- */
    --glass: rgba(255, 255, 255, .74);
    --glass-line: rgba(255, 255, 255, .8);
    --glass-dark: rgba(255, 255, 255, .06);

    /* ---- Radii ---- */
    --radius-xs: 12px;
    --radius-sm: 16px;
    --radius: 22px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-pill: 999px;

    /* ---- Elevation ---- */
    --shadow-xs: 0 1px 2px rgba(8, 26, 69, .06);
    --shadow-sm: 0 2px 8px rgba(8, 26, 69, .06), 0 1px 2px rgba(8, 26, 69, .04);
    --shadow-md: 0 16px 38px -14px rgba(8, 26, 69, .28), 0 2px 8px rgba(8, 26, 69, .05);
    --shadow-lg: 0 40px 80px -28px rgba(8, 26, 69, .42), 0 6px 18px rgba(8, 26, 69, .07);
    --shadow-primary: 0 14px 30px -10px rgba(21, 156, 137, .55);
    --shadow-accent: 0 14px 30px -10px rgba(21, 156, 137, .55);
    --shadow-gold: 0 14px 30px -10px rgba(199, 145, 46, .5);

    /* ---- Motion ---- */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
    --ring: 0 0 0 4px rgba(34, 205, 180, .3);

    /* ---- Layout ---- */
    --container: 1180px;
    --section-y: clamp(50px, 5.4vw, 78px);

    color-scheme: light;
}

/* ===== Dark mode ===== */
html[data-theme="dark"] {
    --bg: #060F2E;
    --bg-2: #081536;
    --panel: #0C1A40;
    --line: #1E3A78;
    --line-soft: rgba(255, 255, 255, .08);
    --txt: #E8EEF9;
    --muted: #9FB2DE;
    --dim: #5F7BC0;
    --accent: #22CDB4;
    --accent-strong: #3DE7CD;
    --gold: #E8B54A;
    --danger: #E36A6A;

    --green: #22CDB4;
    --green-600: #1fb8a2;
    --green-700: #7FE3D3;
    --green-050: rgba(34, 205, 180, .12);
    --green-100: rgba(34, 205, 180, .24);
    --accent-600: #1fb8a2;
    --accent-050: rgba(34, 205, 180, .12);
    --accent-ink: #04211c;
    --ink: #E8EEF9;
    --ink-2: #C6D3EE;
    --bg-soft: #08153A;
    --blue: #7E9BE0;
    --blue-050: rgba(26, 62, 140, .35);
    --gold-ink: #E8B54A;

    --glass: rgba(12, 26, 64, .66);
    --glass-line: rgba(255, 255, 255, .1);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
    --shadow-md: 0 18px 40px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 44px 90px -30px rgba(0, 0, 0, .85);
    --shadow-primary: 0 14px 34px -12px rgba(34, 205, 180, .5);
    --shadow-accent: 0 14px 34px -12px rgba(34, 205, 180, .5);

    color-scheme: dark;
}

/* =========================================================================
   Base
   ========================================================================= */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}

/* One typeface family (Almarai) carries both body and headings — the same
   pairing pattern used by official Gulf government and banking portals —
   rather than mixing a display script with a separate body face. Hierarchy
   comes from weight and size, which reads as more institutional than a
   decorative multi-font stack. */
body {
    margin: 0;
    font-family: 'Almarai', 'IBM Plex Sans Arabic', 'Cairo', system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5,
.brand-name, .section-head h2, .sec-title, .hero h1, .cta h2, .legal-hero h1 {
    font-family: 'Almarai', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -.2px;
}
.stat-num, .brand-name, .step-n {
    font-family: 'Space Grotesk', 'Almarai', system-ui, sans-serif;
    font-feature-settings: "tnum" 1;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

::selection { background: rgba(34, 205, 180, .28); color: var(--ink); }

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}

.muted { color: var(--muted); font-size: 15px; }
.ic { width: 24px; height: 24px; display: block; }
.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;
}

/* Scroll reveal — only armed once JS confirms it can undo it. */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    transition:
        transform .24s var(--ease-spring),
        box-shadow .28s var(--ease-out),
        background-color .22s ease,
        border-color .22s ease,
        color .22s ease;
}
.btn .btn-ic { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn[disabled], .btn.is-disabled {
    opacity: .5; pointer-events: none; transform: none; box-shadow: none;
}

/* Sheen sweep shared by the filled variants */
.btn-primary::after,
.btn-turquoise::after,
.btn-gold::after,
.btn-whatsapp::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -140%;
    width: 55%;
    z-index: 1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-18deg);
    transition: inset-inline-start .65s var(--ease-out);
}
.btn-primary:hover::after,
.btn-turquoise:hover::after,
.btn-gold:hover::after,
.btn-whatsapp:hover::after { inset-inline-start: 150%; }

/* The lit-surface highlight rides in each button's background stack rather
   than a pseudo-element, so it can never veil the label. */

/* Primary CTA = teal. Gold stays a rare accent, never the main action. */
.btn-primary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%),
        var(--grad-accent);
    color: #fff;
    box-shadow: var(--shadow-primary), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.btn-primary:hover { box-shadow: 0 20px 40px -12px rgba(21, 156, 137, .65), inset 0 0 0 1px rgba(255, 255, 255, .28); }

.btn-turquoise {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, #2FE0C6, var(--green) 55%, var(--green-600));
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-turquoise:hover { box-shadow: 0 20px 40px -12px rgba(21, 156, 137, .6); }

.btn-gold {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%),
        var(--grad-gold);
    color: #2C1D05;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover { box-shadow: 0 20px 40px -12px rgba(199, 145, 46, .6); }

/* WhatsApp is a rare, purpose-specific accent — only where an action truly
   hands off to a WhatsApp chat, so the colour keeps its meaning. */
.btn-whatsapp {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, #2DD65E 0%, #1DA851 60%, #128C42 100%);
    color: #fff;
    box-shadow: 0 14px 30px -10px rgba(29, 168, 81, .55), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.btn-whatsapp:hover { box-shadow: 0 20px 40px -12px rgba(29, 168, 81, .65), inset 0 0 0 1px rgba(255, 255, 255, .28); }

.btn-ghost {
    background: var(--panel);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
}
.btn-ghost:hover {
    background: var(--bg-soft);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: currentColor;
}
.btn-outline:hover { background: var(--accent-050); }

.btn-white {
    background: #fff;
    color: #0b6a5e;
    box-shadow: var(--shadow-md);
}
.btn-white:hover { box-shadow: var(--shadow-lg); }

/* On dark surfaces (hero band, CTA panel, footer) */
.btn-glass {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border-color: rgba(255, 255, 255, .24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .42); }

.btn-lg { padding: 16px 34px; font-size: 16.5px; }
.btn-lg .btn-ic { width: 21px; height: 21px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-sm .btn-ic { width: 17px; height: 17px; }
.btn-block { width: 100%; }

/* Quiet text link with a sliding arrow */
.link-arrow {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--accent); font-weight: 700; font-size: 14.5px;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(-4px); }
[dir="ltr"] .link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================================
   Store buttons
   ========================================================================= */
.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
    position: relative;
    display: inline-flex; align-items: center; gap: 12px;
    background: linear-gradient(160deg, #16243F, #070E1E);
    color: #fff;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, .1);
    overflow: hidden;
    min-width: 200px;
    box-shadow: 0 14px 30px -12px rgba(5, 14, 42, .7);
    transition: transform .24s var(--ease-spring), box-shadow .28s var(--ease-out), border-color .22s;
}
.store-btn::after {
    content: "";
    position: absolute; inset-block: 0; inset-inline-start: -140%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
    transform: skewX(-18deg);
    transition: inset-inline-start .7s var(--ease-out);
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 22px 42px -14px rgba(5, 14, 42, .8); border-color: rgba(34, 205, 180, .5); }
.store-btn:hover::after { inset-inline-start: 150%; }
.store-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.store-logo {
    width: 34px; height: 34px; flex: none;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .1);
    border-radius: 11px;
}
.store-logo svg { width: 22px; height: 22px; }
.store-btn .st-text { display: flex; flex-direction: column; line-height: 1.2; text-align: start; }
.store-btn .st-small { font-size: 11px; opacity: .8; font-weight: 500; }
.store-btn .st-big { font-size: 16.5px; font-weight: 800; letter-spacing: .2px; }
.store-buttons.light .store-btn {
    background: #fff; color: #081A45; border-color: rgba(8, 26, 69, .08);
    box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .55);
}
.store-buttons.light .store-logo { background: #EEF3FB; }
.store-buttons.compact .store-btn { min-width: 0; width: 100%; padding: 9px 18px; }

/* =========================================================================
   Header
   ========================================================================= */
.scroll-progress {
    position: fixed; inset-block-start: 0; inset-inline: 0;
    height: 3px; z-index: 60; pointer-events: none;
    background: var(--grad-accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .1s linear;
}
[dir="ltr"] .scroll-progress { transform-origin: left center; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
    .site-header { background: rgba(255, 255, 255, .82); }
    html[data-theme="dark"] .site-header { background: rgba(6, 15, 46, .82); }
}
.site-header.is-scrolled {
    border-bottom-color: var(--line-soft);
    box-shadow: 0 10px 30px -20px rgba(8, 26, 69, .55);
}
.site-header .bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
    width: 44px; height: 44px; display: grid; place-items: center;
    background: var(--grad-brand);
    color: #fff; border-radius: 13px;
    box-shadow: var(--shadow-primary);
}
.brand .logo svg { width: 24px; height: 24px; }
.brand-name { font-weight: 800; font-size: 18px; display: block; line-height: 1.2; letter-spacing: .3px; }
.brand-tag { font-size: 12px; color: var(--muted); display: block; }
.brand-logo { display: block; width: auto; transition: transform .3s var(--ease-out); }
.brand:hover .brand-logo { transform: scale(1.03); }
.site-header .brand .brand-tag {
    padding-inline-start: 12px;
    border-inline-start: 1px solid var(--line);
    line-height: 1.35;
    max-width: 8.5rem;
}
.dg-logo-on-dark { display: none; }
[data-theme="dark"] .dg-logo-on-dark { display: block; }
[data-theme="dark"] .dg-logo-on-light { display: none; }

.nav { display: flex; align-items: center; gap: 2px; }
/* Six Arabic labels plus the two action buttons only clear the 1180px bar with
   restrained horizontal padding; nowrap keeps a two-word label such as
   "من نحن" on one line rather than stacking it when space runs short. */
.nav a.navlink {
    position: relative;
    padding: 9px 10px; border-radius: var(--radius-pill);
    color: var(--ink-2);
    font-weight: 600; font-size: 15px;
    white-space: nowrap;
    transition: background .22s, color .22s;
}
.nav a.navlink::after {
    content: "";
    position: absolute; bottom: 3px; inset-inline: 50%;
    height: 2px; border-radius: 2px;
    background: var(--accent);
    transition: inset-inline .28s var(--ease-out), opacity .22s;
    opacity: 0;
}
.nav a.navlink:hover { color: var(--accent); background: var(--accent-050); }
.nav a.navlink.is-active { color: var(--accent); font-weight: 700; }
.nav a.navlink.is-active::after { inset-inline: 22%; opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: 10px; }
.nav-login {
    color: var(--green-700);
    border-color: var(--green-100);
    background: var(--green-050);
    box-shadow: none;
}
.nav-login:hover {
    background: var(--panel);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.theme-toggle {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--panel); border: 1px solid var(--line);
    color: var(--txt); cursor: pointer; box-shadow: var(--shadow-xs);
    transition: background .22s, color .22s, border-color .22s, transform .24s var(--ease-spring);
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-12deg); border-color: var(--accent); color: var(--accent); }
.theme-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
.btn-sm.theme-toggle { width: 42px; height: 42px; }

.nav-toggle {
    display: none; background: var(--panel); border: 1px solid var(--line);
    border-radius: 14px; width: 46px; height: 46px; cursor: pointer;
    align-items: center; justify-content: center; box-shadow: var(--shadow-xs);
    color: var(--ink);
}
.nav-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: currentColor;
    border-radius: 2px; position: relative; transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-backdrop {
    position: fixed; inset: 0; z-index: 45;
    background: rgba(8, 26, 69, .45);
    backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* =========================================================================
   Hero
   ========================================================================= */
/* A still, deliberately composed backdrop — a soft directional wash in the
   brand's own navy/teal, plus a fine architectural grid — rather than the
   drifting, multi-hued blurred blobs that read as generic AI-template
   decoration. Nothing here moves or spins. */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 4.2vw, 58px) 0 clamp(42px, 5vw, 70px);
    background:
        radial-gradient(1200px 520px at 100% -12%, rgba(26, 62, 140, .09), transparent 62%),
        radial-gradient(920px 440px at -8% 112%, rgba(21, 156, 137, .07), transparent 58%),
        var(--bg);
    border-bottom: 1px solid var(--line-soft);
}
html[data-theme="dark"] .hero {
    background:
        radial-gradient(1200px 520px at 100% -12%, rgba(34, 205, 180, .14), transparent 62%),
        radial-gradient(920px 440px at -8% 112%, rgba(26, 62, 140, .32), transparent 58%),
        var(--bg);
}

/* Faint architectural grid, faded at the edges — a technical, blueprint-like
   cue rather than a decorative one. */
.hero-grid-lines {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 78% 60% at 50% 32%, #000 15%, transparent 72%);
    mask-image: radial-gradient(ellipse 78% 60% at 50% 32%, #000 15%, transparent 72%);
    opacity: .5;
}

.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 60px); align-items: center;
}

/* An official credential ribbon: solid brand navy, finished with a gold
   hairline and a warm sheen. Gold stays a hairline here — never fill or
   body text — so it reads as an engraved seal rather than costume trim.
   Replaces the frosted-glass chip and its pulsing "live" dot. */
.pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding-block: 6px;
    padding-inline: 7px 20px;
    background:
        linear-gradient(180deg, rgba(199, 145, 46, .12), transparent 62%),
        var(--grad-night);
    color: #E9F0FB;
    border: 1px solid rgba(199, 145, 46, .5);
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: 13.5px;
    margin-bottom: 16px;
    box-shadow:
        0 14px 30px -16px rgba(8, 26, 69, .8),
        inset 0 1px 0 rgba(240, 206, 122, .18);
}
.pill .pill-seal {
    flex: none;
    display: grid; place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(199, 145, 46, .55), 0 1px 3px rgba(8, 26, 69, .35);
}
.pill .pill-seal img { border-radius: 6px; }
html[data-theme="dark"] .pill {
    border-color: rgba(232, 181, 74, .45);
    color: #EAF1FC;
    box-shadow: inset 0 1px 0 rgba(240, 206, 122, .16);
}

.hero h1 {
    font-size: clamp(33px, 4.9vw, 58px);
    line-height: 1.2; margin: 0 0 14px;
    font-weight: 800; letter-spacing: -.9px;
}
.grad-text {
    background: linear-gradient(100deg, var(--accent-strong), var(--accent) 45%, var(--lapis));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="dark"] .grad-text {
    background: linear-gradient(100deg, #6FF3DE, #22CDB4 55%, #8FB3FF);
    -webkit-background-clip: text; background-clip: text;
}
.hero p.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 22px; max-width: 580px; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }

.hero-trust {
    display: flex; flex-wrap: wrap; gap: 10px 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}
.hero-trust .trust-item {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--ink-2); font-size: 13.5px; font-weight: 600;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xs);
    transition: transform .22s var(--ease-out), border-color .22s, box-shadow .22s;
}
.hero-trust .trust-item:hover { transform: translateY(-2px); border-color: rgba(34, 205, 180, .45); box-shadow: var(--shadow-sm); }
.trust-ic { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---- Device mockup ---- */
.hero-visual { position: relative; display: grid; place-items: center; padding: 6px 0; }
/* A still, single-hue spotlight behind the device — the kind of quiet studio
   glow used in product photography — instead of a spinning rainbow halo. */
.hero-halo {
    position: absolute; z-index: 0;
    top: 50%; inset-inline-start: 50%;
    transform: translate(50%, -50%);
    width: min(112%, 460px); aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 205, 180, .24) 0%, rgba(26, 62, 140, .12) 55%, transparent 78%);
    filter: blur(34px);
}
[dir="ltr"] .hero-halo { transform: translate(-50%, -50%); }

/* The screenshot already carries its own bezel, notch and status bar, so the
   markup only adds depth around it — never a second frame. */
.device {
    position: relative; z-index: 2;
    width: min(100%, 320px);
    animation: deviceFloat 7s ease-in-out infinite;
}
@keyframes deviceFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.device-screen {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    line-height: 0;
    box-shadow:
        0 50px 90px -32px rgba(8, 26, 69, .6),
        0 12px 28px -12px rgba(8, 26, 69, .35),
        inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.hero-app-shot { width: 100%; height: auto; display: block; }
/* Glass gloss sweeping across the handset */
.device-shine {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .03) 26%, transparent 44%);
}

/* =========================================================================
   Stats band
   ========================================================================= */
.stats-band {
    position: relative; overflow: hidden;
    background: var(--grad-night);
    color: #fff;
    padding: clamp(30px, 3.4vw, 44px) 0;
}
.stats-band::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(680px 240px at 18% 0%, rgba(34, 205, 180, .22), transparent 62%),
        radial-gradient(520px 220px at 88% 110%, rgba(199, 145, 46, .14), transparent 60%);
}
.stats-band::after {
    content: "";
    position: absolute; inset-inline: 0; top: 0; height: 1px;
    background: var(--grad-hairline);
}
.stats-grid {
    position: relative;
    display: grid;
    /* Auto-fit so the band still reads as designed when a stat is withheld. */
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    justify-items: center;
    text-align: center;
}
.stat {
    width: 100%; max-width: 420px;
    padding: 22px 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .28s var(--ease-out), background .28s, border-color .28s;
}
.stat:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .09);
    border-color: rgba(34, 205, 180, .45);
}
.stat-ic {
    width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 14px;
    display: grid; place-items: center;
    background: rgba(34, 205, 180, .16);
    color: #6FF3DE;
    border: 1px solid rgba(34, 205, 180, .28);
}
.stat-ic svg { width: 22px; height: 22px; }
.stat-num {
    font-size: clamp(36px, 4.4vw, 50px);
    font-weight: 700; line-height: 1.1;
    background: linear-gradient(180deg, #FFFFFF, #B7D6E8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Gold shows up only as a rare accent — here, the "+" beside a stat. */
.stat-num .stat-plus { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.stat-label { opacity: .88; font-size: 15px; margin-top: 4px; }

/* =========================================================================
   Sections
   ========================================================================= */
.section { padding: var(--section-y) 0; position: relative; }
.section.soft { background: var(--bg-soft); }
.section.soft::before,
.section.soft::after {
    content: "";
    position: absolute; inset-inline: 0; height: 1px;
    background: var(--line-soft);
}
.section.soft::before { top: 0; }
.section.soft::after { bottom: 0; }

.section-head { max-width: 730px; margin: 0 auto clamp(26px, 3vw, 38px); text-align: center; }
/* Engraved editorial kicker: a gold lozenge marker and a teal-to-gold rule
   ruled under the label — no tinted chip. Note there is no letter-spacing:
   Arabic is a joined script, and tracking pulls the letterforms apart. */
.eyebrow {
    position: relative;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 0 0 9px;
    margin-bottom: 12px;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    font-weight: 800; font-size: 13px;
    letter-spacing: normal;
    white-space: nowrap;
}
.eyebrow::before {
    content: "";
    flex: none;
    width: 7px; height: 7px; border-radius: 1px;
    background: var(--gold);
    transform: rotate(45deg);
}
.eyebrow::after {
    content: "";
    position: absolute;
    inset-inline: 0; bottom: 0;
    height: 2px; border-radius: 2px;
    background: linear-gradient(to left, var(--accent), rgba(199, 145, 46, .6));
}
[dir="ltr"] .eyebrow::after {
    background: linear-gradient(to right, var(--accent), rgba(199, 145, 46, .6));
}
html[data-theme="dark"] .eyebrow::after {
    background: linear-gradient(to left, var(--accent), rgba(232, 181, 74, .6));
}
.section-head h2 { font-size: clamp(27px, 3.5vw, 42px); margin: 8px 0 14px; font-weight: 800; line-height: 1.3; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.sec-title { font-size: clamp(25px, 3.1vw, 37px); margin: 8px 0 12px; font-weight: 800; line-height: 1.32; }
.sec-sub { color: var(--muted); font-size: 17px; margin: 0; }
.section-cta { text-align: center; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Icon tiles ---- */
.ic-green { background: linear-gradient(145deg, #D2F6EF, var(--green-050)); color: var(--green-600); }
.ic-blue { background: linear-gradient(145deg, #DCE7FB, var(--blue-050)); color: var(--blue); }
.ic-amber { background: linear-gradient(145deg, #FBEDD0, rgba(199, 145, 46, .12)); color: var(--gold-ink); }
.ic-purple { background: linear-gradient(145deg, #D2F6EF, var(--green-050)); color: var(--green-600); }
html[data-theme="dark"] .ic-green,
html[data-theme="dark"] .ic-purple { background: rgba(34, 205, 180, .14); color: #6FF3DE; }
html[data-theme="dark"] .ic-blue { background: rgba(126, 155, 224, .16); color: #A8C0F5; }
html[data-theme="dark"] .ic-amber { background: rgba(232, 181, 74, .15); color: #F0CE7A; }

.pc-green { background: var(--green-050); color: var(--green-600); }
.pc-blue { background: var(--blue-050); color: var(--blue); }
.pc-amber { background: var(--accent-050); color: var(--gold-ink); }
.pc-purple { background: var(--green-050); color: var(--green-600); }

/* ---- Card base (features / business / login-select) ---- */
.feature-card,
.biz-card {
    position: relative;
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
/* Gradient hairline that lights up on hover */
.feature-card::before,
.biz-card::before {
    content: "";
    position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(140deg, var(--accent-strong), transparent 42%, transparent 62%, var(--lapis));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.feature-card::after,
.biz-card::after {
    content: "";
    position: absolute; z-index: 0;
    width: 220px; height: 220px; border-radius: 50%;
    top: -110px; inset-inline-end: -80px;
    background: radial-gradient(circle, rgba(34, 205, 180, .22), transparent 68%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.feature-card:hover,
.biz-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.feature-card:hover::before, .feature-card:focus-visible::before,
.biz-card:hover::before, .biz-card:focus-visible::before { opacity: 1; }
.feature-card:hover::after,
.biz-card:hover::after { opacity: 1; }

.feature-card { padding: 26px 24px; }
.feature-card > * { position: relative; z-index: 1; }
.feature-ic {
    width: 60px; height: 60px; border-radius: 18px;
    display: grid; place-items: center;
    margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
    transition: transform .32s var(--ease-spring), box-shadow .3s;
}
.feature-ic svg { width: 28px; height: 28px; }
.feature-card:hover .feature-ic { transform: translateY(-3px) scale(1.07) rotate(-4deg); box-shadow: var(--shadow-sm); }
.feature-card h3 { margin: 0 0 9px; font-size: 19px; font-weight: 800; }
.feature-card p { color: var(--muted); margin: 0; font-size: 15px; }

/* =========================================================================
   Consultations
   ========================================================================= */
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 48px); align-items: center; }
.consult-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 14px; }
.consult-list li {
    display: flex; gap: 16px; align-items: flex-start;
    position: relative;
}
.consult-list li:not(:last-child)::before {
    content: "";
    position: absolute; top: 42px; bottom: -16px;
    inset-inline-start: 19px;
    width: 2px;
    background: linear-gradient(180deg, var(--green-100), transparent);
}
.consult-list .step-n {
    flex: none; width: 40px; height: 40px; border-radius: 14px;
    background: var(--grad-accent); color: #fff; font-weight: 700;
    display: grid; place-items: center; font-size: 16px;
    box-shadow: var(--shadow-primary);
    position: relative; z-index: 1;
}
.consult-list .step-t { font-weight: 800; margin-bottom: 2px; font-size: 16px; }
.consult-list .step-d { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* Chat mock */
.consult-visual {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.consult-visual::before {
    content: "";
    position: absolute; inset-inline: 0; top: 0; height: 3px;
    background: var(--grad-accent);
}
.chat-head {
    display: flex; align-items: center; gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-soft);
}
.chat-avatar {
    position: relative;
    width: 42px; height: 42px; border-radius: 50%; flex: none;
    background: var(--grad-accent);
    color: #fff; display: grid; place-items: center;
    box-shadow: var(--shadow-primary);
}
.chat-avatar svg { width: 21px; height: 21px; }
.chat-avatar::after {
    content: "";
    position: absolute; bottom: 1px; inset-inline-end: 1px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #22C55E;
    border: 2px solid var(--bg-soft);
}
.chat-head .ch-name { display: block; font-weight: 800; font-size: 15px; line-height: 1.3; }
.chat-head .ch-status { display: block; font-size: 12px; color: var(--accent); font-weight: 700; }
.chat-body {
    padding: 22px;
    display: flex; flex-direction: column;
    background:
        radial-gradient(520px 240px at 100% 0%, var(--green-050), transparent 62%),
        var(--panel);
}
.chat-bubble {
    background: var(--bg-soft);
    border: 1px solid var(--line-soft);
    border-radius: 18px 18px 18px 6px;
    padding: 13px 16px; margin-bottom: 14px;
    box-shadow: var(--shadow-xs);
    max-width: 86%; font-size: 14.5px; line-height: 1.7;
    align-self: flex-start;
    animation: bubbleIn .55s var(--ease-out) both;
}
.chat-bubble.me {
    align-self: flex-end;
    border-radius: 18px 18px 6px 18px;
    background: var(--grad-accent);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.chat-bubble:nth-child(2) { animation-delay: .12s; }
.chat-bubble:nth-child(3) { animation-delay: .24s; }
.chat-bubble:nth-child(4) { animation-delay: .36s; }
.chat-bubble .cb-name { font-size: 11.5px; font-weight: 800; margin-bottom: 4px; opacity: .75; letter-spacing: .3px; }
.chat-bubble.me .cb-name { opacity: .9; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.chat-typing {
    align-self: flex-start;
    display: inline-flex; gap: 5px; align-items: center;
    background: var(--bg-soft);
    border: 1px solid var(--line-soft);
    padding: 12px 16px; border-radius: 18px 18px 18px 6px;
}
.chat-typing i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--dim);
    animation: typing 1.3s ease-in-out infinite;
}
html[data-theme="dark"] .chat-head,
html[data-theme="dark"] .chat-bubble:not(.me),
html[data-theme="dark"] .chat-typing { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] .chat-avatar::after { border-color: #14224A; }

.chat-typing i:nth-child(2) { animation-delay: .18s; }
.chat-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: .45; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* =========================================================================
   For business
   ========================================================================= */
.biz-card { padding: 26px 22px; text-align: center; }
.biz-card > * { position: relative; z-index: 1; }
.biz-card .biz-ic {
    width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 16px;
    display: grid; place-items: center;
    box-shadow: var(--shadow-xs);
    transition: transform .32s var(--ease-spring);
}
.biz-card:hover .biz-ic { transform: translateY(-3px) scale(1.07); }
.biz-card .biz-ic svg { width: 29px; height: 29px; }
.biz-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.biz-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* =========================================================================
   About
   ========================================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 48px); align-items: center; }
.about-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.about-points li {
    display: flex; gap: 13px; align-items: center; font-size: 15.5px;
    color: var(--ink-2);
}
.about-points .chk {
    flex: none; width: 30px; height: 30px; border-radius: 10px;
    background: linear-gradient(145deg, #D2F6EF, var(--green-050));
    color: var(--green-600); display: grid; place-items: center;
}
html[data-theme="dark"] .about-points .chk { background: rgba(34, 205, 180, .14); color: #6FF3DE; }
.about-points .chk svg { width: 16px; height: 16px; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(26px, 3.4vw, 44px); align-items: start; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.contact-item {
    display: flex; gap: 15px; align-items: center;
    padding: 15px 18px;
    border-radius: var(--radius-sm);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: transform .24s var(--ease-out), border-color .24s, box-shadow .24s;
}
.contact-item:hover { transform: translateY(-3px); border-color: rgba(34, 205, 180, .35); box-shadow: var(--shadow-sm); }
.contact-item .ci-ic {
    flex: none; width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(145deg, #D2F6EF, var(--green-050));
    color: var(--green-600); display: grid; place-items: center;
}
html[data-theme="dark"] .contact-item .ci-ic { background: rgba(34, 205, 180, .14); color: #6FF3DE; }
.contact-item .ci-ic svg { width: 22px; height: 22px; }
.contact-item .ci-t { font-weight: 800; margin-bottom: 1px; font-size: 15px; }
.contact-item .ci-d { color: var(--muted); font-size: 14px; }
.contact-item .ci-d a { color: var(--muted); transition: color .2s; }
.contact-item .ci-d a:hover { color: var(--accent); text-decoration: underline; }

/* Each network carries its own brand colour on hover. The palette is declared
   on the link itself so the contact row and the footer share one source. */
.soc-facebook { --soc: #1877F2; --soc-glow: rgba(24, 119, 242, .5); }
.soc-linkedin { --soc: #0A66C2; --soc-glow: rgba(10, 102, 194, .5); }
.soc-instagram {
    --soc: radial-gradient(circle at 26% 112%, #FDCB5A 0%, #F2703F 26%, #DD2A7B 56%, #9537AF 78%, #515BD4 100%);
    --soc-glow: rgba(221, 42, 123, .5);
}
.soc-whatsapp { --soc: #25D366; --soc-glow: rgba(37, 211, 102, .5); }
.soc-telegram { --soc: linear-gradient(180deg, #37BBFE, #007DBB); --soc-glow: rgba(0, 136, 204, .5); }

.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a {
    width: 46px; height: 46px; border-radius: 15px;
    background: var(--panel); border: 1px solid var(--line);
    display: grid; place-items: center;
    color: var(--ink-2);
    transition: background .24s, transform .24s var(--ease-spring), color .24s, border-color .24s, box-shadow .24s;
}
.social-row a svg { width: 20px; height: 20px; }
.social-row a:hover {
    background: var(--soc, var(--grad-accent)); color: #fff;
    transform: translateY(-4px); border-color: transparent;
    box-shadow: 0 14px 26px -12px var(--soc-glow, rgba(21, 156, 137, .55));
}

.contact-form {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3vw, 36px);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.contact-form::before {
    content: "";
    position: absolute; inset-inline: 0; top: 0; height: 3px;
    background: var(--grad-accent);
}
/* Small concierge header that frames the form as a direct line to a team,
   not just an anonymous input dump. */
.form-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 26px; padding-bottom: 22px;
    border-bottom: 1px solid var(--line-soft);
}
.form-head-ic {
    flex: none; width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #D2F6EF, var(--green-050));
    color: var(--green-600);
}
html[data-theme="dark"] .form-head-ic { background: rgba(34, 205, 180, .14); color: #6FF3DE; }
.form-head-ic.ic-wa { background: linear-gradient(145deg, #DFF7E6, rgba(29, 168, 81, .12)); color: #1DA851; }
html[data-theme="dark"] .form-head-ic.ic-wa { background: rgba(45, 214, 94, .16); color: #6EE499; }
.form-head-ic svg { width: 22px; height: 22px; }
.form-head-t { font-weight: 800; font-size: 16.5px; }
.form-head-d { font-size: 13px; color: var(--muted); margin-top: 2px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--ink-2); }
.field label .req { color: var(--danger); }
.field label .opt { color: var(--dim); font-weight: 600; font-size: 12.5px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    font-family: inherit; font-size: 15px;
    background: var(--bg-soft); color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent); background: var(--panel);
    box-shadow: var(--ring);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.75; }

/* Leading icon inside text/select fields — a quiet, recognisable premium cue. */
.field-input { position: relative; }
.field-input .field-ic {
    position: absolute; top: 50%; inset-inline-start: 15px; z-index: 1;
    transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--dim);
    pointer-events: none;
    transition: color .2s ease;
}
.field-input input, .field-input select { padding-inline-start: 44px; }
.field-input:focus-within .field-ic { color: var(--accent); }
.form-note {
    display: flex; align-items: center; gap: 8px;
    color: var(--muted); font-size: 13px; margin-top: 14px; justify-content: center;
}
.form-note svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* =========================================================================
   Closing CTA
   ========================================================================= */
.cta-section { padding-top: 0; }
.cta {
    position: relative; overflow: hidden;
    background: var(--grad-night);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(30px, 3.6vw, 48px) clamp(22px, 4vw, 54px);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, .08);
}
.cta::before {
    content: "";
    position: absolute; inset-inline: 0; top: 0; height: 1px; z-index: 1;
    background: var(--grad-hairline);
}
.cta::after {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 72%);
    pointer-events: none;
}
.cta-glow {
    position: absolute; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 205, 180, .3), transparent 66%);
    top: -190px; inset-inline-end: -120px; pointer-events: none;
    filter: blur(20px);
}
.cta-glow-2 {
    position: absolute; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 145, 46, .2), transparent 66%);
    bottom: -190px; inset-inline-start: -110px; pointer-events: none;
    filter: blur(24px);
}
.cta h2 { font-size: clamp(25px, 3.2vw, 39px); margin: 0 0 12px; position: relative; z-index: 2; }
.cta p { opacity: .85; margin: 0 auto 22px; font-size: 17px; position: relative; z-index: 2; max-width: 560px; }
.cta .store-buttons { justify-content: center; position: relative; z-index: 2; }
.cta-logo { position: relative; z-index: 2; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .4)); }

/* =========================================================================
   Alerts
   ========================================================================= */
.alert {
    border-radius: var(--radius-sm); padding: 15px 19px; margin: 0 0 26px;
    font-weight: 600; display: flex; align-items: center; gap: 11px;
    border: 1px solid transparent;
}
.alert .alert-ic { width: 20px; height: 20px; flex: none; }
.alert-success { background: var(--green-050); color: var(--green-700); border-color: var(--green-100); }
.alert-error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; display: block; }
.alert ul { margin: 0; padding-inline-start: 18px; }
html[data-theme="dark"] .alert-error { background: rgba(214, 69, 69, .14); color: #F7C4C4; border-color: rgba(214, 69, 69, .4); }
html[data-theme="dark"] .alert-success { background: var(--green-050); color: var(--accent-strong); border-color: var(--green-100); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
    position: relative;
    background: var(--night);
    color: #C3D0E8;
    padding: clamp(36px, 4vw, 52px) 0 22px;
}
.site-footer::before {
    content: "";
    position: absolute; inset-inline: 0; top: 0; height: 1px;
    background: var(--grad-hairline);
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 28px; }
.footer-brand .brand .logo {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--grad-brand); color: #fff;
}
.footer-brand .brand .logo svg { width: 22px; height: 22px; }
.footer-brand .brand-logo { opacity: .97; }
.footer-brand p { color: #8FA3C9; font-size: 14px; margin: 16px 0 18px; max-width: 340px; line-height: 1.8; }
.footer-col h4 {
    color: #fff; font-size: 15px; margin: 0 0 16px;
    position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
    content: "";
    position: absolute; bottom: 0; inset-inline-start: 0;
    width: 26px; height: 2px; border-radius: 2px;
    background: var(--pulse);
}
.footer-col a, .footer-col span {
    display: block; color: #8FA3C9; font-size: 14px; margin-bottom: 11px;
    transition: color .2s, transform .2s var(--ease-out);
}
.footer-col a:hover { color: #fff; transform: translateX(-4px); }
.footer-store { display: grid; gap: 10px; }
.footer-store .store-btn { min-width: 0; }
.footer-social { display: flex; gap: 9px; margin-top: 14px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 12px; margin: 0;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .09);
    color: #C3D0E8;
    transition: background .22s, color .22s, transform .22s var(--ease-spring), border-color .22s;
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover {
    background: var(--soc, var(--grad-accent)); color: #fff;
    transform: translateY(-3px); border-color: transparent;
    box-shadow: 0 12px 22px -12px var(--soc-glow, rgba(21, 156, 137, .55));
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 26px; padding-top: 18px;
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
    color: #8FA3C9; font-size: 13px;
}
.footer-bottom a { color: #C3D0E8; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================================
   Back to top
   ========================================================================= */
.to-top {
    position: fixed;
    inset-block-end: 26px; inset-inline-start: 26px;
    z-index: 45;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--grad-accent); color: #fff;
    border: none; cursor: pointer;
    box-shadow: var(--shadow-primary);
    opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
    transition: opacity .3s, visibility .3s, transform .35s var(--ease-spring), box-shadow .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(21, 156, 137, .7); }
.to-top:focus-visible { outline: none; box-shadow: var(--ring); }
.to-top svg { width: 21px; height: 21px; }

/* =========================================================================
   Floating WhatsApp button
   ========================================================================= */
.whatsapp-fab {
    position: fixed;
    inset-block-end: 26px; inset-inline-end: 26px;
    z-index: 45;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #2DD65E, #1DA851);
    color: #fff;
    box-shadow: 0 16px 34px -10px rgba(29, 168, 81, .55);
    transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
}
.whatsapp-fab svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.whatsapp-fab:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 20px 42px -10px rgba(29, 168, 81, .65); }
.whatsapp-fab:focus-visible { outline: none; box-shadow: var(--ring); }

.wa-ring {
    position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(45, 214, 94, .55);
    animation: waPulse 2.6s ease-out infinite;
}
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 214, 94, .55); }
    70% { box-shadow: 0 0 0 16px rgba(45, 214, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 214, 94, 0); }
}

.wa-tip {
    position: absolute; inset-inline-end: calc(100% + 12px); top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--night); color: #fff;
    font-size: 13px; font-weight: 700; white-space: nowrap;
    padding: 8px 14px; border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, transform .22s var(--ease-out), visibility .22s;
}
[dir="ltr"] .wa-tip { transform: translateY(-50%) translateX(-6px); }
.whatsapp-fab:hover .wa-tip,
.whatsapp-fab:focus-visible .wa-tip {
    opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0);
}

@media (max-width: 760px) {
    .whatsapp-fab { inset-block-end: 18px; inset-inline-end: 18px; width: 54px; height: 54px; }
    .whatsapp-fab svg { width: 26px; height: 26px; }
    .wa-tip { display: none; }
}

/* =========================================================================
   Legal pages
   ========================================================================= */
.legal-hero {
    position: relative; overflow: hidden;
    background: var(--grad-night); color: #fff;
    padding: clamp(52px, 6vw, 78px) 0;
}
.legal-hero::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(680px 260px at 20% 0%, rgba(34, 205, 180, .22), transparent 62%);
}
.legal-hero .container { position: relative; }
.legal-hero h1 { margin: 0 0 10px; font-size: clamp(27px, 3.5vw, 42px); }
.legal-hero p { margin: 0; opacity: .8; }
.legal-body { padding: clamp(44px, 5vw, 64px) 0 clamp(60px, 7vw, 90px); }
.legal-content { max-width: 880px; margin: 0 auto; }
.legal-note {
    background: rgba(199, 145, 46, .1);
    border: 1px solid rgba(199, 145, 46, .32);
    color: #8A6118;
    border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 32px; font-size: 14.5px;
}
html[data-theme="dark"] .legal-note { color: #F0CE7A; }
.legal-content h2 { font-size: 22px; margin: 36px 0 12px; color: var(--green-700); }
.legal-content h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-content p { color: var(--ink-2); margin: 0 0 15px; }
.legal-content ul { color: var(--ink-2); padding-inline-start: 22px; margin: 0 0 18px; }
.legal-content li { margin-bottom: 9px; }
.legal-toc {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px 26px; margin-bottom: 32px;
    box-shadow: var(--shadow-xs); line-height: 2.2;
}
.legal-toc h4 { margin: 0 0 10px; }
.legal-toc a { color: var(--green-700); font-weight: 600; }
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }

/* =========================================================================
   Responsive
   ========================================================================= */
/* The tagline is the first thing to go once the bar tightens — it costs more
   width than any nav label and carries the least navigational weight. */
@media (max-width: 1100px) {
    .site-header .brand .brand-tag { display: none; }
    .nav a.navlink { padding: 9px 8px; }
    .nav-actions { gap: 8px; margin-inline-start: 6px; }
}

@media (max-width: 960px) {
    .hero-grid, .consult-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero-copy { text-align: center; }
    .hero-copy .pill, .hero p.lead { margin-inline: auto; }
    .hero-actions, .hero-trust, .hero-copy .store-buttons { justify-content: center; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .consult-list li:not(:last-child)::before { display: none; }

    /* Below this width the six labels and two buttons can no longer share a
       row without wrapping, so the bar collapses into the drawer. */
    .site-header .bar { height: 68px; }

    .nav {
        position: fixed;
        inset-block: 68px auto;
        inset-inline: 0;
        z-index: 46;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 18px 22px 24px;
        box-shadow: var(--shadow-lg);
        display: none;
        max-height: calc(100dvh - 68px);
        overflow-y: auto;
    }
    .nav.open { display: flex; animation: navIn .3s var(--ease-out) both; }
    @keyframes navIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
    .nav a.navlink { padding: 13px 16px; border-radius: var(--radius-xs); font-size: 16px; }
    .nav a.navlink::after { display: none; }
    .nav a.navlink.is-active { background: var(--accent-050); }
    .nav-actions {
        flex-direction: column; align-items: stretch; gap: 10px;
        margin: 14px 0 0; padding-top: 16px;
        border-top: 1px solid var(--line-soft);
    }
    .nav-actions .btn { width: 100%; }
    .nav-actions .theme-toggle { width: 100%; border-radius: var(--radius-pill); height: 44px; }
    .nav-toggle { display: inline-flex; }
}

@media (max-width: 760px) {
    .site-header .brand-logo { height: 32px !important; }
    .stats-grid { grid-template-columns: 1fr; gap: 14px; }
    .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
    .section { padding: 42px 0; }
    .cta { border-radius: var(--radius-lg); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .store-btn { flex: 1; min-width: 0; }
    .to-top { inset-block-end: 18px; inset-inline-start: 18px; width: 44px; height: 44px; }
}

@media (max-width: 420px) {
    .hero-trust .trust-item { font-size: 12.5px; padding: 6px 11px; }
}

/* =========================================================================
   Motion & print
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    html.js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .site-header, .to-top, .scroll-progress, .nav-backdrop, .store-buttons, .cta-section { display: none !important; }
    body { background: #fff; color: #000; }
}
