/* mAImate — Professional landing theme */

:root {
  --pro-bg: #0b0d12;
  --pro-surface: #12151c;
  --pro-surface-2: #181c26;
  --pro-border: rgba(255, 255, 255, 0.08);
  --pro-border-strong: rgba(255, 255, 255, 0.14);
  --pro-accent: #4f8ff7;
  --pro-accent-hover: #6ba3ff;
  --pro-accent-soft: rgba(79, 143, 247, 0.12);
  --pro-text: #f1f5f9;
  --pro-muted: #94a3b8;
  --pro-subtle: #64748b;
  --pro-success: #34d399;
  --pro-success-soft: rgba(52, 211, 153, 0.12);
  --pro-radius: 0.75rem;
  --pro-radius-lg: 1rem;
  --pro-shadow: 0 1px 2px rgba(0, 0, 0, 0.24), 0 12px 40px rgba(0, 0, 0, 0.28);
}

html {
  scroll-behavior: smooth;
}

body.landing-pro {
  background-color: #05080f;
  color: var(--pro-text);
}

body.landing-immersive {
  background: #05080f;
  --cosmos-px: 0;
  --cosmos-py: 0;
  --cosmos-merge: 0;
  --cosmos-peak: 0;
  --cosmos-spin: 1;
  --cosmos-phase: 0;
  --cosmos-scroll: 0;
  --cosmos-parallax-x: 0px;
  --cosmos-parallax-y: 0px;
  --d5-x: 0;
  --d5-y: 0;
  --d5-scroll: 0;
  --d5-phase: 0;
  --d5-merge: 0;
  --d5-tension: 0;
  --d5-depth: 0.35;
}

body.landing-immersive > main {
  perspective: 1700px;
  perspective-origin: 50% 42%;
  transform-style: preserve-3d;
}

body.landing-immersive > main,
body.landing-immersive > footer {
  position: relative;
  z-index: 2;
}

body.landing-pro > header.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
}

.font-body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--pro-border);
  background: rgba(5, 8, 15, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header--scrolled {
  background: rgba(5, 8, 15, 0.82);
  border-color: rgba(79, 143, 247, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--pro-text);
  text-decoration: none;
}

.logo-mark__icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-mark__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--pro-accent);
}

.pillar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pillar-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
  background: var(--pro-accent-soft);
  color: var(--pro-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.workspace-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--pro-border-strong);
  background: var(--pro-surface-2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pro-text);
}

.workspace-chip--business {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.12);
  color: #5eead4;
}

.cta-dual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-dual__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 20rem;
  font-size: 0.75rem;
  color: var(--pro-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cta-dual__divider::before,
.cta-dual__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pro-border);
}

.queue-preview-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 380px) {
  .queue-preview-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.nav-link {
  color: var(--pro-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--pro-text);
}

.nav-link--accent {
  color: var(--pro-accent);
}

.nav-link--accent:hover {
  color: var(--pro-accent-hover);
}

/* Typography */
.section-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pro-accent);
}

.section-title {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pro-text);
}

.text-accent {
  color: var(--pro-accent);
}

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

/* Cards & panels */
.card {
  background: var(--pro-surface);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius-lg);
  box-shadow: var(--pro-shadow);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

body.landing-immersive .card {
  background: rgba(12, 16, 26, 0.58);
  border-color: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 16px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card:hover {
  border-color: var(--pro-border-strong);
}

body.landing-immersive .card:hover {
  border-color: rgba(79, 143, 247, 0.22);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 20px 56px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(79, 143, 247, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card--flat {
  box-shadow: none;
}

.panel {
  background: var(--pro-surface-2);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--pro-border);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pro-subtle);
}

.panel-row {
  border: 1px solid var(--pro-border);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--pro-radius);
  padding: 0.85rem 1rem;
}

.panel-row + .panel-row {
  margin-top: 0.5rem;
}

.metric-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--pro-radius);
  border: 1px solid var(--pro-border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.7rem;
  color: var(--pro-muted);
}

.metric-chip strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pro-text);
  line-height: 1;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--pro-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--pro-muted);
}

