/* SAS AI Engineering — futuristic light industrial AI microsite */

:root {
  --ai-navy: #0b4c8a;
  --ai-navy-deep: #083a6b;
  --ai-cyan: #00b4d8;
  --ai-cyan-soft: rgba(0, 180, 216, 0.14);
  --ai-sky: #e4eef8;
  --ai-line: #c9d7e6;
  --ai-text: #1a2a3a;
  --ai-muted: #536878;
  --ai-surface: #fbfcfe;
  --ai-bg: #e4eaf1;
  --ai-font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ai-glow: 0 0 0 1px rgba(0, 180, 216, 0.18), 0 12px 36px rgba(11, 76, 138, 0.1);
}

body.ai-site,
body {
  font-family: var(--ai-font);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(0, 180, 216, 0.12), transparent 55%),
    radial-gradient(900px 420px at 95% 5%, rgba(11, 76, 138, 0.1), transparent 50%),
    linear-gradient(180deg, #eef3f8 0%, var(--ai-bg) 38%, #e2e9f1 100%);
  color: var(--ai-text);
  position: relative;
}

body.ai-site::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(11, 76, 138, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 76, 138, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

/* Stack page sections above the grid overlay — exclude fixed UI chrome */
body.ai-site > *:not(.whatsapp-float):not(.ai-welcome):not(.nav-dropdown-menu) {
  position: relative;
  z-index: 1;
}

/* Portaled nav menus are body children — never inherit the page z-index:1 stack */
body.ai-site > .nav-dropdown-menu.nav-dropdown-menu--portal {
  position: fixed !important;
  z-index: 20000 !important;
}

/* Keep header above page content so Solutions dropdown is not covered by hero/main.
   Note: backdrop-filter on sticky headers can clip overflow in Firefox — avoid it. */
body.ai-site > .site-header {
  z-index: 5000;
  overflow: visible !important;
}

body.ai-site > main,
body.ai-site > footer.site-footer,
body.ai-site > .site-footer {
  z-index: 0;
}

/* WhatsApp FAB must stay viewport-fixed (do not inherit relative from body > *) */
body.ai-site > .whatsapp-float,
body.ai-site > #whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  left: auto;
  z-index: 5100;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: rgba(248, 250, 252, 0.98) !important;
  border-bottom: 1px solid var(--ai-line);
  box-shadow: 0 1px 0 rgba(11, 76, 138, 0.06), 0 8px 28px rgba(11, 40, 70, 0.04);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

.site-header .nav,
.site-header .nav-dropdown,
.site-header .container.header-inner,
.site-header .header-inner {
  overflow: visible !important;
}

.site-header .nav-dropdown {
  position: relative;
  z-index: 5001;
}

.site-header .container.header-inner {
  min-height: 84px;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  gap: 1.75rem 2.25rem;
  width: min(1280px, 94%);
}

.site-header .brand {
  text-decoration: none;
  color: inherit;
  gap: 0.9rem;
  min-width: 14rem;
}

.site-header .brand-logo {
  width: 108px;
  height: 64px;
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid var(--ai-line);
  background: #fff;
}

.site-header .brand-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ai-text);
  letter-spacing: -0.01em;
}

.site-header .brand-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ai-navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header .nav {
  gap: 0.35rem 1.15rem;
  font-size: 0.98rem;
  font-weight: 600;
  flex-wrap: nowrap;
}

.site-header .nav > a:not(.nav-cta) {
  color: #3a5166 !important;
  padding: 0.55rem 0.15rem !important;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
}

.site-header .nav > a:not(.nav-cta):hover {
  color: var(--ai-navy) !important;
  background: transparent;
  border-bottom-color: rgba(11, 76, 138, 0.35);
}

.site-header .nav > a:not(.nav-cta).active {
  color: var(--ai-navy) !important;
  background: transparent;
  border-bottom-color: var(--ai-navy);
  font-weight: 700;
}

.site-header .nav-dropdown-toggle {
  color: #3a5166 !important;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.55rem 0.15rem;
  border-bottom: 2px solid transparent;
}

