/* ========================================
   ASAS AI — Dark Theme Design System
   ======================================== */

/* ----------------------------------------
   1. CSS Custom Properties
   ---------------------------------------- */
:root {
    /* Colors — Dark Tech Palette */
    --color-bg: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-elevated: #111111;
    --color-bg-surface: #161616;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-bg-card-hover: rgba(255, 255, 255, 0.06);

    /* Accent Colors */
    --color-primary: #8b5cf6;
    --color-primary-dark: #7c3aed;
    --color-primary-light: #a78bfa;
    --color-accent: #06b6d4;
    --color-accent-light: #22d3ee;
    --color-indigo: #6366f1;
    --color-teal: #14b8a6;

    /* Text Colors */
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-text-faint: rgba(255, 255, 255, 0.35);

    /* Borders */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.05);

    /* Status */
    --color-success: #10b981;
    --color-error: #ef4444;

    /* Typography — Stack Sans Notch display, Inter body */
    --font-heading:
        "Stack Sans Notch", "Inter", -apple-system, BlinkMacSystemFont,
        sans-serif;
    --font-body:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    --font-arabic: "IBM Plex Sans Arabic", "Inter", sans-serif;
    --font-arabic-display:
        "IBM Plex Sans Arabic", "Stack Sans Notch", sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;
    --line-height-heading: 1.2;
    --letter-spacing-wide: 0.08em;
    --letter-spacing-normal: 0.01em;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
    --space-section: 6rem;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --header-height: 72px;
    --border-radius: 0px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.15);
    --shadow-glow-accent: 0 0 20px rgba(6, 182, 212, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: var(--line-height-heading);
    font-weight: 600;
    letter-spacing: var(--letter-spacing-normal);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-family: var(--font-arabic-display);
}

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

/* ----------------------------------------
   3. Layout
   ---------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ----------------------------------------
   4. Skip Link
   ---------------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: var(--color-text);
    padding: var(--space-sm) var(--space-md);
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ----------------------------------------
   5. Header / Navigation
   ---------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base);
}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo {
    display: flex;
    align-items: center;
    color: var(--color-text);
    transition: opacity var(--transition-fast);
}

.site-logo:hover {
    opacity: 0.8;
    color: var(--color-text);
}

.site-logo-img {
    height: 20px;
    width: auto;
}

/* Desktop Nav */
.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    transition: color var(--transition-fast);
    padding: var(--space-sm) 0;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--color-text);
}

/* Dropdown */
.nav-item--has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-fast),
        visibility var(--transition-fast);
    z-index: 100;
}

[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.nav-item--has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-link {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    transition:
        color var(--transition-fast),
        background var(--transition-fast);
}

.dropdown-link:hover {
    color: var(--color-text);
    background: var(--color-bg-card);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.lang-switch {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: var(--letter-spacing-wide);
    transition: color var(--transition-fast);
}

.lang-switch:hover {
    color: var(--color-text);
}

.header-cta {
    display: none;
}

@media (min-width: 1024px) {
    .header-cta {
        display: inline-flex;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text);
    transition:
        transform var(--transition-fast),
        opacity var(--transition-fast);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 999;
    padding: var(--space-2xl);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-base),
        visibility var(--transition-base);
    overflow-y: auto;
}

.mobile-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.mobile-nav-link {
    display: block;
    padding: var(--space-md) 0;
    color: var(--color-text);
    font-size: 1.125rem;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-link--sub {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    padding-left: var(--space-lg);
}

[dir="rtl"] .mobile-nav-link--sub {
    padding-left: 0;
    padding-right: var(--space-lg);
}

.mobile-subnav {
    padding-bottom: var(--space-sm);
}

.mobile-cta {
    margin-top: var(--space-2xl);
}

/* ----------------------------------------
   6. Buttons
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
    text-decoration: none;
}

[dir="rtl"] .btn {
    font-family: var(--font-arabic);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    min-height: 36px;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 0.9375rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ----------------------------------------
   7. Hero Sections
   ---------------------------------------- */
.hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    overflow: hidden;
}

.hero--home {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero--home .container {
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 20% 50%,
            rgba(139, 92, 246, 0.08) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 80% 20%,
            rgba(6, 182, 212, 0.06) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 50% 80%,
            rgba(99, 102, 241, 0.04) 0%,
            transparent 50%
        );
    z-index: 0;
}

/* Desert WebGL Canvas */
.hero-desert {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-desert canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Vignette overlay on desert */
.hero-desert::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(0, 0, 0, 0.55) 100%
    );
    pointer-events: none;
}

