/* ==========================================================================
   PrimeUAiTech — Enterprise Redesign Layer (production-candidate)
   Dark, restrained enterprise system. See deployment report for rationale.
   Part 1: tokens, base, accessibility, typography, layout.
   Brand authority: Prime Intelligence palette (Prime Navy #0A1733,
   Intelligence Blue #155EEF, Digital Azure #2E90FA, Secure Teal #0E9384),
   Inter primary + Manrope display.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800;900&family=Almarai:wght@400;700;800&display=swap");
:root {
  --font-heading: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: 221 67% 12%;
  --primary-glow: 211 95% 58%;
  --ring: 211 95% 58%;
  --pui-container: 72rem;
  --pui-gutter: clamp(1.25rem, 4vw, 2rem);
  --pui-section-y: clamp(3.5rem, 8vw, 7.5rem);
  --pui-header-h: 4.5rem;
  --pui-accent: hsl(var(--primary-glow, 211 95% 58%));
  --pui-accent-strong: hsl(211 100% 70%);
  --pui-accent-ink: hsl(222 47% 8%);
  --pui-surface: hsl(var(--card, 222 36% 9%));
  --pui-surface-2: hsl(222 38% 11%);
  --pui-line: hsl(var(--border, 227 34% 15%));
  --pui-text: hsl(var(--foreground, 0 0% 96%));
  --pui-text-2: hsl(var(--muted-foreground, 216 23% 63%));
  --pui-text-3: hsl(215 20% 48%);
  --pui-ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: hsl(var(--background, 222 33% 6%));
  color: var(--pui-text);
  font-family: var(--font-sans, "Inter", -apple-system, "Segoe UI", sans-serif);
  font-size: 1rem; line-height: 1.65;
  overflow-x: clip; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1rem; }
main { display: block; min-height: 40vh; }
/* Accessibility primitives */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: 0.625rem 1rem; border-radius: 0.5rem;
  background: var(--pui-accent); color: var(--pui-accent-ink);
  font-weight: 600; font-size: 0.875rem; text-decoration: none;
  transition: top 0.18s var(--pui-ease);
}
.skip-link:focus-visible { top: 0.75rem; }
:focus-visible { outline: 2px solid var(--pui-accent); outline-offset: 3px; border-radius: 4px; }
/* Typography scale */
h1, h2, h3, h4 {
  font-family: var(--font-heading, "Space Grotesk", "Inter", sans-serif);
  font-weight: 650; line-height: 1.15; letter-spacing: -0.015em;
  color: var(--pui-text); margin: 0 0 0.75rem; text-wrap: balance;
}
.hero-title {
  font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem);
  line-height: 1.06; letter-spacing: -0.025em; margin-bottom: 1.25rem;
}
.hero-title .block { display: block; }
.accent-light { color: var(--pui-accent) !important; }
.page-hero-title {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; text-wrap: balance;
}
.section-title {
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem);
  line-height: 1.18; letter-spacing: -0.018em; margin-bottom: 0.875rem; text-wrap: balance;
}
.cta-title {
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.125rem);
  line-height: 1.2; margin-bottom: 0.75rem; text-wrap: balance;
}
.service-title, .feature-title, .industry-name, .insight-title {
  font-size: 1.125rem; line-height: 1.35; margin-bottom: 0.5rem;
}
.footer-heading, .sidebar-title {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--pui-text-2); margin-bottom: 1rem;
}
/* Layout */
.container { width: min(100% - (var(--pui-gutter) * 2), var(--pui-container)); margin-inline: auto; }
.section-lg { padding-block: var(--pui-section-y); }
.section-header { max-width: 46rem; margin: 0 auto var(--space-xxl, 4rem); text-align: center; }
.section-description {
  color: var(--pui-text-2); font-size: 1.0625rem; line-height: 1.7;
  margin: 0 auto; max-width: 42rem; text-wrap: pretty;
}
.grid-2, .grid-3, .grid-4, .stats-grid, .partner-grid, .footer-grid { display: grid; gap: 1.25rem; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.content-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) {
  .content-grid { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 3rem; }
}
/* Header + navigation */
.header {
  position: sticky; top: 0; z-index: 100;
  background: hsl(var(--header-bg, 222 33% 6%) / 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.header.scrolled { border-bottom-color: var(--pui-line); background: hsl(var(--header-bg-scrolled, 222 33% 5%) / 0.96); }
.header-inner {
  width: min(100% - (var(--pui-gutter) * 2), 80rem); margin-inline: auto;
  min-height: var(--pui-header-h); display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; padding-block: 0.75rem;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 6px; }
.logo img { display: block; height: 2.75rem; width: auto; max-width: 15rem; }
.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1100px) { .nav-desktop { display: flex; } }
.nav-link {
  display: inline-block; padding: 0.55rem 0.8rem; border-radius: 0.5rem;
  font-size: 0.9375rem; font-weight: 500; color: var(--pui-text-2);
  text-decoration: none; white-space: nowrap;
  transition: color 0.16s var(--pui-ease), background 0.16s var(--pui-ease);
}
.nav-link:hover { color: var(--pui-text); background: hsl(222 38% 13%); }
.nav-link.active, .nav-link[aria-current="page"] { color: var(--pui-text); background: hsl(222 38% 13%); }
.mobile-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.6rem;
  border: 1px solid var(--pui-line); background: transparent;
  color: var(--pui-text); cursor: pointer;
  transition: border-color 0.16s var(--pui-ease), background 0.16s var(--pui-ease);
}
.mobile-menu-btn:hover { border-color: hsl(227 34% 26%); background: hsl(222 38% 11%); }
@media (min-width: 1100px) { .mobile-menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--pui-line); background: hsl(222 33% 5%); }
.mobile-nav.open { display: block; }
@media (min-width: 1100px) { .mobile-nav.open { display: none; } }
.mobile-nav-inner {
  width: min(100% - (var(--pui-gutter) * 2), 80rem); margin-inline: auto;
  padding: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: 0.125rem;
  max-height: calc(100dvh - var(--pui-header-h)); overflow-y: auto;
}
.mobile-nav-link {
  display: block; padding: 0.7rem 0.75rem; border-radius: 0.5rem;
  font-size: 1rem; font-weight: 500; color: var(--pui-text-2); text-decoration: none;
}
.mobile-nav-link:hover { color: var(--pui-text); background: hsl(222 38% 11%); }
.mobile-nav-link.active, .mobile-nav-link[aria-current="page"] { color: var(--pui-text); background: hsl(222 38% 11%); }
/* Narrow screens: the mobile menu already contains the CTA, so hide the
   header copy to guarantee logo + toggle always fit (320px and up). */