.site-header .nav-dropdown-toggle:hover,
.site-header .nav-dropdown-toggle.is-open,
.site-header .nav-dropdown-toggle.nav-current {
  color: var(--ai-navy) !important;
  border-bottom-color: rgba(11, 76, 138, 0.35);
}

.site-header .nav-dropdown-toggle.is-open,
.site-header .nav-dropdown-toggle.nav-current {
  border-bottom-color: var(--ai-navy);
  font-weight: 700;
}

.site-header .nav-dropdown-menu {
  background: #ffffff;
  border: 1px solid var(--ai-line);
  box-shadow: 0 14px 36px rgba(11, 40, 70, 0.16);
  border-radius: 12px;
  padding: 0.55rem;
  min-width: 15rem;
  z-index: 5002;
}

.site-header .nav-dropdown-menu--wide {
  min-width: min(32rem, 92vw);
  right: 0;
  left: auto;
}

/*
  Do NOT show menus via :hover/:focus-within while they still live under the header —
  that paints a “ghost” menu behind the hero. JS portals + .active is the only open path.
*/
body.ai-site .nav-dropdown-menu:not(.nav-dropdown-menu--portal) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.ai-site .nav-dropdown-menu.active,
body.ai-site .nav-dropdown-menu.nav-dropdown-menu--portal {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Portaled menus are moved to <body> so they never sit under the hero */
.nav-dropdown-menu.nav-dropdown-menu--portal {
  position: fixed !important;
  z-index: 20000 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: #ffffff !important;
  border: 1px solid var(--ai-line, #c9d7e6);
  box-shadow: 0 18px 44px rgba(11, 40, 70, 0.22);
}

.site-header .nav-dropdown-menu a {
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  color: var(--ai-text);
  font-weight: 600;
}

.site-header .nav-dropdown-menu a:hover {
  background: var(--ai-sky);
  color: var(--ai-navy);
}

.site-header .nav > a.nav-cta,
.site-header .nav > a.nav-cta--desktop,
.site-header a.nav-cta {
  margin-left: 0.65rem;
  padding: 0.72rem 1.25rem !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  border-radius: 10px !important;
  background: var(--ai-navy) !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  border-bottom: none !important;
  text-shadow: none;
}

.site-header .nav > a.nav-cta:hover,
.site-header a.nav-cta:hover {
  background: var(--ai-navy-deep) !important;
  color: #ffffff !important;
  filter: none;
  border-bottom: none !important;
}

.mobile-nav {
  background: #fff;
}

.mobile-nav a {
  color: var(--ai-text);
  padding: 0.9rem 1rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.mobile-nav a.active {
  color: var(--ai-navy);
  background: var(--ai-sky);
  border-radius: 10px;
}

.mobile-nav-cta {
  background: var(--ai-navy) !important;
  color: #fff !important;
  margin-top: 0.85rem;
  border-radius: 10px;
  text-align: center;
}

/* Keep desktop nav comfortable; workshop earlier hamburger if needed */
@media (min-width: 901px) and (max-width: 1280px) {
  .site-header .brand-subtitle {
    display: block;
  }

  .site-header .nav {
    gap: 0.25rem 0.85rem;
    font-size: 0.92rem;
  }

  .site-header .nav > a.nav-cta--desktop {
    padding: 0.65rem 1.05rem !important;
    font-size: 0.9rem !important;
    color: #ffffff !important;
  }
}

/* ---------- Sections ---------- */
.section {
  background: var(--ai-bg);
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
}

.section-muted {
  background: #e2e9f1 !important;
}

.section-header {
  margin-bottom: 2.1rem;
}

.section-header .eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ai-navy) !important;
  background: linear-gradient(90deg, #e8f6fb, var(--ai-sky)) !important;
  border: 1px solid #b7d7ea;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.section-header .eyebrow::before,
.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ai-cyan);
  box-shadow: 0 0 0 3px var(--ai-cyan-soft);
}

.capability-card,
.ai-solution-card,
.ai-compare-card,
.ai-stack-step,
.ai-cta-band,
.ai-faq-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.capability-card:hover,
.ai-solution-card:hover,
.ai-compare-card:hover,
.ai-stack-step:hover {
  border-color: #9ec9e4 !important;
  box-shadow: var(--ai-glow);
  transform: translateY(-2px);
}

.ai-feature-list i {
  color: var(--ai-navy) !important;
}

.section-header h2 {
  color: var(--ai-text) !important;
  font-family: var(--ai-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
}

.section-header p,
.capability-card p,
.highlight-card p,
.ai-compare-card p,
.ai-process-step p {
  color: var(--ai-muted) !important;
}

.capability-card,
.highlight-card,
.ai-compare-card,
.ai-process-step,
.ai-faq details,
.ai-contact-aside,
.contact-card {
  background: var(--ai-surface) !important;
  border: 1px solid var(--ai-line) !important;
  color: var(--ai-text);
  box-shadow: 0 6px 20px rgba(11, 40, 70, 0.05);
  border-radius: 14px;
}

.capability-card h3,
.highlight-card h3,
.ai-compare-card h3,
.ai-process-step h3,
.ai-contact-aside h3,
.contact-card h3 {
  color: var(--ai-text) !important;
  font-weight: 700;
}

.capability-icon,
.highlight-icon,
.ai-solution-card .card-icon {
  width: 3.35rem !important;
  height: 3.35rem !important;
  min-width: 3.35rem;
  display: grid !important;
  place-items: center !important;
  margin-bottom: 1rem;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #0d5aa0 0%, #083a6b 100%) !important;
  color: #ffffff !important;
  font-size: 1.35rem !important;
  box-shadow: 0 10px 22px rgba(11, 76, 138, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.capability-icon i,
.highlight-icon i,
.ai-solution-card .card-icon i,
.capability-icon .fa-solid,
.highlight-icon .fa-solid,
.ai-solution-card .card-icon .fa-solid,
.capability-icon svg,
.highlight-icon svg,
.ai-solution-card .card-icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  opacity: 1 !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  line-height: 1;
}

.capability-card:hover .capability-icon,
.highlight-card:hover .highlight-icon,
.ai-solution-card:hover .card-icon {
  background: linear-gradient(145deg, #0f67b5 0%, #0b4c8a 100%) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.capability-card:hover .capability-icon i,
.highlight-card:hover .highlight-icon i,
.ai-solution-card:hover .card-icon i {
  color: #ffffff !important;
}

.ai-prose p {
  color: var(--ai-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 48rem;
  margin: 0 0 1rem;
}

.ai-prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Hero ---------- */
.ai-hero-stage {
  position: relative;
  min-height: clamp(460px, 62vh, 600px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #c5d4e4;
}

.ai-hero-stage__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ai-hero-stage__media picture,
.ai-hero-stage__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.ai-hero-stage__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(20, 40, 62, 0.55) 0%, rgba(20, 40, 62, 0.28) 38%, rgba(20, 40, 62, 0.1) 68%, rgba(20, 40, 62, 0.04) 100%);
}

.ai-hero-stage__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 3.75rem 0 3rem;
}

.ai-hero-panel {
  max-width: min(36rem, 100%);
  padding: 1.75rem 1.85rem 1.9rem;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 246, 252, 0.94) 100%);
  border: 1px solid rgba(160, 200, 230, 0.85);
  box-shadow: var(--ai-glow), 0 18px 44px rgba(12, 28, 48, 0.18);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.ai-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ai-cyan), var(--ai-navy));
}

