/* =========================================================================
   HIWAY FIRDOWS — Design system
   1. Fonts & tokens     6. Buttons & chips       11. Footer
   2. Base               7. Cards & panels        12. Floating actions & toasts
   3. Layout utilities   8. Reveal animations     13. Forms
   4. Preloader & bars   9. Page hero             14. Accessibility & motion
   5. Header & drawer   10. Shared sections
   ========================================================================= */

/* 1. FONTS & TOKENS ------------------------------------------------------ */
@font-face { font-family: 'Gellix'; src: url('../../fonts/Gellix-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gellix'; src: url('../../fonts/Gellix-SemiBold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'Jali Arabic'; src: url('../../fonts/Jali%20Arabic%20Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jali Arabic'; src: url('../../fonts/Jali%20Arabic%20Bold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }

:root {
    --brand: #0071B7;
    --brand-600: #005f9a;
    --brand-700: #054e75;
    --brand-800: #06324d;
    --brand-300: #5bb4ea;
    --brand-200: #a9d8f5;
    --brand-100: #dcf0fc;
    --brand-50: #F3FBFF;
    --cyan: #3fd0ff;
    --gold: #f5b94a;
    --success: #1fb57a;
    --danger: #e5484d;

    --navy: #04111d;
    --navy-2: #071c2e;
    --navy-3: #0b2a44;

    --bg: #F3FBFF;
    --surface: #ffffff;
    --surface-2: #eaf5fc;
    --ink: #0b1b2b;
    --ink-2: #2b3d50;
    --muted: #5d6f82;
    --line: rgba(5, 78, 117, .12);
    --line-strong: rgba(5, 78, 117, .22);

    --grad-brand: linear-gradient(135deg, #054e75 0%, #0071B7 55%, #2aa3e4 100%);
    --grad-dark: linear-gradient(135deg, #000 0%, #0a2a43 45%, #187db3 100%);
    --grad-text: linear-gradient(100deg, #054e75 0%, #0071B7 40%, #3fb5f0 60%, #054e75 100%);

    --radius-xs: 8px;
    --radius-s: 14px;
    --radius: 22px;
    --radius-l: 32px;
    --radius-pill: 999px;

    --shadow-s: 0 1px 2px rgba(5, 40, 70, .06), 0 4px 14px -6px rgba(5, 40, 70, .12);
    --shadow: 0 24px 60px -28px rgba(5, 60, 100, .35), 0 2px 8px rgba(5, 40, 70, .05);
    --shadow-l: 0 50px 100px -40px rgba(4, 50, 90, .45), 0 4px 16px rgba(5, 40, 70, .06);
    --shadow-brand: 0 18px 40px -14px rgba(0, 113, 183, .6);

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);

    --font: 'Gellix', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-rtl: 'Jali Arabic', 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;

    --header-h: 84px;
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(64px, 8vw, 116px);

    --rx: 1;  /* direction multiplier (flipped in RTL) */
    color-scheme: light;
}

[dir="rtl"] { --rx: -1; }

[data-theme="dark"] {
    --bg: #050f19;
    --surface: #0b1b2a;
    --surface-2: #0f2437;
    --ink: #e8f3fb;
    --ink-2: #c6d8e7;
    --muted: #8ea6ba;
    --line: rgba(140, 195, 235, .12);
    --line-strong: rgba(140, 195, 235, .22);
    --grad-text: linear-gradient(100deg, #7cc8f5 0%, #ffffff 40%, #3fd0ff 60%, #7cc8f5 100%);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -6px rgba(0, 0, 0, .4);
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-l: 0 50px 100px -40px rgba(0, 0, 0, .8);
    color-scheme: dark;
}

/* 2. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden; overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font);
    font-size: clamp(15px, 1vw + 10px, 17px);
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden; overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color .5s var(--ease), color .5s var(--ease);
}

[dir="rtl"] body { font-family: var(--font-rtl); line-height: 1.85; }

[hidden] { display: none !important; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.35; }
::selection { background: var(--brand); color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* Fancy scrollbar */
@media (pointer: fine) {
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: linear-gradient(var(--brand-700), var(--brand)); border-radius: 10px; border: 2px solid var(--bg); }
}

/* 3. LAYOUT UTILITIES --------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 50%, var(--bg) 100%); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy); color: #d9e9f5; overflow: hidden; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: rgba(217, 233, 245, .75); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.section-head--start { margin-inline: 0; text-align: start; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--brand); padding: 7px 16px 7px 12px; border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--brand) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
    margin-bottom: 18px;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .9rem; padding: 7px 12px 7px 16px; }
.eyebrow::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent);
    animation: pulse-dot 2.2s infinite;
}
.section--dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: #8fd6ff; background: rgba(63, 208, 255, .08); border-color: rgba(63, 208, 255, .25); }
.section--dark .eyebrow::before, .page-hero .eyebrow::before, .hero .eyebrow::before { background: var(--cyan); box-shadow: 0 0 0 4px rgba(63, 208, 255, .2); }

.title { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 18px; }
.title-sm { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 14px; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--muted); }

.text-gradient {
    background: var(--grad-text); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shine-text 6s linear infinite;
}
.section--dark .text-gradient, .page-hero .text-gradient, .hero .text-gradient {
    background-image: linear-gradient(100deg, #7cc8f5 0%, #fff 35%, #3fd0ff 55%, #7cc8f5 100%);
}

/* Blueprint grid background */
.bg-blueprint { position: relative; }
.bg-blueprint::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    opacity: .7;
}
.bg-blueprint > * { position: relative; }

/* 4. PRELOADER & PROGRESS ---------------------------------------------- */
.preloader {
    position: fixed; inset: 0; z-index: 9999; background: var(--navy);
    display: grid; place-items: center; place-content: center; gap: 28px;
    transition: opacity .6s var(--ease), visibility .6s;
}
.no-preload .preloader, .preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__panes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.preloader__panes span {
    border-inline-end: 1px solid rgba(63, 208, 255, .08);
    background: linear-gradient(180deg, transparent, rgba(0, 113, 183, .12), transparent);
    background-size: 100% 300%; animation: pane-sweep 2.4s var(--ease-in-out) infinite;
}
.preloader__panes span:nth-child(2) { animation-delay: .15s; }
.preloader__panes span:nth-child(3) { animation-delay: .3s; }
.preloader__panes span:nth-child(4) { animation-delay: .45s; }
.preloader__logo { width: min(220px, 50vw); filter: brightness(0) invert(1); position: relative; animation: logo-breathe 1.8s ease-in-out infinite; }
.preloader__bar { width: 180px; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; position: relative; margin-inline: auto; }
.preloader__bar span { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: bar-run 1.1s var(--ease-in-out) infinite; }

.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1200; pointer-events: none; }
.scroll-progress span {
    display: block; height: 100%; width: 100%;
    background: linear-gradient(90deg, var(--brand-700), var(--brand), var(--cyan));
    transform-origin: left; transform: scaleX(var(--progress, 0));
    box-shadow: 0 0 12px rgba(63, 208, 255, .7);
}
[dir="rtl"] .scroll-progress span { transform-origin: right; }

.cursor-glow {
    position: fixed; width: 420px; height: 420px; left: 0; top: 0; z-index: 0; pointer-events: none;
    border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, rgba(0, 113, 183, .12), transparent 65%);
    transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0) translate(-50%, -50%);
    transition: opacity .4s;
}
.has-cursor .cursor-glow { opacity: 1; }

