/* -----------------------------------------------------------
   One21 Communications - Glassmorphism + Soft Premium UI
   Theme:
   - Off White: #F8FAFC
   - Primary Blue: #2563EB
   - Accent Yellow: #FACC15
   - Glass: rgba(255,255,255,0.15) + blur
----------------------------------------------------------- */

:root {
  --bg: #f8fafc;
  --bg-2: #eef2ff;

  /* Text is intentionally blue-forward for a premium fintech feel */
  --text: rgba(30, 58, 138, 0.94);
  --muted: rgba(30, 58, 138, 0.74);
  --muted-2: rgba(30, 58, 138, 0.56);

  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --yellow: #facc15;
  --yellow-2: #fde047;

  --glass: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.22);
  --stroke: rgba(15, 23, 42, 0.08);

  --shadow: 0 18px 60px rgba(2, 6, 23, 0.14);
  --shadow-soft: 0 12px 40px rgba(2, 6, 23, 0.1);

  --radius: 20px;
  --radius-sm: 16px;

  --container: 1160px;
  --header-h: 74px;
  --float-edge: calc(16px + env(safe-area-inset-right));
  --float-bottom: calc(16px + env(safe-area-inset-bottom));
  --float-gap: 14px;
  --to-top-size: 56px;
  --wa-float-size: 56px;

  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-heading: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Helvetica, Arial;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  color-scheme: light dark;
}

section[id],
div[id],
article[id] {
  scroll-margin-top: 110px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 560px at 12% 8%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(860px 560px at 88% 0%, rgba(250, 204, 21, 0.18), transparent 62%),
    radial-gradient(1100px 700px at 50% 110%, rgba(37, 99, 235, 0.12), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section,
.hero,
.trust-bar,
.page-hero {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

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

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

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

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.75);
  outline-offset: 3px;
}

/* -----------------------------------------------------------
   Ambient background (gradient + subtle particles)
----------------------------------------------------------- */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: 0.48;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 16% 18%, rgba(37, 99, 235, 0.16), transparent 62%),
    radial-gradient(900px 640px at 86% 16%, rgba(250, 204, 21, 0.14), transparent 65%),
    radial-gradient(900px 640px at 42% 92%, rgba(37, 99, 235, 0.1), transparent 62%);
  filter: blur(10px) saturate(1.05);
  animation: auroraMove 14s ease-in-out infinite alternate;
}

/* Performance: background effects are optional. If you ever re-add the canvas/aurora,
   you can enable them by setting `data-bg="on"` on <html> and removing this rule. */
html:not([data-bg="on"]) #bg-canvas,
html:not([data-bg="on"]) .bg-aurora {
  display: none;
}

@keyframes auroraMove {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, -12px, 0) scale(1.02);
  }
}

/* -----------------------------------------------------------
   Header / Navigation
----------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.9);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.1);
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(248, 250, 252, 0.65);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-header.is-scrolled {
  background: rgba(248, 250, 252, 0.78);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(250, 204, 21, 0.14));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.brand-mark img {
  display: block;
  width: 44px;
  height: 20px;
  object-fit: contain;
}

.brand-sub {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.nav-link {
  position: relative;
  color: rgba(30, 58, 138, 0.86);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms ease,
    text-shadow 240ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(250, 204, 21, 0),
    rgba(250, 204, 21, 0.92),
    rgba(250, 204, 21, 0.92),
    rgba(250, 204, 21, 0)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.nav-link:hover {
  color: rgba(30, 58, 138, 0.96);
  transform: translateY(-1px);
  text-shadow: 0 10px 26px rgba(250, 204, 21, 0.16);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: rgba(30, 58, 138, 0.98);
}

.nav-link.is-active::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* When JS adds the sliding indicator, keep active underline "single" (avoid double lines). */
@media (min-width: 761px) {
  .primary-nav.has-indicator .nav-link.is-active::after,
  .primary-nav.has-indicator .nav-link[aria-current="page"]::after {
    transform: scaleX(0);
  }
}

.nav-cta {
  color: rgba(30, 58, 138, 0.96);
}

/* Sliding indicator (JS positions it for a premium "tab" feel) */
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 6px;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(250, 204, 21, 0),
    rgba(250, 204, 21, 0.95),
    rgba(250, 204, 21, 0.95),
    rgba(250, 204, 21, 0)
  );
  opacity: 0;
  transform: translateX(0);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  pointer-events: none;
}