.ai-hero-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 100% 0%, var(--ai-cyan-soft), transparent 70%);
  pointer-events: none;
}

.ai-hero-panel .eyebrow {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: var(--ai-sky);
  color: var(--ai-navy) !important;
  margin-bottom: 0.85rem;
  font-size: 0.74rem;
  border: 1px solid #c9dcee;
}

.ai-hero-panel h1 {
  margin: 0 0 0.85rem;
  color: #12263a !important;
  font-family: var(--ai-font);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-shadow: none;
}

.ai-hero-panel .hero-copy {
  margin: 0;
  color: #4a6074 !important;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
}

.ai-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.ai-hero-actions .primary {
  background: var(--ai-navy) !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  border-radius: 10px;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
}

.ai-hero-actions .primary:hover {
  background: var(--ai-navy-deep) !important;
  filter: none;
}

.ai-hero-actions .secondary,
.ai-hero-actions a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #b7c9db !important;
  background: #fff !important;
  color: var(--ai-navy) !important;
  text-decoration: none;
  font-weight: 700;
}

.ai-hero-actions .secondary:hover {
  border-color: var(--ai-navy) !important;
  background: var(--ai-sky) !important;
}

.ai-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid #dde7f1;
}

.ai-proof-item {
  color: var(--ai-muted);
  font-size: 0.9rem;
}

