/* =============================================================================
   SOFTAXIS TECHNOLOGIES LLC — styles.css
   Design System: Premium SaaS · Silicon Valley Grade
   Primary: #5071ba · Dark: #1A1A1A · Background: #ffffff
   ============================================================================= */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS DESIGN TOKENS ===== */
:root {
  /* Brand Colors */
  --primary:          #5071ba;
  --primary-light:    #6f8fd1;
  --primary-dark:     #3d5a9e;
  --primary-glow:     rgba(80, 113, 186, 0.28);
  --primary-subtle:   rgba(80, 113, 186, 0.08);

  /* Text */
  --text-dark:        #1A1A1A;
  --text-secondary:   #52525b;
  --text-muted:       #a1a1aa;
  --text-on-dark:     rgba(255,255,255,0.85);

  /* Surfaces */
  --bg-white:         #ffffff;
  --bg-light:         #f7f9ff;
  --bg-card:          rgba(255, 255, 255, 0.85);
  --bg-dark:          #0f1117;
  --bg-dark-2:        #161b27;

  /* Borders */
  --border:           rgba(80, 113, 186, 0.18);
  --border-light:     rgba(0, 0, 0, 0.07);
  --border-dark:      rgba(255, 255, 255, 0.08);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #5071ba 0%, #6f8fd1 100%);
  --gradient-text:    linear-gradient(135deg, #5071ba 0%, #6f8fd1 100%);
  --gradient-hero:    linear-gradient(145deg, #eef2ff 0%, #f0f4ff 40%, #f5f8ff 100%);
  --gradient-card:    linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(247,249,255,0.8) 100%);

  /* Shadows */
  --shadow-xs:        0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:        0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:        0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:        0 8px 40px rgba(0,0,0,0.10);
  --shadow-xl:        0 20px 60px rgba(0,0,0,0.12);
  --shadow-primary:   0 8px 32px rgba(80, 113, 186, 0.30);
  --shadow-primary-lg:0 16px 48px rgba(80, 113, 186, 0.35);

  /* Typography */
  --font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing Scale */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   40px;
  --space-xl:   64px;
  --space-2xl:  96px;
  --space-3xl:  128px;

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 9999px;

  /* Layout */
  --max-w:        1200px;
  --section-y:    96px;
  --header-h:     72px;

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:       all 0.2s var(--ease);
  --t:            all 0.3s var(--ease);
  --t-slow:       all 0.55s var(--ease);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--t); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 5px 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(80,113,186,0.18);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
}

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--t);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

/* Primary — glowing gradient */
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: var(--t);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-lg);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover {
  background: var(--bg-light);
  border-color: rgba(80,113,186,0.25);
  transform: translateY(-1px);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(80,113,186,0.35);
}
.btn-outline:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Sizes */
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: var(--t);
}
.header.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Fallback text logo (unused when image loads) */
.logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.025em;
  line-height: 1;
}
.logo-text .accent { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-sub {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

/* Footer logo image */
.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 14px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  transition: var(--t);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 12px; right: 12px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.28s var(--ease);
}
.nav-link:hover { color: var(--text-dark); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--text-dark); font-weight: 600; }

