/* ============================================
   VISINOVA — PREMIUM DARK DESIGN SYSTEM
   SaaS-style with blue/purple gradients
   ============================================ */

:root {
    --bg: #06060b;
    --bg-surface: #0b0b14;
    --bg-surface-2: #10101c;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.045);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --indigo: #6366f1;
    --cyan: #22d3ee;
    --emerald: #34d399;
    --font: 'Cairo', 'Tajawal', 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- RTL / Arabic adjustments ---- */
html[dir="rtl"] body, html[lang="ar"] body { font-family: var(--font); }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
html[dir="rtl"] .mobile-menu { transform: translateX(-100%); }
html[dir="rtl"] .mobile-menu.active { transform: translateX(0); }

/* ---- Hero Section ---- */
.visinova-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #05050a;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 6%;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("images/hero-process.png");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    animation: heroFloat 18s ease-in-out infinite alternate;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 45%, rgba(132, 88, 255, 0.1), transparent 25%),
        linear-gradient(90deg, rgba(5,5,10,0.95) 0%, rgba(5,5,10,0.85) 20%, rgba(5,5,10,0.3) 38%, rgba(5,5,10,0) 55%, rgba(5,5,10,0.15) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 380px;
    padding-top: 64px;
}
.hero-content h1 {
    margin: 0;
    font-size: 2.6rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
}
.hero-content h1 span {
    display: block;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.5;
    background: linear-gradient(90deg, #d4c4ff, #b99cff, #7c4dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-description {
    max-width: 360px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.65;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.btn-hero-primary, .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-hero-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #7c4dff, #b99cff);
    box-shadow: 0 0 28px rgba(124, 77, 255, 0.4);
}
.btn-hero-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}
.btn-hero-primary:hover, .btn-hero-secondary:hover { transform: translateY(-3px); }
.btn-hero-primary:hover { box-shadow: 0 0 42px rgba(124, 77, 255, 0.6); }
.btn-hero-secondary:hover { background: rgba(255, 255, 255, 0.12); }
@keyframes heroFloat {
    from { transform: scale(1.01) translate3d(0, 0, 0); }
    to { transform: scale(1.04) translate3d(-10px, -5px, 0); }
}
/* Laptop */
@media (max-width: 1280px) {
    .hero-content { max-width: 360px; }
    .hero-content h1 { font-size: 2.3rem; }
}
/* Tablet */
@media (max-width: 1024px) {
    .visinova-hero { padding: 0 5%; }
    .hero-content { max-width: 340px; }
    .hero-content h1 { font-size: 2.1rem; }
    .hero-content h1 span { font-size: 1rem; }
    .hero-description { font-size: 0.85rem; }
    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(5,5,10,0.96) 0%, rgba(5,5,10,0.8) 25%, rgba(5,5,10,0.2) 45%, rgba(5,5,10,0) 100%);
    }
}
/* Mobile */
@media (max-width: 768px) {
    .visinova-hero {
        min-height: 100vh;
        padding: 0 20px 90px;
        align-items: flex-end;
    }
    .hero-bg {
        background-position: center top;
    }
    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(5,5,10,0) 0%, rgba(5,5,10,0.2) 30%, rgba(5,5,10,0.8) 55%, rgba(5,5,10,0.98) 70%, rgba(5,5,10,1) 100%);
    }
    .hero-content {
        max-width: 100%;
        padding-top: 0;
    }
    .hero-content h1 { font-size: 2rem; }
    .hero-content h1 span { font-size: 0.95rem; }
    .hero-description { font-size: 0.85rem; max-width: 100%; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; min-height: 48px; font-size: 0.9rem; }
}
/* Small mobile */
@media (max-width: 390px) {
    .hero-content h1 { font-size: 1.75rem; }
    .visinova-hero { padding-bottom: 100px; }
}

/* ============================================
   HERO PRO — Redesigned professional hero
   ============================================ */