/* 5. HEADER & DRAWER ----------------------------------------------------- */
.skip-link {
    position: fixed; top: 10px; inset-inline-start: 10px; z-index: 3000; padding: 10px 18px;
    background: var(--brand); color: #fff; border-radius: var(--radius-s);
    transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 1100; height: var(--header-h);
    display: flex; align-items: center; color: #fff;
    transition: transform .5s var(--ease), background-color .4s, box-shadow .4s, height .4s var(--ease), color .4s;
}
.site-header::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 1px; opacity: 0; transition: opacity .4s;
    background: linear-gradient(90deg, transparent, var(--brand), var(--cyan), var(--brand), transparent);
}
.site-header.is-scrolled {
    --header-h: 70px;
    color: var(--ink);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 10px 40px -20px rgba(4, 40, 70, .35);
}
.site-header.is-scrolled::after { opacity: .7; }
.site-header.is-hidden { transform: translateY(-110%); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }

.brand img { height: 54px; width: auto; filter: brightness(0) invert(1); transition: filter .4s, height .4s var(--ease), transform .4s var(--ease); }
.site-header.is-scrolled .brand img { height: 46px; filter: none; }
[data-theme="dark"] .site-header.is-scrolled .brand img { filter: brightness(0) invert(1); }
.brand:hover img { transform: scale(1.04); }