@media (max-width: 700px) {
  .header-inner { gap: 0.75rem; }
  .header-inner > div > .btn { display: none; }
}
/* Buttons / CTA system */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: 10px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.4; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.16s var(--pui-ease), border-color 0.16s var(--pui-ease),
    color 0.16s var(--pui-ease), transform 0.16s var(--pui-ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pui-accent); border-color: var(--pui-accent); color: var(--pui-accent-ink); }
.btn-primary:hover { background: var(--pui-accent-strong); border-color: var(--pui-accent-strong); }
.btn-outline { background: transparent; border-color: hsl(227 34% 24%); color: var(--pui-text); }
.btn-outline:hover { border-color: hsl(227 34% 36%); background: hsl(222 38% 11%); }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-text { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-loading { display: none; align-items: center; gap: 0.6rem; }
/* Badges + section eyebrows */
.badge {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--pui-accent); background: hsl(218 100% 60% / 0.12);
  border: 1px solid hsl(218 100% 60% / 0.28); white-space: nowrap;
}
.section-badge, .hero-badge, .page-hero-badge { margin-bottom: 1.125rem; }
/* Hero (home) + page heroes */
.hero {
  position: relative; overflow: clip;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(52rem 30rem at 85% -10%, hsl(218 100% 56% / 0.13), transparent 60%),
    radial-gradient(40rem 26rem at 8% 110%, hsl(249 100% 56% / 0.08), transparent 60%),
    hsl(var(--hero-bg, 222 36% 5%));
  border-bottom: 1px solid var(--pui-line);
}
.hero-grid {
  width: min(100% - (var(--pui-gutter) * 2), 80rem); margin-inline: auto;
  display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; } }