.hero-pro {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #06060b;
    padding: 120px 0 96px;
    display: flex;
    align-items: center;
}
.hero-mesh {
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 600px at 80% 18%, rgba(124, 92, 255, 0.22), transparent 60%),
        radial-gradient(700px 500px at 15% 75%, rgba(34, 211, 238, 0.14), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.hero-orb-1 { width: 520px; height: 520px; top: -120px; right: -120px; background: #6366f1; opacity: 0.42; }
.hero-orb-2 { width: 400px; height: 400px; bottom: -100px; left: -80px; background: #22d3ee; opacity: 0.28; }
.hero-orb-3 { width: 320px; height: 320px; top: 38%; left: 45%; background: #a855f7; opacity: 0.22; animation: heroOrbDrift 14s ease-in-out infinite alternate; }
@keyframes heroOrbDrift { from { transform: translate(0,0); } to { transform: translate(40px, -30px); } }

.hero-pro-container {
    position: relative; z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.hero-pro-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
    align-items: center;
}
.hero-text { max-width: 620px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    margin-bottom: 26px;
    backdrop-filter: blur(10px);
}
.hero-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
    animation: heroPulse 2.4s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(52,211,153,0.22); }
    50% { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
}

.hero-title {
    font-size: clamp(2.2rem, 5.4vw, 4.4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.025em;
    color: #ffffff;
}
.hero-title-line { display: block; }
.hero-gradient-text {
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 55%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin-top: 24px;
    max-width: 530px;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.75;
    color: rgba(255,255,255,0.62);
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.hero-btn-primary, .hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.22s, box-shadow 0.22s, background 0.22s, border-color 0.22s;
    text-decoration: none;
    cursor: pointer;
}
.hero-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 10px 30px -8px rgba(99,102,241,0.55), inset 0 1px 0 rgba(255,255,255,0.15);
}
.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -8px rgba(99,102,241,0.75), inset 0 1px 0 rgba(255,255,255,0.2);
}
.hero-btn-secondary {
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
}
.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 52px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    max-width: 480px;
}
.hero-trust-avatars { display: flex; }
.hero-trust-avatars span {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid #06060b;
    margin-inline-start: -10px;
    flex-shrink: 0;
}
.hero-trust-avatars span:first-child { margin-inline-start: 0; }
.hero-trust-avatars span:nth-child(1) { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.hero-trust-avatars span:nth-child(2) { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.hero-trust-avatars span:nth-child(3) { background: linear-gradient(135deg, #06b6d4, #6366f1); }
.hero-trust-avatars span:nth-child(4) { background: linear-gradient(135deg, #10b981, #14b8a6); }
.hero-trust-text { display: flex; flex-direction: column; line-height: 1.45; font-size: 13px; }
.hero-trust-text strong { color: #ffffff; font-weight: 700; font-size: 14px; }
.hero-trust-text span { color: rgba(255,255,255,0.55); }

/* Visual column — floating glass cards */
.hero-visual {
    position: relative;
    height: 520px;
    perspective: 1200px;
}
.hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.09);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    animation: heroCardFloat 7s ease-in-out infinite;
    will-change: transform;
}
.hero-card-1 { top: 24px; inset-inline-end: 16px; width: 320px; animation-delay: 0s; }
.hero-card-2 { top: 138px; inset-inline-end: -28px; width: 300px; animation-delay: 1.4s; }
.hero-card-3 { top: 252px; inset-inline-end: 56px; width: 320px; animation-delay: 2.8s; }
.hero-card-4 { top: 366px; inset-inline-end: 6px; width: 310px; animation-delay: 4.2s; }

.hero-card-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero-card-icon-blue    { background: rgba(96,165,250,0.14); border: 1px solid rgba(96,165,250,0.22); }
.hero-card-icon-purple  { background: rgba(167,139,250,0.14); border: 1px solid rgba(167,139,250,0.22); }
.hero-card-icon-cyan    { background: rgba(34,211,238,0.14); border: 1px solid rgba(34,211,238,0.22); }
.hero-card-icon-emerald { background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.22); }

.hero-card-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-card-label { font-weight: 600; font-size: 14px; color: #ffffff; }
.hero-card-meta { font-size: 12px; color: rgba(255,255,255,0.5); }

.hero-card-stat {
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}
.hero-card-stat-emerald { background: linear-gradient(135deg, #34d399, #22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-card-stat-amber   { background: linear-gradient(135deg, #fbbf24, #f59e0b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

@keyframes heroCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-card, .hero-orb-3, .hero-badge-dot { animation: none !important; }
}

@media (max-width: 1024px) {
    .hero-pro { min-height: auto; padding: 110px 0 72px; }
    .hero-pro-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { display: none; }
    .hero-text { max-width: 100%; }
}

@media (max-width: 640px) {
    .hero-pro { padding: 96px 0 56px; }
    .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
    .hero-cta-row { flex-direction: column; align-items: stretch; }
    .hero-btn-primary, .hero-btn-secondary { width: 100%; justify-content: center; min-height: 50px; font-size: 15px; }
    .hero-trust { flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 28px; }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ---- Selection ---- */
::selection { background: rgba(99,102,241,0.3); color: white; }


/* ============================================
   GRADIENT TEXT
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-strong {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-wide {
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================
   GLOW EFFECTS
   ============================================ */
.glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    contain: layout paint;
}
.glow-blue { background: rgba(59,130,246,0.15); }
.glow-purple { background: rgba(139,92,246,0.12); }
.glow-indigo { background: rgba(99,102,241,0.12); }
.glow-cyan { background: rgba(34,211,238,0.08); }


/* ============================================
   GLASS CARD
   ============================================ */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.glass:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}


/* ============================================
   GRADIENT BORDER CARD
   ============================================ */
.gradient-border {
    position: relative;
    background: var(--bg-surface);
    border-radius: 1rem;
    overflow: hidden;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(139,92,246,0.3), rgba(59,130,246,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}


/* ============================================
   BUTTONS
   ============================================ */
.btn-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 8px 24px -8px rgba(99,102,241,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: transform 0.22s, box-shadow 0.22s;
    position: relative;
    overflow: hidden;
}
.btn-gradient::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.22s;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -8px rgba(99,102,241,0.7), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-gradient:hover::before { opacity: 1; }
.btn-gradient:active { transform: translateY(0); }
.btn-gradient:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; }

.btn-outline {
    border: 1px solid var(--border);
    transition: all 0.25s ease;
}
.btn-outline:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.03);
    transform: translateY(-1px);
}


/* ============================================
   GRID PATTERN
   ============================================ */
.grid-pattern {
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 64px 64px;
}


/* ============================================
   NAVBAR
   ============================================ */
.nav-scrolled {
    background: rgba(6,6,11,0.85) !important;
    border-bottom-color: var(--border) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: white; }

/* ---- Mobile Menu — Full-screen slide panel ---- */
.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 6, 11, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 40;
}
.mobile-menu.open { transform: translateX(0); }

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.mobile-menu-link {
    display: block;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}
.mobile-menu.open .mobile-menu-link { opacity: 1; transform: translateX(0); }
.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu-link.active { color: #fff !important; background: rgba(255, 255, 255, 0.05); }
.mobile-menu-link:active { background: rgba(255, 255, 255, 0.04); }

.mobile-menu-cta {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease 0.3s, transform 0.35s ease 0.3s;
}
.mobile-menu.open .mobile-menu-cta { opacity: 1; transform: translateY(0); }

/* ---- Hamburger icon animation (mobile only) ---- */
.hamburger {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}
@media (max-width: 767px) {
    .hamburger { display: flex; }
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================
   MARQUEE
   ============================================ */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: inline-flex;
    gap: 48px;
    animation: marquee-scroll 30s linear infinite;
    will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.marquee-item:hover { opacity: 1; }
.marquee-item img {
    height: 28px;
    width: auto;
}


/* ============================================
   TEXT SPLIT
   ============================================ */
[data-split] .word {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
}
[data-split] .word-inner {
    display: inline-block;
    will-change: transform;
}
.text-gradient .word-inner {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-strong .word-inner {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-wide .word-inner {
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================
   SCROLL ANIMATIONS
   Elements are VISIBLE by default.
   JS adds .will-animate, then .animated.
   ============================================ */
.will-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.will-animate.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.will-animate[data-animate="fade-left"] { transform: translateX(-30px); }
.will-animate[data-animate="fade-right"] { transform: translateX(30px); }
.will-animate[data-animate="fade-down"] { transform: translateY(-30px); }
.will-animate[data-animate="scale"], .will-animate[data-animate="scale-up"] { transform: scale(0.95) translateY(20px); }

.will-animate.animated[data-animate="fade-left"],
.will-animate.animated[data-animate="fade-right"],
.will-animate.animated[data-animate="fade-down"],
.will-animate.animated[data-animate="scale"],
.will-animate.animated[data-animate="scale-up"] {
    transform: translateY(0) translateX(0) scale(1);
}


/* ============================================
   TILT CARD
   ============================================ */
.tilt-card {
    transition: transform 0.15s ease;
}


/* ============================================
   3D HERO CANVAS
   ============================================ */
#hero-canvas {
    pointer-events: none;
}
#hero-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}


/* ============================================
   DASHBOARD MOCKUP
   ============================================ */
.mockup-shadow {
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 25px 80px -15px rgba(0,0,0,0.6),
        0 0 120px -30px rgba(59,130,246,0.12);
}


/* ============================================
   CHART BAR
   ============================================ */
.chart-bar { transform-origin: bottom; }
.chart-bar.animated { animation: grow-bar 1s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes grow-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }


/* ============================================
   PROCESS CONNECTOR
   ============================================ */
.process-line {
    background: linear-gradient(90deg, rgba(59,130,246,0.3), rgba(139,92,246,0.3));
}


/* ============================================
   PROJECT CARD
   ============================================ */
.project-card {
    display: block;
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(59,130,246,0.15);
}
.project-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.project-card:hover img { transform: scale(1.05); }
.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,6,11,0.95) 0%, rgba(6,6,11,0.8) 40%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    z-index: 5;
}
.project-card:hover .project-card-overlay { opacity: 1; }


/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-weight: 500;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }


/* ============================================
   PRICING
   ============================================ */
.pricing-popular {
    box-shadow:
        0 0 0 1px rgba(99,102,241,0.4),
        0 0 50px -10px rgba(99,102,241,0.25);
}


/* ============================================
   CHECK ICON
   ============================================ */
.feature-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(59,130,246,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

/* ============================================
   STAT NUMBER
   ============================================ */
.stat-number { font-variant-numeric: tabular-nums; }


/* ============================================
   FLOATING ANIMATION
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
.float { animation: float 6s ease-in-out infinite; }


/* ============================================
   ANIMATED GRADIENT
   ============================================ */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet & mobile */
@media (max-width: 768px) {
    .page-hero { padding-top: 100px; padding-bottom: 48px; }

    /* Performance: reduce blur on mobile */
    .glow { filter: blur(80px); }
    .glass { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
    .nav-scrolled { backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; }

    /* Lighter mockup shadow */
    .mockup-shadow {
        box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 12px 40px -10px rgba(0,0,0,0.5);
    }

    /* Touch-friendly FAQ */
    .faq-question { padding: 18px 0; min-height: 48px; }
    .faq-answer { font-size: 0.875rem; }

    /* Tighter footer on mobile */
    footer { padding-top: 2rem; padding-bottom: 5rem; }
    footer .grid { gap: 1.5rem; }
    footer .grid > div:first-child p { display: none; }
    footer .grid > div h4 { margin-bottom: 0.5rem; font-size: 0.75rem; }
    footer .grid > div ul { gap: 0.25rem; }
    footer .grid > div ul li a { font-size: 0.75rem; }
    footer .flex.mt-16 { margin-top: 1.5rem; padding-top: 1rem; }

    /* Prevent horizontal overflow on small screens */
    .glow { max-width: 100vw; }

    /* Space for bottom tab nav */
    body { padding-bottom: 64px; }
}


/* ============================================
   MOBILE BOTTOM TAB NAV
   ============================================ */
.mobile-tab-nav {
    display: none;
}
@media (max-width: 767px) {
    .mobile-tab-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        height: 64px;
        background: rgba(6, 6, 11, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        align-items: center;
        justify-content: space-around;
        padding: 0 4px;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-tab-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        padding: 6px 0;
        color: #64748b;
        text-decoration: none;
        transition: color 0.2s;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-tab-nav a span {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.01em;
    }
    .mobile-tab-nav a svg {
        width: 20px;
        height: 20px;
    }
    .mobile-tab-nav a.active {
        color: #818cf8;
    }
    .mobile-tab-nav a:active {
        color: #a78bfa;
    }

    /* Hide hamburger when tab nav is present */
    .hamburger { display: none !important; }
    .mobile-menu { display: none !important; }
}

/* Small phones */
@media (max-width: 374px) {
    .page-hero { padding-top: 88px; padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee-track { animation: none !important; }
    .mobile-menu { transition: none !important; }
    .mobile-menu-link { transition: none !important; opacity: 1 !important; transform: none !important; }
    .mobile-menu-cta { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============================================
   PAGE HERO PRO — interior pages
   ============================================ */
.page-hero-pro {
    position: relative;
    overflow: hidden;
    padding: 140px 0 88px;
    background: #06060b;
    isolation: isolate;
}
.page-hero-pro-mesh {
    position: absolute; inset: 0;
    background:
        radial-gradient(700px 420px at 80% 25%, rgba(124, 92, 255, 0.20), transparent 60%),
        radial-gradient(600px 400px at 18% 85%, rgba(34, 211, 238, 0.12), transparent 60%);
    pointer-events: none; z-index: 0;
}
.page-hero-pro-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, #000 0%, transparent 75%);
    pointer-events: none; z-index: 0;
}
.page-hero-pro-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0;
}
.page-hero-pro-orb-1 { width: 420px; height: 420px; top: -120px; right: -100px; background: #6366f1; opacity: 0.36; }
.page-hero-pro-orb-2 { width: 320px; height: 320px; bottom: -100px; left: -60px; background: #22d3ee; opacity: 0.24; }

.page-hero-pro-content {
    position: relative; z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.page-hero-pro h1 {
    font-size: clamp(2.2rem, 5.2vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin: 0;
}
.page-hero-pro .ph-gradient {
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 55%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.page-hero-pro p.ph-sub {
    margin: 22px auto 0;
    max-width: 640px;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.75;
    color: rgba(255,255,255,0.65);
}
.page-hero-pro .ph-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.page-hero-pro .ph-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
    animation: heroPulse 2.4s ease-in-out infinite;
}
.page-hero-pro .ph-badge .dot.blue   { background: #60a5fa; box-shadow: 0 0 0 4px rgba(96,165,250,0.22); }
.page-hero-pro .ph-badge .dot.purple { background: #a78bfa; box-shadow: 0 0 0 4px rgba(167,139,250,0.22); }
.page-hero-pro .ph-badge .dot.cyan   { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,0.22); }
.page-hero-pro .ph-badge .dot.amber  { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,0.22); }

/* ============================================
   PROJECT CARD POLISH
   ============================================ */
.project-card {
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px -28px rgba(99,102,241,0.35), 0 0 0 1px rgba(167,139,250,0.18);
}
.project-card::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.project-card .project-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}
.project-chip-website  { color: #f87171; border-color: rgba(248,113,113,0.25); background: rgba(248,113,113,0.06); }
.project-chip-platform { color: #60a5fa; border-color: rgba(96,165,250,0.25); background: rgba(96,165,250,0.06); }
.project-chip-system   { color: #a78bfa; border-color: rgba(167,139,250,0.25); background: rgba(167,139,250,0.06); }

/* ============================================
   BENTO GRID — services bento
   ============================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    grid-auto-rows: minmax(160px, auto);
}
.bento-card {
    position: relative;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.bento-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(124,92,255,0.08), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s;
}
.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 24px 60px -28px rgba(99,102,241,0.35);
}
.bento-card:hover::before { opacity: 1; }
.bento-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.bento-card h3 {
    font-size: 19px; font-weight: 700; color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.bento-card p {
    font-size: 14px; line-height: 1.65;
    color: rgba(255,255,255,0.6);
}
.bento-card ul {
    margin-top: 14px;
    display: flex; flex-direction: column; gap: 6px;
}
.bento-card ul li {
    font-size: 13px; color: rgba(255,255,255,0.55);
    display: flex; align-items: center; gap: 8px;
}
.bento-card ul li::before {
    content: ''; width: 4px; height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    flex-shrink: 0;
}
/* Bento span variants */
.bento-feature      { grid-column: span 4; grid-row: span 2; }
.bento-half-tall    { grid-column: span 2; grid-row: span 2; }
.bento-third        { grid-column: span 2; }
.bento-half         { grid-column: span 3; }
.bento-two-thirds   { grid-column: span 4; }
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(4, 1fr); }
    .bento-feature, .bento-two-thirds { grid-column: span 4; }
    .bento-half, .bento-half-tall { grid-column: span 2; grid-row: auto; }
    .bento-third { grid-column: span 2; }
}
@media (max-width: 640px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-feature, .bento-half, .bento-half-tall, .bento-third, .bento-two-thirds { grid-column: span 1; grid-row: auto; }
    .bento-card { padding: 22px; }
}

/* ============================================
   SOCIAL PROOF STRIP — homepage
   ============================================ */
.proof-strip {
    position: relative;
    padding: 64px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(99,102,241,0.04) 50%, rgba(255,255,255,0) 100%);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.proof-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}
.proof-card {
    padding: 24px;
    border-radius: 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s, border-color 0.3s;
}
.proof-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.12); }
.proof-stars {
    display: inline-flex; gap: 2px;
    color: #fbbf24;
    margin-bottom: 12px;
}
.proof-quote {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.82);
    margin-bottom: 16px;
}
.proof-author { display: flex; align-items: center; gap: 12px; }
.proof-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 14px;
}
.proof-author-text { display: flex; flex-direction: column; line-height: 1.4; font-size: 13px; }
.proof-author-text strong { color: #fff; font-weight: 600; }
.proof-author-text span { color: rgba(255,255,255,0.5); font-size: 12px; }
@media (max-width: 1024px) { .proof-grid { grid-template-columns: 1fr 1fr; } .proof-card:nth-child(3) { display: none; } }
@media (max-width: 640px)  { .proof-grid { grid-template-columns: 1fr; } .proof-card:nth-child(3) { display: block; } }

/* ============================================
   FLOATING LABEL FORM FIELDS
   ============================================ */
.field-float {
    position: relative;
    width: 100%;
}
.field-float > input,
.field-float > textarea,
.field-float > select {
    width: 100%;
    padding: 22px 16px 8px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #fff;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.field-float > textarea { min-height: 130px; resize: vertical; padding-top: 26px; }
.field-float > select {
    background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.55) 50%), linear-gradient(135deg, rgba(255,255,255,0.55) 50%, transparent 50%);
    background-position: calc(0% + 18px) 50%, calc(0% + 23px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-inline-start: 38px;
    cursor: pointer;
}
html[dir="rtl"] .field-float > select {
    background-position: calc(100% - 18px) 50%, calc(100% - 23px) 50%;
}
.field-float > input::placeholder,
.field-float > textarea::placeholder { color: transparent; }
.field-float > input:focus,
.field-float > textarea:focus,
.field-float > select:focus {
    border-color: rgba(99,102,241,0.55);
    background: rgba(99,102,241,0.04);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
}
.field-float > label {
    position: absolute;
    inset-inline-start: 16px;
    top: 16px;
    color: rgba(255,255,255,0.45);
    font-size: 15px;
    pointer-events: none;
    transition: transform 0.2s, color 0.2s, font-size 0.2s;
    background: transparent;
    transform-origin: top right;
}
html[dir="ltr"] .field-float > label { transform-origin: top left; }
.field-float > input:focus ~ label,
.field-float > input:not(:placeholder-shown) ~ label,
.field-float > textarea:focus ~ label,
.field-float > textarea:not(:placeholder-shown) ~ label,
.field-float > select:focus ~ label,
.field-float > select:not([data-empty="true"]) ~ label,
.field-float > select.has-value ~ label {
    top: 7px;
    font-size: 11px;
    color: rgba(167,139,250,0.95);
    letter-spacing: 0.02em;
}
.field-float .field-hint {
    position: absolute;
    inset-inline-end: 16px;
    bottom: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    pointer-events: none;
}
.field-float .field-error {
    margin-top: 6px;
    font-size: 12px;
    color: #f87171;
}

/* Toast notifications */
.wt-toast-wrap {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 360px;
    pointer-events: none;
}
.wt-toast {
    pointer-events: auto;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(15,16,28,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
    display: flex; align-items: flex-start; gap: 10px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s;
}
html[dir="rtl"] .wt-toast { transform: translateX(-120%); }
.wt-toast.show { transform: translateX(0); opacity: 1; }
.wt-toast.success { border-color: rgba(52,211,153,0.4); }
.wt-toast.success::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #34d399; display: inline-block; flex-shrink: 0; margin-top: 2px; }
.wt-toast.error { border-color: rgba(248,113,113,0.4); }
.wt-toast.error::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #f87171; display: inline-block; flex-shrink: 0; margin-top: 2px; }

/* ============================================
   HERO LUX — Editorial luxury hero (homepage)
   Brand blue/purple/cyan gradient + refined typography
   ============================================ */
.hero-lux {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #06060b;
    isolation: isolate;
    display: flex;
    align-items: center;
    padding: 130px 0 110px;
}
.hero-lux::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 700px at 88% 12%, rgba(124, 92, 255, 0.22), transparent 60%),
        radial-gradient(750px 600px at 10% 88%, rgba(34, 211, 238, 0.14), transparent 65%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.015), transparent 70%);
    pointer-events: none; z-index: 0;
}
.hero-lux::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.5;
    pointer-events: none; z-index: 1;
    mix-blend-mode: overlay;
}
.hero-lux-content {
    position: relative; z-index: 5;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.hero-lux-eyebrow {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: 'Inter', 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(167, 139, 250, 0.92);
    margin-bottom: 36px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-lux-eyebrow .sep {
    width: 22px; height: 1px;
    background: rgba(167, 139, 250, 0.45);
    flex-shrink: 0;
}
.hero-lux h1 {
    font-family: 'Reem Kufi', 'Cairo', sans-serif;
    font-size: clamp(2.4rem, 6.4vw, 5.4rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.012em;
    color: #f5f5f7;
    margin: 0;
}
.hero-lux h1 .lux-accent {
    font-style: italic;
    font-family: 'Amiri', 'Reem Kufi', serif;
    font-weight: 400;
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 55%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-lux h1 .lux-soft {
    color: rgba(245, 245, 247, 0.55);
    font-weight: 400;
}
.hero-lux-divider {
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.6), transparent);
    margin: 36px auto;
    position: relative;
}
.hero-lux-divider::before {
    content: '';
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 7px; height: 7px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    box-shadow: 0 0 16px rgba(167, 139, 250, 0.7);
}
.hero-lux-sub {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: clamp(15px, 1.35vw, 19px);
    line-height: 1.85;
    color: rgba(245, 245, 247, 0.6);
    max-width: 640px;
    margin: 0 auto;
    font-weight: 400;
}
.hero-lux-actions {
    margin-top: 48px;
    display: inline-flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-lux-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 38px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #06b6d4 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    box-shadow: 0 14px 36px -10px rgba(99,102,241,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s, filter 0.35s;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-lux-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}
.btn-lux-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px -10px rgba(124, 92, 255, 0.72), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn-lux-primary:hover::before { opacity: 1; }
.btn-lux-primary:focus-visible { outline: 2px solid #a78bfa; outline-offset: 4px; }
.btn-lux-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 4px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #c4b5fd;
    text-decoration: none;
    border-bottom: 1px solid rgba(167, 139, 250, 0.32);
    transition: color 0.3s, border-color 0.3s;
}
.btn-lux-secondary:hover {
    color: #e0d5ff;
    border-color: rgba(196, 181, 253, 0.85);
}
.btn-lux-secondary svg { transition: transform 0.3s; }
.btn-lux-secondary:hover svg { transform: translateX(-5px); }
html[dir="ltr"] .btn-lux-secondary:hover svg { transform: translateX(5px); }

.hero-lux-stats {
    margin-top: 88px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
}
.hero-lux-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 56px;
    flex: 0 1 auto;
}
.hero-lux-stat .num {
    font-family: 'Playfair Display', 'Cormorant Garamond', 'Amiri', serif;
    font-size: 40px;
    font-weight: 400;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 55%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
    letter-spacing: -0.02em;
}
.hero-lux-stat .label {
    font-family: 'Cairo', sans-serif;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}
.hero-lux-stat + .hero-lux-stat {
    border-inline-start: 1px solid rgba(255,255,255,0.06);
}

.hero-lux-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(167, 139, 250, 0.7);
    animation: heroLuxScroll 2.6s ease-in-out infinite;
    pointer-events: none;
}
.hero-lux-scroll .line {
    width: 1px; height: 36px;
    background: linear-gradient(180deg, rgba(167, 139, 250, 0.65), transparent);
}
@keyframes heroLuxScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-lux { padding: 110px 0 90px; }
    .hero-lux-stat { padding: 0 36px; }
}
/* Mobile */
@media (max-width: 640px) {
    .hero-lux { padding: 96px 0 72px; min-height: auto; }
    .hero-lux-content { padding: 0 20px; }
    .hero-lux-eyebrow { font-size: 10px; letter-spacing: 0.22em; gap: 10px; }
    .hero-lux-eyebrow .sep { width: 16px; }
    .hero-lux-divider { margin: 28px auto; }
    .hero-lux-actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 40px; }
    .btn-lux-primary { width: 100%; justify-content: center; padding: 17px 24px; }
    .btn-lux-secondary { width: 100%; justify-content: center; border: 1px solid rgba(201,167,109,0.28); padding: 16px 24px; border-radius: 6px; }
    .hero-lux-stats { gap: 0; margin-top: 56px; padding-top: 28px; }
    .hero-lux-stat { padding: 0 22px; }
    .hero-lux-stat .num { font-size: 32px; }
    .hero-lux-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-lux-scroll { animation: none; }
}

/* === Site logo === */
.site-logo {
    transition: filter 0.25s ease, transform 0.25s ease;
}
.site-logo:hover {
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.35));
}

/* ============================================================
   HERO ENGINE — Vision → System → Growth (cinematic)
   ============================================================ */
.hero-engine {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #06060b 0%, #08081a 60%, #06060b 100%);
    isolation: isolate;
    padding: 130px 0 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.he-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(167,139,250,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167,139,250,0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 0%, transparent 80%);
    animation: heDrift 40s linear infinite;
    pointer-events: none; z-index: 0;
}
@keyframes heDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 56px 56px, 56px 56px; }
}
.he-mesh {
    position: absolute; inset: 0;
    background:
        radial-gradient(900px 700px at 15% 22%, rgba(124, 92, 255, 0.24), transparent 60%),
        radial-gradient(800px 600px at 85% 75%, rgba(34, 211, 238, 0.16), transparent 60%),
        radial-gradient(500px 400px at 50% 50%, rgba(167,139,250,0.08), transparent 70%);
    pointer-events: none; z-index: 0;
}
.he-particles {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(167,139,250,0.5) 1px, transparent 1.4px);
    background-size: 180px 180px;
    opacity: 0.18;
    animation: heParticles 60s linear infinite;
    pointer-events: none; z-index: 1;
}
@keyframes heParticles {
    from { background-position: 0 0; }
    to { background-position: 180px -180px; }
}