/* Bottom fade — smooth transition into next section */
.hero-desert::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    z-index: 1;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
    pointer-events: none;
}

/* Atmospheric floating orbs behind terrain */
.hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: hero-float 20s ease-in-out infinite;
}

.hero-orb--1 {
    top: 8%;
    left: 12%;
    width: 420px;
    height: 420px;
    background: rgba(139, 92, 246, 0.3);
}

.hero-orb--2 {
    top: 50%;
    right: 8%;
    width: 320px;
    height: 320px;
    background: rgba(6, 182, 212, 0.25);
    animation-delay: -7s;
}

.hero-orb--3 {
    bottom: 8%;
    left: 28%;
    width: 260px;
    height: 260px;
    background: rgba(99, 102, 241, 0.22);
    animation-delay: -14s;
}

@keyframes hero-float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-25px, -35px) scale(1.05);
    }
    50% {
        transform: translate(20px, 15px) scale(0.95);
    }
    75% {
        transform: translate(-15px, 25px) scale(1.02);
    }
}

/* Ensure hero content layers above everything */
.hero--home .container {
    position: relative;
    z-index: 5;
}

/* Hide CSS fallback when desert canvas is present */
.hero--home:has(.hero-desert) .hero-bg {
    display: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-desert,
    .hero-atmosphere,
    .hero-contour {
        display: none;
    }
    .hero--home:has(.hero-desert) .hero-bg {
        display: block;
    }
}

/* Contour line canvas for inner page heroes */
.hero-contour { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-contour canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-contour::before {
    content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 30%; z-index: 1;
    background: linear-gradient(to top, var(--color-bg-secondary) 0%, transparent 100%);
    pointer-events: none;
}
.hero--page .container { position: relative; z-index: 2; }
.hero--page:has(.hero-contour) { border-bottom: none; }

.hero--page {
    text-align: center;
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.hero-tagline {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    max-width: 800px;
}

.hero--page .hero-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subheadline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}

.hero--page .hero-subheadline {
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero--page .hero-cta {
    justify-content: center;
}

/* Hero split layout — text + form side by side */
.hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr 400px;
        gap: var(--space-4xl);
    }
}

@media (min-width: 1100px) {
    .hero-split {
        grid-template-columns: 1fr 420px;
    }
}

/* Hero inline CTA form */
.hero-form-wrap {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-3xl) var(--space-2xl);
    position: relative;
}

.hero-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-accent)
    );
}

.hero-form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.01em;
}

.hero-form-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-form-group {
    margin-bottom: 0.875rem;
}

.hero-form-input {
    display: block;
    width: 100%;
    padding: 0.8125rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast);
}

.hero-form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.hero-form-input::placeholder {
    color: var(--color-text-faint);
}

.hero-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.hero-form .btn-block {
    margin-top: var(--space-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-form-note {
    margin-top: var(--space-md);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
}

.hero-form .turnstile-wrap {
    margin-bottom: var(--space-sm);
}

/* RTL form overrides */
[dir="rtl"] .hero-form-input {
    font-family: var(--font-arabic);
}

[dir="rtl"] .hero-form-title {
    font-family: var(--font-arabic-display);
}

[dir="rtl"] .hero-form::before {
    background: linear-gradient(
        270deg,
        var(--color-primary),
        var(--color-accent)
    );
}

/* ----------------------------------------
   8. Sections
   ---------------------------------------- */
.section {
    padding: var(--space-section) 0;
}

.section--dark {
    background: var(--color-bg-secondary);
}

.section--cta {
    text-align: center;
    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(139, 92, 246, 0.06) 0%,
            transparent 60%
        ),
        var(--color-bg);
    padding: var(--space-section) 0;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    letter-spacing: var(--letter-spacing-normal);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

.section--cta .section-subtitle,
.section--cta .section-title {
    margin-left: auto;
    margin-right: auto;
}

/* ----------------------------------------
   9. Grids
   ---------------------------------------- */
.grid {
    display: grid;
    gap: var(--space-xl);
}

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

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

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

@media (min-width: 640px) {
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ----------------------------------------
   11. Cards
   ---------------------------------------- */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--space-2xl);
    transition:
        background var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.card:hover {
    background: var(--color-bg-card-hover);
}

.card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card--link:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-glow);
    color: inherit;
}

.card--feature {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
}

.card--industry {
    padding: var(--space-xl);
}

.card-icon {
    margin-bottom: var(--space-lg);
    color: var(--color-accent);
}

