/* ==========================================================================
   HALO — design system
   ========================================================================== */

:root {
    --bg: #05070b;
    --bg-2: #080b11;
    --surface: #0c1017;
    --surface-2: #111621;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);

    --fg-1: #f4f6fb;
    --fg-2: rgba(232, 236, 246, 0.74);
    --fg-3: rgba(232, 236, 246, 0.52);
    --fg-4: rgba(232, 236, 246, 0.32);

    --halo: #e3be6e;
    --halo-2: #b8892e;
    --halo-3: #f4e4b8;
    --ok: #3ee0a0;
    --danger: #ff6b6b;
    --grad-halo: linear-gradient(100deg, #ffffff 0%, #f4e4b8 42%, #e3be6e 72%, #b8892e 100%);

    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 32px;

    --font-latin: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-ar: "IBM Plex Sans Arabic", "Geist", system-ui, sans-serif;
    --font-sans: var(--font-latin);
    --font-serif: "Instrument Serif", ui-serif, Georgia, serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --nav-h: 76px;
    --container: 1240px;
    --pad: clamp(20px, 4vw, 40px);
    --shade-dir: 90deg;
}

html[lang="ar"] {
    --font-sans: var(--font-ar);
    --font-serif: var(--font-ar);
}

[dir="rtl"] {
    --shade-dir: 270deg;
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
    color-scheme: dark;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

html:not(.lenis) {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--fg-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -10;
    pointer-events: none;
    background:
        radial-gradient(60% 40% at 85% 0%, rgba(184, 137, 46, 0.1), transparent 70%),
        radial-gradient(50% 35% at 0% 100%, rgba(227, 190, 110, 0.06), transparent 70%);
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, p, ul, ol, figure {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

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

::selection {
    background: rgba(227, 190, 110, 0.35);
    color: #fff;
}

.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;
}

.skip-link {
    position: fixed;
    top: -80px;
    inset-inline-start: 16px;
    z-index: 300;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--fg-1);
    color: var(--bg);
    font-weight: 500;
    transition: top 0.3s var(--ease-out);
}

.skip-link:focus {
    top: 16px;
}

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

section[id] {
    scroll-margin-top: calc(var(--nav-h) + 12px);
}

.icon {
    flex-shrink: 0;
}

[dir="rtl"] .icon--flip {
    transform: scaleX(-1);
}

/* ---------- Typography ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: linear-gradient(var(--shade-dir), var(--halo), transparent);
}

.eyebrow--center::before {
    display: none;
}

.eyebrow .icon {
    color: var(--halo);
}

.section {
    position: relative;
    padding-block: clamp(96px, 12vw, 168px);
}

.section__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section__head--left {
    align-items: flex-start;
    text-align: start;
    margin-bottom: 40px;
}

.section__title {
    margin-top: 16px;
    font-size: clamp(28px, 3.8vw, 48px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--fg-1);
    text-wrap: balance;
}

.section__title em,
.cta__title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding-inline-end: 0.06em;
    background: var(--grad-halo);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section__sub {
    max-width: 560px;
    margin-top: 16px;
    font-size: clamp(14px, 1.1vw, 16px);
    color: var(--fg-2);
    text-wrap: pretty;
}

/* Arabic script must never be letter-spaced or italicised */
html[lang="ar"] :is(.eyebrow, .section__title, .hero__title, .card__title, .step__title, .cta__title,
    .command__title, .stat__value, .menu__link, .auth__title, .legal-hero h1, .faq__q, .audience__label,
    .footer__title, .card__tag, .card__index) {
    letter-spacing: 0;
}

html[lang="ar"] :is(.section__title em, .cta__title em, .hero__line--accent .word, .footer__tagline,
    .marquee__track li, .stat__suffix) {
    font-style: normal;
    font-weight: 600;
}

html[lang="ar"] .eyebrow,
html[lang="ar"] .audience__label,
html[lang="ar"] .footer__title,
html[lang="ar"] .card__tag {
    text-transform: none;
    font-size: 14px;
}

html[lang="ar"] .section__title,
html[lang="ar"] .hero__title,
html[lang="ar"] .cta__title {
    line-height: 1.25;
}

[lang="ar"]:not(html) {
    font-family: var(--font-ar);
}

[lang="en"]:not(html) {
    font-family: var(--font-latin);
}

/* ---------- Buttons ---------- */

.btn {
    --h: 48px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--h);
    padding-inline: 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    transition:
        background-color 0.3s,
        border-color 0.3s,
        color 0.3s,
        box-shadow 0.5s var(--ease-out),
        translate 0.6s var(--ease-out);
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn .icon {
    transition: translate 0.5s var(--ease-out);
}

.btn:hover .icon--flip {
    translate: 3px 0;
}

[dir="rtl"] .btn:hover .icon--flip {
    translate: -3px 0;
}

.btn--sm {
    --h: 40px;
    padding-inline: 16px;
    font-size: 14px;
}

.btn--lg {
    --h: 56px;
    padding-inline: 28px;
    font-size: 16px;
}

.btn--primary {
    background: linear-gradient(135deg, #f4e4b8 0%, #e3be6e 45%, #b8892e 100%);
    color: #120d04;
    box-shadow:
        inset 0 1px 0 rgba(255, 245, 220, 0.8),
        0 10px 40px -10px rgba(227, 190, 110, 0.55);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #fbf0d2 0%, #ecc97c 45%, #c79636 100%);
    box-shadow:
        inset 0 1px 0 #fff6de,
        0 18px 60px -12px rgba(227, 190, 110, 0.85);
}

.btn--glass {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--line-2);
    color: var(--fg-1);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}

.btn--glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.26);
}

