/* ============================================
   AI LAWYER — Premium SaaS Landing Page
   Elite Law Firms · Saudi Arabia · RTL
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --navy-deep: #040b16;
    --navy-dark: #060e1a;
    --navy: #0c1b30;
    --navy-mid: #0f2144;
    --navy-light: #162d52;
    --navy-lighter: #1e3a66;

    --gold: #c9a84c;
    --gold-light: #e5c96e;
    --gold-bright: #f0d87a;
    --gold-pale: #f5e6b8;
    --gold-dim: rgba(201, 168, 76, 0.10);
    --gold-glow: rgba(201, 168, 76, 0.25);

    --emerald: #25d366;
    --emerald-dark: #1ebe57;

    --white: #ffffff;
    --white-95: rgba(255, 255, 255, 0.95);
    --white-90: rgba(255, 255, 255, 0.90);
    --white-80: rgba(255, 255, 255, 0.80);
    --white-70: rgba(255, 255, 255, 0.70);
    --white-60: rgba(255, 255, 255, 0.60);
    --white-50: rgba(255, 255, 255, 0.50);
    --white-40: rgba(255, 255, 255, 0.40);
    --white-30: rgba(255, 255, 255, 0.30);
    --white-20: rgba(255, 255, 255, 0.20);
    --white-10: rgba(255, 255, 255, 0.10);
    --white-08: rgba(255, 255, 255, 0.08);
    --white-05: rgba(255, 255, 255, 0.05);
    --white-03: rgba(255, 255, 255, 0.03);

    --glass-bg: rgba(12, 27, 48, 0.45);
    --glass-bg-hover: rgba(15, 33, 68, 0.65);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(201, 168, 76, 0.22);
    --glass-blur: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.20);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.30);
    --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.40);
    --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.20);
    --shadow-gold-lg: 0 8px 48px rgba(201, 168, 76, 0.30);
    --shadow-gold-glow: 0 0 40px rgba(201, 168, 76, 0.12), 0 0 80px rgba(201, 168, 76, 0.06);
    --shadow-whatsapp: 0 6px 28px rgba(37, 211, 102, 0.30);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.05);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-2xl: 36px;

    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --font: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--navy-deep);
    color: var(--white-90);
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.gold { color: var(--gold); }

/* ---------- Ambient Background Orbs ---------- */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.7;
    will-change: transform;
}

.ambient-orb--gold {
    background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
}

.ambient-orb--navy {
    background: radial-gradient(circle, rgba(30, 58, 102, 0.25) 0%, transparent 70%);
}

.ambient-orb--emerald {
    background: radial-gradient(circle, rgba(37, 211, 102, 0.06) 0%, transparent 70%);
}

/* ---------- Reveal Animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Section Divider ---------- */
.section-divider {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, var(--white-08), var(--gold-dim), var(--white-08), transparent);
    margin: 0;
}