.ai-proof-item strong {
  display: block;
  font-size: 1rem;
  color: var(--ai-text);
  margin-bottom: 0.1rem;
}

.ai-hero-float {
  position: absolute;
  z-index: 2;
  right: max(1.5rem, 4vw);
  bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 210px;
}

.ai-hero-chip {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d5e2ef;
  color: var(--ai-text);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(20, 45, 70, 0.08);
}

.ai-hero-chip i {
  color: var(--ai-navy);
  margin-right: 0.4rem;
}

@media (max-width: 900px) {
  .ai-hero-stage {
    min-height: 500px;
  }

  .ai-hero-panel {
    max-width: 100%;
    padding: 1.35rem;
  }

  .ai-hero-float {
    display: none;
  }

  .ai-hero-stage__veil {
    background: linear-gradient(180deg, rgba(20, 40, 62, 0.5) 0%, rgba(20, 40, 62, 0.28) 55%, rgba(20, 40, 62, 0.12) 100%);
  }
}

/* ---------- Cards / content ---------- */
.ai-solution-grid,
.capability-grid,
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}

.capability-card,
.highlight-card {
  padding: 1.35rem 1.4rem 1.5rem;
}

.ai-solution-card {
  display: block;
  padding: 1.45rem;
  border-radius: 14px;
  border: 1px solid var(--ai-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(11, 40, 70, 0.045);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ai-solution-card:hover {
  transform: translateY(-2px);
  border-color: #a9c5e0;
  box-shadow: 0 12px 28px rgba(11, 40, 70, 0.09);
}

.ai-solution-card.featured {
  border-color: #9ec0e0;
  background: linear-gradient(180deg, #f7fbff 0%, #fff 55%);
}

.ai-solution-card .card-icon {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ai-sky);
  color: var(--ai-navy);
  margin-bottom: 0.9rem;
  font-size: 1.15rem;
}

.ai-solution-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  color: var(--ai-text);
  font-weight: 700;
}

.ai-solution-card p {
  margin: 0;
  color: var(--ai-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.ai-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--ai-navy);
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.7rem;
}

.ai-banner {
  margin: 0 0 2rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ai-line);
  box-shadow: 0 8px 24px rgba(11, 40, 70, 0.06);
}

.ai-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ai-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.ai-gallery-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ai-line);
  background: #fff;
  box-shadow: 0 8px 22px rgba(11, 40, 70, 0.06);
}

.ai-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ai-gallery-card:hover img {
  transform: scale(1.04);
}

.ai-gallery-card figcaption {
  padding: 0.75rem 0.9rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ai-text);
}

@media (max-width: 960px) {
  .ai-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ai-gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- Stack flow / compare / tables ---------- */
.ai-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem 0.35rem;
  margin: 1.5rem 0 2rem;
}

.ai-stack-step {
  flex: 1 1 9.5rem;
  max-width: 11.5rem;
  min-width: 8.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.15rem 0.85rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--ai-line);
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 40, 70, 0.05);
}

.ai-stack-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: var(--ai-sky);
  color: var(--ai-navy);
  font-size: 0.78rem;
  font-weight: 700;
}

.ai-stack-step__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #0d5aa0 0%, #083a6b 100%);
  color: #fff;
  font-size: 1.15rem;
}

.ai-stack-step__icon i {
  color: #fff !important;
}

.ai-stack-step__title {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ai-text);
  line-height: 1.3;
}