.btn--ghost {
    color: var(--fg-1);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.07);
}

.btn--shine::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(184, 137, 46, 0.28) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: 150% 0;
    animation: shine 4.2s var(--ease-in-out) infinite;
    pointer-events: none;
}

@keyframes shine {
    0%, 55% { background-position: 150% 0; }
    100% { background-position: -50% 0; }
}

/* ---------- Pill / status ---------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    padding-inline: 12px 16px;
    border-radius: 999px;
    background: rgba(8, 11, 17, 0.55);
    border: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 13px;
    color: var(--fg-1);
}

.pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(62, 224, 160, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(62, 224, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 224, 160, 0); }
}

/* ---------- Logo ---------- */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fg-1);
    direction: ltr;
}

.logo__img {
    display: block;
    width: auto;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(227, 190, 110, 0.25));
}

.logo--sm .logo__img {
    height: 36px;
}

.footer .logo__img,
.auth__visual .logo__img,
.auth__mobile-logo .logo__img {
    height: 88px;
}

.logo__word {
    font-family: var(--font-latin);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.32em;
    margin-inline-end: -0.32em;
}

.logo--sm .logo__mark {
    width: 22px;
    height: 22px;
}

.logo--sm .logo__word {
    font-size: 13px;
}

/* ---------- Scroll progress ---------- */

.progress {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 120;
    height: 2px;
    pointer-events: none;
}

.progress__bar {
    display: block;
    height: 100%;
    background: var(--grad-halo);
    transform-origin: left center;
    transform: scaleX(var(--progress, 0));
    box-shadow: 0 0 12px rgba(227, 190, 110, 0.7);
}

[dir="rtl"] .progress__bar {
    transform-origin: right center;
}

/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 100;
    padding: 14px var(--pad);
    pointer-events: none;
}

.nav__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 60px;
    max-width: calc(var(--container) + 40px);
    margin-inline: auto;
    padding-inline: 20px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    pointer-events: auto;
    transition:
        background-color 0.6s var(--ease-out),
        border-color 0.6s var(--ease-out),
        box-shadow 0.6s var(--ease-out),
        max-width 0.8s var(--ease-out),
        backdrop-filter 0.6s var(--ease-out);
}

.nav.is-scrolled .nav__bar {
    max-width: 1100px;
    background: rgba(8, 11, 17, 0.66);
    border-color: var(--line);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
        0 12px 40px -14px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav__brand {
    display: inline-flex;
    border-radius: 12px;
}

.nav__links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav__list {
    position: relative;
    display: flex;
    gap: 2px;
    padding: 4px;
}

.nav__link {
    position: relative;
    z-index: 1;
    display: block;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--fg-3);
    transition: color 0.3s;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--fg-1);
}

.nav__indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    z-index: 0;
    width: var(--ind-w, 0);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    opacity: var(--ind-o, 0);
    transform: translateX(var(--ind-x, 0));
    transition:
        transform 0.7s var(--ease-out),
        width 0.7s var(--ease-out),
        opacity 0.4s;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__lang {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding-inline: 12px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--fg-3);
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    transition: color 0.3s, background-color 0.3s, max-width 0.5s var(--ease-out), padding 0.5s var(--ease-out), opacity 0.3s;
}