.main-nav { position: relative; }
.nav-list { display: flex; gap: 6px; }
.nav-link {
    position: relative; z-index: 1; display: block; padding: 10px 18px; border-radius: var(--radius-pill);
    font-weight: 600; font-size: .98rem; opacity: .85; transition: opacity .3s, color .3s;
}
.nav-link:hover, .nav-link.is-active { opacity: 1; }
.nav-indicator {
    position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
    transform: translateX(var(--ind-x, 0)); width: var(--ind-w, 0); opacity: var(--ind-o, 0);
    transition: transform .45s var(--spring), width .45s var(--spring), opacity .3s;
}
.site-header.is-scrolled .nav-indicator { background: color-mix(in srgb, var(--brand) 10%, transparent); border-color: color-mix(in srgb, var(--brand) 22%, transparent); }
.site-header.is-scrolled .nav-link.is-active { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
    width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
    transition: background .3s, border-color .3s, transform .3s var(--spring);
}
.icon-btn:hover { transform: rotate(-12deg) scale(1.06); background: rgba(255, 255, 255, .14); }
.site-header.is-scrolled .icon-btn, .drawer .icon-btn { border-color: var(--line-strong); background: var(--surface); }
.icon-btn .icon { width: 20px; height: 20px; }

.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle .icon { position: absolute; transition: transform .6s var(--spring), opacity .4s; }
.theme-toggle__moon { transform: translateY(140%) rotate(-90deg); opacity: 0; }
[data-theme="dark"] .theme-toggle__sun { transform: translateY(-140%) rotate(90deg); opacity: 0; }
[data-theme="dark"] .theme-toggle__moon { transform: none; opacity: 1; }

.lang-switch { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 14px;
    border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
    font-weight: 600; font-size: .92rem; transition: background .3s, border-color .3s;
}
.lang-btn:hover { background: rgba(255, 255, 255, .14); }
.site-header.is-scrolled .lang-btn { border-color: var(--line-strong); background: var(--surface); }
.lang-btn .icon { width: 18px; height: 18px; }
.lang-btn__chev { transition: transform .35s var(--ease); }
.lang-switch.is-open .lang-btn__chev { transform: rotate(180deg); }
.lang-menu {
    position: absolute; top: calc(100% + 12px); inset-inline-end: 0; min-width: 190px; padding: 8px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s);
    box-shadow: var(--shadow-l); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
    transform-origin: top right; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
