/* ============================================
   Creative Technology Solutions (CTS)
   Premium Engineering & ICT Website
   Colors derived from official logo
   ============================================ */

:root {
  /* Brand — extracted from CTS logo (shared across themes) */
  --cts-teal: #10b9b4;
  --cts-cyan: #4eaadb;
  --cts-blue: #0070a2;
  --cts-blue-deep: #004d73;
  --cts-lime: #7ed957;
  --cts-lime-soft: #a8e86a;
  --cts-ice: #b8f0ff;

  --color-primary: var(--cts-teal);
  --color-secondary: var(--cts-blue);
  --color-accent: var(--cts-lime);
  --color-accent-alt: var(--cts-cyan);

  --gradient-brand: linear-gradient(135deg, var(--cts-teal) 0%, var(--cts-cyan) 45%, var(--cts-lime) 100%);

  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', sans-serif;

  --container: 1180px;
  --header-h: 80px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.28s var(--ease);
}

/* ---- Dark theme (default) ---- */
[data-theme="dark"] {
  color-scheme: dark;

  --bg-base: #060b12;
  --bg-surface: #0c1420;
  --bg-elevated: #111c2b;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --bg-glass: rgba(12, 20, 32, 0.82);

  --text-primary: #eef6fa;
  --text-secondary: rgba(238, 246, 250, 0.72);
  --text-muted: rgba(238, 246, 250, 0.48);

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(16, 185, 180, 0.35);
  --border-glow: rgba(78, 170, 219, 0.25);

  --gradient-brand-soft: linear-gradient(135deg, rgba(16, 185, 180, 0.14) 0%, rgba(78, 170, 219, 0.1) 50%, rgba(126, 217, 87, 0.08) 100%);
  --gradient-text: linear-gradient(135deg, var(--cts-ice) 0%, var(--cts-cyan) 40%, var(--cts-teal) 100%);
  --gradient-radial: radial-gradient(ellipse 70% 55% at 12% -8%, rgba(16, 185, 180, 0.18) 0%, transparent 55%),
                     radial-gradient(ellipse 55% 45% at 88% 8%, rgba(78, 170, 219, 0.12) 0%, transparent 50%),
                     radial-gradient(ellipse 40% 35% at 70% 85%, rgba(126, 217, 87, 0.06) 0%, transparent 45%);

  --ambient-grid: rgba(255, 255, 255, 0.025);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 60px rgba(16, 185, 180, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
}

/* ---- Light theme ---- */
[data-theme="light"] {
  color-scheme: light;

  --bg-base: #eef4f8;
  --bg-surface: #ffffff;
  --bg-elevated: #f8fbfd;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.88);

  --text-primary: #0a1628;
  --text-secondary: rgba(10, 22, 40, 0.68);
  --text-muted: rgba(10, 22, 40, 0.45);

  --border: rgba(10, 22, 40, 0.09);
  --border-hover: rgba(0, 112, 162, 0.35);
  --border-glow: rgba(16, 185, 180, 0.3);

  --gradient-brand-soft: linear-gradient(135deg, rgba(16, 185, 180, 0.1) 0%, rgba(78, 170, 219, 0.08) 50%, rgba(126, 217, 87, 0.06) 100%);
  --gradient-text: linear-gradient(135deg, var(--cts-blue-deep) 0%, var(--cts-blue) 40%, var(--cts-teal) 100%);
  --gradient-radial: radial-gradient(ellipse 70% 55% at 12% -8%, rgba(16, 185, 180, 0.12) 0%, transparent 55%),
                     radial-gradient(ellipse 55% 45% at 88% 8%, rgba(78, 170, 219, 0.1) 0%, transparent 50%),
                     radial-gradient(ellipse 40% 35% at 70% 85%, rgba(126, 217, 87, 0.05) 0%, transparent 45%);

  --ambient-grid: rgba(10, 22, 40, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 16px 48px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 32px 80px rgba(16, 185, 180, 0.1);
  --shadow-glow: 0 0 48px rgba(16, 185, 180, 0.15);
  --shadow-card: 0 8px 32px rgba(10, 22, 40, 0.06), 0 0 0 1px var(--border);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- 3D Earth background ---- */
.earth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease;
}

.earth-bg.is-ready {
  opacity: 1;
}

.earth-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.earth-bg__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 85% 75% at 18% 48%, transparent 0%, rgba(6, 11, 18, 0.55) 52%, rgba(6, 11, 18, 0.92) 100%),
    linear-gradient(180deg, rgba(6, 11, 18, 0.35) 0%, transparent 30%, rgba(6, 11, 18, 0.5) 100%);
}

.earth-bg__glow {
  position: absolute;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 180, 0.18) 0%, rgba(78, 170, 219, 0.08) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