/* ======================
   HEADER
   ====================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(4, 11, 22, 0.82);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 10px 0;
    box-shadow: 0 1px 0 var(--glass-border),
                0 8px 32px rgba(0, 0, 0, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-mark {
    flex-shrink: 0;
    transition: transform var(--transition-spring);
}

.logo:hover .logo-mark {
    transform: scale(1.08) rotate(-3deg);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-text-en {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.02em;
    direction: ltr;
    text-align: right;
}

.logo-text-ar {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.06em;
}

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--white-50);
    position: relative;
    padding: 6px 2px;
    transition: color var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--white);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px !important;
    background: var(--emerald);
    color: var(--white) !important;
    border-radius: 100px;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    box-shadow: var(--shadow-whatsapp);
    transition: all var(--transition) !important;
}

.nav-cta-btn::after { display: none !important; }

.nav-cta-btn:hover {
    background: var(--emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(37, 211, 102, 0.45);
}

.nav-cta-btn svg { flex-shrink: 0; }

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--white-90);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

/* ======================
   HERO SECTION
   ====================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% 15%, rgba(201, 168, 76, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 60%, rgba(30, 58, 102, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 15% 80%, rgba(37, 211, 102, 0.04) 0%, transparent 55%),
        conic-gradient(from 180deg at 50% 50%, var(--navy-deep) 0deg, var(--navy) 120deg, var(--navy-mid) 240deg, var(--navy-deep) 360deg);
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--white-03) 1px, transparent 1px),
        linear-gradient(90deg, var(--white-03) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 15%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 15%, transparent 65%);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: glowFloat 10s ease-in-out infinite;
    will-change: transform;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(201, 168, 76, 0.08);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.hero-glow-2 {
    width: 450px;
    height: 450px;
    background: rgba(30, 58, 102, 0.15);
    bottom: -15%;
    left: -8%;
    animation-delay: -4s;
}

.hero-glow-3 {
    width: 350px;
    height: 350px;
    background: rgba(201, 168, 76, 0.06);
    top: 35%;
    left: 25%;
    animation-delay: -7s;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(25px, -18px) scale(1.06); }
    50% { transform: translate(-10px, 22px) scale(0.98); }
    75% { transform: translate(-20px, -12px) scale(1.03); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 26px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 36px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
}

.hero-title {
    margin-bottom: 32px;
}

.hero-title-line {
    display: block;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.35;
    color: var(--white);
    letter-spacing: -0.01em;
}

.hero-title-accent {
    color: var(--gold);
}

.brand-inline {
    color: var(--white);
    background: linear-gradient(135deg, var(--gold), var(--gold-bright), var(--gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandShimmer 4s ease-in-out infinite;
    position: relative;
}

@keyframes brandShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 1.12rem;
    font-weight: 300;
    color: var(--white-60);
    line-height: 2.1;
}

.hero-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 68px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 38px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-icon, .btn-icon-arrow {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.btn:hover .btn-icon-arrow {
    transform: translateY(3px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    border-color: transparent;
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold-lg), var(--shadow-gold-glow);
    filter: brightness(1.08);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-whatsapp {
    background: var(--emerald);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-whatsapp), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-whatsapp:hover {
    background: var(--emerald-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white-90);
    border-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.08);
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.08rem;
    border-radius: var(--radius-lg);
}

/* Trust Bar */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 28px 40px;
    background: rgba(12, 27, 48, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    max-width: 660px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.trust-icon {
    font-size: 1.7rem;
    flex-shrink: 0;
}

.trust-number {
    display: block;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--gold);
    direction: ltr;
    text-align: right;
}

.trust-label {
    font-size: 0.78rem;
    color: var(--white-50);
    font-weight: 300;
}

.trust-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, var(--white-10), transparent);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0.4;
    transition: opacity var(--transition);
}

.hero-scroll-indicator:hover { opacity: 0.8; }

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--white-20);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--gold);
    border-radius: 3px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.2; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ======================
   FEATURES SECTION
   ====================== */
.features {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
}

/* Ambient decorations inside features */
.features .ambient-orb.features-orb-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    right: -15%;
}

.features .ambient-orb.features-orb-2 {
    width: 400px;
    height: 400px;
    bottom: -5%;
    left: -10%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 24px;
    background: var(--gold-dim);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.section-title {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 18px;
    color: var(--white);
}

.section-desc {
    max-width: 580px;
    margin: 0 auto;
    color: var(--white-50);
    font-size: 1.04rem;
    font-weight: 300;
    line-height: 1.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Feature Card: Premium Glassmorphism --- */
.feature-card {
    position: relative;
    padding: 36px 30px 32px;
    background: rgba(12, 27, 48, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: all var(--transition), box-shadow var(--transition);
    overflow: hidden;
    will-change: transform;
}

/* Top shine line */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(201, 168, 76, 0.5) 50%, transparent 90%);
    opacity: 0;
    transition: opacity var(--transition);
}

/* Card inner glow effect */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.feature-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    opacity: 0;
    transition: none;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 168, 76, 0.20);
    background: rgba(15, 33, 68, 0.55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(201, 168, 76, 0.08),
                0 0 60px rgba(201, 168, 76, 0.04);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { opacity: 1; }

.feature-card:hover .feature-card-shine {
    opacity: 1;
    left: 150%;
    transition: left 0.7s ease;
}

.feature-number {
    position: absolute;
    top: 28px;
    left: 28px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--white-08);
    letter-spacing: 0.08em;
    direction: ltr;
    transition: color var(--transition);
}