.nav.is-scrolled .nav__lang {
    max-width: 0;
    padding-inline: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.nav__lang:hover {
    color: var(--fg-1);
    background: rgba(255, 255, 255, 0.07);
}

.nav__toggle {
    position: relative;
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.nav__toggle-line {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--fg-1);
    transition: transform 0.6s var(--ease-out), top 0.6s var(--ease-out);
}

.nav__toggle-line:nth-of-type(2) { top: 17px; }
.nav__toggle-line:nth-of-type(3) { top: 25px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-of-type(2) {
    top: 21px;
    transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-of-type(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */

.menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    padding: calc(var(--nav-h) + 48px) var(--pad) 40px;
    background: rgba(5, 7, 11, 0.94);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
}

.menu.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s var(--ease-out);
}

.menu__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
}

.menu__link {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding-block: 6px;
    font-size: clamp(26px, 6vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--fg-1);
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s var(--ease-out) calc(var(--i) * 60ms + 120ms),
        transform 0.9s var(--ease-out) calc(var(--i) * 60ms + 120ms);
}

.menu.is-open .menu__link {
    opacity: 1;
    transform: none;
}

.menu__num {
    font-family: var(--font-latin);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--fg-4);
}

.menu__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.menu__lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: var(--fg-3);
}

body.menu-open {
    overflow: hidden;
}

/* ---------- Entrance animations ---------- */

.enter {
    opacity: 0;
    transform: translateY(16px);
    animation: enterUp 1.1s var(--ease-out) forwards;
    animation-delay: calc(var(--d, 0) * 110ms + 200ms);
}

@keyframes enterUp {
    to { opacity: 1; transform: none; }
}

.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 32px, 0);
    transition:
        opacity 1s var(--ease-out),
        transform 1.2s var(--ease-out);
    transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    min-height: 100svh;
    padding-block: calc(var(--nav-h) + 80px) clamp(88px, 12vh, 128px);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: -6% 0 0;
    z-index: -4;
    transform: translate3d(0, var(--hero-y, 0px), 0) scale(var(--hero-s, 1));
    will-change: transform;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 50%;
    animation: heroIn 2.6s var(--ease-out) both;
}

[dir="rtl"] .hero__img {
    scale: -1 1;
}

@keyframes heroIn {
    from { opacity: 0; transform: scale(1.14); filter: blur(12px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(var(--shade-dir), rgba(5, 7, 11, 0.94) 0%, rgba(5, 7, 11, 0.72) 36%, rgba(5, 7, 11, 0.12) 68%, rgba(5, 7, 11, 0.3) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 11, 0) 40%),
        linear-gradient(180deg, rgba(5, 7, 11, 0.65) 0%, rgba(5, 7, 11, 0) 24%);
}

.hero__grain {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.16;
    mix-blend-mode: overlay;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__ring {
    position: absolute;
    z-index: -1;
    top: -48%;
    inset-inline-start: -28%;
    width: min(96vw, 1180px);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(from 180deg, transparent 0deg, rgba(227, 190, 110, 0.35) 110deg, rgba(250, 240, 210, 0.85) 150deg, rgba(184, 137, 46, 0.3) 205deg, transparent 260deg);
    -webkit-mask: radial-gradient(closest-side, transparent 86.5%, #000 87.2%, #000 88.2%, transparent 89.4%);
    mask: radial-gradient(closest-side, transparent 86.5%, #000 87.2%, #000 88.2%, transparent 89.4%);
    filter: drop-shadow(0 0 28px rgba(227, 190, 110, 0.6));
    animation: spin 26s linear infinite, fadeIn 2.4s var(--ease-out) both 0.4s;
}

@keyframes spin {
    to { transform: rotate(1turn); }
}

@keyframes fadeIn {
    from { opacity: 0; }
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: var(--hero-o, 1);
    transform: translate3d(0, var(--hero-cy, 0px), 0);
}

.hero__title {
    margin-top: 24px;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--fg-1);
}

.hero__line {
    display: block;
}

.word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.45em) rotate(2deg);
    filter: blur(14px);
    animation: wordIn 1.3s var(--ease-out) forwards;
    animation-delay: calc(var(--i) * 90ms + 260ms);
}

.hero__line--accent .word {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.015em;
    padding-inline-end: 0.06em;
    background: linear-gradient(100deg, #ffffff 0%, #f4e4b8 50%, #e3be6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes wordIn {
    to { opacity: 1; transform: none; filter: blur(0); }
}

.hero__sub {
    max-width: 480px;
    margin-top: 22px;
    font-size: clamp(15px, 1.15vw, 17px);
    color: var(--fg-2);
    text-wrap: pretty;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 52px;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--fg-3);
}

.hero__eyebrow .icon {
    color: var(--halo);
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    inset-inline-end: var(--pad);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.hero__scroll-line {
    position: relative;
    width: 1px;
    height: 60px;
    overflow: hidden;
    background: linear-gradient(var(--fg-4), transparent);
}

.hero__scroll-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, #fff, transparent);
    transform: translateY(-100%);
    animation: scrollLine 2.4s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
    to { transform: translateY(100%); }
}

/* ---------- Audience marquee ---------- */

.audience {
    padding-block: 64px 28px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.audience__label {
    margin-bottom: 30px;
    padding-inline: var(--pad);
    text-align: center;
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
    justify-content: space-around;
    animation: marquee 48s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__track li {
    display: flex;
    align-items: center;
    gap: 56px;
    padding-inline: 28px;
    white-space: nowrap;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(16px, 1.6vw, 22px);
    color: var(--fg-3);
}

.marquee__track li::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--halo);
    opacity: 0.6;
    box-shadow: 0 0 10px var(--halo);
}

@keyframes marquee {
    to { transform: translateX(-100%); }
}

[dir="rtl"] .marquee__track {
    animation-name: marquee-rtl;
}

@keyframes marquee-rtl {
    to { transform: translateX(100%); }
}

/* ---------- Stats ---------- */

.stats {
    padding-block: clamp(64px, 8vw, 110px);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 8px 28px;
    border-inline-start: 1px solid var(--line);
}

.stat:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
}

