/* ============ Navbar Layout ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,.85); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--accent); position: relative; padding-block: 3px; }
.brand::before {
  content: "";
  position: absolute;
  inset: -3px -8px;
  min-height: 44px;
}
.brand .logo-mark {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px -4px rgba(46,117,182,.35);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(46, 117, 182, 0.15);
}
.brand .logo-mark img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name .name { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-name .tag { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--fg-muted); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 3px; }

.nav-links {
  display: flex; gap: 4px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--fg-muted);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

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

/* ============ Mobile Menu Navigation ============ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle .hamburger-bar {
  width: 24px;
  height: 3px;
  background-color: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }
}

.nav-menu-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 1005;
  transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: none;
  flex-direction: column;
  padding: 100px 32px 32px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}
.nav-menu-mobile.open {
  right: 0;
  display: flex;
}
.nav-menu-mobile-links {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nav-menu-mobile-links a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  display: block;
  transition: color 0.2s ease;
}
.nav-menu-mobile-links a:hover {
  color: var(--accent-2);
}
.nav-menu-mobile-cta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.nav-menu-mobile-cta .btn {
  width: 100%;
}
@media (max-width: 640px) {
  .nav-cta .cta-text-desktop {
    display: none !important;
  }
  .nav-cta .btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
}

/* ============ Hero Section ============ */
.hero {
  position: relative;
  padding: 88px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(46,117,182,.18) 1px, transparent 0) 0 0 / 24px 24px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 30%, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 .accent { color: var(--accent-2); }
.hero h1 .strike { position: relative; white-space: nowrap; }
.hero h1 .strike::after {
  content: "";
  position: absolute; left: -2%; right: -2%; top: 56%;
  height: 8px; background: var(--accent-2); opacity: .85;
  transform: skewY(-2deg);
  border-radius: 2px;
}

.hero h1 {
  position: relative;
  z-index: 1;
}
.hero h1 .line { display: block; }

.hero h1 .power {
  position: relative;
  display: inline-block;
  padding: 0 0.04em;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg,
    #1B3A6B 0%,
    #2E75B6 35%,
    #3B9AFF 55%,
    #00d2ff 80%,
    #3B9AFF 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: powerShimmer 6s ease-in-out infinite, powerBreath 3.6s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(59,154,255,.28));
  z-index: 1;
}
.hero h1 .power::before {
  content: "";
  position: absolute;
  inset: -22% -14%;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(59,154,255,.32), transparent 70%),
    radial-gradient(ellipse 80% 30% at 50% 50%, rgba(0,210,255,.18), transparent 70%);
  filter: blur(18px);
  z-index: -1;
  animation: powerHaloBreath 3.6s ease-in-out infinite;
  pointer-events: none;
}
.hero h1 .power::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: -0.04em;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(46,117,182,.35) 12%,
    #3B9AFF 38%,
    #00d2ff 50%,
    #3B9AFF 62%,
    rgba(46,117,182,.35) 88%,
    transparent 100%);
  background-size: 220% 100%;
  box-shadow: 0 0 18px rgba(59,154,255,.55), 0 0 4px rgba(0,210,255,.7);
  animation: powerUnderline 3.6s ease-in-out infinite, underlineSlide 6s ease-in-out infinite;
  transform-origin: center;
  pointer-events: none;
}

.hero h1 .nube {
  position: relative;
  display: inline-block;
  color: var(--accent-2);
  opacity: .55;
}
.hero h1 .nube::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  top: 54%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 2px 12px rgba(46,117,182,.35);
  animation: drawStrike 1.1s cubic-bezier(.7,0,.3,1) 1.1s forwards;
}

.hero-title-wrap {
  position: relative;
  isolation: isolate;
}
.hero-title-wrap::before {
  content: "";
  position: absolute;
  left: -24px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-2) 30%, var(--accent-2) 70%, transparent);
  opacity: .35;
  border-radius: 2px;
  animation: leftBar 3.6s ease-in-out infinite;
}
@media (max-width: 980px) { .hero-title-wrap::before { display: none; } }

