/* =========================================================
   Component styles — AppMFSolutions Corporate
   ========================================================= */

/* ----- Main layout ----- */
.main-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* ----- Navbar ----- */
.main-navbar {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 1.5rem, calc(var(--container) + 1rem));
  z-index: 1000;
  border-radius: var(--radius-full);
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition), top var(--transition);
}

.main-navbar.is-scrolled {
  top: 0.5rem;
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-height);
  padding: 0.45rem 0.65rem 0.45rem 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover { color: var(--text-primary); }

.brand-with-logo {
  line-height: 0;
}

/* Brand logo component — light/dark swap via data-theme */
.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo-img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-logo-horizontal .brand-logo-img {
  height: 2.65rem;
  width: auto;
  max-width: min(200px, 42vw);
  border-radius: 0.35rem;
}

.brand-logo-nav .brand-logo-img {
  height: 2.45rem;
  max-width: min(176px, 40vw);
}

.brand-logo-footer .brand-logo-img {
  height: 3rem;
  max-width: 220px;
}

/* Light logo visible by default; dark logo hidden */
.brand-logo-horizontal .brand-logo-light { display: block; }
.brand-logo-horizontal .brand-logo-dark { display: none; }

html[data-theme="dark"] .brand-logo-horizontal .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-logo-horizontal .brand-logo-dark { display: block; }

/* Footer is always dark surface → force dark logo */
.corporate-footer .brand-logo-horizontal .brand-logo-light { display: none !important; }
.corporate-footer .brand-logo-horizontal .brand-logo-dark { display: block !important; }

.brand-logo-hero .brand-logo-img,
.hero-brand-logo .brand-logo-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-brand-logo.is-large .brand-logo-img,
.brand-logo-hero.is-large .brand-logo-img {
  max-width: min(560px, 100%);
  border-radius: var(--radius-xl);
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(124, 92, 255, 0.12);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  animation: brand-float 6s ease-in-out infinite;
}

.hero-brand-panel.is-interactive:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow:
    0 28px 60px rgba(51, 102, 245, 0.28),
    0 0 0 1px rgba(124, 92, 255, 0.22);
  animation-play-state: paused;
}

@keyframes brand-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.brand-logo-stacked .brand-logo-img,
.nosotros-logo .brand-logo-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-inline: auto;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.nosotros-logo .brand-logo-img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-glow);
}

.nosotros-brand-panel {
  margin-bottom: 1rem;
}

.hero-visual-stack {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.hero-brand-panel {
  width: 100%;
  max-width: 560px;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border-radius: var(--radius-xl);
  background: transparent;
  perspective: 900px;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-aura));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(51, 102, 245, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-actions .btn-secondary { display: none; }

  .main-navbar.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
  }

  .main-navbar.is-open .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 3.5rem) 0 3.5rem;
  background: var(--bg-hero);
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

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

.hero-orb.orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(51, 102, 245, 0.35);
  top: 8%;
  right: 12%;
}

.hero-orb.orb-2 {
  width: 220px;
  height: 220px;
  background: rgba(124, 92, 255, 0.3);
  bottom: 10%;
  left: 8%;
  animation-duration: 18s;
  animation-direction: reverse;
}

.hero-orb.orb-3 {
  width: 160px;
  height: 160px;
  background: rgba(20, 184, 166, 0.2);
  top: 45%;
  left: 40%;
  animation-duration: 12s;
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

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

.hero-copy .lead {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-pulse {
  position: relative;
}

.btn-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(51, 102, 245, 0.45);
  animation: btn-ring 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes btn-ring {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.12); }
}

.reveal-on-load {
  animation: fade-up 0.8s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Ecosystem map ----- */
.ecosystem-map {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 560px);
  max-width: 560px;
  margin-inline: auto;
  border-radius: 50%;
  perspective: 900px;
  overflow: visible;
}

.eco-tilt-layer {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(51, 102, 245, 0.16), transparent 55%),
    radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.12), transparent 42%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.eco-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.22), transparent 70%);
  animation: pulse-soft 4s ease-in-out infinite;
  pointer-events: none;
}

.ecosystem-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ecosystem-map .orbit {
  fill: none;
  stroke: var(--border-strong);
  stroke-dasharray: 4 8;
  opacity: 0.55;
  transform-origin: 50px 50px;
  animation: orbit-spin 36s linear infinite;
}

.ecosystem-map .orbit.reverse {
  animation-direction: reverse;
  animation-duration: 48s;
  opacity: 0.4;
}