[dir="rtl"] .lang-menu { transform-origin: top left; }
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600; transition: background .25s, padding .25s var(--ease); }
.lang-menu a:hover { background: var(--surface-2); padding-inline-start: 16px; }
.lang-menu a.is-current { color: var(--brand); }
.lang-menu .flag { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.lang-check { margin-inline-start: auto; width: 16px; height: 16px; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.site-header.is-scrolled .burger { border-color: var(--line-strong); background: var(--surface); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--spring), opacity .3s, top .4s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; right: 18px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
    .main-nav, .header-actions .header-cta { display: none; }
    .burger { display: inline-block; }
}
@media (max-width: 520px) {
    .lang-btn span { display: none; }
    .lang-btn { padding-inline: 12px; }
    .brand img { height: 44px; }
    .header-actions { gap: 6px; }
    .icon-btn, .lang-btn, .burger { height: 42px; }
    .icon-btn, .burger { width: 42px; }
}

.drawer { position: fixed; inset: 0; z-index: 1300; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(2, 10, 18, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute; inset-block: 0; inset-inline-end: 0; width: min(420px, 92vw);
    background: var(--surface); color: var(--ink); padding: 22px 24px calc(24px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 22px; overflow-y: auto;
    transform: translateX(calc(105% * var(--rx))); transition: transform .6s var(--ease);
    box-shadow: var(--shadow-l);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__logo { height: 46px; width: auto; }
[data-theme="dark"] .drawer__logo { filter: brightness(0) invert(1); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__link {
    display: flex; align-items: center; gap: 16px; padding: 16px 6px; border-bottom: 1px solid var(--line);
    font-size: 1.45rem; font-weight: 700; opacity: 0; transform: translateX(calc(30px * var(--rx)));
    transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s, padding .3s var(--ease);
    transition-delay: calc(var(--i) * 60ms + 120ms);
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer__link small { font-size: .78rem; color: var(--muted); font-weight: 600; min-width: 24px; }
.drawer__link .icon { margin-inline-start: auto; width: 20px; opacity: .35; transition: opacity .3s, transform .3s var(--ease); }
.drawer__link:hover, .drawer__link.is-active { color: var(--brand); padding-inline-start: 12px; }
.drawer__link:hover .icon { opacity: 1; }
.drawer__langs { display: flex; gap: 8px; flex-wrap: wrap; }
.drawer__contact { margin-top: auto; display: grid; gap: 12px; }
.drawer__contact a:not(.btn) { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }
.drawer__contact .icon { color: var(--brand); }

/* 6. BUTTONS & CHIPS ----------------------------------------------------- */
.btn {
    --btn-bg: var(--surface); --btn-fg: var(--ink);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    padding: 15px 30px; border-radius: var(--radius-pill); font-weight: 700; font-size: 1rem; line-height: 1.2;
    background: var(--btn-bg); color: var(--btn-fg); border: 1px solid transparent;
    transition: transform .45s var(--spring), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
    white-space: nowrap; will-change: transform;
}
.btn .icon { width: 18px; height: 18px; transition: transform .45s var(--spring); }
.btn:hover .icon-flip { transform: translateX(calc(5px * var(--rx))) scaleX(var(--rx)); }
.btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: scale(.97); }
.btn--primary { --btn-bg: var(--grad-brand); --btn-fg: #fff; background: var(--grad-brand); box-shadow: var(--shadow-brand); }
.btn--primary:hover { box-shadow: 0 24px 50px -14px rgba(0, 113, 183, .75); }
.btn--outline { background: transparent; color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.btn--outline:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-700); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .5); }
.btn--glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); }
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--lg { padding: 19px 38px; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--radius-pill);
    border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: .92rem;
    transition: all .3s var(--ease); cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.chip.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.chip .icon { width: 18px; height: 18px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); }
.link-arrow .icon { width: 18px; transition: transform .4s var(--spring); }
.link-arrow:hover .icon { transform: translateX(calc(6px * var(--rx))) scaleX(var(--rx)); }

/* 7. CARDS & PANELS ----------------------------------------------------- */
.card {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(24px, 2.6vw, 36px); box-shadow: var(--shadow-s);
    transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); }

/* Mouse-following spotlight */
.spotlight::before {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%);
}
.spotlight::after {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .4s;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--cyan), transparent 60%);
    -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);
}
.spotlight:hover::before, .spotlight:hover::after { opacity: 1; }

.glass {
    background: linear-gradient(140deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-radius: var(--radius); color: #fff;
}

.icon-badge {
    width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0;
    background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); position: relative; overflow: hidden;
    transition: transform .6s var(--spring), border-radius .6s var(--ease);
}
.icon-badge::after {
    content: ''; position: absolute; inset: -50%;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 255, 255, .45) 80%, transparent 90%);
    animation: spin 4s linear infinite; opacity: 0; transition: opacity .4s;
}
.icon-badge .icon { width: 28px; height: 28px; position: relative; z-index: 1; }
.card:hover .icon-badge { transform: rotate(-8deg) scale(1.08); border-radius: 50%; }
.card:hover .icon-badge::after { opacity: 1; }
.icon-badge--soft { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); box-shadow: none; }

.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); transition: transform .3s var(--ease), color .3s; }
.check-list li:hover { transform: translateX(calc(6px * var(--rx))); color: var(--brand); }
.check-list .icon {
    width: 22px; height: 22px; padding: 4px; border-radius: 50%; margin-top: 2px;
    background: var(--grad-brand); color: #fff; stroke-width: 3;
}