.ai-stack-step__sub {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ai-muted);
  line-height: 1.35;
}

.ai-stack-arrow {
  display: flex;
  align-items: center;
  color: #8fa6bc;
  font-size: 0.85rem;
  padding: 0 0.15rem;
}

@media (max-width: 900px) {
  .ai-stack-arrow {
    display: none;
  }

  .ai-stack-step {
    max-width: none;
    flex: 1 1 calc(50% - 0.65rem);
  }
}

.ai-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.ai-compare-grid,
.ai-process-grid,
.ai-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.ai-compare-card,
.ai-process-step {
  padding: 1.35rem 1.4rem 1.45rem;
}

.ai-compare-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--ai-muted);
}

.ai-compare-card li {
  margin-bottom: 0.4rem;
  line-height: 1.45;
}

.ai-process-step .step-num,
.ai-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--ai-sky);
  color: var(--ai-navy);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ai-spec-wrap {
  overflow-x: auto;
  border: 1px solid var(--ai-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 40, 70, 0.04);
}

.ai-spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.ai-spec-table th,
.ai-spec-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e3ebf3;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ai-spec-table tr:last-child th,
.ai-spec-table tr:last-child td {
  border-bottom: none;
}

.ai-spec-table th {
  width: 32%;
  max-width: 14rem;
  color: var(--ai-text);
  font-weight: 700;
  background: #f3f7fb;
}

.ai-spec-table td {
  color: var(--ai-muted);
}

.ai-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ai-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--ai-line);
  background: #fff;
  color: var(--ai-text);
  line-height: 1.5;
}

.ai-feature-list i {
  margin-top: 0.2rem;
  color: var(--ai-navy) !important;
  flex-shrink: 0;
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.ai-tag {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--ai-sky);
  color: var(--ai-navy);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #c5d8eb;
}

.ai-faq {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.ai-faq-item,
.ai-faq details {
  padding: 0;
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--ai-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 252, 0.96));
  box-shadow: 0 8px 20px rgba(11, 40, 70, 0.04);
  overflow: hidden;
}

.ai-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  font-weight: 700;
  color: var(--ai-text);
}

.ai-faq summary::-webkit-details-marker {
  display: none;
}

.ai-faq-q {
  line-height: 1.4;
}

.ai-faq-toggle {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  background: var(--ai-sky);
  border: 1px solid #c5d8eb;
  position: relative;
}

.ai-faq-toggle::before,
.ai-faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.7rem;
  height: 2px;
  background: var(--ai-navy);
  transform: translate(-50%, -50%);
}

.ai-faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 0.2s ease;
}

.ai-faq-item[open] .ai-faq-toggle::after,
.ai-faq details[open] .ai-faq-toggle::after {
  opacity: 0;
}

.ai-faq-item[open],
.ai-faq details[open] {
  border-color: #9ec9e4;
  box-shadow: var(--ai-glow);
}

.ai-faq-a {
  padding: 0 1.2rem 1.15rem;
  border-top: 1px solid #e3ebf3;
}

.ai-faq-a p,
.ai-faq p {
  color: var(--ai-muted);
  margin: 0.85rem 0 0;
  line-height: 1.65;
  font-size: 0.98rem;
}

/* ---------- Contact form ---------- */
.ai-contact-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.35rem;
  align-items: start;
}

.ai-contact-aside {
  padding: 1.55rem 1.5rem 1.65rem;
}

.ai-contact-aside .eyebrow {
  margin-bottom: 0.45rem;
}

.ai-contact-aside h3 {
  margin: 0 0 1rem;
}

.ai-contact-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.ai-contact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ai-line);
}

.ai-contact-list li:last-child {
  border-bottom: none;
}

.ai-contact-list span:first-child {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ai-muted);
}

.ai-contact-list a,
.ai-contact-list span:last-child {
  color: var(--ai-text);
  font-weight: 600;
  text-decoration: none;
}

.ai-contact-list a:hover {
  color: var(--ai-navy);
}

.ai-aside-link {
  display: inline-flex;
  font-weight: 700;
  color: var(--ai-navy);
  text-decoration: none;
}