.ecosystem-map .orbit.slow {
  animation-duration: 64s;
  opacity: 0.3;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.ecosystem-map .link-line {
  stroke: url(#mapGradient);
  stroke-width: 1.6;
  fill: none;
  opacity: 0.45;
  stroke-dasharray: 4 6;
  animation: dash-flow 2.8s linear infinite;
}

.ecosystem-map .link-line.delay-1 { animation-delay: 0.4s; }
.ecosystem-map .link-line.delay-2 { animation-delay: 0.8s; }
.ecosystem-map .link-line.delay-3 { animation-delay: 1.2s; }

@keyframes dash-flow {
  to { stroke-dashoffset: -40; }
}

.ecosystem-map:hover .link-line {
  opacity: 0.9;
}

.data-pulse {
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(124, 92, 255, 0.8));
}

.map-center,
.map-node {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: var(--radius-full);
  z-index: 2;
}

.map-center {
  left: 50%;
  top: 50%;
  width: clamp(6.2rem, 20%, 8rem);
  height: clamp(6.2rem, 20%, 8rem);
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, var(--brand-500), var(--accent-aura));
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 32px rgba(51, 102, 245, 0.45);
  animation: pulse-soft 3.2s ease-in-out infinite, core-spin-soft 18s linear infinite;
}

.map-center span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.9;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 12px 32px rgba(51, 102, 245, 0.35); }
  50% { box-shadow: 0 12px 48px rgba(124, 92, 255, 0.6); }
}

@keyframes core-spin-soft {
  to { filter: hue-rotate(25deg); }
}

.map-node {
  width: clamp(4.6rem, 15%, 6rem);
  height: clamp(4.6rem, 15%, 6rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 650;
  box-shadow: var(--shadow-md);
  padding: 0.35rem;
  text-decoration: none;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.map-node.education { top: 16%; left: 50%; transform: translate(-50%, -50%); border-color: color-mix(in srgb, var(--accent-education) 45%, transparent); }
.map-node.health { top: 50%; left: 86%; transform: translate(-50%, -50%); border-color: color-mix(in srgb, var(--accent-health) 45%, transparent); }
.map-node.government { top: 84%; left: 50%; transform: translate(-50%, -50%); border-color: color-mix(in srgb, var(--accent-government) 45%, transparent); }
.map-node.business { top: 50%; left: 14%; transform: translate(-50%, -50%); border-color: color-mix(in srgb, var(--accent-business) 45%, transparent); }

.map-node.float-a { animation: node-float 4.5s ease-in-out infinite; }
.map-node.float-b { animation: node-float 5.2s ease-in-out infinite 0.4s; }
.map-node.float-c { animation: node-float 4.8s ease-in-out infinite 0.8s; }
.map-node.float-d { animation: node-float 5.6s ease-in-out infinite 1.1s; }

@keyframes node-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.map-node:hover {
  z-index: 5;
  scale: 1.12;
  box-shadow: var(--shadow-glow);
  animation-play-state: paused;
}

.map-node .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-bottom: 0.25rem;
  background: var(--sector-accent, var(--accent-primary));
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--sector-accent, var(--accent-primary)) 50%, transparent);
  animation: dot-ping 2.2s ease-out infinite;
}

@keyframes dot-ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sector-accent, var(--accent-primary)) 45%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ----- Indicators ----- */
.indicators {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

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

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

.indicator-card {
  text-align: center;
  padding: 1.35rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.indicator-value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-aura));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.indicator-label {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ----- Sector cards ----- */
.sector-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sector-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sector-accent, var(--accent-primary)), transparent);
}

.sector-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--sector-accent, var(--accent-primary)) 14%, transparent);
  color: var(--sector-accent, var(--accent-primary));
  margin-bottom: 1rem;
  font-weight: 800;
  font-size: 0.85rem;
}

.sector-card h3 {
  margin-bottom: 0.5rem;
}

.sector-card p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
  flex: 1;
}

.sector-card .chip-list {
  margin-bottom: 1.15rem;
}

.sector-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sector-accent, var(--accent-primary));
}

/* ----- AURA core ----- */
.aura-section,
.aura-home-section {
  position: relative;
}

.aura-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.aura-stage-wrap {
  max-width: 920px;
  margin: 0 auto 1.5rem;
}

.aura-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-xl);
  perspective: 1000px;
  overflow: visible;
}

.aura-visual-large {
  min-height: clamp(480px, 62vw, 640px);
}

.aura-tilt-layer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.22), transparent 52%),
    radial-gradient(circle at 20% 20%, rgba(51, 102, 245, 0.14), transparent 40%),
    var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.aura-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.aura-glow-a {
  width: 42%;
  height: 42%;
  left: 29%;
  top: 29%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 70%);
  animation: aura-breathe 4s ease-in-out infinite;
}