.feature-card:hover .feature-number {
    color: rgba(201, 168, 76, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.10), rgba(201, 168, 76, 0.04));
    border: 1px solid rgba(201, 168, 76, 0.10);
    border-radius: var(--radius-md);
    margin-bottom: 22px;
    color: var(--gold);
    transition: all var(--transition);
    position: relative;
}

/* Icon glow on hover */
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.22), rgba(201, 168, 76, 0.08));
    border-color: rgba(201, 168, 76, 0.30);
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(201, 168, 76, 0.12);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: 1.14rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
    line-height: 1.5;
}

.feature-desc {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--white-50);
    line-height: 1.95;
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--white-08);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--white-30);
    letter-spacing: 0.04em;
    direction: ltr;
    transition: all var(--transition);
}

.feature-card:hover .feature-tag {
    color: var(--gold);
    border-color: rgba(201, 168, 76, 0.20);
    background: var(--gold-dim);
}

/* ======================
   HOW IT WORKS
   ====================== */
.how-it-works {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-dark) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    max-width: 920px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 36px 32px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy-dark);
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-gold),
                0 0 30px rgba(201, 168, 76, 0.15);
    transition: all var(--transition);
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: var(--shadow-gold-lg),
                0 0 50px rgba(201, 168, 76, 0.20);
}

.step-line {
    position: absolute;
    top: 65px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(201, 168, 76, 0.15));
    z-index: 0;
}

.step-card:first-child .step-line { display: none; }

.step-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.5;
}

.step-desc {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--white-50);
    line-height: 1.9;
}

/* ======================
   STATS SECTION
   ====================== */
.stats {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 44px 20px;
    background: rgba(12, 27, 48, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

/* Subtle bottom gradient line */
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
    opacity: 0.5;
    transition: opacity var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.20),
                0 0 40px rgba(201, 168, 76, 0.04);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-icon-bg {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
    filter: grayscale(0.2);
    transition: filter var(--transition), transform var(--transition);
}

.stat-card:hover .stat-icon-bg {
    filter: grayscale(0);
    transform: scale(1.15);
}

/* Gold gradient text for stat numbers */
.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    direction: ltr;
    display: inline;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus, .stat-percent {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--white-50);
    font-weight: 500;
    line-height: 1.6;
}

/* ======================
   CTA SECTION
   ====================== */
.cta-section {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06), rgba(30, 58, 102, 0.04) 40%, transparent 65%);
    pointer-events: none;
    animation: glowFloat 12s ease-in-out infinite;
}

.cta-badge {
    display: inline-block;
    padding: 10px 26px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.18);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--emerald);
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--white);
    line-height: 1.4;
}

.cta-desc {
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 1.06rem;
    font-weight: 300;
    color: var(--white-60);
    line-height: 2.1;
}

.cta-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cta-note {
    font-size: 0.82rem;
    color: var(--white-30);
    letter-spacing: 0.02em;
    font-weight: 300;
}

/* ======================
   FOOTER
   ====================== */