.badge--accent {
  border-color: rgba(79, 143, 247, 0.25);
  background: var(--pro-accent-soft);
  color: #bfdbfe;
}

.badge--success {
  border-color: rgba(52, 211, 153, 0.25);
  background: var(--pro-success-soft);
  color: #a7f3d0;
}

.badge--live {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pro-success);
}

.badge--live::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--pro-success);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: var(--pro-radius);
  border: 1px solid transparent;
  background: var(--pro-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--pro-accent-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: var(--pro-radius);
  border: 1px solid var(--pro-border-strong);
  background: transparent;
  color: var(--pro-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-approve {
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--pro-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-approve:hover {
  background: var(--pro-accent-hover);
}

.btn-decline {
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid var(--pro-border-strong);
  background: transparent;
  color: var(--pro-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-decline:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--pro-text);
}

.btn-menu {
  border: 1px solid var(--pro-border);
  background: transparent;
  color: var(--pro-muted);
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.btn-menu:hover {
  color: var(--pro-text);
  border-color: var(--pro-border-strong);
}

/* Hero product preview */
.product-preview {
  border: 1px solid var(--pro-border-strong);
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--pro-surface) 0%, var(--pro-surface-2) 100%);
  box-shadow: var(--pro-shadow);
  overflow: hidden;
}

.product-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--pro-border);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.7rem;
  color: var(--pro-subtle);
}

.product-preview__dots {
  display: flex;
  gap: 0.35rem;
}

.product-preview__dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--pro-border-strong);
}

.product-preview__body {
  padding: 1rem;
}

/* Feature cards */
.feature-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pro-subtle);
  letter-spacing: 0.05em;
}

/* Comparison table */
.table-pro {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-pro thead {
  background: rgba(255, 255, 255, 0.03);
}

.table-pro th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pro-subtle);
  border-bottom: 1px solid var(--pro-border);
}

.table-pro td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--pro-border);
  color: var(--pro-muted);
}

.table-pro td.highlight {
  color: var(--pro-text);
  font-weight: 500;
}

.table-pro tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Timeline */
.timeline {
  position: relative;
  border-left: 1px solid var(--pro-border);
  padding-left: 1.75rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.05rem;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--pro-accent);
  box-shadow: 0 0 0 3px var(--pro-accent-soft);
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pro-text);
}

/* Integrations */
.integration-pill {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--pro-border);
  background: var(--pro-surface);
  font-size: 0.8rem;
  color: var(--pro-muted);
}

/* Quote */
.quote-card {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--pro-muted);
}

.quote-by {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--pro-subtle);
}

/* Input */
.input-pro {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--pro-radius);
  border: 1px solid var(--pro-border-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--pro-text);
  font-size: 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-pro::placeholder {
  color: var(--pro-subtle);
}

.input-pro:focus {
  outline: none;
  border-color: rgba(79, 143, 247, 0.5);
  box-shadow: 0 0 0 3px var(--pro-accent-soft);
}

/* Toast */
.toast-pro {
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
  border-radius: var(--pro-radius);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Language selector */
.lang-selector {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid var(--pro-border-strong);
  background: transparent;
  color: var(--pro-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--pro-text);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 9.5rem;
  padding: 0.35rem;
  border-radius: var(--pro-radius);
  border: 1px solid var(--pro-border-strong);
  background: var(--pro-surface);
  box-shadow: var(--pro-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 110;
}

.lang-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--pro-muted);
  text-align: left;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--pro-text);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.routing-demo {
  background: rgba(0, 0, 0, 0.35);
}

.pricing-card--featured {
  border-color: rgba(79, 143, 247, 0.35);
  box-shadow: 0 0 0 1px rgba(79, 143, 247, 0.12), var(--pro-shadow);
}

.flow-step {
  height: 100%;
}

/* Hero preview tabs */
.hero-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 1rem 0;
  border-bottom: 1px solid var(--pro-border);
  background: rgba(0, 0, 0, 0.15);
}