.he-container {
    position: relative;
    z-index: 5;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    flex: 1;
    display: grid;
    grid-template-columns: 0.9fr 1.15fr;
    gap: 72px;
    align-items: center;
}

/* TEXT COLUMN */
.he-text { max-width: 600px; }
.he-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(167,139,250,0.07);
    border: 1px solid rgba(167,139,250,0.25);
    font-size: 12px;
    color: rgba(245,243,236,0.9);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.04em;
    font-weight: 500;
    animation: heFloatIn 0.7s ease-out both;
}
.he-badge .he-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 0 4px rgba(167,139,250,0.2);
    animation: hePulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes hePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(167,139,250,0.2); }
    50% { box-shadow: 0 0 0 10px rgba(167,139,250,0); }
}
.he-text h1 {
    font-family: 'Cairo', 'Reem Kufi', sans-serif;
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.018em;
    color: #ffffff;
    margin: 0;
    animation: heFloatIn 0.8s 0.1s ease-out both;
}
.he-grad {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 55%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.he-sub {
    margin-top: 24px;
    max-width: 540px;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    animation: heFloatIn 0.8s 0.2s ease-out both;
}
.he-cta {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: heFloatIn 0.8s 0.3s ease-out both;
}
.btn-he-primary, .btn-he-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
    cursor: pointer;
}
.btn-he-primary {
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #06b6d4 100%);
    box-shadow: 0 14px 36px -8px rgba(99,102,241,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}
.btn-he-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
    opacity: 0; transition: opacity 0.25s;
}
.btn-he-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px -8px rgba(124,92,255,0.78), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn-he-primary:hover::before { opacity: 1; }
.btn-he-secondary {
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
}
.btn-he-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(167,139,250,0.4);
    transform: translateY(-2px);
}