@media (max-width: 760px) {
  .nav-indicator {
    display: none;
  }
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(30, 58, 138, 0.58);
  border-bottom: 2px solid rgba(30, 58, 138, 0.58);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 220ms ease, border-color 220ms ease;
}

.nav-dropdown[data-open] .caret {
  transform: rotate(-135deg) translateY(1px);
  border-color: rgba(250, 204, 21, 0.9);
}

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

.nav-toggle {
  display: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  height: 42px;
  width: 46px;
  color: rgba(15, 23, 42, 0.92);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
  touch-action: manipulation;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(250, 204, 21, 0.35);
}

.hamburger {
  display: block;
  width: 18px;
  height: 12px;
  margin: 0 auto;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(15, 23, 42, 0.75);
  transition: transform 220ms ease, top 220ms ease, opacity 220ms ease;
}

.hamburger::before {
  top: 0;
}

.hamburger::after {
  top: 10px;
}

.site-header.nav-open .hamburger::before {
  top: 5px;
  transform: rotate(45deg);
}

.site-header.nav-open .hamburger::after {
  top: 5px;
  transform: rotate(-45deg);
}

.desktop-only {
  display: inline-flex;
}

/* -----------------------------------------------------------
   Mega menu (glass dropdown)
----------------------------------------------------------- */

.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(980px, calc(100vw - 2rem));
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 12px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 280ms ease, transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mega-menu::before {
  /* Hover bridge so moving the mouse from the toggle to the menu doesn't close it */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
  background: transparent;
}

.mega-menu.glass {
  /* Less transparent for readability (still glassy) */
  background: rgba(248, 250, 252, 0.96);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(18px);
}

.nav-dropdown[data-open] .mega-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mega-col {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.mega-head {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.mega-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease,
    background 220ms ease;
}

.mega-item:hover,
.mega-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.12);
}

.mi-ico {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgba(37, 99, 235, 0.95);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  transition: transform 220ms ease, filter 220ms ease;
}

.mega-item:hover .mi-ico {
  transform: rotate(-6deg) scale(1.02);
  filter: drop-shadow(0 12px 20px rgba(37, 99, 235, 0.14));
}

.mi-ico svg {
  width: 18px;
  height: 18px;
}

.mi-title {
  display: block;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 13px;
}

.mi-desc {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.mega-preview {
  padding: 14px;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 10px;
}

.mega-preview.glass-soft {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.08);
}

.pv-kicker {
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(37, 99, 235, 0.85);
}

.pv-title {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.pv-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.pv-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* -----------------------------------------------------------
   Glass surfaces
----------------------------------------------------------- */

.glass {
  background: var(--glass);
  backdrop-filter: blur(15px);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.glass-soft {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
}

/* -----------------------------------------------------------
   Buttons + micro-interactions
----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease,
    background 220ms ease, color 220ms ease, filter 220ms ease;
  position: relative;
  overflow: hidden;
  user-select: none;
  min-height: 44px;
  touch-action: manipulation;
}

.btn-small {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(250, 204, 21, 1), rgba(253, 224, 71, 1));
  color: rgba(30, 58, 138, 0.96);
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 18px 45px rgba(250, 204, 21, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(250, 204, 21, 0.3);
  filter: saturate(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(15, 23, 42, 0.1);
  color: rgba(30, 58, 138, 0.94);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

.btn-whatsapp {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.3);
  color: rgba(15, 23, 42, 0.92);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.42);
  box-shadow: 0 18px 45px rgba(37, 211, 102, 0.12);
}

.wa-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.wa-icon svg {
  width: 18px;
  height: 18px;
}

/* Ripple effect (created via JS) */
.ripple {
  position: absolute;
  border-radius: 999px;
  transform: scale(0);
  animation: ripple 650ms ease-out;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.45), rgba(37, 99, 235, 0.22), transparent 70%);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(8);
    opacity: 0;
  }
}

/* -----------------------------------------------------------
   Sections
----------------------------------------------------------- */

.section {
  padding: 92px 0;
  position: relative;
}

.section-muted {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), rgba(255, 255, 255, 0.02));
}

.section-head {
  max-width: 840px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(26px, 2.3vw, 40px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* -----------------------------------------------------------
   Hero (Services page)
----------------------------------------------------------- */

.hero {
  padding: 86px 0 20px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(1100px 700px at 18% 10%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(900px 600px at 88% 20%, rgba(250, 204, 21, 0.2), transparent 62%),
    linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(248, 250, 252, 0.9), rgba(250, 204, 21, 0.06));
  background-size: 240% 240%;
  /* Keep static to avoid continuous repaints on low-end devices */
  animation: none;
}

@keyframes heroGradient {
  0% {
    background-position: 10% 20%;
  }
  100% {
    background-position: 90% 30%;
  }
}

.hero-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.float-ico {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.1);
  /* Static (performance) */
  animation: none;
}

.float-ico svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 14px 22px rgba(37, 99, 235, 0.14));
}