.hero-tab {
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 0.45rem 0.45rem 0 0;
  background: transparent;
  color: var(--pro-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.hero-tab:hover {
  color: var(--pro-muted);
}

.hero-tab.is-active {
  color: var(--pro-text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 -2px 0 var(--pro-accent);
}

.hero-panel {
  display: none;
}

.hero-panel.is-active {
  display: block;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge--beta {
  border: 1px solid rgba(79, 143, 247, 0.35);
  background: var(--pro-accent-soft);
  color: var(--pro-accent);
}

.status-badge--coming {
  border: 1px solid rgba(94, 234, 212, 0.3);
  background: rgba(15, 118, 110, 0.12);
  color: #5eead4;
}

.status-badge--vision {
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
}

/* Mind feature cards */
.mind-feature-demo {
  border-left: 2px solid var(--pro-accent);
  padding: 0.65rem 0 0.65rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--pro-muted);
  font-style: italic;
}

/* Life branch diagram */
.life-branch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
}

.life-branch__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--pro-border-strong);
  background: var(--pro-surface-2);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pro-muted);
}

.life-branch__node--a {
  border-color: rgba(79, 143, 247, 0.4);
  color: var(--pro-accent);
}

.life-branch__lines {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.life-branch__path {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--pro-border-strong);
}

.life-branch__path--up {
  top: 35%;
  transform: rotate(-28deg);
  transform-origin: left center;
}

.life-branch__path--down {
  top: 65%;
  transform: rotate(28deg);
  transform-origin: left center;
}

.life-branch__fork {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.life-branch__node--b {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--pro-success);
}

.life-branch__node--c {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

/* Roadmap timeline */
.roadmap-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--pro-border);
  padding-left: 1.75rem;
}

.roadmap-item {
  position: relative;
  padding-bottom: 2rem;
}

.roadmap-item:last-child {
  padding-bottom: 0;
}

.roadmap-item::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--pro-accent);
  box-shadow: 0 0 0 3px var(--pro-accent-soft);
}

.roadmap-item__title {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pro-text);
}

.roadmap-item__desc {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--pro-muted);
}

.investor-prose {
  max-width: 42rem;
}

.investor-prose > * + * {
  margin-top: 2.5rem;
}

.investor-block-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pro-text);
}

.investor-prose p,
.investor-prose li {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pro-muted);
}

.investor-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.investor-list li {
  position: relative;
  padding-left: 1.25rem;
}

.investor-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--pro-accent);
}

.investor-metric-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin-top: 1rem;
}

.investor-metric {
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
  background: var(--pro-surface);
  padding: 0.85rem 1rem;
}

.investor-metric strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pro-text);
}

.investor-metric span {
  font-size: 0.75rem;
  color: var(--pro-subtle);
}

html.i18n-pending [data-i18n],
html.i18n-pending [data-i18n-html] {
  visibility: hidden;
}

/* Section spacing helper */
.section-block {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* —— 3D hero scene —— */
.hero-section-3d {
  position: relative;
  overflow: hidden;
}

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

.hero-ambient__grid {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 55% 45% at 72% 28%, rgba(79, 143, 247, 0.14), transparent 58%),
    radial-gradient(ellipse 40% 35% at 18% 62%, rgba(139, 92, 246, 0.1), transparent 55%),
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(79, 143, 247, 0.04) 45%,
      transparent 70%
    );
  transform: perspective(900px) rotateX(58deg) scale(1.15);
  transform-origin: center 80%;
  opacity: 0.9;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

.hero-section-3d > .mx-auto {
  position: relative;
  z-index: 1;
}

.hero-visual.scene-3d {
  position: relative;
  min-height: 22rem;
  perspective: 1200px;
  transform-style: preserve-3d;
  --parallax-x: 0;
  --parallax-y: 0;
}

.scene-3d--compact {
  min-height: 17rem;
}

.scene-3d--compact .float-orb--warm {
  display: none;
}

.scene-3d__orbs {
  position: absolute;
  inset: -8% -6% -4%;
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out;
  pointer-events: none;
  z-index: 0;
}

.float-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.55;
  animation: float-orb-drift 14s ease-in-out infinite;
}