/* ===== NAV DROPDOWNS ===== */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.nav-chevron {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
  opacity: 0.55;
  margin-top: 1px;
}
.nav-item.open > .nav-dropdown-trigger .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0.2s;
  z-index: 200;
}
.nav-item.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0s;
}
.nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--t-fast);
  white-space: nowrap;
}
.nav-dropdown-item:hover { background: var(--bg-light); color: var(--primary); }
.nav-dropdown-divider { height: 1px; background: var(--border-light); margin: 6px 4px; }
.nav-dropdown-view-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  transition: var(--t-fast);
  white-space: nowrap;
}
.nav-dropdown-view-all:hover { background: var(--primary); color: #fff; }
.nav-dropdown-trigger::after { display: none !important; }
.nav-dropdown-item.active { background: var(--bg-light); color: var(--primary); font-weight: 600; }

/* Partner Program nav highlight pill */
.nav-link-partner {
  background: var(--primary-subtle);
  color: var(--primary) !important;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-weight: 600 !important;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  padding: 5px 13px;
}
.nav-link-partner::after { display: none !important; }
.nav-link-partner:hover,
.nav-link-partner.active {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

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

/* Mobile hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
  background: none;
  border: none;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--t);
}
.menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
  padding-top: var(--header-h);
}

/* Canvas background */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(80,113,186,0.11) 0%, transparent 65%);
  top: -15%; right: -8%;
  animation: orbFloat 10s ease-in-out infinite;
}
.hero-orb-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(111,143,209,0.09) 0%, transparent 65%);
  bottom: -10%; left: -5%;
  animation: orbFloat 13s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(80,113,186,0.07) 0%, transparent 65%);
  top: 45%; left: 35%;
  animation: orbFloat 16s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(24px,-18px) scale(1.04); }
  66%       { transform: translate(-16px,24px) scale(0.97); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 0 80px;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(80,113,186,0.22);
  border-radius: var(--r-full);
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%      { transform: scale(1.2); opacity: 0.85; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Hero micro-stats */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hero-meta-value {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.025em;
  line-height: 1;
}
.hero-meta-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-meta-sep {
  width: 1px;
  height: 32px;
  background: rgba(0,0,0,0.1);
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 64px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
}
.trust-stat-val {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 5px;
}
.trust-stat-lbl {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.clutch-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  min-width: 190px;
}
.clutch-stars { font-size: 1.25rem; margin-bottom: 6px; line-height: 1; }
.clutch-score {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}
.clutch-platform {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 4px 0 16px;
}

/* ===== SERVICES ===== */
.services {
  padding: var(--section-y) 0;
  background: var(--bg-light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  padding: 28px 28px 24px;
  transition: var(--t);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  border-radius: inherit;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(80,113,186,0.22);
}
.service-card:hover::before { opacity: 0.025; }

.svc-icon {
  width: 46px; height: 46px;
  background: rgba(80,113,186,0.1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  position: relative; z-index: 1;
  transition: var(--t);
}
.svc-icon svg { width: 22px; height: 22px; color: var(--primary); }
.service-card:hover .svc-icon { background: rgba(80,113,186,0.16); transform: scale(1.06); }

.svc-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.svc-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative; z-index: 1;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 14px;
  position: relative; z-index: 1;
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--t);
}
.service-card:hover .svc-link { opacity: 1; transform: translateX(0); }

/* ===== INDUSTRIES ===== */
.industries {
  padding: var(--section-y) 0;
  background: #fff;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.industry-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 28px 20px;
  text-align: center;
  transition: var(--t);
  cursor: default;
}
.industry-card:hover {
  background: #fff;
  border-color: rgba(80,113,186,0.22);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.ind-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  transition: var(--t);
}
.industry-card:hover .ind-icon { transform: scale(1.08); }
.ind-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.ind-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== CASE STUDIES ===== */
.case-studies {
  padding: var(--section-y) 0;
  background: var(--bg-light);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 28px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  padding: 36px;
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.case-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(80,113,186,0.15);
}
.case-card:hover::after { transform: scaleX(1); }

.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.case-title {
  font-size: 1.3125rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.3;
}
.case-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 22px;
}
.case-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 22px;
}
.case-result-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: #16a34a;
}
.case-result-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #15803d;
}
.case-quote {
  padding-left: 18px;
  border-left: 3px solid var(--primary);
  margin-bottom: 20px;
}
.case-quote-text {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 10px;
}
.case-client {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== REBRANDING ===== */
.rebranding {
  padding: 72px 0;
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.rebrand-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.brand-flow {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.brand-node {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
}
.brand-node.current { background: rgba(80,113,186,0.04); }
.brand-node-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.brand-node.current .brand-node-name { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.brand-node-year {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}
.brand-arrow-sep {
  padding: 0 8px;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.5;
}

/* ===== WHY CHOOSE ===== */
.why-choose {
  padding: var(--section-y) 0;
  background: var(--bg-light);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 26px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: var(--t);
}
.feature-card:hover {
  border-color: rgba(80,113,186,0.22);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feat-icon {
  width: 44px; height: 44px;
  background: rgba(80,113,186,0.09);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: var(--t);
}
.feature-card:hover .feat-icon { background: rgba(80,113,186,0.15); }
.feat-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.feat-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 88px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(80,113,186,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-banner-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.1;
}
.cta-banner-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}
.cta-banner-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== CONTACT ===== */
.contact {
  padding: var(--section-y) 0;
  background: var(--bg-light);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 42px; height: 42px;
  background: var(--primary-subtle);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-val {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
}
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  padding: 11px 15px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--t);
}
.form-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(80,113,186,0.10);
}
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 28px;
}
.footer-logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.footer-logo-text .accent { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin-bottom: 20px;
}
.footer-loc {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: var(--t);
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
  background: rgba(80,113,186,0.35);
  border-color: rgba(80,113,186,0.5);
  color: #fff;
  transform: translateY(-2px);
}
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: var(--t);
}
.footer-link:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 130px 0 72px;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(80,113,186,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; max-width: 680px; }
.page-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.page-hero-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 540px;
}