.float-ico svg path {
  stroke: rgba(37, 99, 235, 0.95);
}

.float-ico svg path.accent {
  stroke: rgba(250, 204, 21, 0.95);
}

.ico-1 {
  top: 22%;
  left: 6%;
  animation-duration: 10s;
}
.ico-2 {
  top: 16%;
  right: 10%;
  animation-duration: 9.5s;
}
.ico-3 {
  bottom: 18%;
  left: 12%;
  animation-duration: 11s;
}
.ico-4 {
  bottom: 14%;
  right: 8%;
  animation-duration: 10.5s;
}

@keyframes floatIco {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(10px, -12px, 0) rotate(3deg);
  }
}

/* Floating fintech icons (inline SVG in HTML for reliability) */

.hero-card {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(34px, 3.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 62ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 22px 0 16px;
  max-width: 620px;
}

.hero-cta .btn {
  min-width: 190px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
}

.hero-cta .btn-primary {
  min-width: 210px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 620px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(30, 58, 138, 0.9);
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.12);
}

.hero-visual {
  display: grid;
  place-items: center;
}

.ui-mock {
  width: 100%;
  padding: 16px;
}

.ui-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.ui-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(250, 204, 21, 1), rgba(37, 99, 235, 0.7));
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.2);
}

.ui-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 14px;
}

.ui-pill {
  margin-left: auto;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.55);
  background: rgba(250, 204, 21, 0.18);
  color: rgba(15, 23, 42, 0.85);
}

.ui-body {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.ui-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ui-metric {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.42);
}

.ui-metric .k {
  display: block;
  color: var(--muted-2);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ui-metric .v {
  display: block;
  margin-top: 8px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: rgba(15, 23, 42, 0.9);
}

.ui-bars {
  height: 96px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: end;
}

.ui-bars span {
  display: block;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(250, 204, 21, 0.55));
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.12);
  animation: barPulse 3s ease-in-out infinite alternate;
}

.ui-bars span:nth-child(2) {
  animation-delay: 120ms;
}
.ui-bars span:nth-child(3) {
  animation-delay: 240ms;
}
.ui-bars span:nth-child(4) {
  animation-delay: 360ms;
}
.ui-bars span:nth-child(5) {
  animation-delay: 480ms;
}
.ui-bars span:nth-child(6) {
  animation-delay: 600ms;
}

@keyframes barPulse {
  from {
    transform: translateY(0);
    filter: saturate(0.98);
  }
  to {
    transform: translateY(-2px);
    filter: saturate(1.06);
  }
}

.ui-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ui-row span {
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
  position: relative;
}

.ui-row span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.24), rgba(250, 204, 21, 0.24), transparent);
  transform: translateX(-35%);
  animation: shimmer 2.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-45%);
  }
  100% {
    transform: translateX(45%);
  }
}

/* -----------------------------------------------------------
   Trust bar
----------------------------------------------------------- */

.trust-bar {
  padding: 12px 0 4px;
}

.trust-strip {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.trust-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 900;
}

.trust-logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.logo-pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.5);
  color: rgba(30, 58, 138, 0.84);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -----------------------------------------------------------
   Services section
----------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  padding: 20px;
  display: grid;
  gap: 10px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease,
    background 220ms ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(600px 220px at 20% 20%, rgba(37, 99, 235, 0.18), transparent 55%),
    radial-gradient(600px 220px at 85% 20%, rgba(250, 204, 21, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.22);
}

.service-card:hover::before {
  opacity: 1;
}

.svc-ico {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: rgba(37, 99, 235, 0.95);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  transition: transform 220ms ease, filter 220ms ease;
  position: relative;
  z-index: 1;
}

.service-card:hover .svc-ico {
  transform: rotate(-6deg) translateY(-1px);
  filter: drop-shadow(0 16px 24px rgba(250, 204, 21, 0.16));
}

.svc-ico svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.service-details {
  margin-top: 16px;
  padding: 20px;
}

.details-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.details-sub {
  margin: 0 0 12px;
}

.accordion {
  display: grid;
  gap: 10px;
}

