:root {
  /* --- Brand color system (light) --- */
  --color-bg: #f4f7fb;
  --color-bg-alt: #f0f5fc;
  --color-surface: #ffffff;
  --color-surface-2: #eef3fa;
  --color-card: #ffffff;
  --color-card-hover: #ffffff;
  --color-border: #d8e2ef;
  --color-text: #0c1a33;
  --color-text-muted: #4a5f7a;
  --color-heading: #051024;
  --color-primary: #0a1f44; /* brand navy */
  --color-primary-strong: #051024;
  --color-accent: #138df5; /* accent blue */
  --color-accent-2: #00b8c4; /* accent cyan */
  --color-cta: #00c46b; /* CTA (alias: success) */
  --color-success: var(--color-cta);
  --color-link: var(--color-accent);
  --color-link-hover: color-mix(in srgb, var(--color-accent) 80%, var(--color-success));
  --color-badge: rgba(0, 196, 107, 0.12);
  --color-footer: #030b18;
  --color-hero-overlay: rgba(2, 11, 26, 0.72);

  /* --- Legacy aliases (keep existing UI working) --- */
  --bg: var(--color-bg);
  --surface: var(--color-card);
  --surface-soft: var(--color-surface-2);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --primary: var(--color-heading);
  --primary-2: var(--color-primary);
  --accent: var(--color-accent);
  --accent-2: var(--color-accent-2);
  --cta: var(--color-cta);
  --border: var(--color-border);
  /* Back-compat for a few component-specific vars */
  --text-primary: var(--color-heading);
  --text-muted: var(--color-text-muted);

  /* --- Layout tokens --- */
  --radius: 16px;
  --shadow: 0 12px 32px rgba(5, 16, 36, 0.06);
  --shadow-hover: 0 22px 48px rgba(5, 16, 36, 0.11);
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.12);

  /* --- Gradients (use brand tokens) --- */
  --gradient-primary: linear-gradient(135deg, var(--color-primary-strong) 0%, var(--color-primary) 100%);
  --gradient-accent: linear-gradient(135deg, #1ba8ff 0%, #00d2d3 100%);

  /* --- Header / sections --- */
  --header-bg: rgba(5, 16, 40, 0.94);
  --header-border: rgba(132, 164, 220, 0.24);
  --header-text: #ffffff;
  --header-link: #d6e4ff;
  --header-link-hover-bg: rgba(18, 172, 255, 0.15);
  --section-alt-bg: var(--color-bg-alt);
  --benefits-text: #2a4266;
  --header-height: 88px;

  /* --- Channel colors (kept) --- */
  --channel-email: #1b7fcc;
  --channel-phone: #0d9f6a;
  --channel-whatsapp: #128c7e;
  --channel-telegram: #229ed9;

  /* --- Preset-friendly derived visuals --- */
  --hero-grad-1: color-mix(in srgb, var(--color-primary-strong) 75%, #000 25%);
  --hero-grad-2: var(--color-primary);
  --hero-grad-3: color-mix(in srgb, var(--color-accent) 30%, var(--color-primary) 70%);
  --stats-grad-1: color-mix(in srgb, var(--color-primary-strong) 78%, #000 22%);
  --stats-grad-2: color-mix(in srgb, var(--color-primary) 75%, #000 25%);
  --stats-border: color-mix(in srgb, var(--color-accent) 28%, var(--color-border) 72%);
}

[data-theme="dark"] {
  /* --- Brand color system (dark) --- */
  --color-bg: #060a14;
  --color-bg-alt: #0a1020;
  --color-surface: #0e1729;
  --color-surface-2: #121f35;
  --color-card: #0f1a2f;
  --color-card-hover: #132341;
  --color-border: #22324a;
  --color-text: #eef4ff;
  --color-text-muted: #a9b8d0;
  --color-heading: #f4f8ff;
  --color-primary: #0a1f44;
  --color-primary-strong: #061530;
  --color-accent: #28b8ff;
  --color-accent-2: #22d3ee;
  --color-cta: #22d07a;
  --color-success: var(--color-cta);
  --color-link: var(--color-accent);
  --color-link-hover: color-mix(in srgb, var(--color-accent) 72%, var(--color-success));
  --color-badge: rgba(34, 208, 122, 0.14);
  --color-footer: #020814;
  --color-hero-overlay: rgba(0, 8, 28, 0.72);

  /* --- Legacy aliases --- */
  --bg: var(--color-bg);
  --surface: var(--color-card);
  --surface-soft: var(--color-surface-2);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --primary: var(--color-heading);
  --primary-2: #f1f5f9;
  --accent: var(--color-accent);
  --accent-2: var(--color-accent-2);
  --cta: var(--color-cta);
  --border: var(--color-border);
  /* Back-compat for a few component-specific vars */
  --text-primary: var(--color-heading);
  --text-muted: var(--color-text-muted);

  --shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 24px 52px rgba(0, 0, 0, 0.58);
  --shadow-sm: 0 14px 34px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);

  --header-bg: rgba(6, 10, 20, 0.92);
  --header-border: rgba(255, 255, 255, 0.09);
  --section-alt-bg: var(--color-bg-alt);
  --benefits-text: #c5d2e6;
  --channel-email: #5ec8ff;
  --channel-phone: #5ee9b5;
  --channel-whatsapp: #3de6a5;
  --channel-telegram: #5ecfff;

  --hero-grad-1: color-mix(in srgb, var(--color-primary-strong) 80%, #000 20%);
  --hero-grad-2: color-mix(in srgb, var(--color-primary) 75%, #000 25%);
  --hero-grad-3: color-mix(in srgb, var(--color-accent) 28%, var(--color-primary) 72%);
  --stats-grad-1: color-mix(in srgb, var(--color-primary-strong) 82%, #000 18%);
  --stats-grad-2: color-mix(in srgb, var(--color-primary) 78%, #000 22%);
  --stats-border: color-mix(in srgb, var(--color-accent) 22%, rgba(255, 255, 255, 0.12));
}

/* --- Theme presets (override tokens only; dark/light stays via [data-theme]) --- */

:root[data-theme-preset="orange-brand"] {
  --color-bg: #fff7ed;
  --color-bg-alt: #ffedd5;
  --color-surface: #ffffff;
  --color-surface-2: #fff1e6;
  --color-card: #ffffff;
  --color-card-hover: #ffffff;
  --color-border: #f1d3b8;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-heading: #0b1220;
  --color-primary: #111827; /* charcoal */
  --color-primary-strong: #0b1220;
  --color-accent: #f59e0b; /* warm orange */
  --color-accent-2: #fb923c; /* orange coral */
  --color-cta: #d97706; /* deeper orange */
  --color-link: var(--color-accent);
  --color-link-hover: color-mix(in srgb, var(--color-accent) 70%, #111827);
  --color-badge: rgba(245, 158, 11, 0.16);
  --color-footer: #0b1220;
  --color-hero-overlay: rgba(17, 24, 39, 0.68);
}

[data-theme="dark"][data-theme-preset="orange-brand"] {
  --color-bg: #070a12;
  --color-bg-alt: #0b1020;
  --color-surface: #0f172a;
  --color-surface-2: #111b31;
  --color-card: #0e162a;
  --color-card-hover: #121d36;
  --color-border: #23314b;
  --color-text: #f8fafc;
  --color-text-muted: #b6c2d6;
  --color-heading: #ffffff;
  --color-primary: #0b1220;
  --color-primary-strong: #070a12;
  --color-accent: #fbbf24;
  --color-accent-2: #fb923c;
  --color-cta: #f59e0b;
  --color-badge: rgba(251, 191, 36, 0.16);
  --color-footer: #05070f;
  --color-hero-overlay: rgba(5, 7, 15, 0.7);
}

:root[data-theme-preset="blue-saas"] {
  --color-bg: #f5f8ff;
  --color-bg-alt: #eef4ff;
  --color-surface: #ffffff;
  --color-surface-2: #f1f6ff;
  --color-card: #ffffff;
  --color-card-hover: #ffffff;
  --color-border: #d7e3ff;
  --color-text: #0b1630;
  --color-text-muted: #455a7a;
  --color-heading: #081226;
  --color-primary: #0b2a6a;
  --color-primary-strong: #061a44;
  --color-accent: #2563eb;
  --color-accent-2: #22d3ee;
  --color-cta: #10b981;
  --color-badge: rgba(37, 99, 235, 0.12);
  --color-footer: #06122a;
  --color-hero-overlay: rgba(6, 18, 42, 0.68);
}

[data-theme="dark"][data-theme-preset="blue-saas"] {
  --color-bg: #050a16;
  --color-bg-alt: #071026;
  --color-surface: #0b1732;
  --color-surface-2: #0d1d3f;
  --color-card: #0b1936;
  --color-card-hover: #0e214a;
  --color-border: #1f335a;
  --color-text: #eef4ff;
  --color-text-muted: #a9bbd8;
  --color-heading: #ffffff;
  --color-primary: #0b2a6a;
  --color-primary-strong: #061a44;
  --color-accent: #60a5fa;
  --color-accent-2: #22d3ee;
  --color-cta: #34d399;
  --color-badge: rgba(96, 165, 250, 0.14);
  --color-footer: #020814;
  --color-hero-overlay: rgba(2, 8, 20, 0.7);
}

:root[data-theme-preset="green-teal"] {
  --color-bg: #f6fffb;
  --color-bg-alt: #ecfdf5;
  --color-surface: #ffffff;
  --color-surface-2: #eefbf7;
  --color-card: #ffffff;
  --color-card-hover: #ffffff;
  --color-border: #cfeee2;
  --color-text: #06201c;
  --color-text-muted: #3b5b57;
  --color-heading: #041713;
  --color-primary: #0f766e;
  --color-primary-strong: #0b5b55;
  --color-accent: #14b8a6;
  --color-accent-2: #0ea5e9;
  --color-cta: #22c55e;
  --color-badge: rgba(20, 184, 166, 0.14);
  --color-footer: #041713;
  --color-hero-overlay: rgba(4, 23, 19, 0.65);
}

[data-theme="dark"][data-theme-preset="green-teal"] {
  --color-bg: #04110f;
  --color-bg-alt: #061a17;
  --color-surface: #0a2420;
  --color-surface-2: #0b2f2b;
  --color-card: #08241f;
  --color-card-hover: #0a2f2a;
  --color-border: #1b3e3a;
  --color-text: #ecfeff;
  --color-text-muted: #a7d6d3;
  --color-heading: #ffffff;
  --color-primary: #0f766e;
  --color-primary-strong: #0b5b55;
  --color-accent: #2dd4bf;
  --color-accent-2: #38bdf8;
  --color-cta: #34d399;
  --color-badge: rgba(45, 212, 191, 0.14);
  --color-footer: #020a09;
  --color-hero-overlay: rgba(2, 10, 9, 0.7);
}

:root[data-theme-preset="dark-corporate"] {
  --color-bg: #0b0f19;
  --color-bg-alt: #0e1422;
  --color-surface: #101a2b;
  --color-surface-2: #121f35;
  --color-card: #0f1a2f;
  --color-card-hover: #132341;
  --color-border: #22324a;
  --color-text: #eef4ff;
  --color-text-muted: #a9b8d0;
  --color-heading: #f8fafc;
  --color-primary: #111827;
  --color-primary-strong: #0b1220;
  --color-accent: #a855f7; /* premium violet */
  --color-accent-2: #22d3ee;
  --color-cta: #22c55e;
  --color-badge: rgba(168, 85, 247, 0.14);
  --color-footer: #070a12;
  --color-hero-overlay: rgba(7, 10, 18, 0.72);
  --header-bg: rgba(7, 10, 18, 0.9);
  --header-border: rgba(255, 255, 255, 0.08);
}

:root[data-theme-preset="light-business"] {
  --color-bg: #ffffff;
  --color-bg-alt: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-2: #f8fafc;
  --color-card: #ffffff;
  --color-card-hover: #ffffff;
  --color-border: #dce3ee;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-heading: #0b1220;
  --color-primary: #0f172a;
  --color-primary-strong: #0b1220;
  --color-accent: #1d4ed8;
  --color-accent-2: #0891b2;
  --color-cta: #16a34a;
  --color-badge: rgba(29, 78, 216, 0.1);
  --color-footer: #0b1220;
  --color-hero-overlay: rgba(11, 18, 32, 0.6);
  --header-bg: rgba(11, 18, 32, 0.92);
  --header-border: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"][data-theme-preset="light-business"] {
  --color-bg: #070a14;
  --color-bg-alt: #0b1020;
  --color-surface: #0e1729;
  --color-surface-2: #121f35;
  --color-card: #0f1a2f;
  --color-card-hover: #132341;
  --color-border: #22324a;
  --color-text: #eef4ff;
  --color-text-muted: #a9b8d0;
  --color-heading: #f8fafc;
  --color-primary: #0f172a;
  --color-primary-strong: #0b1220;
  --color-accent: #60a5fa;
  --color-accent-2: #22d3ee;
  --color-cta: #22c55e;
  --color-badge: rgba(96, 165, 250, 0.14);
  --color-footer: #020814;
  --color-hero-overlay: rgba(2, 8, 20, 0.7);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
}

#main-content {
  scroll-margin-top: calc(var(--header-height) + 12px);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.container { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: clamp(3.25rem, 6vw, 4.75rem) 0; }
.section.alt { background: var(--section-alt-bg); }
.section-head { text-align: center; margin-bottom: 1.7rem; }
.section-head h2 { margin: 0 0 .4rem; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section-head p { margin: 0; color: var(--muted); }

.skip-link { position: absolute; top: -100%; }
.skip-link:focus { top: .5rem; inset-inline-start: .5rem; background: #fff; padding: .4rem .6rem; border-radius: 8px; z-index: 1000; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(14px);
}
.header-wrap {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.brand {
  color: var(--header-text);
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  justify-self: start;
  min-width: 0;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(8, 22, 48, 0.65);
  border: 1px solid rgba(120, 190, 255, 0.35);
  box-shadow: 0 10px 26px rgba(0, 8, 24, 0.35);
  flex-shrink: 0;
}
.brand-mark-svg {
  width: 28px;
  height: 28px;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  max-width: 18rem;
}
.brand-text strong,
.brand-text small {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand strong { font-size: 1.28rem; display: block; line-height: 1.12; letter-spacing: -0.02em; }
.brand small { color: #a8bddc; font-size: 0.78rem; font-weight: 500; line-height: 1.35; }
.brand-logos {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand-logo {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(8, 22, 48, 0.35);
  border: 1px solid rgba(120, 190, 255, 0.28);
  box-shadow: 0 10px 26px rgba(0, 8, 24, 0.35);
}
[data-theme="dark"] .brand-logo {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 200, 255, 0.22);
}
[data-theme="dark"] .brand-logo--light,
[data-theme="light"] .brand-logo--dark {
  opacity: 0;
  pointer-events: none;
}
[data-theme="light"] .brand-logo {
  background: #fff;
  border-color: rgba(15, 39, 71, 0.12);
  box-shadow: 0 8px 22px rgba(5, 16, 36, 0.08);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.25rem 0.35rem;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.main-nav::-webkit-scrollbar { display: none; }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: end;
  flex-shrink: 0;
}

.header-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(18, 140, 126, 0.14);
  border: 1px solid rgba(18, 140, 126, 0.35);
  color: var(--header-text);
  box-shadow: 0 10px 26px rgba(0, 8, 24, 0.24);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.header-whatsapp:hover {
  transform: translateY(-2px);
  background: rgba(18, 140, 126, 0.18);
  border-color: rgba(61, 230, 165, 0.38);
  box-shadow: 0 14px 32px rgba(0, 8, 24, 0.3);
}
.header-whatsapp .svg-icon-inner {
  width: 18px;
  height: 18px;
}
.header-whatsapp__label {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
@media (max-width: 940px) {
  .header-whatsapp__label { display: none; }
  .header-whatsapp { padding: 0; width: 44px; justify-content: center; border-radius: 12px; }
}

@media (max-width: 1180px) and (min-width: 941px) {
  .brand-text { max-width: 14rem; }
  .nav-link { padding: 0.45rem 0.72rem; font-size: 0.9rem; }
}

@media (max-width: 1040px) and (min-width: 941px) {
  .brand strong { font-size: 1.15rem; }
  .brand small { font-size: 0.74rem; }
  .brand-text { max-width: 12.5rem; }
}
.nav-link {
  position: relative;
  color: var(--header-link);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-link:hover {
  color: #f3f7ff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.is-active {
  color: #e8f6ff;
  background: transparent;
}
.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  inset-inline: 0.65rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1ba8ff, #00d2d3);
  box-shadow: 0 0 12px rgba(27, 168, 255, 0.45);
}
.nav-link-featured {
  border: 1px solid rgba(130, 188, 255, 0.52);
  background: rgba(27, 168, 255, 0.1);
  margin-inline: 0.2rem;
}
.nav-link-featured:hover {
  background: rgba(27, 168, 255, 0.16);
  border-color: rgba(160, 210, 255, 0.65);
}
.nav-link-featured.is-active::after {
  inset-inline: 0.5rem;
  bottom: 3px;
}
[data-theme="dark"] .nav-link-featured {
  border-color: rgba(148, 200, 255, 0.35);
  background: rgba(27, 168, 255, 0.08);
}

.nav-cta {
  border-radius: 999px;
  padding: 0.58rem 1.25rem 0.58rem 1.1rem;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 28px rgba(0, 210, 122, 0.28);
  gap: 0.35rem;
  margin-inline-start: 0.35rem;
  flex-shrink: 0;
}
.nav-cta:hover {
  box-shadow: 0 14px 34px rgba(0, 210, 122, 0.36);
}
.nav-cta-label {
  line-height: 1.2;
}
.nav-cta .svg-icon-inner {
  width: 18px;
  height: 18px;
  opacity: 0.95;
}
.nav-cta .svg-icon-chevron {
  stroke-width: 2.1;
}

.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.svg-icon .svg-icon-inner {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.card-icon.svg-icon,
.home-why .card-icon.svg-icon {
  font-size: 0;
}
.card-icon.svg-icon .svg-icon-inner {
  width: 26px;
  height: 26px;
}
.home-page .stats-strip + .section .service-card .card-icon.svg-icon .svg-icon-inner {
  width: 28px;
  height: 28px;
}
.process-icon.svg-icon .svg-icon-inner {
  width: 24px;
  height: 24px;
}
.menu-toggle { display: none; }
.header-actions .theme-toggle,
.header-actions .menu-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
}
.header-actions .menu-toggle {
  border: 1px solid rgba(132, 164, 220, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.header-actions .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(180, 205, 255, 0.55);
}
[data-theme="dark"] .header-actions .menu-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.btn {
  border: 0; border-radius: 10px; font-weight: 700; font-family: inherit;
  padding: 0.85rem 1.5rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  cursor: pointer; transition: all .25s ease;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 210, 122, 0.2); }
.btn.primary { background: var(--cta); color: #fff; }
.btn.secondary { background: rgba(27,168,255,.1); color: var(--accent); border: 1px solid rgba(27,168,255,.3); }
.btn.secondary:hover { background: rgba(27,168,255,.15); box-shadow: none; border-color: rgba(27,168,255,.6); }
.btn.outline { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn.outline:hover { border-color: var(--muted); box-shadow: 0 8px 20px rgba(15, 39, 71, 0.05); }

.theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(132, 164, 220, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--header-link);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.theme-toggle:hover {
  background: var(--header-link-hover-bg);
  color: var(--header-text);
  border-color: rgba(180, 205, 255, 0.45);
}
[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}
.theme-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Default state to avoid flicker before JS kicks in */
.theme-toggle .icon-sun { display: none; }

.hero {
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--color-accent-2) 26%, transparent) 0%, transparent 36%),
    linear-gradient(140deg, var(--hero-grad-1), var(--hero-grad-2) 58%, var(--hero-grad-3));
  color: #fff;
  padding: 4rem 0 5rem;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.hero h1, .page-hero h1 { margin: 0; line-height: 1.25; font-size: clamp(2rem, 5vw, 3.7rem); }
.hero h1 span, .page-hero h1 span { color: #24e59a; }
.hero p { color: #d0ddf4; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }

.hero-visual {
  min-height: 280px;
  border-radius: 24px;
  border: 1px solid rgba(134, 178, 255, .25);
  background:
    radial-gradient(circle at 80% 20%, rgba(19, 145, 255, .45), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(0, 198, 157, .33), transparent 42%),
    #071638;
  position: relative;
  overflow: hidden;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 16px;
  border: 1px solid rgba(146, 190, 255, .25);
  background: rgba(5, 16, 36, .58);
}
.hero-visual::before { width: 55%; height: 52%; inset: 16% auto auto 10%; }
.hero-visual::after { width: 34%; height: 36%; inset: auto 9% 12% auto; }

.hero-visual--image {
  padding: 0;
  border: 1px solid rgba(134, 178, 255, 0.28);
}
.hero-visual--image::before,
.hero-visual--image::after {
  display: none;
}
.hero-visual__img {
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 34vw, 360px);
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

/* --- Subtle hero motion (premium, non-distracting) --- */
@keyframes hero-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}
@keyframes hero-glow-shift {
  0%, 100% { opacity: 0.55; transform: translate3d(0, 0, 0); }
  50% { opacity: 0.75; transform: translate3d(8px, -6px, 0); }
}

.page-hero:has(.hero-grid) .hero-visual--image {
  will-change: transform;
  animation: hero-float 7.5s ease-in-out infinite;
}
.page-hero:has(.hero-grid) .hero-visual--image::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 35%, rgba(27, 168, 255, 0.22), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(0, 210, 130, 0.18), transparent 58%);
  pointer-events: none;
  opacity: 0.65;
  filter: blur(18px);
  animation: hero-glow-shift 9.5s ease-in-out infinite;
}
.page-hero:has(.hero-grid) .hero-visual__img {
  transform: scale(1.01);
  transition: transform 0.35s ease;
}
.page-hero:has(.hero-grid) .hero-visual--image:hover .hero-visual__img {
  transform: scale(1.03);
}
.page-hero:has(.hero-grid) .hero-visual--image {
  background: #040f24;
}

.stats-strip {
  margin-top: -2.25rem;
  position: relative;
  z-index: 2;
}
.stats-grid {
  background: linear-gradient(145deg, var(--stats-grad-1) 0%, var(--stats-grad-2) 45%, var(--hero-grad-1) 100%);
  border-radius: clamp(18px, 3vw, 26px);
  padding: 1.15rem clamp(0.85rem, 2.5vw, 1.75rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem 0;
  border: 1px solid var(--stats-border);
  box-shadow: 0 20px 50px rgba(2, 10, 28, 0.38);
}
.stat {
  text-align: center;
  color: #dce8ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  min-width: 0;
}
.stat-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(18, 48, 92, 0.55);
  border: 1px solid rgba(120, 175, 255, 0.22);
  color: #8ed0ff;
  flex-shrink: 0;
}
.stat-icon .svg-icon-inner {
  width: 22px;
  height: 22px;
}
.stat strong {
  display: block;
  color: #34f0a8;
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.9;
  max-width: 12rem;
}

.grid { display: grid; gap: 1rem; }
.quote-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.quote-page-main.py-5 {
  padding: clamp(2.25rem, 4.5vw, 3.25rem) 0;
}
.quote-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  z-index: 2;
}
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(27, 168, 255, 0.3);
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--color-badge);
  color: color-mix(in srgb, var(--color-cta) 55%, var(--color-heading) 45%);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent 30%);
}

/* --- Card hierarchy spacing (badge/icon/title breathing room) --- */
.service-card .badge,
.project-card .badge,
.blog-card__cat.badge {
  margin-bottom: 0.85rem;
}

.service-card .card-icon {
  margin-bottom: 1.05rem;
}

.service-card h3 {
  margin-top: 0;
}

.service-card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--surface-soft); margin-bottom: .8rem; }
.benefits { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .35rem; }
.benefits li { color: var(--benefits-text); font-size: .95rem; }
.benefits li::before { content: "✓"; color: #1fc777; margin-inline-end: .45rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 1rem; }
.filter-chip {
  padding: .48rem 1rem; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); font-weight: 700; cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.filter-chip.is-active { background: var(--primary-2); color: #fff; border-color: var(--primary-2); }
.filter-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.filter-chip:active { transform: translateY(0px); box-shadow: none; }

/* Dark-mode: selected chips must stay readable & on-brand */
[data-theme="dark"] .filter-chip.is-active {
  background: color-mix(in srgb, var(--accent) 26%, var(--surface) 74%);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border) 45%);
  color: var(--color-heading);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .filter-chip.is-active:hover {
  background: color-mix(in srgb, var(--accent) 32%, var(--surface) 68%);
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border) 30%);
}

/* "Show more" buttons need breathing room above */
.home-show-more-actions {
  margin-top: 1.6rem;
}
.home-faq .home-show-more-actions {
  margin-bottom: 0.65rem;
}

.project-media, .avatar {
  border-radius: 14px;
  background: linear-gradient(135deg, #cfe7ff, #e8f2ff);
  border: 1px solid #c5ddff;
}
.project-media { height: 150px; display: grid; place-items: center; color: #3a5580; font-weight: 700; }
.project-meta { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; gap: .6rem; color: var(--muted); font-weight: 600; }
.impact { background: #daf7e9; color: #0d8d57; padding: .25rem .6rem; border-radius: 999px; font-size: .86rem; }

.team-card { position: relative; }
.status-dot { position: absolute; inset-inline-start: 1rem; top: 1rem; width: 10px; height: 10px; border-radius: 50%; background: #18cc77; box-shadow: 0 0 0 3px #e8fff3; }
.status-dot.busy { background: #ffb84d; box-shadow: 0 0 0 3px #fff3df; }

.team-card__portrait {
  position: relative;
  width: fit-content;
  max-width: 100%;
  flex-shrink: 0;
}
.team-card__portrait .status-dot {
  position: absolute;
  inset-inline-start: 0.35rem;
  top: 0.35rem;
  z-index: 3;
}
.team-flag-badge {
  position: absolute;
  inset-inline-end: 0.12rem;
  inset-block-end: 0.12rem;
  z-index: 2;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(5, 24, 60, 0.18);
  pointer-events: none;
}
[data-theme="dark"] .team-flag-badge {
  background: rgba(18, 28, 48, 0.92);
  border-color: rgba(200, 220, 255, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .team-flag-badge {
  background: #fff;
  border-color: rgba(27, 168, 255, 0.22);
  box-shadow: 0 6px 14px rgba(15, 40, 80, 0.12);
}
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .7rem; display: grid; place-items: center; font-size: 1.5rem; color: #0c305f; }
.avatar.avatar--image { padding: 0; overflow: hidden; font-size: 0; }
.avatar.avatar--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
  display: block;
}
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.tag { font-size: .75rem; padding: .16rem .5rem; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }

.page-hero {
  background: var(--gradient-primary);
  color: #fff;
  padding: 6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}
.page-hero.page-hero--quote {
  padding: clamp(2.4rem, 5.5vw, 3.6rem) 0;
}
.page-hero.page-hero--quote .eyebrow {
  margin-bottom: 0.9rem;
}
.page-hero.page-hero--quote h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  margin-bottom: 0.85rem;
}
.page-hero.page-hero--quote p {
  font-size: 1.05rem;
  max-width: 62ch;
}
.page-hero .narrow { max-width: 820px; text-align: center; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}
.page-hero h1 span {
  color: var(--cta);
}
.page-hero p {
  font-size: 1.15rem;
  color: #9eb2d4;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 800px;
}
.eyebrow {
  color: var(--accent-2);
  background: rgba(0, 210, 211, 0.1);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 210, 211, 0.2);
  font-weight: 700;
}

/* Homepage split hero (index only — has .hero-grid) */
.page-hero:has(.hero-grid) {
  text-align: start;
  padding: clamp(3.5rem, 8vw, 6.25rem) 0 clamp(4rem, 10vw, 6.75rem);
  background:
    radial-gradient(ellipse 120% 70% at 75% 0%, rgba(0, 210, 130, 0.11), transparent 52%),
    radial-gradient(ellipse 90% 55% at 0% 100%, rgba(27, 168, 255, 0.14), transparent 48%),
    linear-gradient(168deg, #020b1a 0%, #061228 40%, #0a1f44 100%);
  position: relative;
  overflow: clip;
}
.page-hero:has(.hero-grid)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(140, 180, 255, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  pointer-events: none;
  opacity: 0.55;
}
.page-hero:has(.hero-grid) .container {
  position: relative;
  z-index: 1;
}
.page-hero:has(.hero-grid) .hero-grid {
  text-align: start;
  align-items: center;
}
.page-hero:has(.hero-grid) h1 {
  margin-bottom: 1rem;
}
.page-hero:has(.hero-grid) p {
  margin: 0;
  max-width: 36em;
  color: #a8bddc;
}
.page-hero:has(.hero-grid) .actions {
  margin-top: 2rem;
  gap: 1rem;
}
.page-hero:has(.hero-grid) .btn {
  border-radius: 12px;
  padding: 0.95rem 1.65rem;
}
.page-hero:has(.hero-grid) .hero-visual {
  min-height: clamp(260px, 34vw, 360px);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(0, 12, 40, 0.55);
  background:
    linear-gradient(200deg, rgba(255, 255, 255, 0.05) 0%, transparent 42%),
    radial-gradient(circle at 78% 18%, rgba(19, 145, 255, 0.5), transparent 38%),
    radial-gradient(circle at 12% 82%, rgba(0, 198, 157, 0.35), transparent 40%),
    linear-gradient(165deg, #040f24 0%, #0a2048 100%);
}

@media (max-width: 620px) {
  .page-hero:has(.hero-grid) .actions { margin-top: 1.15rem; }
  .page-hero:has(.hero-grid) .hero-visual { min-height: 220px; }
  .page-hero:has(.hero-grid) .hero-visual__img { min-height: 220px; }
}

.home-page .stats-strip + .section .cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.home-page .stats-strip + .section .service-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 14px;
  padding: 1.65rem 1.45rem;
  position: relative;
}
.home-page .stats-strip + .section .service-card .card-icon {
  margin-bottom: 1rem;
  align-self: flex-start;
  margin-inline-end: 0;
  margin-inline-start: 0;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 8px 22px rgba(5, 24, 60, 0.06);
}
[data-theme="dark"] .home-page .stats-strip + .section .service-card .card-icon {
  color: color-mix(in srgb, var(--accent) 88%, #ffffff 12%);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.home-page .stats-strip + .section .service-card h3 {
  margin: 0 0 0.45rem;
}
.home-page .stats-strip + .section .service-card p {
  margin: 0;
  flex-grow: 1;
}

.home-why .card {
  border-radius: 14px;
  padding: 1.65rem 1.45rem;
}
.home-why .card-icon-center {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
}
[data-theme="dark"] .home-why .card-icon-center {
  color: color-mix(in srgb, var(--accent) 86%, #ffffff 14%);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.home-why .card h3 {
  margin-top: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  padding-top: 0.25rem;
}
.process-step-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
}
.process-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface) 88%);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border) 60%);
  color: color-mix(in srgb, var(--accent) 78%, var(--color-heading) 22%);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.process-icon {
  line-height: 0;
  color: var(--accent);
  opacity: 1;
  padding: 0.35rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 88%, var(--accent) 12%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border) 78%);
}
[data-theme="dark"] .process-icon {
  color: color-mix(in srgb, var(--accent) 86%, #ffffff 14%);
  background: color-mix(in srgb, var(--surface-soft) 78%, var(--accent) 22%);
  border-color: color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, 0.12));
}
.process-step h3 {
  margin: 0;
  font-size: 1.05rem;
}
.process-step p {
  margin: 0;
  flex-grow: 1;
}

.section.home-showcase.bg-primary {
  background: linear-gradient(168deg, #030b1c 0%, #061530 50%, #071c3a 100%);
  color: #fff;
}
.home-showcase .section-head p {
  color: rgba(255, 255, 255, 0.88);
}
.home-showcase .card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.home-showcase .project-media {
  height: 172px;
  margin-inline: -1.5rem;
  margin-block-start: -1.5rem;
  margin-block-end: 1rem;
  width: calc(100% + 3rem);
  max-width: none;
  border-radius: 14px 14px 0 0;
  border: none;
  border-bottom: 1px solid rgba(197, 221, 255, 0.55);
}
.home-showcase .badge {
  align-self: flex-start;
  background: rgba(0, 210, 122, 0.16);
  color: #0d8d57;
  border: 1px solid rgba(0, 210, 122, 0.35);
}
[data-theme="dark"] .home-showcase .badge {
  color: #7dffc8;
}
.home-showcase .card h3 {
  margin-top: 0;
}
.home-showcase .card p {
  flex-grow: 1;
}
.home-showcase .project-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.home-team .team-card {
  padding: 2rem 1.35rem 1.65rem;
}
.home-team .team-card__portrait {
  margin-inline: auto;
  margin-bottom: 0.35rem;
}
.home-team .avatar {
  width: 160px;
  height: 160px;
  font-size: 1.7rem;
  border: 3px solid rgba(27, 168, 255, 0.24);
  box-shadow: 0 14px 38px rgba(5, 24, 60, 0.14);
}
.home-team .team-card__name {
  margin-bottom: 0.3rem;
  margin-top: 0.35rem;
}
.home-team .team-card__role {
  margin: 0.15rem 0 0.75rem;
}

.home-team-careers-cta {
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  text-align: start;
}
.home-team-careers-cta__inner {
  width: 100%;
}
.home-team-careers-cta__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--accent);
}
.home-team-careers-cta__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.team-careers-join__card {
  margin-bottom: 0;
}

/* Team page card polish */
.team-page .team-card {
  padding: 1.75rem 1.6rem 1.55rem;
}
.team-page .team-card__head {
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.team-page .team-card .avatar {
  width: 160px;
  height: 160px;
  margin: 0;
  border: 3px solid rgba(27, 168, 255, 0.24);
  box-shadow: 0 16px 40px rgba(5, 24, 60, 0.14);
  background: linear-gradient(135deg, rgba(27, 168, 255, 0.12), rgba(0, 210, 211, 0.06));
}
.team-page .team-card__portrait {
  margin-bottom: 0;
}
[data-theme="dark"] .team-page .team-card .avatar {
  border-color: rgba(148, 200, 255, 0.26);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}
.team-page .team-card h3 {
  margin: 0 0 0.15rem;
  line-height: 1.25;
}
.team-page .team-card__title {
  margin: 0.2rem 0 0.5rem;
}
.team-page .team-card__name {
  letter-spacing: -0.02em;
}
.team-page .team-card__role {
  line-height: 1.35;
}

/* Team social icons (shared) */
.team-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.team-social--inline {
  justify-content: flex-start;
  margin-top: 0.15rem;
  margin-bottom: 0.6rem;
}
.team-social__link {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(27, 168, 255, 0.06);
  border: 1px solid rgba(27, 168, 255, 0.16);
  color: var(--primary);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.team-social__link:hover {
  transform: translateY(-2px);
  background: rgba(27, 168, 255, 0.12);
  border-color: rgba(27, 168, 255, 0.3);
  box-shadow: 0 10px 22px rgba(5, 24, 60, 0.08);
}
[data-theme="dark"] .team-social__link {
  background: rgba(27, 168, 255, 0.08);
  border-color: rgba(148, 200, 255, 0.2);
}
[data-theme="dark"] .team-social__link:hover {
  background: rgba(27, 168, 255, 0.14);
  border-color: rgba(148, 200, 255, 0.3);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
}
.team-social__link .svg-icon-inner {
  width: 18px;
  height: 18px;
}

.team-card__media-link {
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
  align-self: flex-start;
  border-radius: 14px;
  outline-offset: 4px;
}
.team-card__media-link:focus-visible .avatar {
  box-shadow: 0 0 0 3px rgba(27, 168, 255, 0.55);
}
.team-card__media-link--center {
  align-self: center;
}
.team-card__name-link {
  color: inherit;
  text-decoration: none;
  outline-offset: 3px;
}
.team-card__name-link:hover {
  color: var(--accent);
}
.team-card__profile-cta {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.team-page .team-card__profile-cta {
  text-align: start;
  margin-top: auto;
}
.team-card__profile-link {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 168, 255, 0.35);
}
.team-card__profile-link:hover {
  color: var(--cta);
  border-bottom-color: rgba(0, 210, 122, 0.45);
}

.page-hero.team-member-hero {
  text-align: start;
  padding: clamp(3rem, 7vw, 5.25rem) 0;
}
.team-member-hero__grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.team-member-hero__photo-wrap {
  display: flex;
  justify-content: center;
}
.team-member-hero__portrait {
  position: relative;
  width: fit-content;
}
.team-member-hero__portrait .status-dot {
  position: absolute;
  inset-inline-start: 0.5rem;
  top: 0.5rem;
  z-index: 3;
}
.team-member-hero__avatar {
  width: min(280px, 88vw);
  height: min(280px, 88vw);
  margin: 0;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 22px 50px rgba(0, 8, 28, 0.45);
}
.team-member-hero__avatar img {
  border-radius: 50%;
}
.team-member-hero__portrait .team-flag-badge {
  inset-inline-end: 0.35rem;
  inset-block-end: 0.35rem;
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.2rem;
  z-index: 2;
}
.team-member-hero__name {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}
.team-member-hero__title {
  margin: 0 0 1rem;
}
.team-member-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.team-member-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2ecff;
}
.team-member-hero__pill--muted {
  background: rgba(255, 255, 255, 0.06);
  color: #b8c9e8;
}
.team-member-hero__pill--ok {
  background: rgba(0, 210, 122, 0.18);
  border-color: rgba(0, 210, 122, 0.35);
  color: #b8ffd9;
}
.team-member-hero__pill--busy {
  background: rgba(255, 184, 77, 0.16);
  border-color: rgba(255, 184, 77, 0.35);
  color: #ffe6c2;
}
.team-member-hero__social.team-social--inline {
  margin-bottom: 1.25rem;
}
.team-member-hero__social .team-social__link {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.team-member-hero__social .team-social__link:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}
.team-member-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.team-member-body .team-member-block + .team-member-block {
  margin-top: 1.25rem;
}
.team-member-body .team-member-summary {
  margin: 0;
  line-height: 1.85;
}
.team-member-notfound__card {
  max-width: 520px;
  margin-inline: auto;
  padding: 2rem 1.5rem;
}
@media (max-width: 720px) {
  .team-member-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .team-member-hero__intro {
    text-align: center;
  }
  .team-member-hero__meta,
  .team-member-hero__social.team-social--inline {
    justify-content: center;
  }
  .team-member-hero__actions {
    justify-content: center;
  }
}

.home-faq .faq-list,
.page-context-faq .faq-list {
  gap: 0.85rem;
}
.faq-page .faq-group + .faq-group {
  margin-top: 2.25rem;
}
.faq-group__title {
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

/* --- About: trust logos grid --- */
.trust-logos__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}
.trust-logo-tile {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-sm);
  min-height: 70px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.85rem 0.75rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.trust-logo-tile__text {
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--primary);
  opacity: 0.9;
}
.trust-logo-tile--muted .trust-logo-tile__text {
  opacity: 0.45;
}
.trust-logo-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: var(--shadow);
  background: color-mix(in srgb, var(--surface) 86%, var(--accent) 14%);
}
[data-theme="dark"] .trust-logo-tile:hover {
  border-color: color-mix(in srgb, var(--accent) 65%, rgba(255, 255, 255, 0.08));
  background: color-mix(in srgb, var(--surface) 78%, var(--accent) 22%);
}
.trust-logo-tile:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 3px;
}
[data-theme="dark"] .trust-logo-tile {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 200, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .trust-logo-tile__text {
  color: var(--text);
  opacity: 0.85;
}
@media (max-width: 1024px) {
  .trust-logos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .trust-logos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.home-faq .faq-item,
.page-context-faq .faq-item {
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-faq .faq-item summary,
.page-context-faq .faq-item summary {
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  list-style: none;
  position: relative;
}
.home-faq .faq-item summary::after,
.page-context-faq .faq-item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(27, 168, 255, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}
.home-faq .faq-item[open] summary::after,
.page-context-faq .faq-item[open] summary::after {
  content: "−";
  background: rgba(0, 210, 122, 0.14);
  color: #0b7a52;
}
.home-faq .faq-item p,
.page-context-faq .faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}
.home-faq .faq-item[open],
.page-context-faq .faq-item[open] {
  border-color: rgba(27, 168, 255, 0.35);
  box-shadow: 0 10px 28px rgba(5, 24, 60, 0.08);
}

.home-cta .cta-band {
  background: linear-gradient(118deg, #020a18 0%, #071a38 42%, #0b3250 82%, #0c4a66 100%);
  border: 1px solid rgba(80, 160, 220, 0.24);
  box-shadow: 0 26px 64px rgba(2, 8, 24, 0.38);
  position: relative;
  overflow: hidden;
}
.home-cta .cta-band::before {
  content: "";
  position: absolute;
  width: min(440px, 60vw);
  height: min(440px, 60vw);
  inset-inline-start: -16%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(27, 168, 255, 0.16) 0%, transparent 68%);
  pointer-events: none;
}
.home-cta .cta-band > * {
  position: relative;
  z-index: 1;
}
.home-cta .cta-band h2 {
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.28);
}
.home-cta .cta-band .btn.primary {
  box-shadow: 0 14px 36px rgba(0, 210, 122, 0.38);
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Common Layout Utilities */
.gap-1 { gap: 1rem; }
.gap-1-5 { gap: 1.5rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
.gap-4 { gap: 4rem; }
.pt-1 { padding-top: 0.5rem; }
.pt-5 { padding-top: 5rem; }
.pt-6 { padding-top: 6rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-5 { padding-bottom: 5rem; }
.pb-6 { padding-bottom: 6rem; }
.py-5 { padding: 5rem 0; }
.py-6 { padding: 6rem 0; }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-cta { color: var(--cta); }
.text-white { color: #ffffff; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.3rem; }
.text-2xl { font-size: 1.8rem; }
.text-3xl { font-size: 2.2rem; }
.text-4xl { font-size: 2.5rem; }

/* Components */
.card-icon {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 1.8rem;
  border-radius: 12px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card-icon-lg {
  width: 64px;
  height: 64px;
  font-size: 2.2rem;
  border-radius: 14px;
}
.card-icon-center {
  margin: 0 auto 1.2rem;
}

.timeline { margin: 0; padding: 0; }
.timeline li {
  list-style: none;
  border-inline-start: 3px solid var(--accent);
  border-radius: 0;
  padding-inline-start: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -8px;
  top: 0;
  width: 13px;
  height: 13px;
  background: var(--surface);
  border: 3px solid var(--accent);
  border-radius: 50%;
}
.timeline li:last-child {
  border-inline-start-color: var(--cta);
}
.timeline li:last-child::before {
  border-color: var(--cta);
}

.timeline strong {
  color: var(--primary);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.3rem;
}
.timeline span {
  color: var(--muted);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 2rem; }
.form-grid > .form-field {
  min-width: 0;
}
.form-field { margin-bottom: 1.2rem; }
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}
.form-field .required { color: #e63946; }
.form-field small {
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.form-flash {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}
.form-flash--success {
  background: rgba(0, 210, 122, 0.12);
  border: 1px solid rgba(0, 210, 122, 0.35);
  color: var(--text);
}
.form-flash--error {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.35);
  color: var(--text);
}
input, select, textarea {
  width: 100%;
  padding: .85rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
  background: var(--surface-soft);
  color: var(--text);
  transition: all 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  background: var(--surface);
  border-color: rgba(27, 168, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(27, 168, 255, 0.1);
}
textarea { min-height: 125px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .filter-chip:focus-visible, .btn:focus-visible, .nav-link:focus-visible, .theme-toggle:focus-visible, .menu-toggle:focus-visible {
  outline: 2px solid #1ba8ff; outline-offset: 2px;
}

.faq-list { display: grid; gap: .7rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .95rem 1rem; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] { border-color: #b9d9ff; }

.cta-band {
  background: var(--gradient-primary);
  border: 1px solid rgba(27, 168, 255, .2);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-hover);
}
.cta-band .btn.outline {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  box-shadow: none;
}
.cta-band .btn.outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer {
  margin-top: 4rem;
  background: var(--color-footer);
  color: #b6c8e6;
  padding-top: 3.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .site-footer {
  background: var(--color-footer);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem 1.75rem;
  padding-bottom: 2rem;
}
.footer-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
}
.footer-logo {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 200, 255, 0.2);
}
[data-theme="dark"] .footer-logo--light,
[data-theme="light"] .footer-logo--dark {
  opacity: 0;
  pointer-events: none;
}
[data-theme="light"] .footer-logo {
  background: #fff;
  border-color: rgba(15, 39, 71, 0.1);
}

.footer-block h3,
.footer-title {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  font-weight: 800;
  color: #e8f2ff;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.footer-links a {
  color: #b6c8e6;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #fff;
}
.social-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(120, 170, 255, 0.16);
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover {
  background: rgba(27, 168, 255, 0.35);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(145, 176, 225, 0.18);
  text-align: center;
  padding: 1rem 0 1.15rem;
  color: #8fa6c8;
  font-size: 0.92rem;
}

.empty-state { padding: 1rem; border-radius: 12px; border: 1px dashed #b2c9e7; background: var(--surface); color: var(--muted); }

/* Decorative & Layout */
.bg-primary { background: var(--primary); color: #fff; }
.bg-surface-soft { background: var(--surface-soft); }
.tag {
  font-size: .75rem;
  padding: .16rem .5rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}
.tag.tag--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.tag.tag--success {
  background: rgba(0, 210, 122, 0.15);
  border-color: rgba(0, 210, 122, 0.3);
  color: var(--cta);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.tag.tag--accent {
  background: rgba(27, 168, 255, 0.15);
  border-color: rgba(27, 168, 255, 0.3);
  color: var(--accent);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

/* --- Team page: collaboration band (fixes “white block”) --- */
.team-collab {
  padding: clamp(3.25rem, 6vw, 4.75rem) 0;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}
[data-theme="dark"] .team-collab {
  background:
    radial-gradient(ellipse 120% 80% at 15% 10%, rgba(40, 184, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 110% 70% at 90% 80%, rgba(34, 208, 122, 0.10), transparent 62%),
    linear-gradient(180deg, #070d1c 0%, var(--color-bg) 100%);
}
.team-collab .card.shadow-none {
  background: color-mix(in srgb, var(--color-card) 92%, transparent);
  border-color: color-mix(in srgb, var(--color-border) 82%, transparent);
  box-shadow: none;
}
[data-theme="dark"] .team-collab .card.shadow-none {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 200, 255, 0.16);
}
.team-collab .card.bg-primary {
  background: linear-gradient(165deg, #040f24 0%, #0a2048 100%);
  border: 1px solid rgba(120, 190, 255, 0.22);
}
.team-collab .text-muted {
  color: var(--color-text-muted);
}
.border-none { border: none; }
.shadow-none { box-shadow: none; }

/* Utility Flex */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-grow { flex-grow: 1; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }

/* Component Helpers */
.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border-radius: 14px;
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-channel:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 168, 255, 0.35);
  box-shadow: var(--shadow-hover);
}
.contact-channel__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.contact-channel__icon .svg-icon-inner {
  width: 22px;
  height: 22px;
}
.contact-channel--email .contact-channel__icon { background: linear-gradient(145deg, #1b7fcc, #0d5f99); }
.contact-channel--phone .contact-channel__icon { background: linear-gradient(145deg, #0d9f6a, #067a52); }
.contact-channel--whatsapp .contact-channel__icon { background: linear-gradient(145deg, #128c7e, #075e54); }
.contact-channel--telegram .contact-channel__icon { background: linear-gradient(145deg, #229ed9, #168ac4); }

.contact-meta { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.2rem; }
.ltr-text { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.map-placeholder {
  height: 180px;
  background: var(--surface-soft);
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
}
[data-theme="dark"] .map-placeholder .map-svg rect:first-child {
  fill: #0f172a;
}
[data-theme="dark"] .map-placeholder .map-svg path {
  stroke: rgba(120, 175, 255, 0.2);
}
[data-theme="dark"] .map-label {
  background: rgba(16, 24, 40, 0.92);
  color: var(--text);
  border-color: var(--border);
}
.map-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 12px;
}
.map-label {
  background: rgba(255,255,255,0.9);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.text-xs { font-size: 0.85rem; }
.text-sm { font-size: 0.9rem; }

@media (min-width: 941px) {
  .stats-grid .stat:not(:first-child) {
    border-inline-start: 1px solid rgba(120, 170, 255, 0.2);
  }
}

@media (max-width: 940px) {
  :root { --header-height: 72px; }
  .header-wrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .brand {
    justify-self: unset;
    flex: 1 1 auto;
    min-width: 0;
  }
  .header-actions {
    justify-self: unset;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
  }
  .hero-grid, .cta-band, .quote-layout { grid-template-columns: 1fr; display: grid; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-sidebar { position: static; top: auto; z-index: auto; }
  .main-nav {
    justify-self: unset;
    position: fixed;
    top: var(--header-height);
    inset-inline: 0;
    width: min(1160px, calc(100% - 2rem));
    margin-inline: auto;
    max-height: calc(100dvh - var(--header-height) - 1rem);
    overflow-y: auto;
    background: var(--header-bg);
    border: 1px solid var(--header-border);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 28px rgba(5, 16, 36, 0.28);
    padding: .7rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 390;
    overscroll-behavior: contain;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .main-nav .nav-cta { width: 100%; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
  .menu-toggle span { width: 18px; height: 2px; background: #d9e8ff; margin-inline: auto; border-radius: 1px; }
  .form-grid { grid-template-columns: 1fr; }
  .card .btn.primary,
  .card .btn.outline,
  .card .btn.secondary {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
  }
}

html.mobile-nav-open body {
  overflow: hidden;
}

@media (max-width: 620px) {
  .section { padding: 3rem 0; }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    border-radius: 22px;
    padding: 1.15rem 1rem;
  }
  .cards-2,
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 400px) {
  .brand small {
    display: none;
  }
}

.capabilities-card {
  background: linear-gradient(168deg, var(--surface-soft) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
[data-theme="dark"] .capabilities-card {
  background: linear-gradient(168deg, #121c30 0%, #0f1729 100%);
  border-color: rgba(120, 175, 255, 0.2);
}
.capabilities-card .benefits li {
  color: var(--benefits-text);
}

.form-section-head {
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  margin-bottom: 1.35rem;
  border-inline-start: 4px solid var(--accent);
  background: var(--surface-soft);
}
.form-section-head--cta {
  border-inline-start-color: var(--cta);
}
.form-section-head--neutral {
  border-inline-start-color: var(--primary);
}

/* Request quote: multi-step wizard */
.quote-wizard {
  position: relative;
}
.quote-wizard__progress {
  display: none;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  gap: 0.35rem;
  align-items: flex-start;
  justify-content: space-between;
}
html.quote-wizard-js .quote-wizard__progress {
  display: flex;
}
.quote-wizard__progress-item {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  padding-top: 0.15rem;
}
.quote-wizard__progress-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  background: var(--surface-soft);
  border: 2px solid var(--border);
  color: var(--muted);
}
.quote-wizard__progress-label {
  display: block;
  line-height: 1.25;
  padding-inline: 0.15rem;
}
.quote-wizard__progress-item.is-current .quote-wizard__progress-num {
  border-color: var(--accent);
  background: rgba(27, 168, 255, 0.12);
  color: var(--primary);
}
.quote-wizard__progress-item.is-current {
  color: var(--text);
}
.quote-wizard__progress-item.is-done .quote-wizard__progress-num {
  border-color: var(--cta);
  background: rgba(0, 210, 122, 0.15);
  color: #0a6b45;
}
[data-theme="dark"] .quote-wizard__progress-item.is-done .quote-wizard__progress-num {
  color: #7af0c0;
}
.quote-wizard__error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.35);
  color: var(--text);
}
.quote-wizard__error[hidden] {
  display: none !important;
}
html.quote-wizard-js .quote-wizard__panel {
  display: none;
  margin-bottom: 0;
}
html.quote-wizard-js .quote-wizard__panel.is-active {
  display: block;
}
.quote-wizard__panel + .quote-wizard__panel {
  margin-top: 1.5rem;
}
html.quote-wizard-js .quote-wizard__panel + .quote-wizard__panel {
  margin-top: 0;
}
.quote-wizard__step-title {
  margin: 0 0 0.35rem;
}
.quote-wizard__step-intro {
  margin: 0 0 1rem;
}
.quote-wizard__textarea {
  min-height: 160px;
}
.quote-wizard__summary {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
}
.quote-wizard__summary-dl {
  margin: 0;
  display: grid;
  gap: 0.65rem 1rem;
  grid-template-columns: 1fr 1fr;
  font-size: 0.88rem;
}
.quote-wizard__summary-dl dt {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}
.quote-wizard__summary-dl dd {
  margin: 0.15rem 0 0;
  color: var(--text);
  word-break: break-word;
}
.quote-wizard__summary-row--wide {
  grid-column: 1 / -1;
}
@media (max-width: 520px) {
  .quote-wizard__summary-dl {
    grid-template-columns: 1fr;
  }
}
.quote-wizard__nav {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  gap: 0.75rem;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}
html.quote-wizard-js .quote-wizard__nav {
  display: flex;
}
.quote-wizard__nav .btn {
  flex: 1;
  min-width: min(140px, 42%);
  min-height: 48px;
}
.quote-wizard__back[hidden],
.quote-wizard__next[hidden] {
  display: none !important;
}
.quote-wizard__submit {
  margin-top: 0.5rem;
  scroll-margin-bottom: calc(var(--mobile-contact-bar-height, 80px) + 20px);
}

.contact-expect-card__icon {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
}
[data-theme="dark"] .contact-expect-card__icon {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  color: color-mix(in srgb, var(--accent) 86%, #ffffff 14%);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Back to top (mobile: clears bottom contact bar) */
.back-to-top {
  position: fixed;
  inset-inline-end: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 360;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  color: var(--primary);
  box-shadow: 0 10px 28px rgba(5, 16, 36, 0.12);
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:focus-visible {
  outline: 2px solid #1ba8ff;
  outline-offset: 2px;
}
.back-to-top__icon .svg-icon-inner {
  width: 22px;
  height: 22px;
}
[data-theme="dark"] .back-to-top {
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Floating WhatsApp (RTL-friendly global quick action) */
.floating-whatsapp {
  position: fixed;
  inset-inline-start: max(12px, env(safe-area-inset-left, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 365;
  height: 46px;
  min-width: 46px;
  padding: 0 0.95rem 0 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(18, 140, 126, 0.14);
  border: 1px solid rgba(18, 140, 126, 0.35);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 8, 24, 0.22);
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

[data-theme="dark"] .floating-whatsapp {
  background: rgba(18, 140, 126, 0.28);
  border-color: rgba(61, 230, 165, 0.5);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  background: rgba(18, 140, 126, 0.18);
  border-color: rgba(61, 230, 165, 0.38);
  box-shadow: 0 16px 38px rgba(0, 8, 24, 0.3);
}

[data-theme="dark"] .floating-whatsapp:hover {
  background: rgba(18, 140, 126, 0.34);
  border-color: rgba(61, 230, 165, 0.65);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.62);
}

.floating-whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(0, 8, 24, 0.22);
}

.floating-whatsapp:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--channel-whatsapp) 70%, #ffffff 30%);
  outline-offset: 2px;
}

.floating-whatsapp__icon .svg-icon-inner {
  width: 18px;
  height: 18px;
}

.floating-whatsapp__label {
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Mobile-only fixed bottom contact bar */
.mobile-contact-bar {
  display: none;
}

html.mobile-nav-open .mobile-contact-bar {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html.mobile-nav-open .back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.mobile-nav-open .floating-whatsapp {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 768px) {
  :root {
    --mobile-contact-bar-height: 80px;
  }

  html:has(.mobile-contact-bar) body {
    padding-bottom: calc(var(--mobile-contact-bar-height) + env(safe-area-inset-bottom, 0px) + 16px);
  }

  html:has(.mobile-contact-bar) main#main-content {
    padding-bottom: 0.5rem;
  }

  .back-to-top {
    bottom: calc(var(--mobile-contact-bar-height, 80px) + 10px + env(safe-area-inset-bottom, 0px));
  }

  .floating-whatsapp {
    bottom: calc(var(--mobile-contact-bar-height, 80px) + 10px + env(safe-area-inset-bottom, 0px));
    padding: 0;
    width: 46px;
    justify-content: center;
    border-radius: 14px;
  }

  .floating-whatsapp__label {
    display: none;
  }

  /* Avoid duplicate WhatsApp actions on mobile if the bottom bar already has WhatsApp */
  html:has(.mobile-contact-bar__btn--whatsapp) .floating-whatsapp {
    display: none;
  }

  .mobile-contact-bar {
    display: block;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 350;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }

  .mobile-contact-bar__inner {
    pointer-events: auto;
    width: min(520px, calc(100% - 0px));
    margin-inline: auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    box-shadow: 0 18px 40px rgba(5, 16, 36, 0.18);
    backdrop-filter: blur(12px);
  }

  [data-theme="dark"] .mobile-contact-bar__inner {
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  }

  .mobile-contact-bar__btn {
    min-height: 44px;
    border-radius: 14px;
    display: grid;
    grid-template-rows: 22px auto;
    align-items: center;
    justify-items: center;
    gap: 4px;
    padding: 8px 6px;
    background: color-mix(in srgb, var(--surface-soft) 80%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
    color: var(--text);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-contact-bar__btn:hover {
    background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
    border-color: color-mix(in srgb, var(--border) 95%, transparent);
    box-shadow: 0 10px 26px rgba(5, 16, 36, 0.08);
    transform: translateY(-1px);
  }

  .mobile-contact-bar__btn:active {
    transform: translateY(0);
    box-shadow: none;
  }

  .mobile-contact-bar__btn:focus-visible {
    outline: 2px solid #1ba8ff;
    outline-offset: 2px;
  }

  .mobile-contact-bar__icon .svg-icon-inner {
    width: 18px;
    height: 18px;
    opacity: 0.95;
  }

  .mobile-contact-bar__label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--muted);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    max-width: 100%;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mobile-contact-bar__btn--whatsapp {
    border-color: rgba(18, 140, 126, 0.42);
    background: rgba(18, 140, 126, 0.12);
    color: #0a3d36;
  }
  [data-theme="dark"] .mobile-contact-bar__btn--whatsapp {
    color: #b8f5e4;
    border-color: rgba(61, 230, 165, 0.35);
    background: rgba(18, 140, 126, 0.2);
  }

  .mobile-contact-bar__btn--telegram {
    border-color: rgba(34, 158, 217, 0.42);
    background: rgba(34, 158, 217, 0.12);
    color: #0a4a68;
  }
  [data-theme="dark"] .mobile-contact-bar__btn--telegram {
    color: #c8efff;
    border-color: rgba(94, 207, 255, 0.35);
    background: rgba(34, 158, 217, 0.18);
  }

  .mobile-contact-bar__btn--phone {
    border-color: rgba(13, 159, 106, 0.4);
    background: rgba(13, 159, 106, 0.1);
  }
  [data-theme="dark"] .mobile-contact-bar__btn--phone {
    border-color: rgba(94, 233, 181, 0.32);
    background: rgba(13, 159, 106, 0.16);
  }

  .mobile-contact-bar__btn--email {
    border-color: rgba(27, 127, 204, 0.4);
    background: rgba(27, 127, 204, 0.1);
  }
  [data-theme="dark"] .mobile-contact-bar__btn--email {
    border-color: rgba(94, 200, 255, 0.32);
    background: rgba(27, 127, 204, 0.16);
  }

  .mobile-contact-bar__btn--quote {
    border-color: rgba(0, 196, 107, 0.45);
    background: rgba(0, 196, 107, 0.12);
  }
  [data-theme="dark"] .mobile-contact-bar__btn--quote {
    border-color: rgba(0, 210, 122, 0.35);
    background: rgba(0, 196, 107, 0.14);
  }

  .quote-page-main {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  html.quote-wizard-js .quote-wizard {
    padding-bottom: calc(var(--mobile-contact-bar-height) + 1.75rem + env(safe-area-inset-bottom, 0px));
  }

  html.quote-wizard-js .quote-wizard__nav {
    padding-bottom: 0.25rem;
    scroll-margin-bottom: calc(var(--mobile-contact-bar-height) + 16px);
  }
}

/* --- Services page (unified icons + layout) --- */
.services-hero .hero-visual--services {
  min-height: clamp(200px, 28vw, 300px);
  border-radius: 20px;
  background:
    linear-gradient(200deg, rgba(255, 255, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 70% 25%, rgba(27, 168, 255, 0.45), transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(0, 210, 130, 0.28), transparent 45%),
    linear-gradient(165deg, #061228 0%, #0a1f44 100%);
  border: 1px solid rgba(120, 190, 255, 0.22);
  box-shadow: 0 22px 50px rgba(0, 12, 40, 0.35);
}
.services-page__head {
  margin-bottom: 2rem;
}
.service-card--page {
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: 16px;
  min-height: 100%;
}
.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.service-card--page .service-card__icon {
  margin: 0;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
  box-shadow: 0 8px 22px rgba(5, 24, 60, 0.06);
}
[data-theme="dark"] .service-card--page .service-card__icon {
  color: color-mix(in srgb, var(--accent) 86%, #ffffff 14%);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.service-card--page .service-card__icon .svg-icon-inner {
  width: 28px;
  height: 28px;
}
.badge--featured,
.service-card__badge {
  flex-shrink: 0;
  align-self: center;
  background: rgba(0, 210, 122, 0.12);
  color: #0b7a52;
  border: 1px solid rgba(0, 210, 122, 0.28);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}
[data-theme="dark"] .badge--featured,
[data-theme="dark"] .service-card__badge {
  color: #7dffc8;
  background: rgba(0, 210, 122, 0.14);
  border-color: rgba(0, 210, 122, 0.32);
}
.service-card__title {
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.service-card__lead {
  margin: 0 0 1rem;
  line-height: 1.75;
}
.service-card__benefits {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.service-card__benefits-list {
  margin-top: 0.35rem;
}
.service-card__benefits-list li {
  font-weight: 600;
  color: var(--benefits-text);
}
.service-value-card__icon {
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
}
[data-theme="dark"] .service-value-card__icon {
  color: color-mix(in srgb, var(--accent) 86%, #ffffff 14%);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.service-value-card__icon .svg-icon-inner {
  width: 26px;
  height: 26px;
}
.service-process-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.25rem 1.35rem;
  min-height: 100%;
}
.service-process-card__num {
  position: absolute;
  top: -0.35rem;
  inset-inline-end: -0.25rem;
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  font-weight: 900;
  color: var(--surface-soft);
  line-height: 1;
  z-index: 0;
  opacity: 0.95;
}
[data-theme="dark"] .service-process-card__num {
  color: rgba(255, 255, 255, 0.04);
}
.service-process-card__body {
  position: relative;
  z-index: 1;
}
.service-process-card__body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.service-process-card__body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-card--link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 14px 40px rgba(15, 23, 42, 0.12));
}
.service-card--link:focus-visible {
  outline: 2px solid var(--accent, #1ba8ff);
  outline-offset: 2px;
}
.service-card__more {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.9rem;
}
.service-card__benefits-list--compact {
  margin: 0.5rem 0 0;
  padding-inline-start: 1.1rem;
}
.service-card__benefits-list--compact li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--benefits-text);
}

.service-detail-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}
.service-detail-hero__intro {
  flex: 1 1 18rem;
}
.service-detail-hero__icon {
  flex: 0 0 auto;
}
.service-detail-hero__badge {
  margin-top: 0.75rem;
  display: inline-flex;
}
.service-detail__cover-wrap {
  overflow: hidden;
  padding: 0;
  margin-bottom: 1.5rem;
}
.service-detail__cover {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface-soft);
}
.service-detail__block {
  margin-bottom: 1.25rem;
}
.service-detail__h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}
.service-detail__h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
}
.service-detail__prose p {
  margin: 0 0 0.75rem;
  line-height: 1.8;
}
.service-detail__list {
  margin: 0;
  padding-inline-start: 1.2rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.service-detail__list--ordered {
  list-style-type: decimal;
}
.service-detail__list li + li {
  margin-top: 0.35rem;
}
.service-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}
.service-detail__chip {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.service-detail__meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}
.service-detail__related {
  margin: 0;
  padding-inline-start: 1.1rem;
  line-height: 1.75;
}
.service-detail__related a {
  font-weight: 800;
  color: var(--accent, #1ba8ff);
  text-decoration: none;
}
.service-detail__related a:hover {
  text-decoration: underline;
}
.service-detail__cta {
  margin-top: 2rem;
}

/* --- Project cards (thumbnails + hierarchy) --- */
.project-card {
  position: relative;
  overflow: hidden;
  padding: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.project-card__link:focus-visible {
  outline: 2px solid var(--accent, #1ba8ff);
  outline-offset: 2px;
}
.project-card__link-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.project-card__media {
  position: relative;
  height: 168px;
  margin: 0 0 1.1rem;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, #cfe7ff, #e8f2ff);
  overflow: hidden;
}
[data-theme="dark"] .project-card__media {
  background: linear-gradient(135deg, #1a2d4a, #152238);
  border-bottom-color: rgba(120, 175, 255, 0.15);
}
.project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-card__media:has(.project-card__img) .project-card__media-fallback {
  opacity: 0;
}
.project-card__media-fallback {
  position: relative;
  z-index: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #3a5580;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .project-card__media-fallback {
  color: #9eb8e0;
}
.project-card__category {
  align-self: flex-start;
  margin: 0 1.5rem 0.9rem;
  background: rgba(27, 168, 255, 0.1);
  color: #0b5fa8;
  border: 1px solid rgba(27, 168, 255, 0.22);
  font-weight: 800;
}
[data-theme="dark"] .project-card__category {
  color: #9fe0ff;
  background: rgba(27, 168, 255, 0.12);
  border-color: rgba(120, 200, 255, 0.25);
}
.project-card__title {
  margin: 0 1.5rem 0.55rem;
  line-height: 1.35;
}
.project-card__summary {
  margin: 0 1.5rem 1rem;
  line-height: 1.75;
  flex-grow: 1;
}
.project-card__meta {
  margin: 0 1.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.project-card__impact {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 62%;
  text-align: start;
  line-height: 1.35;
  background: rgba(0, 210, 122, 0.1);
  border: 1px solid rgba(0, 210, 122, 0.22);
  color: #0b7a52;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
[data-theme="dark"] .project-card__impact {
  color: #7dffc8;
  background: rgba(0, 210, 122, 0.12);
  border-color: rgba(0, 210, 122, 0.28);
}
.project-card__year {
  font-weight: 700;
  color: var(--muted);
}

.home-showcase .project-card--compact {
  padding: 0 0 1.5rem;
  overflow: hidden;
}
.home-showcase .project-card__media {
  margin-inline: 0;
  margin-block-start: 0;
  width: 100%;
  border-radius: 0;
  border-bottom: 1px solid rgba(197, 221, 255, 0.55);
}
.home-showcase .project-card__category {
  margin-inline: 1.5rem;
}
.home-showcase .project-card__title,
.home-showcase .project-card__summary {
  margin-inline: 1.5rem;
}
.home-showcase .project-card__meta {
  margin-inline: 1.5rem;
}
.home-showcase .project-card__category {
  background: rgba(0, 210, 122, 0.16);
  color: #0d8d57;
  border: 1px solid rgba(0, 210, 122, 0.35);
}
[data-theme="dark"] .home-showcase .project-card__category {
  color: #7dffc8;
}
.home-showcase .project-card__title,
.home-showcase .project-card__summary {
  color: var(--primary);
}
.home-showcase .project-card__summary {
  color: var(--muted);
}

/* Linked team on project cards */
.project-team-block {
  position: relative;
  z-index: 2;
  margin: 0 1.5rem 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}
.project-team-block__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.45rem;
}
.project-team-block__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}
.project-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.12rem 0.45rem 0.12rem 0.12rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.project-team-chip:hover {
  border-color: rgba(27, 168, 255, 0.45);
  background: rgba(27, 168, 255, 0.08);
}
[data-theme="dark"] .project-team-chip {
  background: rgba(15, 23, 42, 0.55);
}
[data-theme="dark"] .project-team-chip:hover {
  border-color: rgba(120, 200, 255, 0.4);
  background: rgba(27, 168, 255, 0.12);
}
.project-team-chip:focus-visible {
  outline: 2px solid var(--accent, #22d3ee);
  outline-offset: 2px;
}
.project-team-chip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--surface, #fff);
  box-shadow: 0 0 0 1px var(--border);
}
.project-team-chip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-team-chip__name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}
.project-team-block--compact .project-team-chip__name {
  display: none;
}
.project-team-block--compact .project-team-chip {
  padding: 0.1rem;
}
.project-team-block--compact .project-team-chip__avatar {
  width: 28px;
  height: 28px;
}
.home-showcase .project-team-block {
  margin-inline: 1.5rem;
}

/* --- Team page refinements --- */
.team-card__intro {
  min-width: 0;
}
.team-card__meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.team-card__dept {
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary);
  border: 1px solid var(--border);
}
.team-card__meta-sep {
  opacity: 0.55;
}
.team-card__summary {
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0 0 1.25rem;
}
.team-card__block {
  margin-bottom: 1.25rem;
}
.team-card__label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.team-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.team-card__pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary);
  border: 1px solid var(--border);
}
.team-card__skills {
  margin: 0;
  gap: 0.4rem;
}
.team-card__skill-tag {
  font-weight: 700;
  color: var(--primary);
  background: rgba(27, 168, 255, 0.06);
  border-color: rgba(27, 168, 255, 0.18);
}
[data-theme="dark"] .team-card__skill-tag {
  color: var(--text);
  background: rgba(27, 168, 255, 0.1);
  border-color: rgba(120, 200, 255, 0.22);
}

/* --- Footer social (SVG) + light theme footer --- */
.social-row--icons {
  gap: 0.45rem;
}
.social-row__link {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(120, 170, 255, 0.14);
  border: 1px solid rgba(148, 200, 255, 0.22);
  color: #e8f2ff;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.social-row__link:hover {
  background: rgba(27, 168, 255, 0.35);
  border-color: rgba(180, 220, 255, 0.45);
  transform: translateY(-2px);
}
.social-row__link .svg-icon-inner {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, #eef3fa 0%, #e4ecf7 100%);
  color: var(--muted);
  border-top-color: var(--border);
}
[data-theme="light"] .footer-block h3,
[data-theme="light"] .footer-title {
  color: var(--primary);
}
[data-theme="light"] .footer-links a {
  color: #3d5577;
}
[data-theme="light"] .footer-links a:hover {
  color: var(--accent);
}
[data-theme="light"] .footer-bottom {
  border-top-color: var(--border);
  color: #5a6f8c;
}
[data-theme="light"] .social-row__link {
  background: rgba(27, 168, 255, 0.1);
  border-color: rgba(27, 168, 255, 0.2);
  color: #0a3d66;
}
[data-theme="light"] .social-row__link:hover {
  color: #062a47;
  background: rgba(27, 168, 255, 0.18);
}

/* --- Light mode: forms & tables --- */
[data-theme="light"] .faq-item {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .faq-item[open] {
  border-color: rgba(27, 168, 255, 0.35);
}
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: #fff;
  border-color: #c9d6e8;
  color: var(--text);
}
[data-theme="light"] .form-section-head {
  background: #f3f7fd;
  border-color: var(--border);
}

/* --- Responsive: tablets & narrow phones --- */
@media (max-width: 1024px) {
  .team-page .team-card__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .team-page .team-card__head .team-card__portrait,
  .team-page .team-card__head .relative {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .team-page .team-social--inline {
    justify-content: center;
  }
  .team-page .team-card__meta-row {
    justify-content: center;
  }
  .team-page .team-card__intro {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .team-page .team-card__head {
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1rem;
  }

  .team-page .team-card__media-link {
    align-self: center;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .team-page .team-card__portrait {
    margin-inline: auto;
  }

  .team-page .team-card__intro {
    width: 100%;
  }

  .team-page .team-social--inline,
  .team-page .team-card__meta-row {
    justify-content: center;
  }
}

/* --- Project detail (case study) --- */
.project-detail-hero--case .container {
  max-width: 72rem;
}
.project-detail-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 900px) {
  .project-detail-hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 400px);
    gap: 2.25rem;
    align-items: center;
  }
}
.project-detail-hero__visual {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0;
}
.project-detail-hero__cover-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.project-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.75rem;
}
.project-detail-meta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  background: var(--surface-soft);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 5.5rem;
}
.project-detail-meta-card--wide {
  grid-column: 1 / -1;
}
.project-detail-meta-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.project-detail-meta-card__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.45;
}
.project-detail__list {
  margin: 0;
  padding-inline-start: 1.15rem;
  line-height: 1.85;
}
.project-detail__list li {
  margin-bottom: 0.35rem;
}
.project-detail__scope-wrap .project-detail__list {
  margin-top: 0.25rem;
}
.project-detail__related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.project-detail__related-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-detail__related-link:hover {
  color: var(--accent, #1ba8ff);
}
.project-detail__note {
  margin: 0;
  line-height: 1.8;
}
.project-detail__block--muted {
  border-style: dashed;
  background: var(--surface);
}
.project-detail__team-inline .project-team-block {
  margin: 0.5rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.cta-band--project .text-muted,
.cta-band--project p.text-lg {
  color: rgba(255, 255, 255, 0.92);
}
@media (max-width: 720px) {
  .cta-band--project {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cta-band--project .btn {
    width: 100%;
    justify-content: center;
  }
}
.project-detail-hero__title {
  margin-top: 0.35rem;
}
.project-detail-hero__summary {
  margin: 0.75rem 0 0;
  max-width: 40rem;
}
.project-detail-hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.project-detail-hero__year {
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
}
.project-detail-hero__impact {
  font-size: 0.85rem;
}
.project-detail__cover-wrap {
  padding: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.project-detail__cover {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.project-detail__block {
  margin-bottom: 1.5rem;
}
.project-detail__h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}
.project-detail__prose {
  line-height: 1.8;
}
.project-detail__prose p {
  margin: 0 0 0.85rem;
}
.project-detail__prose p:last-child {
  margin-bottom: 0;
}
.project-detail__grid {
  margin-bottom: 1.5rem;
}
.project-detail__card .project-detail__h2 {
  margin-bottom: 0.65rem;
}
.project-detail__tech {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.project-detail__tech li {
  margin: 0;
}
.project-detail__tech-chip {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--primary);
}
.project-detail__block--results {
  border-inline-start: 4px solid rgba(0, 210, 122, 0.55);
}
.project-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.project-detail__gallery-item {
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.project-detail__gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.project-detail__team-wrap {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.project-detail__team-wrap .project-team-block {
  margin-inline: 0;
  border-top-style: solid;
}
.project-detail-notfound__card {
  padding: 2rem 1.5rem;
}

@media (max-width: 820px) {
  .services-page__grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .projects-page__grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 430px) {
  .project-card__impact {
    max-width: 100%;
  }
  .project-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 390px) {
  .header-actions {
    gap: 6px;
  }
  .header-actions .theme-toggle,
  .header-actions .menu-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    flex-basis: 42px;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 1.25rem);
  }
  .mobile-contact-bar__label {
    font-size: 0.66rem;
  }
}

/* --- Testimonials --- */
.testimonials-section.testimonials-is-collapsed .testimonial-card.is-extra {
  display: none !important;
}
.testimonials-section .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.35rem;
}
.testimonials-embed .testimonials-grid {
  margin-top: 0.25rem;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.45rem 1.35rem;
  text-align: right;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
}
.testimonial-card--nested {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 4px);
  box-shadow: none;
}
.testimonial-card--nested:hover {
  border-color: var(--accent);
  box-shadow: none;
}
.testimonial-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.testimonial-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.testimonial-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--surface-soft);
}
.testimonial-card__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(19, 141, 245, 0.12), rgba(0, 196, 107, 0.1));
}
.testimonial-card__flag {
  position: absolute;
  bottom: -2px;
  inset-inline-end: -4px;
  font-size: 1.1rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}
.testimonial-stars {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
}
.testimonial-stars__star {
  color: var(--border);
  font-size: 1.05rem;
  line-height: 1;
}
.testimonial-stars__star.is-on {
  color: #f5b301;
}
[data-theme="dark"] .testimonial-stars__star.is-on {
  color: #ffd54a;
}
.testimonial-card__quote {
  margin: 0;
  flex: 1;
}
.testimonial-card__quote p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
.testimonial-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}
.testimonial-card__name {
  display: block;
  font-style: normal;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
}
.testimonial-card__role,
.testimonial-card__company {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}
.testimonial-card__company {
  font-weight: 600;
  color: var(--accent);
}
.testimonial-card__project-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.testimonial-card__project-link:hover {
  color: var(--accent-2);
}
[data-theme="dark"] .testimonial-card__avatar {
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .testimonial-card__avatar--initials {
  background: linear-gradient(145deg, rgba(27, 168, 255, 0.2), rgba(0, 210, 211, 0.12));
}

/* --- Blog / Knowledge center --- */
.blog-hero__lead {
  max-width: 52ch;
}
.blog-hero__visual {
  min-height: 220px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  border: 1px solid var(--header-border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.blog-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(27, 168, 255, 0.35), transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(0, 210, 211, 0.25), transparent 50%);
  opacity: 0.9;
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.blog-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  transition: box-shadow 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}
.blog-filter-chip:hover {
  border-color: rgba(19, 141, 245, 0.45);
  color: var(--text);
}
.blog-filter-chip.is-active {
  background: linear-gradient(135deg, rgba(27, 168, 255, 0.18), rgba(0, 210, 211, 0.12));
  border-color: rgba(19, 141, 245, 0.55);
  color: var(--primary);
  box-shadow: var(--shadow);
}
.blog-categories-head {
  margin-bottom: 1.25rem;
  text-align: center;
}
.blog-categories-head__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.blog-categories-head__lead {
  margin: 0;
  max-width: 52ch;
  margin-inline: auto;
  font-size: 0.98rem;
}
.blog-category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.blog-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
html[data-theme="light"] .blog-category-card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.blog-category-card:hover {
  border-color: rgba(19, 141, 245, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.blog-category-card.is-active {
  border-color: rgba(19, 141, 245, 0.55);
  background: linear-gradient(160deg, rgba(27, 168, 255, 0.14), rgba(0, 210, 211, 0.08));
  color: var(--primary);
}
.blog-category-card__name {
  font-size: 0.98rem;
  line-height: 1.35;
}
.blog-category-card__count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.blog-category-card.is-active .blog-category-card__count {
  color: var(--text-muted);
}
.blog-latest {
  margin-bottom: 2.5rem;
}
.blog-latest__head {
  margin-bottom: 1.25rem;
}
.blog-latest__title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}
.blog-latest__sub {
  margin: 0;
  font-size: 0.95rem;
}
.blog-grid--latest {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.blog-archive-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}
.blog-continue-nav {
  margin-bottom: 1.25rem;
}
.blog-rest-empty {
  margin: 1rem 0 0;
  text-align: center;
}
.blog-infinite__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 0 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.blog-infinite__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: blog-spin 0.7s linear infinite;
}
@keyframes blog-spin {
  to {
    transform: rotate(360deg);
  }
}
.blog-infinite__end {
  text-align: center;
  padding: 0.75rem 0 0;
  font-size: 0.92rem;
}
.blog-infinite__more-btn {
  display: block;
  margin: 1.75rem auto 0;
}
.blog-infinite__sentinel {
  height: 1px;
  margin-top: 0.5rem;
}
.blog-noscript-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.blog-noscript-pager--script {
  margin-top: 1rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blog-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.blog-grid--home {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 14px 36px rgba(0, 0, 0, 0.22);
}
html[data-theme="light"] .blog-card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 10px 28px rgba(15, 23, 42, 0.06);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.blog-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
  overflow: hidden;
}
.blog-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__media:has(img) .blog-card__media-fallback {
  opacity: 0;
}
.blog-card__media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  height: 100%;
  font-weight: 800;
  color: var(--accent);
  background: linear-gradient(145deg, #0a1f44, #101827);
}
.blog-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.blog-card__cat {
  align-self: flex-start;
}
.blog-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.45;
}
.blog-card__title a {
  color: var(--primary);
}
.blog-card__title a:hover {
  color: var(--accent);
}
.blog-card__excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta-row {
  margin-top: 0.15rem;
}
.blog-card__meta-line {
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.blog-card__dot {
  opacity: 0.65;
}
.blog-card__author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}
.blog-card__author-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}
.blog-card__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__author-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.35;
}
.blog-card__author-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--primary);
  text-decoration: none;
}
.blog-card__author-name:hover {
  color: var(--accent);
}
.blog-card__author-name--plain {
  color: var(--text);
  cursor: default;
}
.blog-card__author-role {
  font-size: 0.8rem;
  line-height: 1.35;
}
.blog-card--compact .blog-card__excerpt {
  -webkit-line-clamp: 2;
}
.blog-card__meta {
  margin-top: auto;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.blog-card__meta--footer {
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.blog-card__read {
  font-weight: 800;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-card__cta {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.65rem;
}
.blog-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.blog-article__hero-inner {
  max-width: 820px;
}
.blog-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.blog-breadcrumb a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-article__eyebrow {
  margin: 0 0 0.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.blog-article__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
}
.blog-article__byline {
  font-size: 0.95rem;
}
.blog-article__cover-wrap {
  margin-top: 0.5rem;
}
.blog-article__cover {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.blog-article__cover img {
  width: 100%;
  height: auto;
}
.blog-article__layout {
  max-width: 820px;
}
.prose-blog {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.prose-blog__inner {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.prose-blog h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
  color: var(--primary);
  line-height: 1.35;
}
.prose-blog h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
  color: var(--primary);
}
.prose-blog p {
  margin: 0 0 1rem;
  line-height: 1.95;
  color: var(--text);
}
.prose-blog ul,
.prose-blog ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
  color: var(--text);
}
.prose-blog li {
  margin-bottom: 0.35rem;
  line-height: 1.85;
}
.prose-blog blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-inline-start: 4px solid var(--accent);
  background: var(--surface-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}
.prose-blog a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose-blog hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.blog-inline-service {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}
.blog-article-cta {
  margin-top: 2rem;
  padding: 1.35rem 1.25rem;
  background: linear-gradient(135deg, rgba(27, 168, 255, 0.12), rgba(0, 210, 211, 0.08));
  border: 1px solid rgba(19, 141, 245, 0.35);
}
.blog-article-cta__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.blog-article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.blog-tags__label {
  font-weight: 700;
  margin-inline-end: 0.25rem;
}
.blog-tag {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.section-title-left {
  text-align: start;
  margin-bottom: 1.25rem;
}
.blog-notfound__inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.blog-notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.home-blog .section-head {
  margin-bottom: 2rem;
}

.blog-card__author-name {
  font-weight: 700;
  color: var(--primary);
}
.blog-card__meta-sep {
  margin: 0 0.2rem;
  color: var(--muted);
}

.blog-article__author-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem;
}
.blog-author-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  margin-top: 0.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, rgba(27, 168, 255, 0.06), rgba(0, 210, 211, 0.04));
}
html[data-theme="light"] .blog-author-card {
  background: var(--surface);
}
.blog-author-card--featured {
  border-color: rgba(19, 141, 245, 0.28);
}
.blog-author-card__avatar-link {
  flex-shrink: 0;
}
.blog-author-card__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(19, 141, 245, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.blog-author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-author-card__label {
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.blog-author-card__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.blog-author-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-author-card__name:hover {
  color: var(--accent);
}
.blog-author-card__name--plain {
  text-decoration: none;
  cursor: default;
}
.blog-author-card__name--plain:hover {
  color: var(--primary);
}
.blog-author-card__flag-inline .team-flag-badge {
  font-size: 1.35rem;
  line-height: 1;
}
.blog-author-card__role {
  margin: 0.25rem 0 0;
  font-weight: 700;
  color: var(--accent);
}
.blog-author-card__spec {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}
.blog-author-card__flag {
  margin-top: 0.35rem;
}
.blog-author-card__flag .team-flag-badge {
  font-size: 1.25rem;
}
@media (max-width: 640px) {
  .blog-filters {
    justify-content: flex-start;
  }
}

/* Careers & talent apply */
.careers-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.career-card {
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}
.career-card__summary {
  line-height: 1.65;
}
.career-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--surface-soft) 90%, var(--border));
  color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.career-pill--accent {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.career-status {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 0.35rem;
}
.career-status--open {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.careers-general-cta {
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
}
.careers-apply-progress {
  margin-bottom: 1.25rem;
}
.careers-apply-progress__track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}
.careers-apply-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 0.25s ease;
}
.careers-apply-progress__label {
  margin-top: 0.5rem !important;
}
.careers-step:not(.is-active) {
  display: none;
}
.careers-step.is-active {
  display: block;
}
.careers-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem 1rem;
}
.careers-skill-row select {
  width: 100%;
}
.careers-apply-form .hidden {
  display: none !important;
}