.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 7px 14px 7px 12px;
  background: rgba(213,228,245,.55);
  border: 1px solid rgba(46,117,182,.22);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  backdrop-filter: blur(4px);
}
.hero-live .live-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--polaris-success);
  box-shadow: 0 0 0 0 rgba(56,161,105,.6);
  animation: liveDot 1.8s ease-in-out infinite;
}
.hero-live .live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(56,161,105,.4);
  animation: liveRing 1.8s ease-out infinite;
}
.hero-live strong { color: var(--accent); font-weight: 700; }
.hero-live span.sep { color: var(--accent-2); opacity: .5; }

.hero-sub {
  margin-top: 20px;
  max-width: 560px;
  font-size: 1.125rem;
  color: var(--fg-muted);
}
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 28px;
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.hero-trust span { display: inline-flex; gap: 7px; align-items: center; }
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--polaris-success); box-shadow: 0 0 0 4px rgba(56,161,105,.15); }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  margin-left: auto;
  width: 100%;
}
.hero-visual .glow {
  position: absolute; inset: 8%;
  background: radial-gradient(circle at 50% 50%, rgba(59,154,255,.45), rgba(46,117,182,.18) 40%, transparent 65%);
  filter: blur(20px);
  z-index: 0;
  animation: pulse 4.5s ease-in-out infinite;
}
.hero-visual .ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(46,117,182,.25);
}
.hero-visual .ring.r2 { inset: 8%; }
.hero-visual .ring.r3 { inset: 18%; border-style: solid; border-color: rgba(46,117,182,.1); }

.hero-visual .orbit {
  position: absolute; inset: 0;
  animation: rotate 36s linear infinite;
}
.hero-visual .orbit.reverse { animation-duration: 50s; animation-direction: reverse; }

.hero-visual .chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  transform-origin: center;
}
.hero-visual .chip .led { width: 7px; height: 7px; border-radius: 50%; background: var(--polaris-success); box-shadow: 0 0 0 3px rgba(56,161,105,.15); }
.hero-visual .chip.warn .led { background: var(--accent-2); box-shadow: 0 0 0 3px rgba(46,117,182,.18); }

.hero-visual .chip.c1 { top: 4%; left: 8%; }
.hero-visual .chip.c2 { top: 16%; right: -2%; }
.hero-visual .chip.c3 { bottom: 22%; left: -4%; }
.hero-visual .chip.c4 { bottom: 6%; right: 8%; }

.hero-visual .orbit .chip { animation: rotate 36s linear infinite reverse; }
.hero-visual .orbit.reverse .chip { animation-duration: 50s; animation-direction: normal; }

.hero-visual .isotype {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #eaf2fc);
  box-shadow:
    0 30px 80px -30px rgba(27,58,107,.45),
    inset 0 0 0 1px rgba(46,117,182,.18);
  display: grid; place-items: center;
  overflow: hidden;
  z-index: 2;
}
.hero-visual .isotype img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

/* Hero stats */
.hero-stats {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative; z-index: 1;
}
@media (max-width: 760px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 700; color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.stat .num .suffix { font-size: 1rem; font-weight: 600; color: var(--accent-2); }
.stat .label { display: block; margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--fg-muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ============ Marquee ============ */
.marquee-wrap {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  overflow: hidden;
}
.marquee-inner {
  display: flex; gap: 64px; align-items: center;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.marquee-inner span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-inner svg { color: var(--accent-2); flex-shrink: 0; }

/* ============ Grids layouts ============ */
.pillars { background: var(--bg); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .pillars-grid { grid-template-columns: 1fr; } }

.arch { background: var(--bg-alt); }
.arch-canvas {
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) { .arch-canvas { padding: 28px; } }
.arch-grid {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 32px; align-items: stretch;
  position: relative; z-index: 1;
}
@media (max-width: 900px) {
  .arch-grid { grid-template-columns: 1fr; }
}
.arch-col h4 { font-size: 0.78rem; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.18em; color: var(--fg-muted); text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
.arch-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 60px; height: 30px;
  pointer-events: none;
}
.arch-arrow svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .arch-arrow { display: none; } }

/* Sectores */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .sectors-grid { grid-template-columns: 1fr; } }

/* Perfiles & Proof */
.proof {
  background: var(--bg);
  color: var(--fg);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.proof.alt { background: var(--bg-alt); }
.proof:last-of-type { padding-bottom: 110px; }
.proof > .container { position: relative; z-index: 1; }
.proof .head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
  display: flex; flex-direction: column; gap: 18px; align-items: center;
}
.proof h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.1;
}
.proof h2 .ac { color: var(--accent-2); }
.proof .head p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.perfiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .perfiles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .perfiles-grid { grid-template-columns: 1fr; } }