.acc-item {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.acc-item summary::-webkit-details-marker {
  display: none;
}

.acc-item summary::after {
  content: "+";
  font-weight: 900;
  color: rgba(250, 204, 21, 0.95);
  transition: transform 220ms ease;
}

.acc-item[open] summary::after {
  transform: rotate(45deg);
}

.acc-body {
  padding: 0 14px 14px;
  color: var(--muted);
  line-height: 1.75;
}

.acc-body ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.acc-body li {
  margin: 6px 0;
}

/* -----------------------------------------------------------
   Feature cards (tilt + glow)
----------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 18px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease,
    background 220ms ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(700px 260px at 20% 20%, rgba(250, 204, 21, 0.16), transparent 55%),
    radial-gradient(700px 260px at 90% 20%, rgba(37, 99, 235, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.feature-card:hover {
  --ty: -6px;
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  opacity: 1;
}

.f-ico {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: rgba(37, 99, 235, 0.95);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
  transition: transform 220ms ease;
}

.feature-card:hover .f-ico {
  transform: rotate(6deg) scale(1.02);
}

.f-ico svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 12px 0 8px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* -----------------------------------------------------------
   AI-first / GEO sections
----------------------------------------------------------- */

.subhead {
  margin: 28px 0 16px;
  max-width: 760px;
}

.subhead-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.split-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.split-panel h2,
.audit-panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.geo-stack {
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.36);
  box-shadow: var(--shadow-soft);
}

.mini-num,
.case-kicker,
.insight-card span,
.ai-node span {
  display: inline-flex;
  color: rgba(37, 99, 235, 0.96);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.mini-card h3,
.ai-node h3,
.case-card h3,
.insight-card h3 {
  margin: 8px 0;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.mini-card p,
.ai-node p,
.case-card p,
.insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ai-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}

.ai-node {
  padding: 18px;
  min-height: 210px;
  position: relative;
  overflow: hidden;
}

.ai-node::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(250, 204, 21, 0.9));
  opacity: 0.7;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.industry-pill {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-weight: 900;
  color: rgba(30, 58, 138, 0.94);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.industry-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.36);
  box-shadow: var(--shadow-soft);
}

.case-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-card,
.insight-card {
  padding: 20px;
  min-height: 230px;
  display: grid;
  align-content: start;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.case-card:hover,
.insight-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.42);
  box-shadow: var(--shadow);
}

.faq-grid {
  display: grid;
  gap: 12px;
}

.audit-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}

.score-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.score-strip span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(30, 58, 138, 0.88);
  font-weight: 900;
  font-size: 13px;
}

.audit-form {
  display: grid;
  gap: 12px;
}

.audit-form label {
  display: grid;
  gap: 8px;
}

.audit-form label span {
  color: rgba(30, 58, 138, 0.86);
  font-weight: 900;
  font-size: 13px;
}

.ai-assistant-teaser {
  margin-top: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.08);
}

.ai-assistant-teaser strong {
  display: block;
  color: rgba(30, 58, 138, 0.94);
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.ai-assistant-teaser p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.ai-pulse {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(250, 204, 21, 1), rgba(37, 99, 235, 0.86));
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.36);
  animation: pulse-ring 1.9s ease-in-out infinite;
  margin-top: 4px;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.34);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(250, 204, 21, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
    transform: scale(1);
  }
}

.topic-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.topic-card,
.article-card {
  padding: 20px;
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease,
    background 220ms ease;
}

.topic-card::before,
.article-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 90px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.topic-card:hover,
.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.44);
  box-shadow: var(--shadow);
}

.topic-card:hover::before,
.article-card:hover::before {
  opacity: 1;
  transform: translateY(-8px);
}