.contact-card.ai-contact-form,
.ai-contact-form {
  padding: 1.75rem 1.7rem 1.8rem;
  position: relative;
}

.ai-form-head {
  margin-bottom: 1.35rem;
}

.ai-form-head h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.ai-form-lead {
  margin: 0;
  color: var(--ai-muted);
  line-height: 1.55;
}

.ai-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem 1rem;
}

.ai-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 !important;
  color: var(--ai-text) !important;
  font-weight: 600;
}

.ai-field span {
  font-size: 0.88rem;
}

.ai-field--full {
  grid-column: 1 / -1;
}

.ai-contact-form input,
.ai-contact-form textarea,
.ai-contact-form select,
.contact-card input,
.contact-card textarea,
.contact-card select {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.75rem 0.85rem !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 1px solid #c5d5e6 !important;
  color: var(--ai-text) !important;
  font: inherit;
  line-height: 1.4;
}

.ai-contact-form input:focus,
.ai-contact-form textarea:focus,
.ai-contact-form select:focus {
  outline: none;
  border-color: var(--ai-navy) !important;
  box-shadow: 0 0 0 3px rgba(11, 76, 138, 0.12);
}

.ai-form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.ai-form-actions .primary,
.ai-contact-form button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border: none;
  border-radius: 10px;
  background: var(--ai-navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.ai-form-actions .primary:hover {
  background: var(--ai-navy-deep);
}

.ai-form-actions .form-note,
.contact-card .form-note {
  margin: 0;
  color: var(--ai-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .ai-compare {
    grid-template-columns: 1fr;
  }

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

  .ai-field--full {
    grid-column: auto;
  }
}

/* ---------- Closing CTA band (image + copy) ---------- */
.ai-cta-section {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.ai-cta-band {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #9ec9e4;
  background: #fff;
  box-shadow: var(--ai-glow), 0 16px 40px rgba(11, 40, 70, 0.1);
  min-height: 320px;
}

.ai-cta-band__media {
  min-height: 280px;
  background: #c5d4e4;
}

.ai-cta-band__media picture,
.ai-cta-band__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.ai-cta-band__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.1rem 2.2rem 2.25rem;
  background: linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
}

.ai-cta-band__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 100% 0%, var(--ai-cyan-soft), transparent 70%);
  pointer-events: none;
}

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

.ai-cta-band__body h2 {
  margin: 0 0 0.75rem;
  color: var(--ai-text);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.ai-cta-band__body > p:not(.eyebrow) {
  margin: 0 0 1.35rem;
  color: var(--ai-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 34rem;
}

.ai-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.ai-cta-band__actions .primary,
.ai-cta-band__actions a.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  background: var(--ai-navy) !important;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  border: none !important;
}

.ai-cta-band__actions .primary:hover {
  background: var(--ai-navy-deep) !important;
}

.ai-cta-band__actions .secondary,
.ai-cta-band__actions a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #b7c9db !important;
  background: #fff !important;
  color: var(--ai-navy) !important;
  font-weight: 700;
  text-decoration: none;
}

.ai-cta-band__actions .secondary:hover {
  background: var(--ai-sky) !important;
  border-color: var(--ai-navy) !important;
}

@media (max-width: 900px) {
  .ai-cta-band {
    grid-template-columns: 1fr;
  }

  .ai-cta-band__media,
  .ai-cta-band__media img {
    min-height: 220px;
    max-height: 260px;
  }

  .ai-cta-band__body {
    padding: 1.5rem 1.35rem 1.65rem;
  }
}

/* ---------- Footer ---------- */
.site-footer.ai-footer {
  background: #dce5ef !important;
  color: var(--ai-muted);
  border-top: 1px solid #c5d3e3;
  padding: 3.25rem 0 1.5rem;
  margin-top: 0;
}