/* Counters / stat tiles */
.stat { text-align: center; }
.stat__num { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__num .suffix { color: var(--brand); }
.stat__label { margin-top: 10px; color: var(--muted); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
[dir="rtl"] .stat__label { letter-spacing: 0; text-transform: none; font-size: 1rem; }

/* 8. REVEAL ANIMATIONS ------------------------------------------------ */
.js [data-reveal] {
    opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease), clip-path 1.1s var(--ease), filter .9s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms + var(--delay, 0ms));
}
.js [data-reveal="up"] { transform: translateY(46px); }
.js [data-reveal="down"] { transform: translateY(-36px); }
.js [data-reveal="start"] { transform: translateX(calc(-56px * var(--rx))); }
.js [data-reveal="end"] { transform: translateX(calc(56px * var(--rx))); }
.js [data-reveal="zoom"] { transform: scale(.9); }
.js [data-reveal="blur"] { filter: blur(14px); transform: translateY(20px); }
.js [data-reveal="mask"] { clip-path: inset(0 0 100% 0); transform: translateY(30px); }
.js [data-reveal="flip"] { transform: perspective(900px) rotateX(18deg) translateY(40px); transform-origin: 50% 100%; }
@media (max-width: 700px) {
    .js [data-reveal="start"] { transform: translateX(calc(-22px * var(--rx))); }
    .js [data-reveal="end"] { transform: translateX(calc(22px * var(--rx))); }
    .btn { white-space: normal; text-align: center; }
    .btn--lg { padding: 16px 26px; }
}
.js [data-reveal].is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); filter: none; }

/* Split-word headline */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi) * 70ms + 200ms); }
.split-words.is-visible .w > span, .no-js .split-words .w > span { transform: none; }

/* 9. PAGE HERO (inner pages) ------------------------------------------ */
.page-hero {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--navy);
    padding: calc(var(--header-h) + clamp(70px, 10vw, 130px)) 0 clamp(80px, 11vw, 150px);
    text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 6.5vw, 5.4rem); margin-bottom: 18px; }
.page-hero p { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: rgba(220, 238, 250, .8); max-width: 720px; margin-inline: auto; }

.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: aurora 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 55vw; height: 55vw; max-width: 760px; max-height: 760px; background: #0071B7; top: -30%; left: -10%; }
.aurora span:nth-child(2) { width: 45vw; height: 45vw; max-width: 620px; max-height: 620px; background: #0b3c63; bottom: -35%; right: -10%; animation-delay: -6s; animation-duration: 22s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; background: #1aa8e6; top: 30%; left: 45%; opacity: .3; animation-delay: -12s; animation-duration: 26s; }

.hero-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(120, 200, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 200, 255, .07) 1px, transparent 1px);
    background-size: 80px 80px; animation: grid-drift 30s linear infinite;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero-beam {
    position: absolute; z-index: -1; top: -20%; width: 2px; height: 140%; transform: rotate(18deg);
    background: linear-gradient(180deg, transparent, rgba(63, 208, 255, .55), transparent);
    animation: beam 7s var(--ease-in-out) infinite; opacity: 0;
}
.hero-beam:nth-of-type(2) { left: 30%; animation-delay: 2.3s; }
.hero-beam:nth-of-type(3) { left: 70%; animation-delay: 4.6s; }

.breadcrumbs { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; padding: 8px 18px; border-radius: var(--radius-pill); font-size: .9rem; }
.breadcrumbs a { opacity: .75; transition: opacity .3s; }
.breadcrumbs a:hover { opacity: 1; }
.breadcrumbs .icon { width: 14px; height: 14px; opacity: .6; }
.breadcrumbs [aria-current] { color: var(--cyan); font-weight: 600; }

.page-hero__float { position: absolute; z-index: -1; border-radius: 18px; animation: float-y 8s ease-in-out infinite; }
.page-hero__float--a { width: 120px; height: 160px; top: 24%; inset-inline-start: 7%; transform: rotate(-12deg); }
.page-hero__float--b { width: 90px; height: 120px; bottom: 16%; inset-inline-end: 9%; animation-delay: -3s; transform: rotate(10deg); }
@media (max-width: 760px) { .page-hero__float { display: none; } }