.topic-card span,
.article-meta {
  color: rgba(37, 99, 235, 0.84);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.topic-card strong,
.article-card h3 {
  margin: 0;
  color: rgba(30, 58, 138, 0.95);
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.topic-card p,
.article-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.tag-list,
.ai-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.tag-list span,
.ai-chip-row span {
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(30, 58, 138, 0.82);
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.content-system {
  padding: 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}

/* Optional JS tilt (uses CSS vars) */
.tilt {
  --tx: 0px;
  --ty: 0px;
  transform: perspective(900px) translate3d(var(--tx), var(--ty), 0)
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

/* -----------------------------------------------------------
   Carousel / Testimonials
----------------------------------------------------------- */

.carousel {
  padding: 18px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  will-change: transform;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial {
  flex: 0 0 100%;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.t-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: rgba(15, 23, 42, 0.9);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(250, 204, 21, 0.3));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.1);
}

.t-name {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.t-role {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.t-quote {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}

.carousel-controls {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  width: 48px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(30, 58, 138, 0.94);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease,
    box-shadow 200ms ease;
  touch-action: manipulation;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.38);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.12);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Theme toggle (uses .icon-btn base styles) */
.theme-toggle {
  width: 58px;
  height: 42px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(120px 70px at 28% 30%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(120px 70px at 72% 70%, rgba(250, 204, 21, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 0;
}

.theme-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 18%,
    rgba(255, 255, 255, 0) 36%
  );
  transform: translateX(-140%);
  opacity: 0.7;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  pointer-events: none;
}

.theme-toggle:hover::before {
  opacity: 1;
}

.theme-toggle:hover::after {
  transform: translateX(140%);
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(-35deg);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.dot-btn[aria-current="true"] {
  background: rgba(250, 204, 21, 0.95);
  border-color: rgba(250, 204, 21, 0.95);
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.18);
}

/* -----------------------------------------------------------
   CTA box
----------------------------------------------------------- */

.cta-box {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(900px 500px at 20% 30%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(250, 204, 21, 0.16), transparent 62%);
  filter: blur(14px);
  opacity: 0.95;
  pointer-events: none;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.cta-box p {
  margin: 0;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* -----------------------------------------------------------
   Page hero (About/Solutions/Contact)
----------------------------------------------------------- */

.page-hero {
  padding: 80px 0 18px;
}

.page-hero-card {
  padding: 22px;
}

.page-hero-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(30px, 2.8vw, 46px);
}

.page-hero-card p {
  margin: 0;
  line-height: 1.8;
}

.page-hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.prose {
  padding: 22px;
  line-height: 1.85;
}

.prose h2 {
  margin: 18px 0 10px;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  font-size: 20px;
}

.prose p {
  margin: 0 0 12px;
  color: var(--muted);
}

.prose ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
}

.prose li {
  margin: 8px 0;
}

.prose a {
  color: rgba(37, 99, 235, 0.95);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(250, 204, 21, 0.65);
  text-underline-offset: 3px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

.prose a:hover {
  color: rgba(29, 78, 216, 0.98);
  text-decoration-color: rgba(37, 99, 235, 0.5);
}

.mv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mv-card {
  padding: 18px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease,
    background 220ms ease;
}

.mv-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.22);
}

.mv-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.mv-card p {
  margin: 0;
  line-height: 1.75;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-card {
  padding: 18px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease,
    background 220ms ease;
}

.trust-card:hover {
  --ty: -6px;
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.22);
}

.trust-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.trust-card p {
  margin: 0;
  line-height: 1.7;
}

/* -----------------------------------------------------------
   Stats
----------------------------------------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.stats-grid.stats-compact {
  grid-template-columns: repeat(2, 1fr);
  max-width: 680px;
}

.stat-card {
  padding: 18px;
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.45);
  box-shadow: var(--shadow-soft);
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(250, 204, 21, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.02em;
}

/* -----------------------------------------------------------
   Flip cards (Solutions)
----------------------------------------------------------- */

.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.flip-card {
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  min-height: 280px;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card:hover .flip-inner {
  transform:
}

.flip-card.is-flipped .flip-inner {
  transform: 
}

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.flip-front h3,
.flip-back h3 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.flip-front p {
  margin: 0;
  line-height: 1.75;
}

.flip-hint {
  margin-top: auto;
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(15, 23, 42, 0.75);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flip-back {
  transform: rotateY(180deg);
}

.flip-back ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.8);
  line-height: 1.75;
}

/* -----------------------------------------------------------
   Contact + Map
----------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: start;
}

.contact-details {
  padding: 18px;
}

.contact-details h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.details-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.d-label {
  display: block;
  width: 100%;
  color: var(--muted-2);
  font-weight: 900;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.details-list a {
  justify-self: start;
}

.details-list a:hover {
  color: rgba(37, 99, 235, 0.95);
}

.contact-actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.contact-form {
  padding: 18px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

label {
  font-weight: 900;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.86);
}

input,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.55);
  padding: 12px 12px;
  color: rgba(15, 23, 42, 0.92);
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

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

input:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.form-note {
  margin: 12px 0 0;
  min-height: 20px;
  color: rgba(37, 99, 235, 0.92);
  font-weight: 900;
}

.map-wrap {
  position: relative;
  overflow: hidden;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 35%, rgba(255, 255, 255, 0.12));
}

.map-info {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.12);
}

.map-info-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.map-info-text strong {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.map-info-text span {
  color: rgba(15, 23, 42, 0.72);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
}

.map-open {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .map-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-open {
    width: 100%;
    justify-content: center;
  }
}

/* -----------------------------------------------------------
   Footer
----------------------------------------------------------- */

.footer {
  padding: 46px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 16px;
  padding-bottom: 26px;
}

.brand-footer .brand-mark {
  box-shadow: none;
}

.footer-col h4 {
  margin: 6px 0 12px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.footer-subhead {
  margin-top: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(30, 58, 138, 0.88);
  font-weight: 900;
  transition: transform 220ms ease, color 220ms ease;
}

.footer-links a:hover {
  transform: translateX(4px);
  color: rgba(37, 99, 235, 0.95);
}

.social-row {
  display: flex;
  gap: 10px;
}

.social {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.55);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.social:hover {
  transform: translateY(-3px);
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.12);
}

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

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 14px 0 18px;
}

.bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.legal {
  display: flex;
  gap: 12px;
}

.legal a:hover {
  color: rgba(37, 99, 235, 0.95);
}

/* -----------------------------------------------------------
   Back to top + WhatsApp float
----------------------------------------------------------- */

.to-top {
  position: fixed;
  right: var(--float-edge);
  bottom: var(--float-bottom);
  width: var(--to-top-size);
  height: var(--to-top-size);
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.92);
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.2);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease,
    border-color 220ms ease, box-shadow 220ms ease;
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.2);
}