/* ===== ABOUT PAGE ===== */
.about-story { padding: var(--section-y) 0; background: #fff; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.story-visual {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.story-metric {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}
.story-metric-icon {
  width: 40px; height: 40px;
  background: var(--primary-subtle);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.story-metric-val {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 2px;
}
.story-metric-lbl { font-size: 0.8125rem; color: var(--text-muted); }
.about-values { padding: var(--section-y) 0; background: var(--bg-light); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: var(--t);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.value-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.value-title { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.value-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; }

/* ===== TEAM SECTION ===== */
.team-section {
  padding: var(--section-y) 0;
  background: #fff;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card */
.team-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r-2xl);
  overflow: hidden;
  transition: var(--t);
  position: relative;
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(80,113,186,0.2);
}

/* Photo area */
.team-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.5;
  overflow: hidden;
  background: #c8eaf0;
  flex-shrink: 0;
}
.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.55s var(--ease);
}
.team-card:hover .team-photo-wrap img {
  transform: scale(1.04);
}
/* Gradient fade photo into card body */
.team-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, var(--bg-light) 0%, transparent 100%);
  pointer-events: none;
}

/* Floating role pill over photo */
.team-role-pill {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(80,113,186,0.18);
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-role-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

/* Card body */
.team-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.team-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 3px;
}
.team-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
.team-divider {
  width: 28px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin-bottom: 12px;
}
.team-bio {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: none;
}
.team-bio.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.team-bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  transition: opacity 0.2s;
}
.team-bio-toggle:hover { opacity: 0.75; }
.team-bio-toggle svg {
  width: 13px; height: 13px;
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.team-bio-toggle.open svg { transform: rotate(180deg); }
.team-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}
.team-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.045);
  border-radius: var(--r-full);
  padding: 3px 9px;
}
.team-links {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #0a66c2;
  padding: 8px 14px;
  border-radius: var(--r-full);
  transition: var(--t);
  flex: 1;
  justify-content: center;
}
.team-linkedin svg { width: 13px; height: 13px; flex-shrink: 0; }
.team-linkedin:hover {
  background: #004182;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,102,194,0.35);
}
.team-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--bg-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-full);
  color: var(--text-secondary);
  transition: var(--t);
  flex-shrink: 0;
}
.team-email svg { width: 15px; height: 15px; }
.team-email:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ===== OFFICIAL REGISTRATION SECTION ===== */
.reg-trust {
  padding: var(--section-y) 0;
  background: linear-gradient(145deg, #eef2ff 0%, #f0f4ff 50%, #f5f8ff 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.reg-trust::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(80,113,186,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.reg-trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Cert card */
.reg-cert-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--r-2xl);
  padding: 28px 28px 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.10);
  position: relative;
  overflow: hidden;
}
.reg-cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a6f3c 0%, #22c55e 40%, #5071ba 100%);
}
.reg-cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}
.reg-dubai-badge {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.reg-dubai-name {
  font-size: 1rem;
  font-weight: 700;
  color: #c8102e;
  letter-spacing: 0.04em;
  line-height: 1;
}
.reg-dubai-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1;
}
.reg-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #16a34a;
  flex-shrink: 0;
}
.reg-status-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}
.reg-ul-block {
  margin-bottom: 20px;
}
.reg-ul-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.reg-ul-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}
.reg-rows {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.reg-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8375rem;
}
.reg-row:last-child { border-bottom: none; padding-bottom: 0; }
.reg-row-lbl { color: var(--text-muted); font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.reg-row-val { color: var(--text-dark); font-weight: 700; text-align: right; }
.reg-acts-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.reg-act-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}
.reg-act-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid rgba(80,113,186,0.16);
  padding: 3px 9px;
  border-radius: var(--r-full);
}
.reg-verify-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--t);
  text-decoration: none;
}
.reg-verify-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