.stat__value {
    display: flex;
    align-items: flex-start;
    direction: ltr;
    font-size: clamp(36px, 4.2vw, 56px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--fg-1);
    font-variant-numeric: tabular-nums;
}

[dir="rtl"] .stat__value {
    justify-content: flex-end;
}

.stat__suffix {
    margin-inline-start: 0.04em;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.7em;
    color: var(--halo);
}

.stat__label {
    max-width: 24ch;
    margin-top: 12px;
    font-size: 13px;
    color: var(--fg-3);
}

/* ---------- Bento services ---------- */

.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(280px, auto);
    gap: 16px;
}

.card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    min-height: 320px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
}

.card--xl {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 600px;
}

.card--tall {
    grid-row: span 2;
}

.card--wide {
    grid-column: span 3;
    min-height: 380px;
}

[data-spotlight]::before,
[data-spotlight]::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

[data-spotlight]::before {
    z-index: 3;
    padding: 1px;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 228, 184, 0.6), transparent 42%);
    -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 exclude, linear-gradient(#000 0 0);
}

[data-spotlight]::after {
    z-index: 1;
    background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 190, 110, 0.13), transparent 45%);
}

[data-spotlight]:hover::before,
[data-spotlight]:hover::after {
    opacity: 1;
}

.card__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(0.9) brightness(0.82);
    transition: transform 1.8s var(--ease-out), filter 1s var(--ease-out);
}

.card:hover .card__media img {
    transform: scale(1.1);
    filter: saturate(1) brightness(0.95);
}

.card__shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(5, 7, 11, 0) 18%, rgba(5, 7, 11, 0.55) 55%, rgba(5, 7, 11, 0.95) 100%);
}

.card__index {
    position: absolute;
    top: 24px;
    inset-inline-start: 28px;
    z-index: 2;
    font-family: var(--font-latin);
    font-size: 13px;
    letter-spacing: 0.14em;
    color: var(--fg-3);
    font-variant-numeric: tabular-nums;
}

.card__body {
    position: relative;
    z-index: 2;
    padding: clamp(24px, 2.4vw, 36px);
}

.card__tag {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--halo-3);
    background: rgba(227, 190, 110, 0.12);
    border: 1px solid rgba(227, 190, 110, 0.24);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.card__title {
    margin-top: 14px;
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--fg-1);
    text-wrap: balance;
}

.card--xl .card__title {
    font-size: clamp(22px, 2.2vw, 32px);
}

.card__text {
    max-width: 46ch;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--fg-2);
}

/* ---------- Method ---------- */

.method__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 7vw, 120px);
    align-items: start;
}

.method__intro {
    position: sticky;
    top: calc(var(--nav-h) + 48px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.method__intro .btn {
    margin-top: 36px;
}

.steps {
    position: relative;
}

.steps__rail {
    position: absolute;
    inset-block: 36px;
    inset-inline-start: 27px;
    width: 1px;
    background: var(--line-2);
}

.steps__fill {
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: calc(var(--p, 0) * 100%);
    background: linear-gradient(var(--halo-3), var(--halo-2));
    box-shadow: 0 0 14px rgba(227, 190, 110, 0.8);
}

.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 28px;
    padding-block: 36px;
    border-bottom: 1px solid var(--line);
}

.step:last-child {
    border-bottom: 0;
}

.step__num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line-2);
    font-family: var(--font-latin);
    font-size: 14px;
    color: var(--fg-3);
    font-variant-numeric: tabular-nums;
    transition: all 0.6s var(--ease-out);
}

.step.is-active .step__num {
    color: #fff;
    background: #0d1226;
    border-color: rgba(227, 190, 110, 0.7);
    box-shadow: 0 0 0 6px rgba(227, 190, 110, 0.08), 0 0 32px rgba(227, 190, 110, 0.4);
}