.to-top svg {
  width: 24px;
  height: 24px;
}

.wa-float {
  position: fixed;
  right: var(--float-edge);
  bottom: calc(var(--float-bottom) + var(--to-top-size) + var(--float-gap));
  width: var(--wa-float-size);
  height: var(--wa-float-size);
  border-radius: 18px;
  border: 1px solid rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.26);
  color: rgba(15, 23, 42, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 64px rgba(37, 211, 102, 0.26);
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease,
    box-shadow 220ms ease;
  z-index: 1000;
}

.wa-float:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, 0.7);
  background: rgba(37, 211, 102, 0.34);
  box-shadow: 0 24px 74px rgba(37, 211, 102, 0.34);
}

.wa-float svg {
  width: 24px;
  height: 24px;
}

.wa-float-option {
  width: auto;
  min-width: 132px;
  max-width: calc(100vw - 32px);
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wa-float-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-float-option svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.wa-float-sales {
  bottom: calc(var(--float-bottom) + var(--to-top-size) + var(--float-gap));
}

.wa-float-dev {
  bottom: calc(var(--float-bottom) + var(--to-top-size) + var(--float-gap) + 50px);
}

.wa-float-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.2);
  animation: waRing 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes waRing {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.2);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* -----------------------------------------------------------
   Scroll-triggered reveal animations
----------------------------------------------------------- */

[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  filter: none;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms ease;
  transition-delay: var(--delay, 0ms);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* -----------------------------------------------------------
   Responsive
----------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-panel,
  .audit-panel,
  .content-system {
    grid-template-columns: 1fr;
  }

  .ai-map,
  .industry-grid,
  .topic-grid,
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .mv-cards {
    grid-template-columns: 1fr;
  }

  .flip-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 860px) {
  .mega-menu {
    width: calc(100vw - 2rem);
    grid-template-columns: 1fr;
  }

  .mega-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }

  .desktop-only {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--header-h) + 10px);
    max-height: calc(100dvh - var(--header-h) - 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.18);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
    backdrop-filter: blur(14px);
  }

  .site-header.nav-open .primary-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.55);
  }

  .nav-link::after {
    display: none;
  }

  .mega-menu {
    position: static;
    width: 100%;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 10px 0 0;
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .mega-menu::before {
    content: none;
  }

  .nav-dropdown[data-open] .mega-menu {
    display: grid;
  }

  .mega-preview {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: none;
  }

  .hero-cta .btn,
  .hero-cta .btn-primary {
    width: 100%;
    min-width: 0;
  }

  .hero-badges {
    gap: 8px;
    max-width: none;
  }

  .badge {
    white-space: normal;
    text-align: center;
  }

  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .ai-map,
  .industry-grid,
  .topic-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .topic-card,
  .article-card {
    min-height: auto;
  }

  .ai-node,
  .case-card,
  .insight-card,
  .topic-card,
  .article-card {
    min-height: auto;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .float-ico {
    display: none; /* keep hero clean on small screens */
  }
}

/* -----------------------------------------------------------
   Reduced motion
----------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-aurora,
  .hero-bg,
  .float-ico,
  .ui-bars span,
  .ui-row span::after,
  .wa-float-ring {
    animation: none !important;
  }

  body,
  .carousel-track,
  [data-animate],
  .btn,
  .service-card,
  .feature-card,
  .stat-card,
  .social,
  .flip-inner {
    transition: none !important;
  }
}

@media (hover: none) {
  .btn:hover,
  .icon-btn:hover,
  .nav-toggle:hover,
  .nav-link:hover,
  .service-card:hover,
  .feature-card:hover,
  .topic-card:hover,
  .article-card:hover,
  .wa-float:hover,
  .to-top:hover {
    transform: none;
  }
}

/* -----------------------------------------------------------
   Page transitions (lightweight, no layout changes)
----------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: pageIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  body.page-exit {
    animation: pageOut 240ms ease both !important;
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pageOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* -----------------------------------------------------------
   Dark mode (toggle: <html class="theme-dark">)
----------------------------------------------------------- */

html.theme-dark {
  color-scheme: dark;

  --bg: #070812;
  --bg-2: #050610;

  --text: rgba(248, 250, 252, 0.92);
  --muted: rgba(248, 250, 252, 0.72);
  --muted-2: rgba(248, 250, 252, 0.55);

  --glass: rgba(2, 6, 23, 0.48);
  --glass-border: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.12);

  --shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 14px 46px rgba(0, 0, 0, 0.42);
}