.card-icon .material-icons-sharp {
    font-size: 2rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.card-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-top: var(--space-lg);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

.card-cta .material-icons-sharp {
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.card--link:hover .card-cta .material-icons-sharp {
    transform: translateX(4px);
}

[dir="rtl"] .card--link:hover .card-cta .material-icons-sharp {
    transform: translateX(-4px);
}

/* ----------------------------------------
   12. Steps
   ---------------------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 640px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step {
    text-align: center;
    padding: var(--space-xl);
}

.step-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.step-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.step-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ----------------------------------------
   13. Breadcrumbs (Notion-style)
   ---------------------------------------- */
.breadcrumb {
    padding: 10px 0 4px;
    font-size: 0.8rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    transition:
        background var(--transition-fast),
        color var(--transition-fast);
    text-decoration: none;
}

.breadcrumb-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary);
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 300;
    padding: 0 2px;
    user-select: none;
}

.breadcrumb-icon {
    font-size: 15px;
    opacity: 0.55;
    margin-right: 1px;
}

[dir="rtl"] .breadcrumb-icon {
    margin-right: 0;
    margin-left: 1px;
}

.breadcrumb-link:hover .breadcrumb-icon {
    opacity: 0.85;
}

.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    padding: 3px 8px;
}

@media (max-width: 480px) {
    .breadcrumb-middle {
        display: none;
    }
    .breadcrumb-middle + .breadcrumb-sep {
        display: none;
    }
}

@media print {
    .breadcrumb-icon {
        display: none;
    }
    .breadcrumb-link:hover {
        background: none;
    }
}

/* ----------------------------------------
   14. Forms
   ---------------------------------------- */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

.required {
    color: var(--color-primary);
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

[dir="rtl"] .form-input {
    font-family: var(--font-arabic);
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    margin-top: var(--space-md);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-error);
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-error .material-icons-sharp {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-size: 1rem;
    line-height: 1.5;
}

.form-success .material-icons-sharp {
    font-size: 22px;
    flex-shrink: 0;
}

.turnstile-wrap {
    display: flex;
}

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

/* ----------------------------------------
   15. Contact Layout
   ---------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr 380px;
    }
}

[dir="rtl"] .contact-layout {
    direction: rtl;
}

.sidebar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: var(--space-2xl);
}

.sidebar-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-details li {
    display: flex;
    gap: var(--space-md);
}

.contact-details .material-icons-sharp {
    color: var(--color-accent);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-details strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: var(--space-xs);
}

.contact-details a,
.contact-details span {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ----------------------------------------
   16. FAQ / Accordion
   ---------------------------------------- */
.faq-category {
    margin-bottom: var(--space-3xl);
}

.faq-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.accordion {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-lg) 0;
    cursor: pointer;
    list-style: none;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    flex: 1;
    padding-right: var(--space-md);
}

[dir="rtl"] .accordion-title {
    text-align: right;
    padding-right: 0;
    padding-left: var(--space-md);
}

.accordion-icon {
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

details[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 0 var(--space-lg);
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ----------------------------------------
   17. Content Blocks
   ---------------------------------------- */
.about-mission {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    max-width: 650px;
}

.content-block {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
}

.content-block p + p {
    margin-top: var(--space-lg);
}

/* ----------------------------------------
   18. Footer
   ---------------------------------------- */
.site-footer {
    background: var(--color-bg-secondary);
    border-top: none;
    padding: var(--space-section) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
}

/* Gradient accent line at top of footer */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(6, 182, 212, 0.3) 30%, rgba(139, 92, 246, 0.3) 70%, transparent 100%);
    z-index: 2;
}

/* Top fade for footer contour lines */
.site-footer > .hero-contour::before {
    top: 0;
    bottom: auto;
    background: linear-gradient(to bottom, var(--color-bg-secondary) 0%, transparent 100%);
}

.site-footer > .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1.5fr;
    }
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a,
.footer-links span {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.footer-contact-info .material-icons-sharp {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-2xl);
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, var(--color-border) 20%, var(--color-border) 80%, transparent 100%) 1;
    font-size: 0.8125rem;
    color: var(--color-text-faint);
}

.footer-bottom-logo {
    display: flex;
    justify-content: center;
    order: 0;
    width: 100%;
    margin-bottom: var(--space-md);
}

.footer-bottom-logo svg {
    height: 14px;
    width: auto;
    color: var(--color-text-faint);
    opacity: 0.5;
}