.ai-footer-brand {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.ai-footer-brand img {
  width: 118px;
  height: auto;
  border: 1px solid var(--ai-line);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
  background: #fff;
}

.ai-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  background: var(--ai-navy);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.ai-footer-cta:hover {
  background: var(--ai-navy-deep);
}

.ai-footer-social {
  margin-top: 1.1rem;
}

/* Utility bar inherited from styles.css — ensure contrast on AI header */
.ai-footer .site-switcher,
.site-header .site-switcher {
  background: #071a2e;
}

.ai-footer .share-button,
.ai-footer .social-links a.social-link-x {
  background: rgba(11, 76, 138, 0.08);
  color: var(--ai-navy);
  border-color: rgba(11, 76, 138, 0.22);
}

.ai-footer .social-links a:not(.social-link-x) {
  background: rgba(11, 76, 138, 0.1);
  color: var(--ai-navy);
  border-color: rgba(11, 76, 138, 0.22);
}

.ai-footer .share-button:hover,
.ai-footer .social-links a:hover {
  background: var(--ai-navy);
  color: #fff;
}

.ai-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 2rem 1.75rem;
  margin-bottom: 1.85rem;
  align-items: start;
}

.ai-footer .footer-col--brand .footer-title {
  margin-top: 0.15rem;
}