.step__title {
    padding-top: 6px;
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--fg-1);
}

.step__text {
    max-width: 52ch;
    margin-top: 12px;
    color: var(--fg-2);
}

/* ---------- Standards ---------- */

.standards {
    background: linear-gradient(180deg, transparent, var(--bg-2) 40%, transparent);
}

.standards__grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
}

.standards__media {
    position: relative;
}

.standards__frame {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.standards__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, var(--py, 0px), 0) scale(1.14);
}

.standards__badge {
    position: absolute;
    bottom: 32px;
    inset-inline-end: -24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(12, 16, 23, 0.72);
    border: 1px solid var(--line-2);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
    font-size: 14px;
    color: var(--fg-1);
    animation: float 6s ease-in-out infinite;
}

.standards__badge .icon {
    color: var(--halo);
}

@keyframes float {
    50% { transform: translateY(-8px); }
}

.standards__list {
    display: grid;
    gap: 4px;
}

.standard {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: background-color 0.4s, border-color 0.4s;
}

.standard:hover {
    background: rgba(255, 255, 255, 0.025);
    border-color: var(--line);
}

.standard__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--halo-3);
    background: linear-gradient(145deg, rgba(227, 190, 110, 0.18), rgba(227, 190, 110, 0.04));
    border: 1px solid rgba(227, 190, 110, 0.22);
}

.standard__title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--fg-1);
}

.standard__text {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--fg-3);
}

/* ---------- Command center ---------- */

.command {
    padding-bottom: clamp(96px, 12vw, 168px);
}

.command__frame {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 640px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}

.command__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.command__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(5, 7, 11, 0.97) 6%, rgba(5, 7, 11, 0.62) 46%, rgba(5, 7, 11, 0.12) 100%);
}

.ping {
    position: absolute;
    z-index: -1;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--halo-3);
    box-shadow: 0 0 20px var(--halo);
}

.ping::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(244, 228, 184, 0.7);
    animation: ping 2.8s var(--ease-out) infinite;
}

.ping--a { top: 22%; left: 20%; }
.ping--b { top: 34%; left: 56%; }
.ping--b::after { animation-delay: 0.9s; }
.ping--c { top: 16%; left: 80%; }
.ping--c::after { animation-delay: 1.8s; }

@keyframes ping {
    from { transform: scale(0.4); opacity: 1; }
    to { transform: scale(2.6); opacity: 0; }
}

.command__content {
    width: 100%;
    padding: clamp(28px, 4.5vw, 68px);
}

.command__title {
    max-width: 18ch;
    margin-top: 14px;
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--fg-1);
    text-wrap: balance;
}

.command__sub {
    max-width: 600px;
    margin-top: 18px;
    color: var(--fg-2);
}

.command__points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 40px;
}

.command__points li {
    display: grid;
    gap: 6px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(12, 16, 23, 0.58);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.command__points strong {
    font-size: 16px;
    font-weight: 500;
    color: var(--fg-1);
}

.command__points span:not(.command__icon) {
    font-size: 14.5px;
    color: var(--fg-3);
}

.command__icon {
    margin-bottom: 6px;
    color: var(--halo);
}

/* ---------- App ---------- */

.app__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
}

.checklist {
    display: grid;
    gap: 14px;
    margin-bottom: 36px;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--fg-1);
}

.checklist .icon {
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 50%;
    color: var(--ok);
    background: rgba(62, 224, 160, 0.1);
}

.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    padding-inline: 20px 24px;
    border-radius: 16px;
    background: #0b0e14;
    border: 1px solid var(--line-2);
    font-size: 15px;
    color: var(--fg-1);
    transition: border-color 0.3s, translate 0.5s var(--ease-out), box-shadow 0.5s;
}

.store:hover {
    translate: 0 -2px;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 40px -18px rgba(227, 190, 110, 0.6);
}

.phone-wrap {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    padding-block: 20px;
    perspective: 1600px;
}

.phone-wrap__glow {
    position: absolute;
    z-index: -1;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 137, 46, 0.5), transparent 65%);
    filter: blur(40px);
}