/* TRUST CHIP */
.he-trust {
    margin-top: 38px;
    display: flex; align-items: center; gap: 14px;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    animation: heFloatIn 0.8s 0.45s ease-out both;
}
.he-trust .he-avatars { display: inline-flex; }
.he-trust .he-avatars span {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid #06060b;
    margin-inline-start: -8px;
}
.he-trust .he-avatars span:first-child { margin-inline-start: 0; }
.he-trust .he-avatars span:nth-child(1) { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.he-trust .he-avatars span:nth-child(2) { background: linear-gradient(135deg,#8b5cf6,#ec4899); }
.he-trust .he-avatars span:nth-child(3) { background: linear-gradient(135deg,#06b6d4,#6366f1); }
.he-trust .he-avatars span:nth-child(4) { background: linear-gradient(135deg,#10b981,#14b8a6); }

/* VIZ COLUMN: growth engine */
.he-viz {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 200px) minmax(220px, 1fr) minmax(150px, 200px);
    gap: 8px;
    align-items: center;
    min-height: 480px;
    animation: heFloatIn 0.9s 0.2s ease-out both;
}

/* Connecting lines SVG (full container) */
.he-lines {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}
.he-flow-path {
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 5 7;
    animation: heFlowAnim 2.6s linear infinite;
}
.he-flow-path-1 { stroke: url(#heFlowGradA); opacity: 0.65; }
.he-flow-path-2 { stroke: url(#heFlowGradB); opacity: 0.6; }
@keyframes heFlowAnim {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -36; }
}

/* Node columns: input + output */
.he-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 3;
    position: relative;
}
.he-node {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    animation: heFloatY 6s ease-in-out infinite;
    will-change: transform;
}
.he-node:nth-child(1) { animation-delay: 0s; }
.he-node:nth-child(2) { animation-delay: 1.5s; }
.he-node:nth-child(3) { animation-delay: 3s; }
.he-node:nth-child(4) { animation-delay: 2.2s; }
.he-node:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(167,139,250,0.4);
    box-shadow: 0 14px 36px -10px rgba(167,139,250,0.35);
}
.he-node-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.he-node-icon.purple { background: rgba(167,139,250,0.14); border: 1px solid rgba(167,139,250,0.28); color: #c4b5fd; }
.he-node-icon.cyan   { background: rgba(34,211,238,0.14); border: 1px solid rgba(34,211,238,0.28); color: #67e8f9; }
.he-node-icon.blue   { background: rgba(96,165,250,0.14); border: 1px solid rgba(96,165,250,0.28); color: #93c5fd; }
.he-node-icon.emerald{ background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.28); color: #6ee7b7; }
.he-node-icon.amber  { background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.28); color: #fcd34d; }
.he-node-icon.rose   { background: rgba(244,63,94,0.14); border: 1px solid rgba(244,63,94,0.28); color: #fda4af; }
.he-node-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.he-node-text strong { font-size: 13px; font-weight: 600; color: #fff; }
.he-node-text span { font-size: 11px; color: rgba(255,255,255,0.5); }
.he-node-stat {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

@keyframes heFloatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes heFloatIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CENTER ENGINE CORE */
.he-core {
    position: relative;
    padding: 26px 22px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(124,92,255,0.16) 0%, rgba(34,211,238,0.08) 100%);
    border: 1px solid rgba(167,139,250,0.32);
    backdrop-filter: blur(22px);
    box-shadow: 0 0 90px rgba(124,92,255,0.32), 0 24px 60px -20px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: heCorePulse 4.6s ease-in-out infinite;
    z-index: 4;
}
.he-core::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(167,139,250,0.6), rgba(34,211,238,0.4), rgba(96,165,250,0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}
@keyframes heCorePulse {
    0%, 100% { box-shadow: 0 0 90px rgba(124,92,255,0.32), 0 24px 60px -20px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.1); }
    50% { box-shadow: 0 0 130px rgba(124,92,255,0.5), 0 24px 60px -20px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.14); }
}
.he-core-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 10px;
    color: rgba(196,181,253,1);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}
.he-core-header::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 12px rgba(167,139,250,0.95);
    animation: hePulse 2s ease-in-out infinite;
}
.he-core-name {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(18px, 1.5vw, 22px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.he-core-en {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 14px;
    color: rgba(167,139,250,0.85);
    margin-bottom: 18px;
}
.he-core-modules {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.he-module {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 500;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.88);
    transition: border-color 0.3s, background 0.3s;
}
.he-module:hover {
    border-color: rgba(167,139,250,0.4);
    background: rgba(167,139,250,0.08);
}
.he-module svg { width: 13px; height: 13px; flex-shrink: 0; }

/* BOTTOM PROCESS STRIP */
.he-process {
    position: relative; z-index: 5;
    margin: 56px auto 0;
    padding: 16px 28px;
    max-width: 920px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    letter-spacing: 0.05em;
    font-weight: 500;
}
.he-step { display: inline-flex; align-items: center; gap: 8px; }
.he-step-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    box-shadow: 0 0 8px rgba(167,139,250,0.6);
}
.he-arr {
    color: rgba(167,139,250,0.5);
    display: inline-flex; align-items: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-engine { padding: 110px 0 60px; min-height: auto; }
    .he-container { grid-template-columns: 1fr; gap: 64px; }
    .he-viz { grid-template-columns: minmax(140px,1fr) minmax(200px,1.2fr) minmax(140px,1fr); min-height: 420px; gap: 6px; }
    .he-core { padding: 22px 18px; }
    .he-core-name { font-size: 18px; }
    .he-module { font-size: 11px; padding: 6px 10px; }
}
@media (max-width: 768px) {
    .he-viz { grid-template-columns: 1fr; min-height: auto; gap: 18px; }
    .he-col { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .he-node { flex: 1 1 calc(50% - 10px); min-width: 145px; }
    .he-lines { display: none; }
    .he-core { order: -1; padding: 22px 18px; }
    .he-process { gap: 12px; padding: 14px 18px; font-size: 11.5px; }
    .he-process .he-arr svg { width: 12px; height: 12px; }
}
@media (max-width: 640px) {
    .he-cta { flex-direction: column; align-items: stretch; }
    .btn-he-primary, .btn-he-secondary { width: 100%; justify-content: center; min-height: 50px; padding: 15px 24px; }
    .he-trust { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .he-grid-bg, .he-particles, .he-core, .he-node, .he-badge .he-dot, .he-flow-path, .he-core-header::before { animation: none !important; }
}

/* Hero image layer (portfolio page) */
.hero-with-image { isolation: isolate; }
.page-hero-pro-image {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    filter: saturate(0.95) brightness(0.88);
}
.page-hero-pro-image-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(6,6,11,0.35) 0%, rgba(6,6,11,0.55) 55%, rgba(6,6,11,0.95) 100%),
        radial-gradient(ellipse 70% 50% at 50% 42%, transparent 0%, rgba(6,6,11,0.6) 75%);
    z-index: 1;
    pointer-events: none;
}
.hero-with-image .page-hero-pro-mesh,
.hero-with-image .page-hero-pro-grid { z-index: 2; opacity: 0.6; }
.hero-with-image .page-hero-pro-orb { z-index: 2; opacity: 0.5; }
.hero-with-image .page-hero-pro-content { position: relative; z-index: 5; }

/* === TEMPLATES SECTION === */
.templates-section {
    background: linear-gradient(180deg, #06060b 0%, #0a0a16 50%, #06060b 100%);
    isolation: isolate;
}
.templates-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(167,139,250,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167,139,250,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 0%, transparent 80%);
    pointer-events: none; z-index: 0;
}
.templates-orb {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,92,255,0.25), transparent 65%);
    filter: blur(60px);
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none; z-index: 0;
}
.templates-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(167,139,250,0.08);
    border: 1px solid rgba(167,139,250,0.28);
    font-size: 12px;
    font-weight: 500;
    color: rgba(196,181,253,0.95);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.04em;
}
.templates-eyebrow .dot-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 0 4px rgba(167,139,250,0.2);
    animation: hePulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
.templates-title {
    font-family: 'Cairo', 'Reem Kufi', sans-serif;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}
.templates-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167,139,250,0.5), transparent);
    margin: 24px auto;
    position: relative;
}
.templates-divider::before {
    content: '';
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px; height: 6px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.6);
}
.templates-sub {
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.85;
    color: rgba(255,255,255,0.62);
    max-width: 640px;
    margin: 0 auto;
}

/* === INDUSTRY GROUPS (portfolio page) === */
.industry-group { position: relative; }
.industry-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.industry-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.03em;
}
.industry-eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.industry-eyebrow .dot.cyan    { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,0.18); }
.industry-eyebrow .dot.amber   { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
.industry-eyebrow .dot.blue    { background: #60a5fa; box-shadow: 0 0 0 4px rgba(96,165,250,0.18); }
.industry-eyebrow .dot.purple  { background: #a78bfa; box-shadow: 0 0 0 4px rgba(167,139,250,0.18); }
.industry-eyebrow .dot.emerald { background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }
.industry-eyebrow .count {
    padding-inline-start: 12px;
    border-inline-start: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.55);
    font-size: 11px;
}
.industry-title {
    font-family: 'Cairo', 'Reem Kufi', sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.018em;
    color: #ffffff;
    margin: 0 0 14px;
}
.industry-sub {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    max-width: 580px;
    margin: 0 auto;
}

/* === ACCORDION (mobile portfolio industry sections) === */
.industry-header {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: 0;
    cursor: default;
    color: inherit;
    font: inherit;
    padding: 0;
    position: relative;
}
.industry-chevron {
    display: none;
    color: rgba(167,139,250,0.85);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

@media (max-width: 767px) {
    .industry-group {
        background: rgba(255,255,255,0.022);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 18px;
        overflow: hidden;
        margin-bottom: 16px;
    }
    .industry-header {
        cursor: pointer;
        padding: 22px 24px;
        text-align: start;
        transition: background 0.2s;
    }
    .industry-header:hover { background: rgba(255,255,255,0.015); }
    .industry-header:focus-visible { outline: 2px solid rgba(167,139,250,0.5); outline-offset: -3px; }
    .industry-header .industry-eyebrow { margin-bottom: 14px; }
    .industry-header .industry-title { font-size: 1.4rem; margin-bottom: 8px; }
    .industry-header .industry-sub { font-size: 13px; max-width: 100%; }
    .industry-chevron {
        display: block;
        position: absolute;
        inset-inline-end: 22px;
        top: 50%;
        transform: translateY(-50%);
    }
    .industry-header[aria-expanded="false"] .industry-chevron { transform: translateY(-50%) rotate(-90deg); }
    .industry-header[aria-expanded="true"] .industry-chevron { transform: translateY(-50%) rotate(0deg); }

    .industry-grid {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s, padding 0.3s;
        padding: 0 16px;
    }
    .industry-header[aria-expanded="true"] + .industry-grid {
        max-height: 8000px;
        opacity: 1;
        padding: 4px 16px 24px;
    }

    .industry-group + .industry-group { margin-top: 14px; }
    .max-w-7xl.mx-auto.px-6.space-y-24,
    .max-w-7xl.mx-auto.px-6.md\:space-y-32 { padding: 0 16px; }
}
@media (min-width: 768px) {
    .industry-header { pointer-events: none; }
    .industry-grid { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
    .industry-chevron, .industry-grid { transition: none !important; }
}