.site-footer {
    padding: 68px 0 32px;
    background: var(--navy-deep);
    border-top: 1px solid var(--glass-border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand .logo {
    margin-bottom: 18px;
}

.footer-tagline {
    color: var(--white-50);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 72px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--white-50);
    font-weight: 400;
    padding: 6px 0;
    transition: all var(--transition);
}

.footer-col a:hover {
    color: var(--gold);
    transform: translateX(-4px);
}

.footer-whatsapp {
    color: var(--emerald) !important;
}

.footer-whatsapp:hover {
    color: var(--emerald-dark) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    color: var(--white-30);
    font-size: 0.82rem;
    font-weight: 300;
}

.footer-bottom p {
    margin-bottom: 4px;
}

.footer-sa {
    color: var(--white-20);
    font-size: 0.78rem;
}

/* ======================
   FLOATING WHATSAPP
   ====================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 62px;
    height: 62px;
    background: var(--emerald);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    box-shadow: var(--shadow-whatsapp);
    transition: all var(--transition);
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 12px 44px rgba(37, 211, 102, 0.5);
}

.whatsapp-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--emerald);
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 74px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--navy);
    color: var(--white-90);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--navy);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ======================
   RESPONSIVE — Tablet
   ====================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-trust {
        max-width: 540px;
    }

    .steps-grid {
        gap: 12px;
    }

    .stat-number {
        font-size: 2.4rem;
    }
}

/* ======================
   RESPONSIVE — Mobile
   ====================== */
@media (max-width: 768px) {
    body {
        line-height: 1.75;
    }

    .container {
        padding: 0 20px;
    }

    /* Nav Mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: rgba(4, 11, 22, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 80px 40px 40px;
        transition: right var(--transition);
        z-index: 999;
        border-left: 1px solid var(--glass-border);
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav a {
        font-size: 1.2rem;
        font-weight: 600;
        padding: 10px 0;
    }

    .nav-cta-btn {
        margin-top: 16px;
        padding: 14px 32px !important;
        font-size: 1rem !important;
    }

    .nav-toggle { display: flex; }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero Mobile */
    .hero {
        padding: 120px 0 80px;
    }

    .hero-title-line {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.95;
        margin-bottom: 36px;
        font-weight: 300;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 12px;
        margin-bottom: 44px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        min-height: 52px;
    }

    .hero-trust {
        flex-direction: column;
        gap: 18px;
        padding: 24px 28px;
        max-width: 100%;
    }

    .trust-divider {
        width: 60%;
        height: 1px;
    }

    .hero-scroll-indicator { display: none; }
    .hero-glow-3 { display: none; }

    /* Features Mobile */
    .features {
        padding: 100px 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card {
        padding: 20px 14px 18px;
    }

    .feature-icon { width: 40px; height: 40px; padding: 8px; }
    .feature-icon svg { width: 22px; height: 22px; }
    .feature-title { font-size: 0.88rem; }
    .feature-desc { font-size: 0.78rem; line-height: 1.7; }
    .feature-tag { font-size: 0.6rem; padding: 4px 8px; }
    .feature-number { font-size: 0.6rem; top: 14px; left: 14px; }

    .section-header {
        margin-bottom: 52px;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    /* Steps Mobile */
    .how-it-works { padding: 100px 0; }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .step-line {
        display: none;
    }

    .step-card {
        padding: 28px 24px;
    }

    /* Stats Mobile */
    .stats {
        padding: 80px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .stat-card { padding: 32px 16px; }

    .stat-number {
        font-size: 2.2rem;
    }

    /* CTA Mobile */
    .cta-section { padding: 100px 0; }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 8px;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
    }

    /* Footer Mobile */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand { max-width: 100%; text-align: center; }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-col a {
        justify-content: center;
    }

    .footer-col a:hover {
        transform: none;
    }

    /* WhatsApp Float Mobile */
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-tooltip { display: none; }
}

/* ======================
   RESPONSIVE — Small Phone
   ====================== */
@media (max-width: 420px) {
    html { font-size: 15px; }

    .container { padding: 0 14px; }

    .hero-badge { font-size: 0.78rem; padding: 8px 16px; }

    .hero-title-line {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: right;
        padding: 22px 24px;
    }

    .stat-icon-bg {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .logo-text-en { font-size: 1.05rem; }
    .logo-text-ar { font-size: 0.65rem; }
}

/* ---------- Safe Areas (Notch) ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
    .whatsapp-float {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .site-footer {
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }

    .main-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb {
    background: var(--navy-lighter);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Selection ---------- */
::selection {
    background: var(--gold);
    color: var(--navy-dark);
}

/* ---------- Focus ---------- */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