.phone {
    width: min(320px, 78vw);
    aspect-ratio: 9 / 19;
    padding: 10px;
    border-radius: 50px;
    background: linear-gradient(145deg, #2c313d, #0b0d12 42%, #1b1f28);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 60px 120px -30px rgba(0, 0, 0, 0.95);
    transform: rotateY(-14deg) rotateX(5deg);
    transition: transform 1.4s var(--ease-out);
}

[dir="rtl"] .phone {
    transform: rotateY(14deg) rotateX(5deg);
}

.phone-wrap:hover .phone {
    transform: rotateY(-4deg) rotateX(2deg);
}

[dir="rtl"] .phone-wrap:hover .phone {
    transform: rotateY(4deg) rotateX(2deg);
}

.phone__screen {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 12px 14px 16px;
    overflow: hidden;
    border-radius: 41px;
    background: radial-gradient(120% 60% at 50% 0%, #151b33 0%, #07090f 62%);
}

.phone__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 10px;
    direction: ltr;
    font-family: var(--font-latin);
    font-size: 11px;
    font-weight: 500;
    color: var(--fg-2);
}

.phone__notch {
    width: 92px;
    height: 26px;
    border-radius: 20px;
    background: #000;
}

.phone__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 4px;
    font-size: 13px;
    color: var(--fg-3);
}

.phone__map {
    flex: 1;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: radial-gradient(80% 80% at 70% 20%, rgba(184, 137, 46, 0.26), transparent 60%), #0a0e18;
}

.phone__map svg {
    width: 100%;
    height: 100%;
}

.phone__route {
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
}

.phone-wrap.is-in .phone__route {
    animation: draw 3.2s var(--ease-out) 0.5s forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.phone__pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulseRing 2.2s ease-out infinite;
}

@keyframes pulseRing {
    from { transform: scale(0.5); opacity: 1; }
    to { transform: scale(1.9); opacity: 0; }
}

.phone__card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}

.phone__row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ok);
}

.phone__officer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone__officer strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-1);
}

.phone__officer small {
    font-size: 12px;
    color: var(--fg-3);
}

.phone__avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, var(--halo-2), var(--halo));
}

.phone__secure {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--fg-3);
}

.phone__btn {
    display: grid;
    place-items: center;
    height: 42px;
    border-radius: 14px;
    background: var(--fg-1);
    color: var(--bg);
    font-size: 13px;
    font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq__grid {
    display: grid;
    grid-template-columns: 4fr 7fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}

.faq__grid .section__head {
    position: sticky;
    top: calc(var(--nav-h) + 48px);
}

.faq__list {
    border-top: 1px solid var(--line);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding-block: 22px;
    text-align: start;
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--fg-1);
}

.faq__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    transition: transform 0.6s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
}

.faq__q:hover .faq__icon {
    background: rgba(255, 255, 255, 0.07);
}

.faq__q[aria-expanded="true"] .faq__icon {
    transform: rotate(45deg);
    background: var(--fg-1);
    border-color: transparent;
    color: var(--bg);
}

.faq__a {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.7s var(--ease-out);
}

.faq__a > div {
    overflow: hidden;
}

.js .faq__a {
    grid-template-rows: 0fr;
}

.js .faq__a > div {
    visibility: hidden;
    transition: visibility 0s linear 0.7s;
}

.js .faq__item.is-open .faq__a {
    grid-template-rows: 1fr;
}

.js .faq__item.is-open .faq__a > div {
    visibility: visible;
    transition-delay: 0s;
}

.faq__a p {
    max-width: 64ch;
    padding-bottom: 30px;
    padding-inline-end: 66px;
    color: var(--fg-2);
}

/* ---------- Final CTA ---------- */

.cta {
    padding-top: 0;
}

.cta__card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: clamp(72px, 10vw, 140px) clamp(24px, 5vw, 80px);
    border-radius: 40px;
    border: 1px solid var(--line-2);
    text-align: center;
    background:
        radial-gradient(90% 120% at 50% 0%, rgba(184, 137, 46, 0.24), transparent 60%),
        linear-gradient(180deg, #0b0f19, #06080d);
}

.cta__ring {
    position: absolute;
    top: -72%;
    left: 50%;
    z-index: -1;
    width: 960px;
    aspect-ratio: 1;
    translate: -50% 0;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(from 0deg, transparent, rgba(227, 190, 110, 0.6), rgba(255, 255, 255, 0.85), rgba(184, 137, 46, 0.45), transparent 70%);
    -webkit-mask: radial-gradient(closest-side, transparent 97.3%, #000 98%, #000 99%, transparent 99.7%);
    mask: radial-gradient(closest-side, transparent 97.3%, #000 98%, #000 99%, transparent 99.7%);
    filter: drop-shadow(0 0 24px rgba(227, 190, 110, 0.6));
    animation: spin 20s linear infinite;
}

.cta__title {
    max-width: 16ch;
    margin-top: 18px;
    font-size: clamp(30px, 4.5vw, 56px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--fg-1);
    text-wrap: balance;
}

.cta__sub {
    max-width: 480px;
    margin-top: 16px;
    font-size: 15px;
    color: var(--fg-2);
}

.cta__actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 46px;
}

/* ---------- Footer ---------- */

.footer {
    overflow: hidden;
    padding-top: 88px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg), #030406);
}