.estim-note {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  padding: 8px 14px;
  border-radius: 999px;
}
.estim-note svg { color: var(--accent-2); flex-shrink: 0; }
.estim-note strong { color: var(--accent); font-weight: 600; }

/* Impacto grid layout */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 920px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpi-grid { grid-template-columns: 1fr; } }

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 980px) { .charts-grid { grid-template-columns: 1fr; } }

/* ROI & Pricing */
.roi-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: flex-start;
}
@media (max-width: 980px) { .roi-grid { grid-template-columns: 1fr; gap: 24px; } }

.pricing { background: var(--bg-alt); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 920px) { .pricing-grid { grid-template-columns: 1fr; } }

/* Demo CTA layout */
.demo-cta {
  background: linear-gradient(160deg, var(--polaris-navy-deep) 0%, var(--polaris-navy) 50%, #143268 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.demo-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 0%, rgba(59,154,255,.25), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(213,228,245,.10), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(213,228,245,.08) 1px, transparent 0) 0 0 / 28px 28px;
  pointer-events: none;
}
.demo-cta-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .demo-cta-grid { grid-template-columns: 1fr; gap: 40px; } }
.demo-cta h2 { color: #fff; }
.demo-cta p { color: rgba(255,255,255,.78); font-size: 1.05rem; }
.demo-cta .eyebrow { color: #9ec6ff; }
.demo-cta .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.demo-cta .btn-primary { background: #fff; color: var(--polaris-navy); }
.demo-cta .btn-primary:hover { background: var(--polaris-light-blue); color: var(--polaris-navy-deep); }
.demo-cta .btn-secondary { border-color: rgba(255,255,255,.4); color: #fff; }
.demo-cta .btn-secondary:hover { background: rgba(255,255,255,.08); }

/* FAQ & Footer */
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.5fr; gap: 56px; align-items: flex-start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }

footer {
  background: var(--polaris-navy-deep);
  color: rgba(255,255,255,.7);
  padding: 64px 0 24px;
  font-size: 0.92rem;
}
footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; font-family: 'JetBrains Mono', monospace; font-weight: 500; opacity: .7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
footer ul a {
  padding-block: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255,255,255,.7);
  transition: color .15s ease;
}
footer a { color: rgba(255,255,255,.7); transition: color .15s ease; }
footer a:hover { color: #fff; }
footer .brand { color: #fff; margin-bottom: 14px; }
footer .brand-name .name { color: #fff; }
footer .brand-name .tag { color: rgba(255,255,255,.5); }
footer .blurb { max-width: 320px; color: rgba(255,255,255,.65); font-size: 0.92rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,.45);
  letter-spacing: 0.06em;
}
footer .footer-bottom a {
  padding-block: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-inline: 6px;
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  footer .footer-bottom a { margin-inline: 0; margin-block: 2px; }
  footer { padding-bottom: 120px !important; }
  .hero-visual {
    overflow: hidden;
  }
  .hero-visual .chip.c2 {
    right: 2% !important;
  }
  .hero-visual .chip.c3 {
    left: 2% !important;
  }
  #sectores .section-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
}

/* ============ Reveal on scroll ============ */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* Dark mode additional elements */
body.theme-dark .nav { background: rgba(11,27,54,.7); }
body.theme-dark .nav.scrolled { background: rgba(11,27,54,.9); }
body.theme-dark .hero::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(46,117,182,.25) 0%, transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(213,228,245,.10) 1px, transparent 0) 0 0 / 24px 24px;
}
body.theme-dark .feature-card { background: var(--bg-alt); }
body.theme-dark .arch-canvas { background: var(--bg-alt); border-color: var(--border); }
body.theme-dark .arch-box { background: rgba(255,255,255,.04); border-color: var(--border); }
body.theme-dark .hero-visual .chip { background: var(--bg-alt); color: var(--fg); }
body.theme-dark .hero-visual .isotype { background: radial-gradient(circle at 30% 30%, #1a3160, #0d1f3c); }
body.theme-dark .brand-name .name { color: #fff; }
body.theme-dark .marquee-wrap { background: var(--bg-alt); }
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3, body.theme-dark h4 { color: var(--fg); }
body.theme-dark .btn-secondary { color: var(--polaris-light-blue); border-color: rgba(213,228,245,.4); }
body.theme-dark .btn-secondary:hover { background: rgba(213,228,245,.08); }
body.theme-dark .btn-ghost { color: var(--fg); }
body.theme-dark #tweaks { background: var(--bg-alt); color: var(--fg); }
body.theme-dark .twk-seg { background: rgba(255,255,255,.04); }
body.theme-dark .sector-card { background: var(--bg-alt); }

/* ============ Animations Keyframes ============ */
@keyframes powerShimmer    { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes powerBreath     { 0%,100% { filter: drop-shadow(0 0 18px rgba(59,154,255,.25)); } 50% { filter: drop-shadow(0 0 34px rgba(59,154,255,.65)); } }
@keyframes powerHaloBreath { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes powerUnderline  { 0%,100% { opacity: .75; transform: scaleX(.94); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes underlineSlide  { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes drawStrike { to { transform: scaleX(1); } }
@keyframes liveDot  { 0%,100% { box-shadow: 0 0 0 0 rgba(56,161,105,.55); } 50% { box-shadow: 0 0 0 7px rgba(56,161,105,0); } }
@keyframes liveRing { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes pulse { 0%,100% { opacity: .65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse-led { 0% { box-shadow: 0 0 0 0 rgba(56,161,105,.6); } 70% { box-shadow: 0 0 0 8px rgba(56,161,105,0); } 100% { box-shadow: 0 0 0 0 rgba(56,161,105,0); } }
@keyframes introRotateCW  { from { transform: rotate(0deg); }    to { transform: rotate(360deg); } }
@keyframes introRotateCCW { from { transform: rotate(0deg); }    to { transform: rotate(-360deg); } }
@keyframes introDiskPulse { 0% { transform: scale(0.985); } 100% { transform: scale(1.02); } }
@keyframes introDiskEnter  { to { opacity: 1; transform: scale(1); } }
@keyframes introLogoEnter  { to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes introFadeContainer  { to { opacity: 1; } }
@keyframes introFadeText       { to { opacity: 1; transform: translateX(0); } }
@keyframes introFadeTextMobile { to { opacity: 1; transform: translateY(0); } }
@keyframes introTextLine       { to { opacity: 1; transform: translateY(0); } }

@keyframes perfilArtFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 3px)); }
}
@keyframes avatarBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes avatarHalo   { 0%,100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes avatarLed    { 0%,100% { box-shadow: 0 0 0 1px rgba(56,161,105,.25), 0 0 0 0 rgba(56,161,105,.6); } 50% { box-shadow: 0 0 0 1px rgba(56,161,105,.25), 0 0 0 6px rgba(56,161,105,0); } }
@keyframes sectorPing {
  0%   { opacity: .8; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .perfil-avatar,
  .perfil-avatar::before,
  .perfil-avatar::after,
  .perfil-sector-icon::after,
  .perfil-art,
  .hero-visual .orbit,
  .hero-visual .glow,
  .hero-live .live-dot,
  .hero-live .live-dot::after { animation: none !important; }
}