[data-theme="light"] .earth-bg__vignette {
  background:
    radial-gradient(ellipse 90% 80% at 15% 45%, rgba(238, 244, 248, 0.92) 0%, rgba(238, 244, 248, 0.75) 45%, rgba(238, 244, 248, 0.35) 100%),
    linear-gradient(180deg, rgba(238, 244, 248, 0.6) 0%, transparent 35%, rgba(238, 244, 248, 0.45) 100%);
}

[data-theme="light"] .earth-bg__glow {
  background: radial-gradient(circle, rgba(16, 185, 180, 0.12) 0%, rgba(78, 170, 219, 0.05) 45%, transparent 70%);
}

.earth-bg.is-mobile .earth-bg__glow {
  width: min(70vw, 360px);
  height: min(70vw, 360px);
  right: -18%;
  top: 58%;
  opacity: 0.7;
}

.earth-bg.is-mobile .earth-bg__vignette {
  background:
    radial-gradient(ellipse 95% 70% at 50% 30%, transparent 0%, rgba(6, 11, 18, 0.65) 55%, rgba(6, 11, 18, 0.95) 100%);
}

[data-theme="light"] .earth-bg.is-mobile .earth-bg__vignette {
  background:
    radial-gradient(ellipse 95% 70% at 50% 25%, rgba(238, 244, 248, 0.88) 0%, rgba(238, 244, 248, 0.7) 50%, rgba(238, 244, 248, 0.4) 100%);
}

.site-content {
  position: relative;
  z-index: 1;
}

/* ---- Ambient background ---- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ambient-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ambient-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orbFloat 18s ease-in-out infinite;
}

.ambient__orb--1 {
  width: 480px; height: 480px;
  top: -120px; left: -80px;
  background: rgba(16, 185, 180, 0.15);
}

.ambient__orb--2 {
  width: 360px; height: 360px;
  top: 20%; right: -60px;
  background: rgba(78, 170, 219, 0.12);
  animation-delay: -6s;
}

.ambient__orb--3 {
  width: 280px; height: 280px;
  bottom: 10%; left: 30%;
  background: rgba(126, 217, 87, 0.08);
  animation-delay: -12s;
}

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

/* ---- Scroll progress ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 1001;
  background: var(--gradient-brand);
  box-shadow: 0 0 16px rgba(16, 185, 180, 0.5);
  transform-origin: left;
}

html[dir="rtl"] .scroll-progress {
  left: auto; right: 0;
  transform-origin: right;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header.is-scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  height: var(--header-h);
  gap: 1rem 1.25rem;
}

.nav__logo {
  grid-column: 1;
  flex-shrink: 0;
  line-height: 0;
}

.nav__toggle {
  grid-column: 3;
  justify-self: end;
}

.nav__menu {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.25rem;
  padding-left: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav__actions .lang-switch {
  border: none;
  background: transparent;
  padding: 0;
}

.nav__actions .theme-toggle {
  width: 38px;
  height: 38px;
}

.nav__cta {
  margin-left: 0.25rem;
  white-space: nowrap;
}

@media (min-width: 1281px) {
  .nav__link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

.nav__link {
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav__logo img {
  height: 40px;
  width: auto;
  max-width: min(168px, 28vw);
  object-fit: contain;
  display: block;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-switch__btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 999px;
  transition: all var(--transition);
}

.lang-switch__btn.is-active {
  color: #041018;
  background: var(--gradient-brand);
}

/* ---- Theme toggle (icon only) ---- */
.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: scale(1.05);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--cts-cyan);
  outline-offset: 3px;
}

.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform 0.45s var(--ease), opacity 0.35s ease;
}

.theme-toggle__sun {
  color: #f59e0b;
  opacity: 1;
  transform: rotate(0) scale(1);
}

.theme-toggle__moon {
  color: var(--cts-cyan);
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle__moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.4s var(--ease), color 0.35s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--cts-cyan);
  outline-offset: 3px;
}

.btn--primary {
  color: #041018;
  background: var(--gradient-brand);
  box-shadow: 0 4px 24px rgba(16, 185, 180, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16, 185, 180, 0.35);
}

.btn--outline {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-hover);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--cts-teal);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.8125rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* ---- Typography ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cts-teal);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 58ch;
}