.footer__top {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
}

.footer__tagline {
    margin-top: 24px;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 24px;
    color: var(--fg-1);
}

.footer__about {
    max-width: 44ch;
    margin-top: 14px;
    font-size: 14.5px;
    color: var(--fg-3);
}

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

.footer__title {
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-4);
}

.footer__cols li + li {
    margin-top: 12px;
}

.footer__cols a {
    font-size: 15px;
    color: var(--fg-2);
    overflow-wrap: anywhere;
    transition: color 0.3s;
}

.footer__cols a:hover {
    color: var(--fg-1);
}

.footer__muted {
    font-size: 14.5px;
    color: var(--fg-3);
}

.footer__wordmark {
    margin-top: 72px;
    direction: ltr;
    font-family: var(--font-latin);
    font-size: clamp(72px, 18vw, 220px);
    font-weight: 600;
    line-height: 0.78;
    letter-spacing: -0.06em;
    text-align: center;
    user-select: none;
    background: linear-gradient(180deg, rgba(244, 228, 184, 0.13), rgba(244, 228, 184, 0) 88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 28px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--fg-4);
}

.footer__top-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fg-3);
    transition: color 0.3s;
}

.footer__top-link:hover {
    color: var(--fg-1);
}

/* ==========================================================================
   Auth (login)
   ========================================================================== */

.auth {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 100vh;
    min-height: 100svh;
}

.auth__visual {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 12px;
    margin-inline-end: 0;
    padding: 36px clamp(28px, 4vw, 56px);
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line);
}

.auth__visual img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
    animation: heroIn 2.4s var(--ease-out) both;
}

[dir="rtl"] .auth__visual img {
    scale: -1 1;
}

.auth__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(5, 7, 11, 0.95) 5%, rgba(5, 7, 11, 0.2) 55%, rgba(5, 7, 11, 0.55) 100%);
}

.auth__visual-title {
    max-width: 16ch;
    margin-top: 14px;
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--fg-1);
    text-wrap: balance;
}

.auth__visual-text {
    max-width: 44ch;
    margin-top: 16px;
    color: var(--fg-2);
}

.auth__visual .pill {
    margin-top: 32px;
}

.auth__panel {
    display: flex;
    flex-direction: column;
    padding: 24px clamp(24px, 5vw, 72px) 32px;
}

.auth__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding-inline: 14px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--fg-3);
    border: 1px solid var(--line);
    transition: color 0.3s, border-color 0.3s;
}

.auth__back:hover {
    color: var(--fg-1);
    border-color: var(--line-2);
}

.auth__back .icon {
    transform: scaleX(-1);
}

[dir="rtl"] .auth__back .icon {
    transform: none;
}

.auth__form-wrap {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    padding-block: 48px;
}

.auth__mobile-logo {
    display: none;
    margin-bottom: 36px;
}

.auth__title {
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--fg-1);
}

.auth__subtitle {
    margin-top: 12px;
    color: var(--fg-3);
}

.auth__form {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.field {
    display: grid;
    gap: 8px;
}

.field__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-2);
}

.field__link {
    font-size: 13.5px;
    color: var(--halo-3);
    transition: color 0.3s;
}

.field__link:hover {
    color: #fff;
}

.input-wrap {
    position: relative;
}

.input {
    width: 100%;
    height: 56px;
    padding-inline: 18px;
    border-radius: 16px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 16px;
    color: var(--fg-1);
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.input::placeholder {
    color: var(--fg-4);
}

.input:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.input:focus {
    outline: none;
    border-color: rgba(227, 190, 110, 0.75);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(227, 190, 110, 0.16);
}

.input[aria-invalid="true"] {
    border-color: rgba(255, 107, 107, 0.6);
}

.input-wrap .input {
    padding-inline-end: 56px;
}

.input:-webkit-autofill {
    -webkit-text-fill-color: var(--fg-1);
    -webkit-box-shadow: 0 0 0 100px #0e121b inset;
    caret-color: var(--fg-1);
}

.reveal-btn {
    position: absolute;
    top: 7px;
    inset-inline-end: 7px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--fg-3);
    transition: color 0.3s, background-color 0.3s;
}

.reveal-btn:hover {
    color: var(--fg-1);
    background: rgba(255, 255, 255, 0.06);
}

.reveal-btn .icon-hide {
    display: none;
}

.reveal-btn[aria-pressed="true"] .icon-show {
    display: none;
}

.reveal-btn[aria-pressed="true"] .icon-hide {
    display: block;
}

.auth__submit {
    width: 100%;
    margin-top: 8px;
}

.auth__secure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 13px;
    color: var(--fg-4);
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid;
    font-size: 14.5px;
}