.float-orb--cyan {
  width: 9rem;
  height: 9rem;
  top: 8%;
  left: 6%;
  background: rgba(0, 240, 255, 0.35);
  transform: translate3d(calc(var(--parallax-x) * 1px), calc(var(--parallax-y) * 1px), -80px);
  animation-delay: -2s;
}

.float-orb--violet {
  width: 11rem;
  height: 11rem;
  top: 42%;
  right: 0;
  background: rgba(139, 92, 246, 0.28);
  transform: translate3d(calc(var(--parallax-x) * -0.6px), calc(var(--parallax-y) * 0.8px), -120px);
  animation-delay: -6s;
}

.float-orb--warm {
  width: 7rem;
  height: 7rem;
  bottom: 6%;
  left: 38%;
  background: rgba(251, 146, 60, 0.22);
  transform: translate3d(calc(var(--parallax-x) * 0.4px), calc(var(--parallax-y) * -0.5px), -40px);
  animation-delay: -9s;
}

@keyframes float-orb-drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

/* —— Brain fusion theater (showcase) —— */
.brain-fusion-section {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.brain-fusion-section__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 35%, rgba(79, 143, 247, 0.16), transparent 62%),
    radial-gradient(ellipse 45% 40% at 18% 55%, rgba(251, 146, 60, 0.1), transparent 58%),
    radial-gradient(ellipse 45% 40% at 82% 55%, rgba(0, 240, 255, 0.1), transparent 58%);
  opacity: 0.95;
}

.brain-fusion-section > .mx-auto {
  position: relative;
  z-index: 1;
}