.hero-content { min-width: 0; max-width: 40rem; }
.hero-description { color: var(--pui-text-2); font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.1875rem); line-height: 1.7; margin-bottom: 1.75rem; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-visual { min-width: 0; }
.hero-visual-inner {
  position: relative; border-radius: 1rem; overflow: hidden;
  background: linear-gradient(180deg, hsl(222 38% 11%), hsl(222 36% 8%));
  border: 1px solid var(--pui-line);
  box-shadow: 0 24px 60px -24px hsl(0 0% 0% / 0.6);
}
.hero-visual-content { padding: 0; }
.hero-visual-header {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--pui-line);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--pui-text-2);
}
.hero-visual-dots { display: inline-flex; gap: 0.375rem; }
.hero-visual-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: hsl(227 34% 24%); }
.hero-visual-dot:first-child { background: hsl(0 72% 55% / 0.8); }
.hero-visual-dot:nth-child(2) { background: hsl(38 100% 56% / 0.8); }
.hero-visual-dot:nth-child(3) { background: hsl(160 84% 39% / 0.8); }
.hero-visual-body { padding: 1.75rem 1.5rem; text-align: center; }
.hero-visual-metric {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--pui-accent); line-height: 1;
}
.hero-visual-label { margin-top: 0.5rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pui-text-2); }
.hero-visual-stat { font-size: 0.875rem; color: var(--pui-text-2); }
.hero-visual-stat span { color: var(--pui-text); font-weight: 500; }
.hero-visual-footer {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center;
  padding: 1rem 1.25rem; border-top: 1px solid var(--pui-line);
  font-size: 0.8125rem; color: var(--pui-text-2);
}
.page-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(46rem 26rem at 50% -20%, hsl(218 100% 56% / 0.12), transparent 62%),
    hsl(var(--hero-bg, 222 36% 5%));
  border-bottom: 1px solid var(--pui-line); text-align: center;
}
.page-hero-content { width: min(100% - (var(--pui-gutter) * 2), 52rem); margin-inline: auto; }
.page-hero-description { color: var(--pui-text-2); font-size: 1.125rem; line-height: 1.7; margin: 0 auto; max-width: 44rem; text-wrap: pretty; }
/* Capability cards, features, industries, insights, partners, stats */
.service-card, .feature-card, .industry-card, .insight-card, .card {
  background: var(--pui-surface); border: 1px solid var(--pui-line);
  border-radius: var(--pui-radius-lg); padding: 1.5rem; min-width: 0;
  transition: border-color 0.18s var(--pui-ease), transform 0.18s var(--pui-ease);
}
.service-card:hover, .feature-card:hover, .insight-card:hover { border-color: hsl(227 34% 26%); transform: translateY(-2px); }
.card-interactive { cursor: pointer; }
.service-card.active { border-color: hsl(218 100% 60% / 0.5); }
.service-icon, .feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.7rem; margin-bottom: 1rem;
  color: var(--pui-accent); background: hsl(218 100% 60% / 0.1);
  border: 1px solid hsl(218 100% 60% / 0.22);
}
.service-icon svg, .feature-icon svg { width: 1.375rem; height: 1.375rem; }
.service-description, .feature-description, .industry-desc, .insight-excerpt { color: var(--pui-text-2); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1rem; }
.service-description:last-child, .feature-description:last-child { margin-bottom: 0; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.service-tag {
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 999px;
  color: var(--pui-text-2); background: hsl(222 38% 13%);
  border: 1px solid var(--pui-line); white-space: nowrap;
}
.industry-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.industry-card:hover { border-color: hsl(227 34% 26%); }
.industry-image { min-height: 7rem; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--pui-line); }
.industry-content { padding: 1.25rem 1.375rem 1.5rem; }
.insight-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.insight-image { min-height: 8rem; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--pui-line); }
.insight-body { padding: 1.25rem 1.375rem 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; flex: 1; }
.insight-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; color: var(--pui-text-3); }
.insight-category {
  font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px;
  color: var(--pui-accent); background: hsl(218 100% 60% / 0.1);
  border: 1px solid hsl(218 100% 60% / 0.25); white-space: nowrap;
}
.insight-excerpt { margin-bottom: 0.5rem; flex: 1; }
.insight-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--pui-accent); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.insight-link:hover { text-decoration: underline; }
.partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
@media (min-width: 640px) { .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .partner-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.partner-logo {
  display: flex; align-items: center; justify-content: center; min-height: 4.5rem;
  padding: 1rem; border: 1px solid var(--pui-line); border-radius: var(--pui-radius);
  background: hsl(222 36% 8%); color: var(--pui-text-2);
  font-weight: 600; font-size: 0.9375rem; text-align: center;
}
.stats-bar { border-block: 1px solid var(--pui-line); background: hsl(222 36% 7%); }
.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: var(--pui-container); margin-inline: auto; padding: 2rem var(--pui-gutter); gap: 1.5rem; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-item { text-align: center; padding: 0.5rem; }
.stat-value {
  font-family: var(--font-heading, "Space Grotesk", sans-serif);
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--pui-text); line-height: 1.2; margin-bottom: 0.375rem;
}
.stat-label { font-size: 0.875rem; color: var(--pui-text-2); line-height: 1.5; }
/* Content prose + sidebar */
.content-prose { min-width: 0; color: var(--pui-text-2); font-size: 1rem; line-height: 1.75; }
.content-prose h2 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
.content-prose h2:first-child { margin-top: 0; }
.content-prose p, .content-prose ul, .content-prose ol { margin-bottom: 1.125rem; }
.content-prose ul, .content-prose ol { padding-left: 1.375rem; }
.content-prose li { margin-bottom: 0.5rem; }
.content-prose a { color: var(--pui-accent); }
.content-prose scroll-margin-top, .content-prose h2 { scroll-margin-top: 6rem; }
.sidebar-card {
  background: var(--pui-surface); border: 1px solid var(--pui-line);
  border-radius: var(--pui-radius-lg); padding: 1.5rem;
}
.sidebar-links { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-link {
  display: block; padding: 0.6rem 0.75rem; border-radius: 0.5rem;
  color: var(--pui-text-2); text-decoration: none; font-size: 0.9375rem;
}
a.sidebar-link:hover { color: var(--pui-text); background: hsl(222 38% 13%); }
.sidebar-link[aria-current="page"] { color: var(--pui-text); background: hsl(222 38% 13%); }
/* CTA bands */
.cta-section { padding-block: var(--pui-section-y); }
.cta-content {
  max-width: 52rem; margin-inline: auto; text-align: center;
  background: linear-gradient(180deg, hsl(222 38% 11%), hsl(222 36% 8%));
  border: 1px solid var(--pui-line); border-radius: 1.25rem;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}
.cta-description { color: var(--pui-text-2); font-size: 1.0625rem; line-height: 1.7; margin-bottom: 1.75rem; text-wrap: pretty; }
/* Forms */
.contact-form { max-width: 46rem; margin-inline: auto; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-group { margin-bottom: 1.25rem; min-width: 0; }
.form-row .form-group { margin-bottom: 0; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--pui-text); margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: 0.6rem;
  background: hsl(222 38% 10%); border: 1px solid hsl(227 34% 20%);
  color: var(--pui-text); font-size: 0.95rem; line-height: 1.5; font-family: inherit;
  transition: border-color 0.15s var(--pui-ease), box-shadow 0.15s var(--pui-ease);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--pui-text-3); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--pui-accent);
  box-shadow: 0 0 0 3px hsl(218 100% 60% / 0.25);
}
.form-select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.form-select option { background: hsl(222 36% 9%); color: var(--pui-text); }
.form-textarea { min-height: 9rem; resize: vertical; }
.form-error {
  display: none; font-size: 0.875rem; color: hsl(0 84% 70%);
  margin-top: 0.5rem; line-height: 1.5;
}
.form-error.visible, form .form-error[style*="flex"] { align-items: center; }
.form-success {
  display: none; align-items: center; gap: 0.75rem; justify-content: center;
  margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: 0.6rem;
  background: hsl(160 84% 39% / 0.12); border: 1px solid hsl(160 84% 39% / 0.35);
  color: hsl(160 60% 72%); font-size: 0.9375rem; text-align: center;
}
.form-success.visible { display: flex; }
.form-success svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.spinner {
  display: inline-block; width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid hsl(222 47% 8% / 0.35); border-top-color: var(--pui-accent-ink);
  animation: pui-spin 0.7s linear infinite; vertical-align: -0.125rem;
}
/* Alerts */
.alert {
  display: flex; gap: 0.875rem; align-items: flex-start;
  padding: 1rem 1.25rem; border-radius: 0.6rem; margin-bottom: 1.25rem;
  background: hsl(222 38% 11%); border: 1px solid var(--pui-line);
  color: var(--pui-text-2); font-size: 0.9375rem; line-height: 1.6;
}
.alert-info { border-color: hsl(217 91% 60% / 0.4); background: hsl(217 91% 60% / 0.08); }
.alert-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; color: var(--pui-accent); }
/* Footer */
.footer { border-top: 1px solid var(--pui-line); background: hsl(222 36% 5%); padding: 3.5rem 0 0; }
.footer-grid {
  width: min(100% - (var(--pui-gutter) * 2), 80rem); margin-inline: auto;
  grid-template-columns: 1fr; gap: 2.25rem; padding-bottom: 2.75rem;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand { max-width: 24rem; }
.footer-nav { min-width: 0; }
.footer-logo { display: inline-block; margin-bottom: 1rem; border-radius: 6px; }
.footer-logo img { display: block; height: 3rem; width: auto; max-width: 16rem; }
.footer-tagline { color: var(--pui-text-2); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.625rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 0.6rem;
  border: 1px solid var(--pui-line); color: var(--pui-text-2); text-decoration: none;
  transition: color 0.15s var(--pui-ease), border-color 0.15s var(--pui-ease);
}
.social-link:hover { color: var(--pui-text); border-color: hsl(227 34% 30%); }
.footer-links { display: flex; flex-direction: column; gap: 0.125rem; }
.footer-link { display: inline-block; padding: 0.3rem 0; color: var(--pui-text-2); font-size: 0.9375rem; text-decoration: none; width: fit-content; }
.footer-link:hover { color: var(--pui-text); text-decoration: underline; }
.footer-contact { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-contact-item {
  display: flex; gap: 0.625rem; align-items: flex-start;
  color: var(--pui-text-2); font-size: 0.9rem; line-height: 1.6; text-decoration: none;
}
.footer-contact-item svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; margin-top: 0.2rem; }
a.footer-contact-item:hover { color: var(--pui-text); }
.footer-bottom {
  border-top: 1px solid var(--pui-line);
  width: min(100% - (var(--pui-gutter) * 2), 80rem); margin-inline: auto;
  padding: 1.5rem 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.footer-copyright { color: var(--pui-text-3); font-size: 0.875rem; margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-legal a { color: var(--pui-text-2); font-size: 0.875rem; text-decoration: none; }
.footer-legal a:hover { color: var(--pui-text); text-decoration: underline; }
/* Reveal-on-scroll + animation utilities */
.reveal { opacity: 1; }
html.has-scroll-animations .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--pui-ease), transform 0.6s var(--pui-ease); }
html.has-scroll-animations .reveal-right { transform: translateX(18px); }
html.has-scroll-animations .reveal-scale { transform: scale(0.97); }
html.has-scroll-animations .reveal.visible { opacity: 1; transform: none; }
@keyframes pui-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pui-scale-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pui-slide-in-right { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes pui-spin { to { transform: rotate(360deg); } }
.animate-fade-in-up { animation: pui-fade-up 0.6s var(--pui-ease) both; }
.animate-scale-in { animation: pui-scale-in 0.6s var(--pui-ease) both; }
.animate-slide-in-right { animation: pui-slide-in-right 0.6s var(--pui-ease) both; }
.stagger-1 { animation-delay: 0.06s; transition-delay: 0.06s; }
.stagger-2 { animation-delay: 0.12s; transition-delay: 0.12s; }
.stagger-3 { animation-delay: 0.18s; transition-delay: 0.18s; }
.stagger-4 { animation-delay: 0.24s; transition-delay: 0.24s; }
.stagger-5 { animation-delay: 0.3s; transition-delay: 0.3s; }
.stagger-6 { animation-delay: 0.36s; transition-delay: 0.36s; }
.stagger-7 { animation-delay: 0.42s; transition-delay: 0.42s; }
.stagger-8 { animation-delay: 0.48s; transition-delay: 0.48s; }
.stagger-9 { animation-delay: 0.54s; transition-delay: 0.54s; }
/* Small-mobile refinements + overflow guard */
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .stats-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
}
/* Reduced motion: respect user preference, disable non-essential movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.has-scroll-animations .reveal { opacity: 1; transform: none; transition: none; }
  .animate-fade-in-up, .animate-scale-in, .animate-slide-in-right { animation: none; }
  .service-card:hover, .feature-card:hover, .insight-card:hover { transform: none; }
  .btn:active { transform: none; }
  .spinner { animation-duration: 1.4s; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}


/* ---- 22. Language switcher + Arabic (RTL) support -------------------------
   Brand type companion: IBM Plex Sans Arabic (Typography Direction).
   `dir="rtl"` on <html> mirrors flex/grid flow automatically; the rules
   below fix physical properties, letter-spacing, and font stacks. */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.45rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--pui-line); color: var(--pui-text-2);
  font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: color 0.15s var(--pui-ease), border-color 0.15s var(--pui-ease);
}
.lang-switch:hover { color: var(--pui-text); border-color: hsl(227 34% 30%); }
[dir="rtl"] body {
  font-family: "Almarai", "Inter", -apple-system, "Segoe UI", sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  /* !important required: base layer pins headings with !important */
  font-family: "Cairo", "Almarai", "Manrope", sans-serif !important;
  letter-spacing: 0;
}
[dir="rtl"] .badge { letter-spacing: 0.02em; }
[dir="rtl"] .content-prose ul, [dir="rtl"] .content-prose ol {
  padding-left: 0; padding-right: 1.375rem;
}
[dir="rtl"] .form-select {
  background-position: left 0.9rem center;
  padding-right: 0.9rem; padding-left: 2.5rem;
}
[dir="rtl"] .skip-link { left: auto; right: 1rem; }
[dir="rtl"] .insight-link svg { transform: scaleX(-1); }
[dir="rtl"] .hero-title, [dir="rtl"] .section-title, [dir="rtl"] .page-hero-title {
  letter-spacing: 0;
}