/* ===== FOOTER REGISTRATION STRIP ===== */
.footer-reg {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-reg-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4ade80;
  flex-shrink: 0;
}
.footer-reg-live-dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}
.footer-reg-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.5;
}
.footer-reg-text strong { color: rgba(255,255,255,0.72); font-weight: 700; }
.footer-reg-dot-sep { color: rgba(255,255,255,0.18); padding: 0 2px; }
.footer-reg-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(80,113,186,0.85);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--t);
}
.footer-reg-link:hover { color: #fff; }

@media (max-width: 900px) {
  .reg-trust-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .footer-reg { gap: 6px; }
  .footer-reg-text { font-size: 0.72rem; }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-primary);
  opacity: 0;
  transform: translateY(12px);
  transition: var(--t);
  z-index: 999;
  font-size: 1rem;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary-lg);
}

/* ===== FADE IN ANIMATION (disabled — content is shown immediately) ===== */
.fade-in {
  opacity: 1;
  transform: none;
}

/* ===== MATH CAPTCHA ===== */
.captcha-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.captcha-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 10px 18px;
  white-space: nowrap;
  min-width: 130px;
  text-align: center;
  letter-spacing: 0.03em;
  font-family: 'Courier New', monospace;
}
.captcha-input {
  max-width: 90px !important;
  text-align: center;
  -moz-appearance: textfield;
}
.captcha-input::-webkit-inner-spin-button,
.captcha-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.captcha-refresh {
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
  line-height: 1;
}
.captcha-refresh:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-subtle); }
.captcha-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 5px;
}
.captcha-error {
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 5px;
  display: none;
  font-weight: 500;
}
.captcha-error.visible { display: block; }