.brain-fusion-theater {
  position: relative;
  min-height: clamp(22rem, 56vw, 34rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 90% 70% at 50% 42%, rgba(18, 24, 38, 0.95) 0%, rgba(5, 8, 15, 0.98) 72%),
    #05080f;
  box-shadow:
    0 0 0 1px rgba(79, 143, 247, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
  --parallax-x: 0;
  --parallax-y: 0;
}

.brain-fusion-theater__frame {
  position: absolute;
  inset: 1px;
  border-radius: calc(1.25rem - 1px);
  pointer-events: none;
  z-index: 3;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.brain-fusion-theater--peak {
  border-color: rgba(79, 143, 247, 0.35);
  box-shadow:
    0 0 0 1px rgba(79, 143, 247, 0.2),
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(79, 143, 247, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.scene-3d__orbs--theater {
  inset: 0;
  z-index: 0;
}

.scene-3d__orbs--theater .float-orb--cyan {
  top: 12%;
  left: 10%;
}

.scene-3d__orbs--theater .float-orb--warm {
  top: 20%;
  right: 8%;
  left: auto;
  width: 8rem;
  height: 8rem;
}

.scene-3d__orbs--theater .float-orb--violet {
  bottom: 18%;
  left: 42%;
}

.brain-neural-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.brain-merge-canvas-wrap--showcase {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  z-index: 1;
  opacity: 1;
  mask-image: radial-gradient(ellipse 78% 72% at 50% 46%, #000 18%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 46%, #000 18%, transparent 76%);
}

.brain-merge-canvas-wrap--showcase.brain-merge--peak {
  filter: drop-shadow(0 0 36px rgba(79, 143, 247, 0.42));
}

.brain-fusion-legend {
  position: absolute;
  left: 50%;
  bottom: 3.25rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 4;
  pointer-events: none;
}

.brain-fusion-legend__chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brain-fusion-legend__chip--warm {
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.35);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.12);
}

.brain-fusion-legend__chip--fuse {
  color: #93c5fd;
  border-color: rgba(79, 143, 247, 0.4);
  box-shadow: 0 0 24px rgba(79, 143, 247, 0.18);
  transform: scale(1.05);
}

.brain-fusion-legend__chip--cyan {
  color: #67e8f9;
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
}

.brain-fusion-caption {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(92%, 36rem);
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--pro-subtle);
  z-index: 4;
  pointer-events: none;
  margin: 0;
}

.brain-merge-canvas-wrap {
  position: absolute;
  left: 50%;
  top: -4%;
  width: min(108%, 36rem);
  height: 17.5rem;
  transform: translateX(-50%) translateZ(-60px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.92;
  mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 42%, #000 15%, transparent 72%);
  transition: filter 0.4s ease;
}

.brain-merge-canvas-wrap.brain-merge--peak {
  filter: drop-shadow(0 0 28px rgba(79, 143, 247, 0.35));
}

.brain-merge-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
}

.brain-merge-canvas-wrap--showcase canvas {
  border-radius: 1.25rem;
}

.hero-preview.tilt-3d {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out, box-shadow 0.25s ease;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 22px 50px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-visual.scene-3d.hero-visual--peak .hero-preview.tilt-3d {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.24),
    0 28px 60px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(79, 143, 247, 0.12);
}

.mind-feature-card[data-tilt-3d],
.card[data-tilt-3d] {
  transform-style: preserve-3d;
  transition: transform 0.14s ease-out, box-shadow 0.2s ease;
}

@media (max-width: 1023px) {
  .brain-fusion-theater {
    min-height: clamp(18rem, 62vw, 26rem);
  }

  .brain-fusion-legend {
    bottom: 2.75rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 92%;
  }

  .hero-visual.scene-3d {
    min-height: 20rem;
  }
}

@media (max-width: 639px) {
  .brain-fusion-section {
    padding: 3rem 0 4rem;
  }

  .brain-fusion-theater {
    min-height: 17.5rem;
  }

  .brain-fusion-caption {
    font-size: 0.7rem;
    bottom: 0.65rem;
  }

  .brain-fusion-legend {
    bottom: 2.35rem;
    gap: 0.35rem;
  }

  .brain-fusion-legend__chip {
    font-size: 0.6rem;
    padding: 0.28rem 0.55rem;
  }

  .float-orb {
    opacity: 0.35;
  }
}

/* —— Full-page cosmos background —— */
.landing-cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.92;
  transition: opacity 0.5s ease;
  transform: translate3d(var(--cosmos-parallax-x, 0), var(--cosmos-parallax-y, 0), 0);
}

.landing-cosmos__unified {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.landing-cosmos__neural,
.landing-cosmos__brain {
  display: none;
}

.landing-cosmos__neural {
  z-index: 0;
  opacity: 0.75;
  mix-blend-mode: screen;
}

.landing-cosmos__brain {
  z-index: 1;
  opacity: 0.88;
  mix-blend-mode: screen;
}

.landing-cosmos__aurora {
  position: absolute;
  inset: -20%;
  z-index: 2;
  background:
    radial-gradient(
      ellipse 55% 45% at calc(50% + var(--cosmos-px, 0) * 12%) calc(28% + var(--cosmos-py, 0) * 8%),
      rgba(79, 143, 247, calc(0.14 + var(--cosmos-merge, 0) * 0.12)),
      transparent 58%
    ),
    radial-gradient(
      ellipse 42% 38% at calc(18% - var(--cosmos-px, 0) * 8%) calc(58% + var(--cosmos-py, 0) * 6%),
      rgba(251, 146, 60, calc(0.08 + (1 - var(--cosmos-merge, 0)) * 0.08)),
      transparent 55%
    ),
    radial-gradient(
      ellipse 42% 38% at calc(82% + var(--cosmos-px, 0) * 8%) calc(52% - var(--cosmos-py, 0) * 6%),
      rgba(0, 240, 255, calc(0.08 + (1 - var(--cosmos-merge, 0)) * 0.08)),
      transparent 55%
    ),
    radial-gradient(
      ellipse 35% 30% at 50% calc(45% + var(--cosmos-scroll, 0) * -20%),
      rgba(139, 92, 246, calc(0.06 + var(--cosmos-peak, 0) * 0.14)),
      transparent 60%
    );
  animation: cosmos-aurora-drift 34s ease-in-out infinite;
}

.landing-cosmos__grid {
  position: absolute;
  inset: -30% -15%;
  z-index: 3;
  background-image:
    linear-gradient(rgba(79, 143, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 143, 247, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(900px) rotateX(62deg) scale(1.2)
    translate3d(calc(var(--cosmos-px, 0) * -18px), calc(var(--cosmos-scroll-y, 0) + var(--cosmos-py, 0) * 12px), 0);
  transform-origin: center 75%;
  opacity: calc(0.35 + var(--cosmos-merge, 0) * 0.2);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%);
}

.landing-cosmos__noise {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.landing-cosmos__vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 50%, rgba(5, 8, 15, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.2) 0%, transparent 12%, transparent 88%, rgba(5, 8, 15, 0.35) 100%);
  pointer-events: none;
}

.landing-cosmos__5d-hypergrid {
  position: absolute;
  inset: -55%;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 143, 247, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 143, 247, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  transform:
    perspective(920px)
    rotateX(calc(56deg + var(--d5-y, 0) * 5deg))
    rotateZ(calc(var(--d5-phase, 0) * 14deg))
    translate3d(
      calc(var(--d5-x, 0) * -28px),
      calc(var(--cosmos-scroll-y, 0) * 0.55 + var(--d5-y, 0) * 10px),
      0
    )
    scale(calc(1.08 + var(--d5-depth, 0.35) * 0.12));
  opacity: calc(0.14 + var(--d5-depth, 0.35) * 0.16);
  mask-image: radial-gradient(ellipse 82% 72% at 50% 44%, #000 18%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 82% 72% at 50% 44%, #000 18%, transparent 76%);
}

.landing-cosmos__5d-phase {
  position: absolute;
  inset: -10%;
  z-index: 2;
  pointer-events: none;
  opacity: calc(0.18 + var(--d5-tension, 0) * 0.42 + var(--d5-merge, 0) * 0.2);
  background:
    repeating-conic-gradient(
      from calc(var(--d5-phase, 0) * 360deg) at calc(50% + var(--d5-x, 0) * 6%) calc(42% + var(--d5-y, 0) * 4%),
      transparent 0deg 12deg,
      rgba(139, 92, 246, 0.05) 12deg 13deg,
      transparent 13deg 28deg,
      rgba(0, 240, 255, 0.04) 28deg 29deg
    );
  mix-blend-mode: screen;
  animation: d5-phase-spin 48s linear infinite;
}

@keyframes d5-phase-spin {
  from {
    transform: rotate(0deg) scale(1.02);
  }
  to {
    transform: rotate(360deg) scale(1.02);
  }
}

.landing-cosmos--burst .landing-cosmos__aurora {
  filter: brightness(1.1) saturate(1.12);
}

.landing-cosmos--tension .landing-cosmos__aurora {
  filter: brightness(0.96) saturate(1.18) hue-rotate(-4deg);
}

.landing-cosmos--shock {
  filter: contrast(1.06) brightness(1.05);
}

.landing-cosmos--shock .landing-cosmos__shock {
  opacity: 1;
}

.landing-cosmos--shock .landing-cosmos__unified {
  filter: contrast(1.06) brightness(1.04) saturate(1.06);
}

.landing-cosmos--shock .landing-cosmos__brain {
  opacity: 0.98;
}

.landing-cosmos--shock .landing-cosmos__neural {
  opacity: 0.95;
}

.landing-cosmos--alive .landing-cosmos__unified {
  animation: cosmos-alive-pulse 5.8s ease-in-out infinite;
}

.landing-cosmos--alive .landing-cosmos__brain {
  animation: cosmos-alive-pulse 5.8s ease-in-out infinite;
}

.landing-cosmos__shock {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease-out;
  background:
    radial-gradient(
      ellipse 45% 40% at 50% 42%,
      rgba(255, 34, 68, calc(var(--cosmos-shock, 0) * 0.35)),
      transparent 68%
    ),
    radial-gradient(
      ellipse 90% 70% at 50% 50%,
      rgba(255, 255, 255, calc(var(--cosmos-shock, 0) * 0.12)),
      transparent 55%
    );
  mix-blend-mode: screen;
}

@keyframes cosmos-alive-pulse {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.04) saturate(1.06);
  }
}

.landing-cosmos--peak {
  opacity: 1;
}

.landing-cosmos--peak .landing-cosmos__unified {
  opacity: 1;
}

.landing-cosmos--peak .landing-cosmos__brain {
  opacity: 0.95;
}

.landing-cosmos--peak .landing-cosmos__neural {
  opacity: 0.88;
}

@keyframes cosmos-aurora-drift {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.025) rotate(0.7deg);
  }
}

