/* BionicAdri visual polish — gold/steel over generic indigo. Loaded last. */

:root {
  --primary: #c4a36a;
  --secondary: #8eb4cc;
  --ba-gold: #c4a36a;
  --ba-gold-hi: #e8d5a3;
  --ba-gold-ink: #1a1408;
  --ba-steel: #7eb0d4;
  --ba-gold-soft: rgba(196, 163, 106, 0.16);
  --ba-gold-line: rgba(196, 163, 106, 0.42);
}

html {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

/* Loaded fonts only — Space Grotesk was referenced but never imported */
body.reimagine,
body.pro {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

body.reimagine .re-display,
body.reimagine .re-hero h1,
body.reimagine .re-section__title,
body.reimagine .fx-wordmark__name {
  font-family: "Syne", "DM Sans", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* Header: hairline gold, calmer glass */
header[role="banner"] {
  border-bottom: 1px solid var(--ba-gold-line);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

header[role="banner"] .logo span {
  font-weight: 750;
  letter-spacing: -0.03em;
}

.header-actions .header-cta,
a.header-cta {
  background: transparent;
  color: var(--ba-gold-hi);
  border: 1px solid var(--ba-gold-line);
  font-weight: 700;
  box-shadow: none;
}

.header-actions .header-cta:hover,
a.header-cta:hover {
  background: var(--ba-gold-soft);
  color: var(--ba-gold-hi);
  filter: none;
}

html[data-theme="light"] .header-actions .header-cta,
html[data-theme="light"] a.header-cta {
  color: var(--ba-gold-ink);
}

/* Primary CTAs: machined plate, gold as metal edge — not a gold fill */
.re-btn--primary {
  background: linear-gradient(180deg, #1c2118 0%, #0e120c 100%);
  color: #f3f1ea;
  box-shadow: inset 0 1px 0 rgba(228, 195, 122, 0.18);
  border: 1px solid var(--ba-gold-line);
}

.re-btn--primary:hover,
.re-btn--primary:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ba-gold);
  color: var(--ba-gold-hi);
  background: #12160f;
  box-shadow: inset 0 1px 0 rgba(228, 195, 122, 0.28);
}

.re-btn--ghost:hover,
.re-btn--ghost:focus-visible {
  border-color: var(--ba-gold);
}

.re-btn:focus-visible,
.header-cta:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--ba-gold);
  outline-offset: 3px;
}

/* Hero video chrome */
.ex-hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ba-gold-line);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 80px rgba(0, 0, 0, 0.45);
}

.ex-hero-visual__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05070b;
}

.hero-video__open {
  border-color: var(--ba-gold-line);
  background: oklch(10% 0.02 80 / 0.62);
}

.hero-video__open:hover,
.hero-video__open:focus-visible {
  border-color: var(--ba-gold-hi);
  background: oklch(14% 0.03 80 / 0.78);
}