html.theme-dark body {
  background:
    radial-gradient(900px 560px at 12% 8%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(860px 560px at 88% 0%, rgba(250, 204, 21, 0.18), transparent 62%),
    radial-gradient(1100px 700px at 50% 110%, rgba(37, 99, 235, 0.16), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

html.theme-dark .skip-link {
  background: rgba(2, 6, 23, 0.9);
  color: rgba(248, 250, 252, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}

html.theme-dark .site-header {
  background: rgba(7, 8, 18, 0.66);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .site-header.is-scrolled {
  background: rgba(7, 8, 18, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .brand-mark {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.22);
}

html.theme-dark .nav-link {
  color: rgba(248, 250, 252, 0.86);
}

html.theme-dark .nav-link:hover,
html.theme-dark .nav-link.is-active,
html.theme-dark .nav-link[aria-current="page"] {
  color: rgba(248, 250, 252, 0.96);
}

html.theme-dark .nav-cta {
  color: rgba(250, 204, 21, 0.92);
}

html.theme-dark .caret {
  border-right-color: rgba(248, 250, 252, 0.6);
  border-bottom-color: rgba(248, 250, 252, 0.6);
}

html.theme-dark .nav-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.5);
  color: rgba(248, 250, 252, 0.9);
}

html.theme-dark .nav-toggle:hover {
  background: rgba(2, 6, 23, 0.62);
  border-color: rgba(250, 204, 21, 0.22);
}

html.theme-dark .hamburger::before,
html.theme-dark .hamburger::after {
  background: rgba(248, 250, 252, 0.72);
}

@media (max-width: 760px) {
  html.theme-dark .primary-nav {
    background: rgba(2, 6, 23, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  }

  html.theme-dark .nav-link {
    background: rgba(2, 6, 23, 0.24);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

html.theme-dark .mega-menu.glass {
  background: rgba(2, 6, 23, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

html.theme-dark .mega-col {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.55);
}

html.theme-dark .mega-head {
  color: rgba(248, 250, 252, 0.62);
}

html.theme-dark .mega-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.6);
}

html.theme-dark .mega-item:hover,
html.theme-dark .mega-item:focus-visible {
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

html.theme-dark .mi-desc {
  color: rgba(248, 250, 252, 0.64);
}

html.theme-dark .mega-preview.glass-soft {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .glass-soft {
  background: rgba(2, 6, 23, 0.34);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

html.theme-dark .btn-ghost {
  background: rgba(2, 6, 23, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(248, 250, 252, 0.92);
}

html.theme-dark .btn-ghost:hover {
  border-color: rgba(250, 204, 21, 0.26);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

html.theme-dark .btn-whatsapp {
  color: rgba(248, 250, 252, 0.92);
}

html.theme-dark .eyebrow,
html.theme-dark .lead {
  color: var(--muted);
}

html.theme-dark .badge,
html.theme-dark .logo-pill {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.5);
  color: rgba(248, 250, 252, 0.86);
}

html.theme-dark .ui-head,
html.theme-dark .ui-metric {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.42);
}

html.theme-dark .ui-pill {
  color: rgba(2, 6, 23, 0.92);
}

html.theme-dark .ui-metric .v {
  color: rgba(248, 250, 252, 0.92);
}

html.theme-dark .icon-btn {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.5);
  color: rgba(248, 250, 252, 0.92);
}

html.theme-dark .icon-btn:hover {
  border-color: rgba(250, 204, 21, 0.26);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

html.theme-dark .section-muted {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(2, 6, 23, 0.06));
}

html.theme-dark .service-card p,
html.theme-dark .feature-card p,
html.theme-dark .mini-card p,
html.theme-dark .ai-node p,
html.theme-dark .case-card p,
html.theme-dark .insight-card p,
html.theme-dark .article-card p,
html.theme-dark .ai-assistant-teaser p {
  color: var(--muted);
}

html.theme-dark .prose {
  color: rgba(248, 250, 252, 0.92);
}

html.theme-dark .service-card:hover,
html.theme-dark .feature-card:hover,
html.theme-dark .mini-card:hover,
html.theme-dark .industry-pill:hover,
html.theme-dark .case-card:hover,
html.theme-dark .insight-card:hover,
html.theme-dark .topic-card:hover,
html.theme-dark .article-card:hover,
html.theme-dark .mv-card:hover,
html.theme-dark .trust-card:hover,
html.theme-dark .stat-card:hover {
  background: rgba(2, 6, 23, 0.52);
  border-color: rgba(250, 204, 21, 0.26);
}

html.theme-dark .industry-pill,
html.theme-dark .score-strip span,
html.theme-dark .tag-list span,
html.theme-dark .ai-chip-row span {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.42);
  color: rgba(248, 250, 252, 0.86);
}

html.theme-dark .topic-card span,
html.theme-dark .article-meta {
  color: rgba(250, 204, 21, 0.9);
}

html.theme-dark .topic-card strong,
html.theme-dark .article-card h3,
html.theme-dark .ai-assistant-teaser strong {
  color: rgba(248, 250, 252, 0.94);
}

html.theme-dark .ai-assistant-teaser {
  background: rgba(2, 6, 23, 0.42);
  border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .audit-form label span {
  color: rgba(248, 250, 252, 0.86);
}

html.theme-dark .prose p,
html.theme-dark .prose ul {
  color: rgba(248, 250, 252, 0.86);
}

html.theme-dark .prose p.muted,
html.theme-dark .prose ul.muted {
  color: var(--muted);
}

html.theme-dark .prose a {
  color: rgba(250, 204, 21, 0.95);
  text-decoration-color: rgba(37, 99, 235, 0.55);
}

html.theme-dark .prose a:hover {
  color: rgba(253, 224, 71, 0.98);
  text-decoration-color: rgba(250, 204, 21, 0.55);
}

html.theme-dark .acc-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.42);
}

html.theme-dark .acc-body {
  color: rgba(248, 250, 252, 0.78);
}

html.theme-dark .details-list li {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.42);
}

html.theme-dark .t-role {
  color: var(--muted);
}

html.theme-dark .t-quote {
  color: rgba(248, 250, 252, 0.86);
}

html.theme-dark label {
  color: rgba(248, 250, 252, 0.86);
}

html.theme-dark input,
html.theme-dark textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.42);
  color: rgba(248, 250, 252, 0.92);
}

html.theme-dark input:focus,
html.theme-dark textarea:focus {
  border-color: rgba(250, 204, 21, 0.35);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.14);
  background: rgba(2, 6, 23, 0.52);
}

html.theme-dark .form-note {
  color: rgba(250, 204, 21, 0.92);
}

html.theme-dark .footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.28);
}

html.theme-dark .footer-links a {
  color: rgba(248, 250, 252, 0.78);
}

html.theme-dark .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .social {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.48);
}

html.theme-dark .to-top {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.6);
  color: rgba(248, 250, 252, 0.92);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}

html.theme-dark .map-overlay {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.2),
    transparent 35%,
    rgba(2, 6, 23, 0.18)
  );
}

html.theme-dark .map-info {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

html.theme-dark .map-info-text span {
  color: rgba(248, 250, 252, 0.72);
}

/* Theme toggle icon swap */
html.theme-dark .theme-toggle .icon-moon {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6) rotate(35deg);
}

html.theme-dark .theme-toggle .icon-sun {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Premium transition when switching themes (disabled under reduced-motion) */
html.theme-dark body,
body {
  transition: background 260ms ease, color 260ms ease;
}