/* ===== UTILITIES ===== */
.flex-center { display: flex; align-items: center; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== PARTNER PROGRAM PROMO (Homepage / Services teaser) ===== */
.partner-promo {
  padding: var(--section-y) 0;
  background: linear-gradient(135deg,#0f1117 0%,#161b27 100%);
  position: relative;
  overflow: hidden;
}
.partner-promo::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle,rgba(80,113,186,0.15) 0%,transparent 65%);
  pointer-events: none;
}
.partner-promo-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.partner-promo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  background: rgba(80,113,186,0.15);
  border: 1px solid rgba(80,113,186,0.30);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--primary-light); margin-bottom: 20px;
}
.partner-promo-title {
  font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 600;
  line-height: 1.2; letter-spacing: -0.02em; color: #fff; margin-bottom: 16px;
}
.partner-promo-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.partner-promo-desc {
  font-size: 1rem; line-height: 1.75;
  color: rgba(255,255,255,0.65); margin-bottom: 28px; max-width: 500px;
}
.partner-promo-bullets { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.partner-promo-bullets li {
  font-size: 0.95rem; color: rgba(255,255,255,0.82);
  display: flex; align-items: center; gap: 10px;
}
.partner-promo-check {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
}
.partner-promo-check svg { color: #fff; }
.partner-promo-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-ghost-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.25);
  padding: 13px 26px; border-radius: var(--r-full);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: var(--t); text-decoration: none;
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.45); color: #fff; }
.partner-promo-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.partner-promo-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-xl); padding: 22px 20px;
  backdrop-filter: blur(8px); transition: var(--t);
}
.partner-promo-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); }
.partner-promo-card.full { grid-column: span 2; display: flex; align-items: center; gap: 14px; }
.pp-card-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--r-md);
  background: rgba(80,113,186,0.25); display: flex; align-items: center; justify-content: center;
}
.pp-card-icon svg { color: var(--primary-light); }
.pp-card-num { font-size: 1.75rem; font-weight: 600; color: #fff; line-height: 1; margin-bottom: 4px; }
.pp-card-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); font-weight: 500; }
.pp-card-title { font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.pp-card-desc  { font-size: 0.82rem; color: rgba(255,255,255,0.60); line-height: 1.5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .story-grid, .rebrand-inner, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .trust-stats { grid-template-columns: repeat(2, auto); gap: 28px; }
  .cases-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-y: 72px; }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 20px 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 16px; font-size: 1rem; display: flex; align-items: center; width: 100%; }
  .nav-link::after { display: none; }
  .nav-item { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-dropdown-trigger { padding: 12px 16px; font-size: 1rem; width: 100%; justify-content: space-between; text-align: left; background: none; border: none; }
  .nav-dropdown,
  .nav-item.open > .nav-dropdown { position: static; transform: none; left: auto; top: auto; min-width: unset; box-shadow: none; }
  .nav-dropdown { opacity: 0; visibility: hidden; max-height: 0; overflow: hidden; padding: 0; border-radius: var(--r-md); border: 1px solid var(--border-light); margin: 0 0 4px; transition: max-height 0.25s var(--ease), opacity 0.2s var(--ease), visibility 0s 0.25s; }
  .nav-item.open > .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; max-height: 220px; padding: 8px; transition: max-height 0.25s var(--ease), opacity 0.2s var(--ease), visibility 0s 0s; }
  .header-actions .btn { display: none; }
  .menu-btn { display: flex; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-meta { gap: 16px; }
  .trust-bar-inner { flex-direction: column; align-items: flex-start; }
  .trust-stats { gap: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2,1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .partner-promo-inner { grid-template-columns: 1fr; gap: 48px; }
  .partner-promo-cards { grid-template-columns: 1fr 1fr; }
  .partner-promo-card.full { grid-column: span 2; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .industries-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px; }
  .case-card { padding: 24px; }
  .partner-promo-btns { flex-direction: column; }
  .partner-promo-cards { grid-template-columns: 1fr; }
  .partner-promo-card.full { grid-column: span 1; flex-direction: column; }
}

/* =============================================================================
   LANGUAGE SWITCHER
============================================================================= */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--r-full);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.lang-trigger:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}
.lang-trigger svg { flex-shrink: 0; }
.lang-chevron { transition: transform 0.2s; }
.lang-trigger[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 200;
  flex-direction: column;
}
.lang-dropdown.open { display: flex; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.lang-option:hover { background: var(--bg-light); color: var(--text-dark); }
.lang-option.active { color: var(--primary); font-weight: 700; background: var(--primary-subtle); }

/* =============================================================================
   ARABIC / RTL OVERRIDES
============================================================================= */
[dir="rtl"] body,
[dir="rtl"] * { font-family: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif; }

/* Use a good Arabic-friendly font stack */
[dir="rtl"] { font-family: 'Segoe UI', Tahoma, Arial, 'Noto Sans Arabic', sans-serif; }

[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav { flex-direction: row-reverse; }
[dir="rtl"] .header-actions { flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .lang-option { text-align: right; flex-direction: row-reverse; }

[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-eyebrow { justify-content: flex-end; }
[dir="rtl"] .hero-ctas { justify-content: flex-start; flex-direction: row-reverse; }
[dir="rtl"] .hero-meta { justify-content: flex-end; flex-direction: row-reverse; }
[dir="rtl"] .hero-meta-item { text-align: right; }

[dir="rtl"] .section-header { text-align: right; }
[dir="rtl"] .section-header.center { text-align: center; }

[dir="rtl"] .trust-bar-inner { flex-direction: row-reverse; }
[dir="rtl"] .trust-stats { flex-direction: row-reverse; }

[dir="rtl"] .reg-trust-inner { flex-direction: row-reverse; }
[dir="rtl"] .reg-row { flex-direction: row-reverse; }
[dir="rtl"] .reg-row-lbl { text-align: right; }
[dir="rtl"] .reg-row-val { text-align: left; }

[dir="rtl"] .services-grid { direction: rtl; }
[dir="rtl"] .service-card { text-align: right; }
[dir="rtl"] .svc-link { text-align: right; display: block; }

[dir="rtl"] .industries-grid { direction: rtl; }
[dir="rtl"] .industry-card { text-align: right; }

[dir="rtl"] .cases-grid { direction: rtl; }
[dir="rtl"] .case-card { text-align: right; }
[dir="rtl"] .case-tag { flex-direction: row-reverse; }

[dir="rtl"] .rebrand-inner { flex-direction: row-reverse; }
[dir="rtl"] .brand-flow { flex-direction: row-reverse; }
[dir="rtl"] .brand-arrow-sep { transform: scaleX(-1); }

[dir="rtl"] .features-grid { direction: rtl; }
[dir="rtl"] .feature-card { flex-direction: row-reverse; text-align: right; }

[dir="rtl"] .cta-banner-inner { text-align: right; }
[dir="rtl"] .cta-banner-btns { justify-content: flex-start; flex-direction: row-reverse; }

[dir="rtl"] .footer-top { direction: rtl; }
[dir="rtl"] .footer-top > div:first-child { text-align: right; }
[dir="rtl"] .footer-loc { flex-direction: row-reverse; }
[dir="rtl"] .footer-social { justify-content: flex-end; }
[dir="rtl"] .footer-links { text-align: right; }
[dir="rtl"] .footer-reg { flex-direction: row-reverse; }
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }
[dir="rtl"] .footer-legal { flex-direction: row-reverse; }

[dir="rtl"] .story-grid { direction: rtl; }
[dir="rtl"] .values-grid { direction: rtl; }
[dir="rtl"] .value-card { text-align: right; }

[dir="rtl"] .page-hero-content { text-align: right; }
[dir="rtl"] .contact-page-grid { direction: rtl; }
[dir="rtl"] .process-steps { direction: rtl; }
[dir="rtl"] .service-detail-grid { direction: rtl; }
[dir="rtl"] .service-detail-copy { text-align: right; }
[dir="rtl"] .svc-bullets li { text-align: right; }
[dir="rtl"] .svc-bullets li::before { margin-right: 0; margin-left: 10px; }

[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .scroll-top { left: 24px; right: auto; }

@media (max-width: 768px) {
  [dir="rtl"] .header-inner { flex-direction: row-reverse; }
  [dir="rtl"] .hero-ctas { flex-direction: column; }
  [dir="rtl"] .lang-dropdown { left: 0; right: auto; }
}

/* ===== AI CHAT WIDGET ===== */
.chatbot-toggle {
  position: fixed;
  bottom: 96px; right: 28px;
  width: 56px; height: 56px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-primary);
  z-index: 1000;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.chatbot-toggle:hover { transform: translateY(-3px); box-shadow: var(--shadow-primary-lg); }
.chatbot-toggle svg { width: 24px; height: 24px; }
.chatbot-toggle .chatbot-toggle-icon-close { display: none; }
.chatbot-toggle.open .chatbot-toggle-icon-chat { display: none; }
.chatbot-toggle.open .chatbot-toggle-icon-close { display: block; }

.chatbot-panel {
  position: fixed;
  bottom: 164px; right: 28px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 540px;
  max-height: calc(100vh - 200px);
  background: var(--bg-white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 999;
}
.chatbot-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  background: var(--gradient-primary);
  color: #fff;
  flex-shrink: 0;
}
.chatbot-header-avatar {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chatbot-header-text { line-height: 1.3; }
.chatbot-header-text strong { display: block; font-size: 0.96rem; }
.chatbot-header-text span { display: flex; align-items: center; font-size: 0.78rem; opacity: 0.85; }
.chatbot-header-status {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; margin-right: 6px;
  animation: chatbot-pulse 2s infinite;
}
@keyframes chatbot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-light);
}

.chatbot-msg {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chatbot-msg.bot {
  align-self: flex-start;
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}
.chatbot-msg.user {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chatbot-msg.error {
  align-self: flex-start;
  background: rgba(229, 62, 62, 0.08);
  color: #c53030;
  border: 1px solid rgba(229, 62, 62, 0.2);
}
.chatbot-msg a { color: inherit; text-decoration: underline; }

.chatbot-typing {
  align-self: flex-start;
  display: flex; align-items: center; gap: 4px;
  padding: 13px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  border-bottom-left-radius: 4px;
}
.chatbot-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: chatbot-bounce 1.2s infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatbot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chatbot-form {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 14px 16px;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.chatbot-input {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.4;
  max-height: 96px;
  color: var(--text-dark);
  background: var(--bg-white);
}
.chatbot-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.chatbot-send {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--r-full);
  background: var(--gradient-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.chatbot-send:hover:not(:disabled) { transform: translateY(-2px); }
.chatbot-send:disabled { opacity: 0.5; cursor: default; }
.chatbot-send svg { width: 17px; height: 17px; }

.chatbot-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  padding: 6px 16px 14px;
  background: var(--bg-white);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .chatbot-panel {
    right: 16px; left: 16px;
    width: auto;
    bottom: 156px;
    height: calc(100vh - 240px);
  }
  .chatbot-toggle { right: 20px; bottom: 88px; }
}

[dir="rtl"] .chatbot-toggle { left: 28px; right: auto; }
[dir="rtl"] .chatbot-panel { left: 28px; right: auto; transform-origin: bottom left; }
[dir="rtl"] .chatbot-header-status { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .chatbot-msg.user { align-self: flex-start; border-bottom-right-radius: var(--r-lg); border-bottom-left-radius: 4px; }
[dir="rtl"] .chatbot-msg.bot { align-self: flex-end; border-bottom-left-radius: var(--r-lg); border-bottom-right-radius: 4px; }
@media (max-width: 480px) {
  [dir="rtl"] .chatbot-panel { left: 16px; right: 16px; }
}