.wave-divider { position: absolute; inset: auto 0 -1px 0; height: clamp(40px, 6vw, 90px); color: var(--bg); }
.wave-divider svg { width: 100%; height: 100%; }

/* 10. SHARED SECTIONS ---------------------------------------------------- */
/* CTA band */
.cta-band {
    position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-l);
    background: var(--grad-dark); color: #fff; padding: clamp(40px, 7vw, 90px); text-align: center;
}
.cta-band::before {
    content: ''; position: absolute; inset: -40%; z-index: -1;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0 25%, rgba(63, 208, 255, .25) 35%, transparent 45% 75%, rgba(0, 113, 183, .35) 85%, transparent 95%);
    animation: spin 18s linear infinite;
}
.cta-band::after { content: ''; position: absolute; inset: 1px; z-index: -1; border-radius: calc(var(--radius-l) - 1px); background: var(--grad-dark); opacity: .92; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 14px; }
.cta-band p { color: rgba(220, 238, 250, .8); font-size: 1.15rem; margin-bottom: 34px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Marquee */
.marquee { --gap: 26px; display: flex; overflow: hidden; gap: var(--gap); user-select: none;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: var(--gap); flex-shrink: 0; min-width: 100%; justify-content: space-around; animation: marquee 38s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 44s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }

/* Tabs */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); position: relative; }
.tab {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius-pill); font-weight: 700; font-size: .95rem; color: var(--muted); transition: color .35s;
}
.tab .icon { width: 18px; height: 18px; }
.tab[aria-selected="true"] { color: #fff; }
.tabs__ink {
    position: absolute; z-index: 0; top: 0; left: 0; height: var(--ink-h, 0); border-radius: var(--radius-pill);
    background: var(--grad-brand); box-shadow: var(--shadow-brand);
    transform: translate(var(--ink-x, 0), var(--ink-y, 0)); width: var(--ink-w, 0);
    transition: transform .5s var(--spring), width .5s var(--spring), height .5s var(--spring);
}
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering { animation: panel-in .6s var(--ease); }

/* Accordion */
.accordion { display: grid; gap: 14px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.acc-item.is-open { border-color: color-mix(in srgb, var(--brand) 40%, transparent); box-shadow: var(--shadow); }
.acc-trigger { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-align: start; font-weight: 700; font-size: 1.05rem; }
.acc-trigger .q-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); flex-shrink: 0; }
.acc-trigger .acc-plus { margin-inline-start: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: transform .45s var(--spring), background .3s, color .3s; }
.acc-item.is-open .acc-plus { transform: rotate(135deg); background: var(--brand); color: #fff; border-color: var(--brand); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 22px 22px calc(22px + 50px); color: var(--muted); }
[dir="rtl"] .acc-panel p { padding: 0 calc(22px + 50px) 22px 22px; }

/* Range slider */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; outline: none; cursor: pointer;
    background: linear-gradient(90deg, var(--brand) 0 var(--fill, 50%), var(--line-strong) var(--fill, 50%) 100%); }
[dir="rtl"] .range { background: linear-gradient(270deg, var(--brand) 0 var(--fill, 50%), var(--line-strong) var(--fill, 50%) 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--brand); box-shadow: 0 4px 14px rgba(0, 113, 183, .45); transition: transform .3s var(--spring); }
.range::-webkit-slider-thumb:hover { transform: scale(1.18); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--brand); box-shadow: 0 4px 14px rgba(0, 113, 183, .45); }
.range:focus-visible { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(2, 8, 14, .92); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { max-width: min(1100px, 92vw); max-height: 82vh; text-align: center; transform: scale(.94); transition: transform .5s var(--ease); }
.lightbox.is-open .lightbox__figure { transform: none; }
.lightbox__img { max-height: 74vh; width: auto; margin-inline: auto; border-radius: var(--radius-s); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.lightbox__img.is-switching { animation: lb-switch .45s var(--ease); }
.lightbox__caption { margin-top: 16px; color: #e8f3fb; font-weight: 600; display: flex; justify-content: center; gap: 14px; align-items: center; }
.lightbox__count { color: var(--cyan); font-variant-numeric: tabular-nums; }
.lightbox__btn { position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); transition: background .3s, transform .3s var(--spring); }
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); transform: scale(1.08); }
.lightbox__close { top: 22px; inset-inline-end: 22px; }
.lightbox__prev { inset-inline-start: 22px; top: 50%; margin-top: -27px; }
.lightbox__next { inset-inline-end: 22px; top: 50%; margin-top: -27px; }
[dir="rtl"] .lightbox__prev .icon, [dir="rtl"] .lightbox__next .icon { transform: scaleX(-1); }