.hero-video__open-ico {
  background: linear-gradient(180deg, #d8bc82 0%, #b08940 100%);
  color: var(--ba-gold-ink);
}

.hero-video__muted-badge {
  border-color: var(--ba-gold-line);
  letter-spacing: 0.08em;
}

/* Trust + cards */
.ex-trust__dot {
  background: var(--ba-gold);
  box-shadow: 0 0 10px rgba(196, 163, 106, 0.55);
}

.re-uc,
.re-bento__cell,
.re-plan,
.ba-partner,
.re-flow {
  border-color: rgba(255, 255, 255, 0.1);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.re-uc:hover,
.re-bento__cell:hover,
.ba-partner:hover,
.re-flow:hover {
  border-color: var(--ba-gold-line);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.re-plan--featured {
  border-color: var(--ba-gold);
  box-shadow: 0 0 0 1px var(--ba-gold-line), 0 24px 60px rgba(0, 0, 0, 0.35);
}

.re-plan__ribbon {
  background: linear-gradient(180deg, #d8bc82 0%, #b08940 100%);
  color: var(--ba-gold-ink);
}

.re-pricing-tab.is-active {
  border-color: var(--ba-gold);
  color: var(--ba-gold-hi);
}

.re-bento__progress-fill,
.re-bento__badge {
  background: linear-gradient(90deg, #b08940, #e8d5a3);
  color: var(--ba-gold-ink);
}

.re-section__kicker {
  color: var(--ba-gold);
  letter-spacing: 0.14em;
}

/* Icons that were left as emoji */
.re-bento__icon,
.re-comp__mark,
.re-uc__emoji {
  color: var(--ba-gold-hi);
}

.re-uc__emoji .bio-ico,
.re-bento__icon .bio-ico,
.re-comp__mark .bio-ico {
  width: 1.45rem;
  height: 1.45rem;
}

/* MD · IA must not sit on WhatsApp (both were bottom-right) */
.ai-md-fab {
  right: auto;
  left: max(0.85rem, env(safe-area-inset-left));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  border-color: var(--ba-gold-line);
  background: oklch(12% 0.02 80 / 0.9);
  color: var(--ba-gold-hi);
}

.ai-md-fab:hover,
.ai-md-fab:focus-visible {
  border-color: var(--ba-gold-hi);
}

/* Contact form feedback */
.re-form__status {
  margin-top: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.re-form__status[data-state="ok"] {
  background: rgba(94, 207, 154, 0.12);
  border: 1px solid rgba(94, 207, 154, 0.35);
  color: #b8f0d4;
}

.re-form__status[data-state="err"] {
  background: rgba(224, 122, 106, 0.12);
  border: 1px solid rgba(224, 122, 106, 0.4);
  color: #ffd0c8;
}

.re-form__status[hidden] {
  display: none !important;
}

.re-btn[disabled] {
  opacity: 0.55;
  cursor: wait;
}

/* Light theme: keep gold readable */
html[data-theme="light"] .re-btn--primary,
html[data-theme="light"] .header-actions .header-cta {
  color: var(--ba-gold-ink);
}

html[data-theme="light"] .re-section__kicker {
  color: #8a6a2a;
}

html[data-theme="light"] .ai-md-fab {
  background: rgba(255, 255, 255, 0.92);
  color: #6b4f16;
  border-color: rgba(176, 137, 64, 0.4);
}

html[data-theme="light"] .re-form__status[data-state="ok"] {
  color: #14532d;
}

html[data-theme="light"] .re-form__status[data-state="err"] {
  color: #7f1d1d;
}

/* Agentic diagram recovered */
.re-agentic__svg {
  width: 100%;
  height: auto;
  max-width: 520px;
  display: block;
  margin: 0 auto;
}

.re-ag-node__bg {
  fill: oklch(22% 0.03 80);
  stroke: var(--ba-gold-line);
  stroke-width: 1.5;
}

.re-ag-node--core .re-ag-node__bg {
  fill: oklch(28% 0.05 80);
  stroke: var(--ba-gold);
}

.re-ag-node__label {
  fill: #f4efe4;
  font-size: 8px;
  font-weight: 700;
  text-anchor: middle;
  font-family: "DM Sans", system-ui, sans-serif;
}

.re-ag-link {
  stroke: rgba(196, 163, 106, 0.28);
  stroke-width: 1.2;
  fill: none;
}

.re-ag-link--active {
  stroke: rgba(196, 163, 106, 0.7);
}

.re-ag-halo {
  fill: none;
  stroke: rgba(196, 163, 106, 0.12);
  stroke-width: 1;
}

.re-ag-pulse {
  fill: #e8d5a3;
}

@media (prefers-reduced-motion: reduce) {
  .re-uc,
  .re-bento__cell,
  .re-plan,
  .ba-partner,
  .re-flow,
  .re-btn--primary,
  .hero-video__open {
    transition: none;
  }
}

/* Light theme: nav/wordmark were white-on-white */
html[data-theme="light"] header[role="banner"] {
  background: rgba(246, 247, 249, 0.92);
  border-bottom-color: rgba(139, 115, 64, 0.28);
}

html[data-theme="light"] header[role="banner"] .nav-links a,
html[data-theme="light"] header .nav-links a {
  color: #1a1408 !important;
}

html[data-theme="light"] header[role="banner"] .nav-links a:hover,
html[data-theme="light"] header .nav-links a[aria-current="page"] {
  color: #8a6a2a !important;
}

html[data-theme="light"] .fx-wordmark__name,
html[data-theme="light"] body.pro .fx-wordmark__name {
  color: #0b1018 !important;
  -webkit-text-fill-color: #0b1018 !important;
}

html[data-theme="light"] .header-actions .header-cta,
html[data-theme="light"] a.header-cta {
  background: #1a1408;
  color: #f3f1ea;
  border-color: #8a6a2a;
}

html[data-theme="light"] .re-btn--primary {
  background: #1a1408;
  color: #f3f1ea;
}

html[data-theme="light"] .re-uc,
html[data-theme="light"] .re-bento__cell,
html[data-theme="light"] .re-plan,
html[data-theme="light"] .ba-partner {
  background: #fff;
  border-color: rgba(26, 20, 8, 0.1);
}

/* Inner-page title no longer under the fixed header */
html {
  scroll-padding-top: 80px;
}

.re-subhero,
.blog-article {
  padding-top: calc(80px + 1.25rem);
}

.re-flows {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

@media (max-width: 640px) {
  .header-actions .header-cta {
    display: none;
  }
}

/* Demote leftover rainbow department glows */
.re-uc--marketing,
.re-uc--sales,
.re-uc--finance,
.re-uc--support,
.re-uc--hr,
.re-uc--ops,
.re-uc--security,
.re-uc--dev {
  --uc-glow: transparent;
}

body.pro .re-cta::before,
.re-bento__cell::before,
.ba-partner::before {
  opacity: 0.15;
}

footer a[style] {
  color: var(--ba-gold) !important;
}

.scroll-top {
  right: 24px;
  bottom: 96px;
}

.whatsapp-float {
  background: #12160f !important;
  border: 1px solid var(--ba-gold-line) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

header[role="banner"] .header-actions .header-cta,
body.pro header .header-actions a.header-cta,
a.header-cta {
  background: transparent !important;
  color: #e8d5a3 !important;
  border: 1px solid rgba(201, 163, 90, 0.45) !important;
  box-shadow: none !important;
}

header[role="banner"] .header-actions .header-cta:hover,
body.pro header .header-actions a.header-cta:hover {
  background: rgba(201, 163, 90, 0.12) !important;
  color: #e8d5a3 !important;
}

body.pro .re-btn.re-btn--primary,
body.pro a.re-btn.re-btn--primary {
  background: rgba(201, 163, 90, 0.16) !important;
  color: #f3f1ea !important;
  border: 1.5px solid #c9a35a !important;
  box-shadow: inset 0 1px 0 rgba(228, 195, 122, 0.22) !important;
}

.ai-md-fab {
  width: auto !important;
  max-width: 11rem;
}

/* Language float sits above the MD · IA chip (both are bottom-left) */
.lang-selector-float {
  bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 9992;
}
body.cookie-open .lang-selector-float {
  bottom: calc(8.75rem + env(safe-area-inset-bottom, 0px)) !important;
}
@media (max-width: 640px) {
  .lang-selector-float {
    bottom: calc(5.1rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.cookie-open .lang-selector-float {
    bottom: calc(8.4rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 640px) {
  header[role="banner"] .header-actions .header-cta,
  body.pro .header-actions .header-cta {
    display: none !important;
  }
}

/* Download chip on every video player */
.video-dl {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 163, 90, 0.45);
  background: rgba(8, 10, 14, 0.78);
  color: #f3f1ea;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}
.video-dl:hover,
.video-dl:focus-visible {
  border-color: #e8d5a3;
  color: #e8d5a3;
  outline: none;
}
.video-dl svg {
  display: block;
  flex: 0 0 auto;
}
.hero-video-dialog__body,
.demo-lightbox__body,
.ex-product-figure {
  position: relative;
}
@media (max-width: 560px) {
  .video-dl span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .video-dl {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    justify-content: center;
  }
}

/* Conversion CTAs must not wait on cinematic fade (they were invisible for 1.2s+) */
body[data-page="home"] .re-hero__ctas,
body[data-page="home"] .re-hero__ctas > * {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
}