.aura-glow-b {
  width: 28%;
  height: 28%;
  right: 12%;
  top: 14%;
  background: radial-gradient(circle, rgba(51, 102, 245, 0.28), transparent 70%);
  animation: aura-breathe 5.5s ease-in-out infinite reverse;
}

.aura-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.aura-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8eb5ff;
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.8);
  left: calc(8% + (var(--p) * 6.5%));
  top: calc(12% + (var(--p) * 5.2%));
  opacity: 0;
  animation: particle-drift 7s linear infinite;
  animation-delay: calc(var(--p) * -0.45s);
}

.aura-particle:nth-child(odd) {
  background: #c4b5fd;
  width: 4px;
  height: 4px;
}

@keyframes particle-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.6);
  }
  15% { opacity: 0.85; }
  50% {
    opacity: 0.7;
    transform: translate3d(calc((var(--p) - 7) * 4px), -40px, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc((var(--p) - 7) * 8px), -90px, 0) scale(0.4);
  }
}

.aura-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.aura-link-line {
  stroke: url(#auraLineGrad);
  stroke-width: 0.7;
  stroke-dasharray: 2 3;
  animation: dash-flow 2.4s linear infinite;
  animation-delay: calc(var(--i) * 0.2s);
  opacity: 0.75;
}

.aura-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent-aura) 40%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-spin 40s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.aura-ring.r1 { width: 48%; height: 48%; opacity: 0.7; }
.aura-ring.r2 {
  width: 70%;
  height: 70%;
  animation-direction: reverse;
  animation-duration: 55s;
  opacity: 0.55;
}
.aura-ring.r3 {
  width: 90%;
  height: 90%;
  animation-duration: 75s;
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent-primary) 18%, transparent);
  opacity: 0.45;
}

.aura-orbit-system {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.aura-orbit-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  --angle: calc(var(--i) * 60deg - 90deg);
  transform: rotate(var(--angle));
  animation: aura-orbit 28s linear infinite;
  animation-delay: calc(var(--i) * -4.6s);
}

@keyframes aura-orbit {
  from { transform: rotate(var(--angle)); }
  to { transform: rotate(calc(var(--angle) + 360deg)); }
}

.aura-engine {
  position: absolute;
  top: -11.5rem;
  left: -3.4rem;
  width: 6.8rem;
  padding: 0.7rem 0.45rem 0.65rem;
  border-radius: 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transform: rotate(calc(var(--angle) * -1));
  animation: aura-counter-orbit 28s linear infinite, engine-bob 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -4.6s), calc(var(--i) * 0.25s);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), scale var(--transition);
}

.aura-visual-large .aura-engine {
  top: -14.5rem;
  left: -3.9rem;
  width: 7.6rem;
  font-size: 0.84rem;
  padding: 0.85rem 0.5rem 0.75rem;
}

@keyframes aura-counter-orbit {
  from { transform: rotate(calc(var(--angle) * -1)); }
  to { transform: rotate(calc(var(--angle) * -1 - 360deg)); }
}

@keyframes engine-bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -4px; }
}

.aura-engine strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.aura-engine small {
  display: block;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

.aura-engine-dot {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  margin: 0 auto 0.35rem;
  background: linear-gradient(135deg, var(--brand-400), var(--accent-aura));
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.7);
}

.aura-engine:hover,
.aura-engine.is-active {
  border-color: color-mix(in srgb, var(--accent-aura) 55%, transparent);
  box-shadow: var(--shadow-glow);
  background: color-mix(in srgb, var(--bg-elevated) 88%, var(--accent-aura));
  scale: 1.08;
  z-index: 6;
  animation-play-state: paused;
}

.aura-core-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(7.5rem, 18%, 9.5rem);
  height: clamp(7.5rem, 18%, 9.5rem);
  border-radius: 50%;
  background: linear-gradient(145deg, #5b7cfa, #7c5cff 55%, #4f46e5);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 750;
  font-size: 1rem;
  z-index: 4;
  box-shadow: 0 0 0 12px rgba(124, 92, 255, 0.12), 0 18px 48px rgba(79, 70, 229, 0.4);
  animation: aura-breathe 4s ease-in-out infinite;
}

.aura-visual-large .aura-core-node {
  width: clamp(9rem, 20%, 11rem);
  height: clamp(9rem, 20%, 11rem);
  font-size: 1.1rem;
}

.aura-core-label {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.15rem;
  line-height: 1.15;
}

.aura-core-label small {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.9;
}

.aura-core-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: ring-expand 2.8s ease-out infinite;
}

.aura-core-ring.delay {
  animation-delay: 1.4s;
}