.section__header {
  margin-bottom: 3.5rem;
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__desc {
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
  position: relative;
}

/* ---- Hero ---- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: 4rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cts-lime);
  box-shadow: 0 0 10px var(--cts-lime);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__title-accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stat__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo {
  width: min(100%, 480px);
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.hero__orbit {
  position: absolute;
  inset: -20%;
  border: 1px dashed rgba(16, 185, 180, 0.15);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.hero__node {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 16px rgba(16, 185, 180, 0.6);
}

.hero__node--1 { top: 8%; right: 12%; }
.hero__node--2 { bottom: 15%; left: 8%; animation-delay: -3s; }
.hero__node--3 { top: 40%; right: 4%; width: 6px; height: 6px; }

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

/* ---- About ---- */
.about {
  background: linear-gradient(180deg, transparent 0%, rgba(12, 20, 32, 0.6) 50%, transparent 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about__values {
  display: grid;
  gap: 1rem;
}

.value-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.value-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.value-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--cts-ice);
}

.value-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.about__mission {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 3px solid var(--cts-teal);
  background: rgba(16, 185, 180, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

html[dir="rtl"] .about__mission {
  border-left: none;
  border-right: 3px solid var(--cts-teal);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.about__mission p {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* ---- Services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

html[dir="rtl"] .service-card::before {
  transform-origin: right;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--gradient-brand-soft);
  border: 1px solid var(--border);
  color: var(--cts-teal);
}

.service-card__icon svg {
  width: 26px; height: 26px;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

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

/* ---- Why Us ---- */
.why {
  background: transparent;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2rem 1.75rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.why-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-brand-soft);
  color: var(--cts-cyan);
}

.why-card__icon svg { width: 28px; height: 28px; }

.why-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- Process ---- */
.process__track {
  position: relative;
}

.process__line {
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border);
  display: none;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.process-step__num {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cts-ice);
  background: var(--bg-elevated);
  border: 2px solid var(--border-hover);
  border-radius: 50%;
  transition: all var(--transition);
}

.process-step:hover .process-step__num {
  background: var(--gradient-brand);
  color: #041018;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(16, 185, 180, 0.3);
}

.process-step h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 5rem 0;
}

.cta-banner__inner {
  padding: 4rem;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--gradient-brand-soft);
  border: 1px solid var(--border-hover);
  position: relative;
  overflow: hidden;
}

.cta-banner__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(16,185,180,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner__inner > * { position: relative; }

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-banner__desc {
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 auto 2rem;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Contact ---- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.contact-item:hover { border-color: var(--border-hover); }

.contact-item__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand-soft);
  color: var(--cts-teal);
}

.contact-item__icon svg { width: 20px; height: 20px; }

.contact-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-item__value {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.contact-item__value a:hover { color: var(--cts-teal); }

.contact__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-link:hover {
  color: var(--cts-teal);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.social-link svg { width: 20px; height: 20px; }

/* ---- Form ---- */
.contact__form {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cts-teal);
  box-shadow: 0 0 0 3px rgba(16, 185, 180, 0.15);
}

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

.form-success {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(126, 217, 87, 0.1);
  border: 1px solid rgba(126, 217, 87, 0.25);
  border-radius: var(--radius-sm);
  color: var(--cts-lime-soft);
  font-size: 0.875rem;
}

/* ---- Footer ---- */
.footer {
  padding: 4rem 0 0;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer__logo img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 32ch;
  line-height: 1.6;
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--cts-teal); }

.footer__bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__bottom-inner .footer__legal {
  order: 2;
  flex: 1 1 auto;
  justify-content: center;
}

.footer__bottom-inner .footer__credit {
  order: 3;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

.footer__credit:hover {
  color: var(--text-secondary);
}

.footer__credit img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
}

.footer__credit:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }

  .earth-bg canvas {
    opacity: 0.85;
  }

  .ambient__orb {
    animation: none !important;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__inner,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__visual { order: -1; }
  .hero__logo { width: min(100%, 360px); margin-inline: auto; }

  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1280px) {
  .nav__menu,
  .nav__actions .nav__cta,
  .nav__actions .nav__auth-link span {
    display: none;
  }

  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav__toggle { display: flex; }

  .nav__actions {
    grid-column: 2;
    justify-self: end;
    border: none;
    background: transparent;
    padding: 0;
    gap: 0.4rem;
  }
}

@media (max-width: 768px) {
  .nav__menu,
  .nav__actions .nav__cta {
    display: none;
  }

  .nav__toggle { display: flex; }

  .nav__drawer {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 999;
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }

  .nav__drawer[hidden] {
    display: none;
  }

  .nav__drawer:not([hidden]) {
    display: block;
  }

  html[dir="rtl"] .nav__drawer {
    transform: translateX(-100%);
  }

  .nav__drawer.is-open {
    transform: translateX(0);
  }

  .nav__drawer .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav__drawer .nav__link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav__drawer .nav__actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
  }

  .nav__drawer-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .hero__stats { flex-wrap: wrap; gap: 1.5rem; }
  .why__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .cta-banner__inner { padding: 2.5rem 1.5rem; }
  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 1.5rem); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .process__grid { grid-template-columns: 1fr; }
}