@media (min-width: 768px) {
    .footer-bottom {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    .footer-bottom-logo {
        order: unset;
        width: auto;
        margin-bottom: 0;
    }
    .footer-tagline {
        text-align: right;
    }
}

.footer-tagline {
    font-style: italic;
    color: var(--color-text-faint);
}

/* ----------------------------------------
   19. Animations
   ---------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------
   20. 404 Page
   ---------------------------------------- */
.not-found {
    text-align: center;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.not-found-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--color-primary-light);
    line-height: 1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.04em;
}

/* ----------------------------------------
   21. RTL Support
   ---------------------------------------- */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .hero-cta {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .breadcrumb-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .steps-grid {
    direction: rtl;
}

[dir="rtl"] .accordion-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-details li {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-details div {
    text-align: right;
}

/* ----------------------------------------
   22. Page Loader
   ---------------------------------------- */
.page-loader {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.page-loader.loaded {
    opacity: 0;
}

.page-loader.hidden {
    display: none;
}

.loader-content {
    text-align: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.loader-logo {
    position: relative;
    display: inline-block;
    width: min(385px, 60vw);
    height: auto;
    aspect-ratio: 385 / 119;
}

/* Scanlines */
.loader-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 2;
}

.loader-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.loader-svg-base {
    color: var(--color-text);
    opacity: 0.06;
}

/* Fill — clip-path wipe bottom-to-top */
.loader-svg-fill {
    position: absolute;
    inset: 0;
    color: var(--color-text);
    animation: loader-fill-up 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Chroma glitch layers */
.loader-svg-glitch-r,
.loader-svg-glitch-c {
    --d: 1;
    position: absolute;
    inset: 0;
    opacity: 0;
    mix-blend-mode: screen;
    animation: loader-vcr-glitch 2.2s step-end forwards;
}

.loader-svg-glitch-r {
    --d: -1;
    color: var(--color-primary-light);
}

.loader-svg-glitch-c {
    --d: 1;
    color: var(--color-accent);
    animation-delay: 0.01s;
}

@keyframes loader-fill-up {
    0% {
        clip-path: inset(100% 0 0 0);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes loader-vcr-glitch {
    0%,
    9%,
    26%,
    44%,
    69%,
    100% {
        opacity: 0;
        transform: translate(0);
        clip-path: inset(0 0 0 0);
    }
    8% {
        opacity: 0.7;
        transform: translate(calc(var(--d) * 0.1875rem), 0);
        clip-path: inset(15% 0 55% 0);
    }
    24% {
        opacity: 0.6;
        transform: translate(calc(var(--d) * 0.25rem), 0);
        clip-path: inset(45% 0 25% 0);
    }
    25% {
        opacity: 0.8;
        transform: translate(
            calc(var(--d) * 0.125rem),
            calc(var(--d) * 0.0625rem)
        );
        clip-path: inset(70% 0 10% 0);
    }
    42% {
        opacity: 0.9;
        transform: translate(calc(var(--d) * 0.1875rem), 0);
        clip-path: inset(8% 0 65% 0);
    }
    43% {
        opacity: 0.5;
        transform: translate(calc(var(--d) * 0.3125rem), 0);
        clip-path: inset(60% 0 18% 0);
    }
    68% {
        opacity: 0.6;
        transform: translate(calc(var(--d) * 0.125rem), 0);
        clip-path: inset(35% 0 40% 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader {
        transition: opacity 0.3s linear;
    }
    .loader-logo::after {
        display: none;
    }
    .loader-svg-base {
        opacity: 1;
        color: var(--color-text);
    }
    .loader-svg-fill {
        animation: none;
        clip-path: inset(0 0 0 0);
    }
    .loader-svg-glitch-r,
    .loader-svg-glitch-c {
        display: none;
    }
}

/* ----------------------------------------
   23. Print Styles
   ---------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu,
    .hero-bg,
    .hero-desert,
    .hero-atmosphere,
    .hero-contour,
    .btn,
    .turnstile-wrap,
    .page-loader {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .hero--page {
        background: none;
        border: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .card {
        border: 1px solid #ccc;
    }
}

/* ----------------------------------------
   24. Responsive Refinements
   ---------------------------------------- */
@media (max-width: 639px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .hero--home {
        min-height: auto;
        padding-top: var(--header-height);
        padding-bottom: var(--space-3xl);
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-form {
        padding: var(--space-xl);
    }

    .hero-form-title {
        font-size: 1.25rem;
    }

    .footer-grid {
        gap: var(--space-2xl);
    }

    .contact-layout {
        gap: var(--space-2xl);
    }
}