/* 11. FOOTER ---------------------------------------------------------------- */
.site-footer { position: relative; overflow-x: clip; isolation: isolate; background: var(--navy); color: rgba(220, 236, 248, .72); padding-top: 0; margin-top: clamp(60px, 8vw, 110px); }
.footer-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(600px 300px at 15% 0%, rgba(0, 113, 183, .35), transparent 70%), radial-gradient(500px 300px at 90% 30%, rgba(63, 208, 255, .12), transparent 70%); }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--brand), var(--cyan), var(--brand), transparent); }

.footer-cta {
    position: relative; top: -64px; margin-bottom: -24px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    padding: clamp(28px, 4vw, 48px) clamp(26px, 5vw, 60px); border-radius: var(--radius-l);
    background: var(--grad-brand); color: #fff; box-shadow: 0 40px 80px -30px rgba(0, 80, 140, .7); overflow: hidden;
}
.footer-cta::after { content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
[dir="rtl"] .footer-cta::after { mask-image: linear-gradient(270deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(270deg, transparent, #000 60%); }
.footer-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 6px; }
.footer-cta p { color: rgba(255, 255, 255, .85); }
.footer-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.footer-cta__text { position: relative; z-index: 1; }

.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(30px, 5vw, 70px); padding-block: 40px 50px; }
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-main { grid-template-columns: 1fr; } }
.footer-logo img { height: 74px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 18px; }
.footer-desc { max-width: 380px; margin-bottom: 26px; }
.footer-title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
[dir="rtl"] .footer-title { letter-spacing: 0; font-size: 1rem; }
.footer-title::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 28px; height: 2px; background: var(--cyan); border-radius: 2px; transition: width .4s var(--ease); }
.footer-col:hover .footer-title::after { width: 56px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { position: relative; display: inline-flex; align-items: center; transition: color .3s, transform .3s var(--ease); }
.footer-links a::before { content: ''; width: 0; height: 2px; background: var(--cyan); border-radius: 2px; transition: width .35s var(--ease), margin .35s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { width: 14px; margin-inline-end: 8px; }
.footer-contact { display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { color: var(--cyan); margin-top: 3px; }
.footer-contact a:hover { color: #fff; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; transition: transform .45s var(--spring), background .35s, border-color .35s; }
.social .icon { width: 19px; height: 19px; }
.social:hover { transform: translateY(-5px) rotate(-6deg); border-color: transparent; }
.social--fb:hover { background: #1877f2; }
.social--ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.social--wa:hover { background: #25d366; }
.social--tg:hover { background: #229ed9; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 26px; font-size: .9rem; position: relative; }
.footer-bottom::before { content: ''; position: absolute; top: 0; inset-inline: var(--gutter); height: 1px; background: rgba(255, 255, 255, .08); }
.footer-bottom a:hover { color: #fff; }
.footer-tagline { opacity: .7; }
.site-footer--plain { padding-top: 30px; }
.footer-wordmark {
    font-family: var(--font); font-weight: 800; font-size: clamp(3rem, 13vw, 12rem); line-height: .8; text-align: center; white-space: nowrap;
    letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(120, 200, 255, .13); user-select: none;
    height: .74em; overflow: hidden; direction: ltr; margin-top: 10px;
}

/* 12. FLOATING ACTIONS & TOASTS --------------------------------------------- */
.fab-stack { position: fixed; z-index: 1000; bottom: calc(20px + env(safe-area-inset-bottom)); inset-inline-end: 20px; display: grid; gap: 12px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); transition: transform .45s var(--spring), opacity .4s, visibility .4s; }
.fab .icon { width: 24px; height: 24px; }
@media (max-width: 600px) { .fab { width: 50px; height: 50px; } .fab-stack { inset-inline-end: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); } }
.fab:hover { transform: translateY(-4px) scale(1.06); }
.fab--wa { background: #25d366; }
.fab--wa::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ripple-ring 2.4s var(--ease) infinite; }
.fab--top { background: var(--navy-3); opacity: 0; visibility: hidden; transform: translateY(16px); }
.fab--top.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fab__ring circle { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: calc(138.2 - 138.2 * var(--progress, 0)); }

.toast-region { position: fixed; z-index: 2500; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-s); background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-l); animation: toast-in .55s var(--spring); position: relative; overflow: hidden; }
.toast::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--brand); transform-origin: left; animation: toast-timer var(--ttl, 5s) linear forwards; }
.toast--success .icon { color: var(--success); }
.toast--success::after { background: var(--success); }
.toast--error .icon { color: var(--danger); }
.toast--error::after { background: var(--danger); }
.toast.is-leaving { animation: toast-out .4s var(--ease) forwards; }

/* 13. FORMS ----------------------------------------------------------------- */
.field { position: relative; }
.field__input {
    width: 100%; padding: 26px 18px 10px; border-radius: var(--radius-s); border: 1.5px solid var(--line-strong);
    background: var(--surface); color: var(--ink); outline: none; font-size: 1rem;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
textarea.field__input { min-height: 160px; resize: vertical; }
select.field__input { appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230071B7' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 46px; }
[dir="rtl"] select.field__input { background-position: left 16px center; }
.field__label {
    position: absolute; top: 18px; inset-inline-start: 18px; color: var(--muted); pointer-events: none; font-size: 1rem;
    transform-origin: left top; transition: transform .3s var(--ease), color .3s, top .3s var(--ease);
}
[dir="rtl"] .field__label { transform-origin: right top; }
.field__input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
select.field__input + .field__label { top: 8px; transform: scale(.78); color: var(--brand); font-weight: 600; }
.field__label .req { color: var(--danger); }
.field__error { display: block; font-size: .85rem; color: var(--danger); margin-top: 6px; min-height: 0; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.field.is-invalid .field__input { border-color: var(--danger); animation: shake .45s; }
.field.is-invalid .field__error { opacity: 1; transform: none; }
.field.is-valid .field__input { border-color: color-mix(in srgb, var(--success) 60%, transparent); }
.field__count { position: absolute; bottom: 10px; inset-inline-end: 14px; font-size: .78rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* 14. ACCESSIBILITY & MOTION ------------------------------------------------- */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1; transform: none; clip-path: none; filter: none; }
    .split-words .w > span { transform: none; }
}

/* KEYFRAMES ------------------------------------------------------------------ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } }
@keyframes shine-text { to { background-position: -220% 0; } }
@keyframes pane-sweep { 0% { background-position: 0 100%; } 100% { background-position: 0 -100%; } }
@keyframes logo-breathe { 0%, 100% { opacity: .65; transform: scale(.98); } 50% { opacity: 1; transform: scale(1); } }
@keyframes bar-run { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes aurora { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, 6%) scale(1.15); } 100% { transform: translate(-6%, 10%) scale(.95); } }
@keyframes grid-drift { to { background-position: 80px 80px; } }
@keyframes beam { 0% { opacity: 0; transform: translateX(-30vw) rotate(18deg); } 30% { opacity: .9; } 60%, 100% { opacity: 0; transform: translateX(40vw) rotate(18deg); } }
@keyframes float-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
@keyframes marquee-rtl { to { transform: translateX(calc(100% + var(--gap))); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lb-switch { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ripple-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Print */
@media print {
    .site-header, .drawer, .fab-stack, .site-footer, .preloader, .scroll-progress, .cursor-glow, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
    .page-hero { padding: 20px 0; background: #fff !important; color: #000; }
    .page-hero h1, .page-hero p { color: #000 !important; }
    .aurora, .hero-lines, .hero-beam { display: none; }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .tab-panel[hidden] { display: block !important; break-before: page; }
}

/* Gradient text survives word splitting */
.text-gradient .w > span { background: inherit; background-size: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; animation: inherit; }