@keyframes ring-expand {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes aura-breathe {
  0%, 100% {
    box-shadow: 0 0 0 12px rgba(124, 92, 255, 0.12), 0 16px 40px rgba(79, 70, 229, 0.35);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(124, 92, 255, 0.2), 0 22px 56px rgba(79, 70, 229, 0.5);
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.aura-hint {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.aura-selection {
  max-width: 36rem;
  margin: 1rem auto 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  text-align: center;
  animation: fade-up 0.35s ease both;
}

.aura-selection p {
  margin-top: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.aura-bullets {
  max-width: 42rem;
  margin-inline: auto;
}

.engine-card {
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}

.engine-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-glow);
  border-color: color-mix(in srgb, var(--accent-aura) 35%, transparent);
}

.sector-card {
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.sector-card:hover {
  transform: translateY(-8px);
}

.sector-card:hover .sector-icon {
  transform: scale(1.08) rotate(-4deg);
  transition: transform var(--transition);
}

.module-tile {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.indicator-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

.indicator-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

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

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

.engine-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.engine-card h4 {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.engine-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Mobile: AURA keeps motion but shorter orbit radius */
@media (max-width: 720px) {
  .aura-visual,
  .aura-visual-large {
    min-height: 400px;
  }

  .aura-engine,
  .aura-visual-large .aura-engine {
    top: -9.2rem;
    left: -2.9rem;
    width: 5.8rem;
    font-size: 0.72rem;
    padding: 0.55rem 0.35rem;
  }

  .aura-core-node,
  .aura-visual-large .aura-core-node {
    width: 6.5rem;
    height: 6.5rem;
    font-size: 0.85rem;
  }

  .ecosystem-map {
    width: min(100%, 340px);
  }
}

/* Reduced motion: keep layout, drop continuous animation */
@media (prefers-reduced-motion: reduce) {
  .aura-orbit-slot,
  .aura-engine,
  .aura-ring,
  .aura-particle,
  .aura-link-line,
  .aura-core-node,
  .aura-core-ring,
  .map-node,
  .map-center,
  .orbit,
  .link-line,
  .hero-orb,
  .brand-logo-img,
  .btn-pulse::after {
    animation: none !important;
  }

  .aura-tilt-layer,
  .eco-tilt-layer {
    transform: none !important;
  }
}

/* ----- Module explorer ----- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}

.module-tile {
  padding: 1rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}

.module-tile:hover,
.module-tile.is-active {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-primary) 45%, transparent);
  box-shadow: var(--shadow-glow);
}

.module-tile strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.module-tile span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.module-detail {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  min-height: 4.5rem;
  color: var(--text-secondary);
}

/* ----- Process timeline ----- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-400), var(--accent-aura));
  opacity: 0.35;
}

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    display: none;
  }
}

.timeline-step {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-index {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-aura));
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.timeline-step h3 {
  font-size: 1.05rem;
}

.timeline-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ----- Benefits ----- */
.benefit-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.benefit-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-primary) 14%, transparent);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.benefit-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ----- CTA ----- */
.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(700px 280px at 15% 0%, rgba(91, 124, 250, 0.35), transparent 55%),
    radial-gradient(600px 260px at 90% 100%, rgba(124, 92, 255, 0.28), transparent 50%),
    linear-gradient(135deg, #1a2a6c, #1e3a8a 45%, #312e81);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: #fff;
  max-width: 28ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: #1e3a8a;
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  color: #1e3a8a;
  background: #f1f5f9;
}

.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ----- Footer ----- */
.corporate-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

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

.corporate-footer a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.corporate-footer a:hover {
  color: #fff;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 28rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ----- Theme switcher ----- */
.theme-switcher {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background var(--transition), border-color var(--transition);
}

.theme-switcher:hover {
  border-color: var(--border-strong);
  background: var(--bg-muted);
}

/* ----- States ----- */
.state-box {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--bg-muted);
  text-align: center;
  color: var(--text-secondary);
}

.state-box h3 {
  margin-bottom: 0.4rem;
}

.spinner {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent-primary);
  margin: 0 auto 0.75rem;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----- Pricing ----- */
.plan-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card.is-featured {
  border-color: color-mix(in srgb, var(--accent-primary) 50%, transparent);
  box-shadow: var(--shadow-glow);
}

.plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--accent-primary) 15%, transparent);
  color: var(--accent-primary);
}

.plan-price {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  color: var(--text-primary);
}

.plan-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features li::before {
  content: "✓";
  color: var(--accent-primary);
  font-weight: 700;
}

/* ----- Content lists ----- */
.content-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  display: grid;
  gap: 0.4rem;
}

/* ----- Split layout ----- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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