.ai-footer .footer-title {
  color: var(--ai-text) !important;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-footer .footer-text {
  color: var(--ai-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  max-width: 22rem;
}

.ai-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-footer .footer-links li {
  margin-bottom: 0.5rem;
}

.ai-footer .footer-links a {
  color: #4a6278 !important;
  text-decoration: none;
  font-size: 0.93rem;
}

.ai-footer .footer-links a:hover {
  color: var(--ai-navy) !important;
}

.ai-footer .footer-bottom {
  border-top: 1px solid #c5d3e3;
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: #6a8298;
}

.ai-footer .footer-bottom p {
  margin: 0;
}

@media (max-width: 960px) {
  .ai-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ai-footer .footer-col--brand {
    grid-column: 1 / -1;
  }

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

@media (max-width: 600px) {
  .ai-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Neutralize conflicting dark hero leftovers */
.hero.ai-hero::before {
  display: none !important;
}

/* ---------- AI start screen (neural mesh) ---------- */
.ai-welcome {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  z-index: 5000;
  background: linear-gradient(160deg, #020810 0%, #061526 42%, #0a1f38 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.ai-welcome[hidden] {
  display: none !important;
}

.ai-welcome--active {
  opacity: 1;
  visibility: visible;
}

.ai-welcome--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.ai-welcome-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.ai-welcome__video,
.ai-welcome__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.ai-welcome__video {
  object-fit: cover;
  object-position: center center;
  background: #020810;
  filter: saturate(1.1) contrast(1.08) brightness(1.03);
  transition: opacity 0.55s ease;
}

.ai-welcome--hold .ai-welcome__video {
  opacity: 0;
}

.ai-welcome--hold {
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(20, 90, 140, 0.35) 0%, transparent 70%),
    linear-gradient(160deg, #020810 0%, #061526 42%, #0a1f38 100%);
}

.ai-welcome__video[hidden],
.ai-welcome__canvas[hidden] {
  display: none !important;
}

.ai-welcome__canvas {
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.ai-welcome--hold .ai-welcome__canvas:not([hidden]) {
  opacity: 1;
}

/* Soft SAS branding over the matrix video (not burned into the file) */
.ai-welcome__watermarks {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
  transform: rotate(-22deg);
}

.ai-welcome__watermark-grid {
  position: absolute;
  inset: 0;
  background-image: var(--wm);
  background-repeat: repeat;
  background-size: 200px auto;
  background-position: center;
  opacity: 0.07;
  filter: brightness(2.4) contrast(1.15);
  mix-blend-mode: screen;
}

.ai-welcome__watermark-marks {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: min(12vh, 5.5rem) min(8vw, 4rem);
  align-content: center;
  justify-items: center;
  padding: 8vh 6vw;
  opacity: 0.14;
  mix-blend-mode: screen;
}

.ai-welcome__watermark-marks span {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.85rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(210, 240, 255, 0.95);
  text-shadow: 0 0 18px rgba(80, 180, 255, 0.25);
  white-space: nowrap;
  user-select: none;
}

.ai-welcome--solutions .ai-welcome__watermarks {
  opacity: 0.7;
}

.ai-welcome__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.ai-welcome__skip {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 3;
  border: 1px solid rgba(0, 200, 230, 0.45);
  background: rgba(8, 28, 48, 0.78);
  color: #e8f6fb;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ai-welcome__skip:hover {
  background: rgba(0, 180, 216, 0.22);
  border-color: rgba(0, 220, 255, 0.7);
}

.ai-welcome__splash[hidden],
.ai-welcome__solutions[hidden] {
  display: none !important;
}

.ai-welcome__splash {
  text-align: center;
  padding: 1.5rem;
  max-width: min(92vw, 560px);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ai-welcome--active:not(.ai-welcome--solutions) .ai-welcome__splash.ai-welcome__splash--ready {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ai-welcome__logo {
  width: min(280px, 58vw);
  height: auto;
  display: block;
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 0 28px rgba(0, 180, 216, 0.35));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.55rem 0.85rem;
}

.ai-welcome__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #5ee4ff;
}

.ai-welcome__label {
  margin: 0;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 700;
  color: #f2f8fc;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.ai-welcome__sub {
  margin: 0.55rem 0 0;
  color: rgba(210, 230, 245, 0.88);
  font-size: 1rem;
  font-weight: 500;
}

.ai-welcome__solutions {
  width: min(960px, 94vw);
  max-height: min(78dvh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(
    165deg,
    rgba(6, 22, 40, 0.22) 0%,
    rgba(4, 14, 28, 0.18) 55%,
    rgba(2, 10, 20, 0.2) 100%
  );
  border: 1px solid rgba(0, 220, 255, 0.42);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 48px rgba(0, 200, 255, 0.14),
    0 24px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px) saturate(1.2);
  -webkit-backdrop-filter: blur(4px) saturate(1.2);
  opacity: 0;
  transform: translateY(16px);
}

.ai-welcome--solutions .ai-welcome__solutions {
  animation: aiWelcomePanelIn 0.55s cubic-bezier(0.33, 1, 0.45, 1) both;
}

@keyframes aiWelcomePanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-welcome__solutions-title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #f5faff;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 180, 216, 0.25);
}

.ai-welcome__solutions-lead {
  margin: 0 0 1.2rem;
  text-align: center;
  color: rgba(210, 235, 250, 0.95);
  font-size: 0.95rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.ai-welcome__solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.ai-welcome__group-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7aefff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.ai-welcome__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-welcome__links li + li {
  margin-top: 0.28rem;
}

.ai-welcome__link {
  display: block;
  color: #f0f8fc;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  transition: background 0.18s ease, color 0.18s ease;
}

.ai-welcome__link:hover,
.ai-welcome__link:focus-visible {
  background: rgba(0, 180, 216, 0.28);
  color: #b8f7ff;
}

@media (max-width: 900px) {
  .ai-welcome__solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ai-welcome__solutions-grid {
    grid-template-columns: 1fr;
  }

  .ai-welcome__logo {
    width: min(220px, 64vw);
  }
}

/* ---------- Page entrance / scroll motion ---------- */
@keyframes aiHeroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.ai-site.ai-motion-ready:not(.ai-welcome-active) .ai-hero-panel {
  animation: aiHeroIn 0.75s cubic-bezier(0.33, 1, 0.45, 1) both;
}

body.ai-site.ai-motion-ready:not(.ai-welcome-active) .ai-hero-float {
  animation: aiHeroIn 0.85s 0.15s cubic-bezier(0.33, 1, 0.45, 1) both;
}

.ai-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.33, 1, 0.45, 1),
    transform 0.55s cubic-bezier(0.33, 1, 0.45, 1);
  transition-delay: var(--ai-reveal-delay, 0ms);
}

.ai-reveal.ai-reveal--in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ai-reveal,
  body.ai-site.ai-motion-ready:not(.ai-welcome-active) .ai-hero-panel,
  body.ai-site.ai-motion-ready:not(.ai-welcome-active) .ai-hero-float {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