body.landing-immersive .section-block {
  position: relative;
  transform-style: preserve-3d;
  transform:
    translate3d(
      calc(var(--d5-section-tx, 0px) + var(--d5-x, 0) * 3px),
      0,
      var(--d5-section-z, 0px)
    )
    rotateX(var(--d5-section-rx, 0deg))
    rotateY(var(--d5-section-ry, 0deg));
  transition: transform 0.14s ease-out;
  will-change: transform;
}

body.landing-immersive .hero-section-3d {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

body.landing-immersive .hero-section-3d > .mx-auto {
  width: 100%;
}

body.landing-immersive .brain-fusion-section {
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.brain-fusion-legend--inline {
  position: static;
  transform: none;
  justify-content: center;
  flex-wrap: wrap;
}

.brain-fusion-caption--inline {
  position: static;
  transform: none;
  width: auto;
  margin-inline: auto;
  max-width: 36rem;
}

body.landing-immersive .product-preview,
body.landing-immersive .hero-preview {
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(79, 143, 247, 0.18);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(79, 143, 247, calc(0.06 + var(--cosmos-peak, 0) * 0.12));
}

body.landing-immersive .section-kicker {
  text-shadow:
    calc(var(--d5-x, 0) * 1px) 0 18px rgba(0, 240, 255, 0.14),
    calc(var(--d5-x, 0) * -1px) 0 18px rgba(251, 146, 60, 0.1),
    0 0 24px rgba(79, 143, 247, 0.25);
}

body.landing-immersive .section-title {
  text-shadow:
    calc(var(--d5-x, 0) * 2px) 0 28px rgba(0, 240, 255, calc(0.08 + var(--d5-merge, 0) * 0.1)),
    calc(var(--d5-x, 0) * -2px) 0 28px rgba(251, 146, 60, calc(0.07 + var(--d5-merge, 0) * 0.08)),
    0 2px 32px rgba(0, 0, 0, 0.45);
}

body.landing-immersive.landing-5d--peak .card {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 20px 56px rgba(0, 0, 0, 0.38),
    0 0 52px rgba(79, 143, 247, calc(0.08 + var(--d5-merge, 0) * 0.14)),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.landing-immersive.landing-5d--drift .landing-cosmos__5d-hypergrid {
  opacity: calc(0.1 + var(--d5-depth, 0.35) * 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tilt-3d,
  [data-tilt-3d] {
    transform: none !important;
  }

  .float-orb {
    animation: none;
  }

  .landing-cosmos__unified,
  .landing-cosmos__neural,
  .landing-cosmos__brain {
    display: none;
  }

  .landing-cosmos__5d-hypergrid,
  .landing-cosmos__5d-phase {
    display: none;
  }

  body.landing-immersive .section-block {
    transform: none;
    transition: none;
  }

  body.landing-immersive > main {
    perspective: none;
  }

  .landing-cosmos--static {
    background:
      radial-gradient(ellipse 70% 50% at 50% 40%, rgba(79, 143, 247, 0.12), transparent 60%),
      #05080f;
  }

  .landing-cosmos__aurora {
    animation: none;
  }

  .brain-merge-canvas-wrap:not(.brain-merge-canvas-wrap--showcase) {
    display: none;
  }

  .brain-neural-3d-canvas {
    display: none;
  }

  .brain-fusion-theater {
    background:
    radial-gradient(ellipse 80% 60% at 50% 45%, rgba(18, 24, 38, 0.9), rgba(5, 8, 15, 0.98)),
    #05080f;
  }

  .brain-merge-canvas-wrap--showcase {
    display: none;
  }

  .hero-ambient__grid {
    transform: none;
  }
}