.alert ul {
    display: grid;
    gap: 4px;
}

.alert--error {
    color: #ffc2c2;
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.3);
}

.alert--ok {
    color: #b3f5d9;
    background: rgba(62, 224, 160, 0.08);
    border-color: rgba(62, 224, 160, 0.3);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--nav-h) + 110px) 0 72px;
    text-align: center;
}

.legal-hero .hero__ring {
    top: -120%;
    left: 50%;
    inset-inline-start: auto;
    width: 1100px;
    translate: -50% 0;
    opacity: 0.6;
}

.legal-hero h1 {
    margin-top: 16px;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--fg-1);
}

.legal-body {
    max-width: 860px;
    margin-inline: auto;
    margin-bottom: clamp(96px, 12vw, 160px);
    padding: clamp(28px, 5vw, 64px);
    border-radius: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.prose {
    font-size: 15px;
    line-height: 1.7;
    color: var(--fg-2);
    overflow-wrap: anywhere;
}

.prose * {
    color: inherit !important;
    background: transparent !important;
    font-family: inherit !important;
    max-width: 100%;
}

.prose :is(p, span, li, div, a, strong, em, b, i, td, th) {
    font-size: inherit !important;
    line-height: inherit !important;
}

.prose p {
    margin: 0 0 1.1em !important;
}

.prose :is(h1, h2, h3, h4, h5) {
    margin: 2em 0 0.6em !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    font-weight: 500 !important;
    color: var(--fg-1) !important;
}

.prose :is(h1, h2) { font-size: 28px !important; }
.prose :is(h3, h4, h5) { font-size: 21px !important; }

.prose > :first-child {
    margin-top: 0 !important;
}

.prose :is(strong, b) {
    color: var(--fg-1) !important;
    font-weight: 600;
}

.prose a {
    color: var(--halo-3) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose ul,
.prose ol {
    margin: 0 0 1.2em !important;
    padding-inline-start: 1.4em !important;
    list-style: revert;
}

.prose li {
    margin-bottom: 0.4em;
}

.legal-empty {
    text-align: center;
    color: var(--fg-3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: block;
    }
}

@media (max-width: 1024px) {
    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card--xl {
        grid-row: span 1;
        min-height: 520px;
    }

    .card--tall {
        grid-row: span 1;
    }

    .card--wide {
        grid-column: span 2;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 48px;
    }

    .stat:nth-child(3) {
        padding-inline-start: 0;
        border-inline-start: 0;
    }
}

@media (max-width: 960px) {
    .method__grid,
    .standards__grid,
    .app__grid,
    .faq__grid,
    .footer__top {
        grid-template-columns: 1fr;
    }

    .method__intro,
    .faq__grid .section__head {
        position: static;
    }

    .standards__media {
        max-width: 520px;
    }

    .standards__badge {
        inset-inline-end: 16px;
    }

    .auth {
        grid-template-columns: 1fr;
    }

    .auth__visual {
        display: none;
    }

    .auth__mobile-logo {
        display: inline-flex;
    }
}

@media (max-width: 760px) {
    .command__frame {
        min-height: 0;
        padding-top: 220px;
    }

    .command__points {
        grid-template-columns: 1fr;
    }

    .hero__scroll {
        display: none;
    }

    .hero__ring {
        top: -22%;
        inset-inline-start: -60%;
        width: 150vw;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .nav__lang,
    .nav__login {
        display: none;
    }

    .nav__bar {
        padding-inline: 16px 8px;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .card--xl,
    .card--wide {
        grid-column: auto;
    }

    .card,
    .card--xl,
    .card--wide {
        min-height: 420px;
    }

    .stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 0;
    }

    .stat {
        padding-inline: 18px;
    }

    .stat:nth-child(odd) {
        padding-inline-start: 0;
        border-inline-start: 0;
    }

    .step {
        grid-template-columns: 48px 1fr;
        gap: 20px;
    }

    .step__num {
        width: 48px;
        height: 48px;
    }

    .steps__rail {
        inset-inline-start: 23px;
    }

    .faq__a p {
        padding-inline-end: 0;
    }

    .footer__cols {
        grid-template-columns: 1fr 1fr;
    }

    .hero__ctas .btn {
        flex: 1 1 auto;
    }

    .cta__actions .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .nav__cta {
        display: none;
    }

    .footer__cols {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }

    html:not(.lenis) {
        scroll-behavior: auto;
    }

    .marquee__track,
    .hero__ring,
    .cta__ring,
    .btn--shine::after,
    .standards__badge {
        animation: none !important;
    }

    .js [data-reveal],
    .word,
    .enter {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .phone__route {
        stroke-dashoffset: 0;
    }
}

.auth__top .nav__lang { display: inline-flex; }

