/* ============================================================
   AMELIA · NAVBAR + HERO 2026
   Rediseño visual corporativo para las dos primeras secciones.
   Paleta: índigo Amelia + azul eléctrico + cian + neutros.
============================================================ */

:root {
  --am-ink: #171b3d;
  --am-ink-2: #29315f;
  --am-copy: #5f6787;
  --am-muted: #8b92ad;
  --am-primary: #6254e8;
  --am-primary-2: #485de8;
  --am-blue: #3d72f5;
  --am-cyan: #47c6dd;
  --am-cyan-soft: #e9fbff;
  --am-violet-soft: #f0edff;
  --am-blue-soft: #edf3ff;
  --am-line: rgba(60, 71, 123, 0.13);
  --am-white: #ffffff;
  --am-bg: #f8faff;
  --am-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --am-shadow: 0 22px 60px rgba(34, 43, 101, 0.13);
  --am-shadow-soft: 0 12px 32px rgba(37, 47, 105, 0.09);
}

/* ============================================================
   NAVBAR · V2
   Más integrado, sin “caja flotante” exterior innecesaria.
============================================================ */

.amelia-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0;
  background: rgba(252, 253, 255, 0.82);
  border-bottom: 1px solid rgba(66, 80, 143, 0.075);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition:
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.amelia-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(71, 198, 221, 0.18) 18%,
    rgba(61, 114, 245, 0.35) 43%,
    rgba(98, 84, 232, 0.32) 64%,
    rgba(71, 198, 221, 0.18) 82%,
    transparent 100%
  );
  background-size: 190% 100%;
  animation: am-header-line 8s linear infinite;
}

.amelia-header.header-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(66, 80, 143, 0.11);
  box-shadow: 0 12px 32px rgba(30, 41, 96, 0.075);
}

.amelia-header__container {
  position: relative;
  width: min(1420px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  transition: min-height 0.32s var(--am-ease), width 0.32s var(--am-ease);
}

.amelia-header.header-scrolled .amelia-header__container {
  min-height: 70px;
  width: min(1400px, calc(100% - 40px));
}

.amelia-header__container::before,
.amelia-header__container::after {
  display: none;
}

/* Brand */
.amelia-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 186px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--am-ink);
}

.amelia-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 16px;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  opacity: 0.6;
  transform: scaleX(0.34);
  transform-origin: left;
  background: linear-gradient(90deg, var(--am-blue), var(--am-cyan), transparent);
  animation: am-brand-line 5.2s ease-in-out infinite;
}

.amelia-brand__icon {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  animation: am-brand-float 5.6s ease-in-out infinite;
}

.amelia-brand__icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 114, 245, 0.12), rgba(71, 198, 221, 0.04) 46%, transparent 70%);
  filter: blur(5px);
  animation: am-brand-glow 4.5s ease-in-out infinite;
}

.amelia-brand__icon img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.amelia-brand__content {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.amelia-brand__content strong {
  font-family: Poppins, Inter, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--am-ink);
}

.amelia-brand__content small {
  margin-top: 5px;
  font-size: 6.8px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #667199;
  white-space: nowrap;
}

/* Nav */
.amelia-nav {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.5vw, 9px);
  min-width: 0;
  padding: 0 7px 4px;
}

/* Línea de energía que recorre el menú aun sin hover. */
.amelia-nav::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(70, 91, 176, 0.11) 12%, rgba(70, 91, 176, 0.11) 88%, transparent);
}

.amelia-nav::after {
  content: "";
  position: absolute;
  left: 5%;
  bottom: 0;
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--am-cyan), var(--am-blue), transparent);
  box-shadow: 0 0 12px rgba(61, 114, 245, 0.22);
  animation: am-nav-tracer 8.4s ease-in-out infinite;
}

.amelia-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 10px;
  color: #414b76;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.1px;
  transition:
    color 0.25s ease,
    transform 0.3s var(--am-ease),
    text-shadow 0.25s ease;
}

.amelia-nav__link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--am-cyan), var(--am-blue), var(--am-primary));
  box-shadow: 0 0 13px rgba(61, 114, 245, 0.25);
  transform: translateX(-50%);
  transition: width 0.35s var(--am-ease), opacity 0.25s ease;
  opacity: 0;
}

.amelia-nav__link::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--am-cyan);
  box-shadow: 0 0 0 4px rgba(71, 198, 221, 0.08), 0 0 12px rgba(71, 198, 221, 0.25);
  opacity: 0;
  transform: scale(0.45);
  transition: opacity 0.25s ease, transform 0.3s var(--am-ease);
}

.amelia-nav__icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #63709a;
  background: linear-gradient(145deg, rgba(247, 249, 255, 0.95), rgba(238, 244, 255, 0.86));
  box-shadow: inset 0 0 0 1px rgba(69, 86, 164, 0.07);
  animation: am-nav-icon-idle 5.8s ease-in-out infinite;
  transition:
    color 0.25s ease,
    transform 0.35s var(--am-ease),
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.amelia-nav__link:nth-child(2) .amelia-nav__icon { animation-delay: -1.15s; }
.amelia-nav__link:nth-child(3) .amelia-nav__icon { animation-delay: -2.3s; }
.amelia-nav__link:nth-child(4) .amelia-nav__icon { animation-delay: -3.45s; }
.amelia-nav__link:nth-child(5) .amelia-nav__icon { animation-delay: -4.6s; }

.amelia-nav__link:hover,
.amelia-nav__link.is-active {
  color: #334ca7;
  transform: translateY(-2px);
  text-shadow: 0 6px 16px rgba(61, 114, 245, 0.10);
}

.amelia-nav__link:hover::before,
.amelia-nav__link.is-active::before {
  width: calc(100% - 20px);
  opacity: 1;
}

.amelia-nav__link.is-active::after {
  opacity: 1;
  transform: scale(1);
  animation: am-nav-dot 2.2s ease-in-out infinite;
}

.amelia-nav__link:hover .amelia-nav__icon,
.amelia-nav__link.is-active .amelia-nav__icon {
  color: #fff;
  background: linear-gradient(135deg, var(--am-primary-2), var(--am-blue), var(--am-cyan));
  box-shadow: 0 8px 20px rgba(61, 114, 245, 0.20);
  transform: translateY(-2px) rotate(-5deg) scale(1.06);
}

/* CTA navbar */
.amelia-header__actions {
  flex: 0 0 auto;
}

.amelia-header__cta {
  position: relative;
  isolation: isolate;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(118deg, #4e62ea 0%, #6655e9 52%, #507bf2 100%);
  background-size: 190% 190%;
  box-shadow: 0 11px 24px rgba(72, 93, 232, 0.24);
  font-size: 13px;
  font-weight: 700;
  animation: am-cta-gradient 7s ease infinite, am-cta-breathe 3.8s ease-in-out infinite;
  transition: transform 0.3s var(--am-ease), box-shadow 0.3s ease;
}

.amelia-header__cta::before {
  content: "";
  position: absolute;
  top: -80%;
  left: -35%;
  width: 38%;
  height: 260%;
  z-index: -1;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  animation: am-cta-shine 4.2s ease-in-out infinite;
}

.amelia-header__cta::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 8px;
  width: 32px;
  height: 32px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(71, 198, 221, 0.20);
  filter: blur(8px);
}

.amelia-header__cta:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 17px 36px rgba(72, 93, 232, 0.31);
}

.amelia-header__cta-icon,
.amelia-header__cta-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.amelia-header__cta-arrow {
  transition: transform 0.3s var(--am-ease);
}

.amelia-header__cta:hover .amelia-header__cta-arrow {
  transform: translateX(4px);
}

/* Mobile nav */
.amelia-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(75, 86, 146, 0.12);
  border-radius: 13px;
  background: linear-gradient(145deg, #f9fbff, #eef3ff);
  box-shadow: 0 7px 18px rgba(43, 53, 107, 0.06);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.amelia-menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--am-ink-2);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.amelia-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.amelia-menu-toggle.active span:nth-child(2) { opacity: 0; }
.amelia-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.amelia-mobile-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 18px;
  right: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top center;
  transition: opacity 0.25s ease, transform 0.3s var(--am-ease), visibility 0.25s;
}

.amelia-mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.amelia-mobile-menu__inner {
  padding: 10px;
  border: 1px solid rgba(75, 86, 146, 0.12);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 55px rgba(34, 43, 101, 0.16);
  backdrop-filter: blur(20px);
}

.amelia-mobile-menu__inner > a:not(.amelia-mobile-cta) {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--am-ink-2);
  font-size: 14px;
  font-weight: 650;
  transition: transform .25s var(--am-ease), color .25s ease, background .25s ease;
}

.amelia-mobile-menu__inner > a:not(.amelia-mobile-cta):hover {
  color: var(--am-primary-2);
  background: linear-gradient(90deg, rgba(61,114,245,.07), rgba(71,198,221,.05));
  transform: translateX(3px);
}

.amelia-mobile-nav__icon,
.amelia-mobile-cta__icon {
  display: grid;
  place-items: center;
}

.amelia-mobile-menu__divider {
  height: 1px;
  margin: 8px 4px 12px;
  background: var(--am-line);
}

.amelia-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(120deg, var(--am-primary-2), var(--am-primary), var(--am-blue));
  background-size: 200% 200%;
  font-size: 13px;
  font-weight: 700;
  animation: am-cta-gradient 7s ease infinite;
}

.amelia-mobile-cta__arrow { margin-left: auto; }

/* ============================================================
   HERO BACKGROUND / LAYOUT
============================================================ */

.amelia-hero {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(61, 114, 245, 0.12), transparent 27%),
    radial-gradient(circle at 92% 72%, rgba(71, 198, 221, 0.12), transparent 23%),
    radial-gradient(circle at 9% 10%, rgba(98, 84, 232, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f7faff 56%, #fbfcff 100%);
}

.amelia-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 2%;
  left: -12%;
  width: 65%;
  height: 92%;
  opacity: 0.65;
  background: linear-gradient(112deg, transparent 28%, rgba(255, 255, 255, 0.74) 48%, transparent 68%);
  transform: skewX(-10deg);
  animation: am-hero-sweep 12s ease-in-out infinite;
}

.amelia-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.78));
  pointer-events: none;
}

.amelia-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(82, 98, 163, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 98, 163, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent 92%);
  animation: am-grid-drift 24s linear infinite;
}

.amelia-hero__grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 45% 34%, rgba(255,255,255,0.95), transparent 36%);
}

.amelia-hero__glow {
  position: absolute;
  z-index: -3;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}

.amelia-hero__glow--one {
  width: 380px;
  height: 380px;
  right: 8%;
  top: 7%;
  background: radial-gradient(circle, rgba(98, 84, 232, 0.14), rgba(98, 84, 232, 0.02) 56%, transparent 70%);
  animation: am-orb-one 13s ease-in-out infinite;
}

.amelia-hero__glow--two {
  width: 330px;
  height: 330px;
  right: 23%;
  bottom: 3%;
  background: radial-gradient(circle, rgba(71, 198, 221, 0.16), rgba(71, 198, 221, 0.025) 55%, transparent 72%);
  animation: am-orb-two 15s ease-in-out infinite;
}

.amelia-hero__container {
  position: relative;
  z-index: 2;
  width: min(1420px, calc(100% - 56px));
  min-height: 670px;
  margin: 0 auto;
  padding: 58px 0 74px;
  display: grid;
  grid-template-columns: minmax(500px, 0.87fr) minmax(720px, 1.13fr);
  align-items: center;
  gap: clamp(30px, 3.2vw, 52px);
}

/* ============================================================
   HERO LEFT
============================================================ */

.amelia-hero__content {
  position: relative;
  max-width: 650px;
}

.amelia-hero__content::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 80px;
  width: 3px;
  height: 154px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--am-cyan), var(--am-blue), var(--am-primary), transparent);
  transform-origin: top;
  animation: am-accent-breathe 5s ease-in-out infinite;
}

.amelia-hero__badge {
  position: relative;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  padding: 0 12px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(61, 114, 245, 0.12);
  border-radius: 999px;
  color: #3e4f86;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(46, 60, 124, 0.06);
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.amelia-hero__badge::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -28%;
  width: 24%;
  height: 160%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  animation: am-badge-shine 5.5s ease-in-out infinite;
}

.amelia-hero__badge-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--am-blue);
  background: var(--am-blue-soft);
}

.amelia-hero__badge-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(61, 114, 245, 0.22);
  border-radius: inherit;
  animation: am-badge-ring 2.6s ease-out infinite;
}

.amelia-hero__title {
  margin: 21px 0 0;
  color: var(--am-ink);
  font-family: Poppins, Inter, sans-serif;
  font-size: clamp(50px, 4.05vw, 68px);
  line-height: 0.99;
  font-weight: 800;
  letter-spacing: -0.052em;
}

.amelia-hero__title span {
  position: relative;
  display: block;
  margin-top: 10px;
  padding-bottom: 9px;
  color: transparent;
  background: linear-gradient(100deg, #6654e9 0%, #4966ed 42%, #3d90ef 68%, #48c4d9 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: am-title-flow 7s ease-in-out infinite;
}

.amelia-hero__title span::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 0;
  width: 76px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--am-primary), var(--am-blue), var(--am-cyan));
  background-size: 220% 100%;
  box-shadow: 0 0 16px rgba(71, 198, 221, 0.28);
  animation: am-title-line 4s ease-in-out infinite;
}

.amelia-hero__description {
  max-width: 590px;
  margin: 23px 0 0;
  color: var(--am-copy);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

.amelia-hero__actions {
  margin-top: 25px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.amelia-hero__primary,
.amelia-hero__secondary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 750;
  transition: transform 0.3s var(--am-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.amelia-hero__primary {
  position: relative;
  isolation: isolate;
  gap: 10px;
  min-width: 270px;
  padding: 0 20px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(116deg, #4d61e8, #6854e9 48%, #3d79f3 100%);
  background-size: 220% 220%;
  box-shadow: 0 14px 30px rgba(72, 93, 232, 0.23);
  animation: am-cta-gradient 8s ease infinite, am-hero-primary-breathe 4.2s ease-in-out infinite;
}

.amelia-hero__primary::before {
  content: "";
  position: absolute;
  left: -26%;
  top: -80%;
  z-index: -1;
  width: 26%;
  height: 260%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.36), transparent);
  animation: am-primary-shine 4.8s ease-in-out infinite;
}

.amelia-hero__primary::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 64px;
  height: 64px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(71, 198, 221, 0.16);
  filter: blur(7px);
  transform: translateY(-50%);
  animation: am-primary-orb 5s ease-in-out infinite;
}

.amelia-hero__primary svg {
  transition: transform 0.3s var(--am-ease);
}

.amelia-hero__primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 19px 37px rgba(72, 93, 232, 0.31);
}

.amelia-hero__primary:hover svg { transform: translateX(4px); }

.amelia-hero__secondary {
  position: relative;
  gap: 9px;
  min-width: 177px;
  padding: 0 16px;
  border: 1px solid rgba(69, 82, 143, 0.15);
  color: #323a68;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 9px 23px rgba(42, 53, 112, 0.06);
  backdrop-filter: blur(10px);
}

.amelia-hero__secondary::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(71,198,221,0.06), rgba(61,114,245,0.06));
  opacity: 0.3;
  animation: am-secondary-breathe 4.5s ease-in-out infinite;
}

.amelia-hero__secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 114, 245, 0.22);
  box-shadow: 0 14px 29px rgba(42, 53, 112, 0.1);
}

.amelia-hero__play {
  position: relative;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--am-primary-2);
  background: var(--am-violet-soft);
}

.amelia-hero__play::before,
.amelia-hero__play::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(98, 84, 232, 0.18);
  border-radius: inherit;
  animation: am-play-wave 3s ease-out infinite;
}

.amelia-hero__play::after { animation-delay: 1.5s; }

.amelia-hero__micro {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #7e86a4;
  font-size: 10.5px;
  font-weight: 600;
}

.amelia-check {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #268da0;
  background: var(--am-cyan-soft);
  font-size: 10px;
  font-weight: 900;
}

.amelia-dot { color: #b2b7c9; }

/* Platforms */
.amelia-platforms {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.amelia-platforms__label {
  flex-basis: 100%;
  margin-bottom: 1px;
  color: #8a91aa;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.65px;
  text-transform: uppercase;
}

.amelia-platform {
  min-height: 39px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(76, 87, 145, 0.11);
  border-radius: 11px;
  color: #35406f;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 7px 19px rgba(43, 53, 107, 0.05);
  font-size: 11px;
  font-weight: 700;
  animation: am-platform-float 6s ease-in-out infinite;
  transition: transform 0.25s var(--am-ease), border-color 0.25s ease, color 0.25s ease;
}

.amelia-platform:nth-of-type(2) { animation-delay: -2s; }
.amelia-platform:nth-of-type(3) { animation-delay: -4s; }

.amelia-platform:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 114, 245, 0.19);
  color: var(--am-blue);
}

.amelia-platform__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--am-primary-2);
  background: linear-gradient(135deg, var(--am-violet-soft), var(--am-blue-soft));
}

.amelia-platform--web .amelia-platform__icon {
  color: #1b95ab;
  background: var(--am-cyan-soft);
}

.amelia-platforms__separator {
  width: 1px;
  height: 25px;
  margin: 0 2px;
  background: var(--am-line);
}

/* ============================================================
   HERO PRODUCT DEMO
============================================================ */

.amelia-hero__visual {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 24px 6px 0 4px;
}

.amelia-demo-cluster {
  position: relative;
  width: 100%;
  min-width: 0;
  perspective: 1200px;
}

.amelia-product-demo {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(66, 80, 143, 0.13);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 34px 78px rgba(38, 48, 105, 0.16), 0 8px 24px rgba(61, 114, 245, 0.07);
  transform: rotateY(-1.5deg) rotateX(0.4deg);
  transform-origin: 60% 50%;
  animation: am-demo-float 8s ease-in-out infinite;
}

.amelia-product-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.42), transparent 23% 74%, rgba(71,198,221,0.035));
}

.amelia-product-demo__browser {
  position: relative;
  height: 54px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(67, 78, 137, 0.1);
  background: linear-gradient(180deg, #fdfdff, #f6f8fe);
}

.amelia-product-demo__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.amelia-product-demo__dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #66d1df;
}

.amelia-product-demo__dots span:nth-child(2) { background: #f2c75c; }
.amelia-product-demo__dots span:nth-child(3) { background: #6a7cf2; }

.amelia-product-demo__address {
  min-width: 178px;
  height: 28px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(80, 92, 153, 0.08);
  border-radius: 9px;
  color: #7480a6;
  background: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 8.5px;
}

.amelia-product-demo__lock { display: grid; place-items: center; color: #48a9ba; }

.amelia-product-demo__live {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3f8d9b;
  font-size: 8.5px;
  font-weight: 800;
}

.amelia-product-demo__live > span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4fc5d6;
  box-shadow: 0 0 0 5px rgba(79, 197, 214, 0.11);
  animation: am-live-pulse 2s ease-in-out infinite;
}

.amelia-product-demo__shell {
  height: 445px;
  display: grid;
  grid-template-columns: 105px 1fr;
  background: #f9fbff;
}

/* Demo left rail */
.amelia-demo-nav {
  position: relative;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-right: 1px solid rgba(70, 82, 145, 0.09);
  background: #fff;
}

.amelia-demo-nav__mark {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--am-violet-soft), var(--am-blue-soft));
}

.amelia-demo-nav__mark img { width: 23px; height: 23px; }

.amelia-demo-nav__item {
  position: relative;
  width: 100%;
  min-height: 61px;
  padding: 7px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: #7780a0;
  background: transparent;
  font-size: 8px;
  font-weight: 750;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--am-ease);
}

.amelia-demo-nav__item::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(var(--am-cyan), var(--am-blue));
  transform: translateY(-50%);
  transition: height 0.3s var(--am-ease);
}

.amelia-demo-nav__item.is-active {
  color: var(--am-primary-2);
  background: linear-gradient(135deg, rgba(98,84,232,0.08), rgba(61,114,245,0.07), rgba(71,198,221,0.06));
}

.amelia-demo-nav__item.is-active::after { height: 29px; }
.amelia-demo-nav__item:hover { transform: translateY(-1px); color: var(--am-blue); }

.amelia-demo-nav__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f4f6fc;
  transition: transform 0.3s var(--am-ease), background 0.25s ease;
}

.amelia-demo-nav__item.is-active .amelia-demo-nav__icon {
  background: #fff;
  box-shadow: 0 6px 14px rgba(60, 74, 142, 0.08);
  transform: rotate(-4deg) scale(1.03);
}

/* Demo stage */
.amelia-demo-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.amelia-demo-stage__topbar {
  height: 66px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(70, 82, 145, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.amelia-demo-stage__topbar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.amelia-demo-stage__eyebrow {
  color: #8790ad;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.45px;
}

.amelia-demo-stage__topbar strong {
  color: var(--am-ink-2);
  font-size: 13px;
  font-weight: 800;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.amelia-demo-stage__topbar strong.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.amelia-demo-stage__user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.amelia-demo-stage__bell {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(73, 86, 146, 0.09);
  border-radius: 9px;
  color: #6f789d;
  background: #fff;
}

.amelia-demo-stage__avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--am-primary), var(--am-blue));
  font-size: 8px;
  font-weight: 800;
}

.amelia-demo-scenes {
  position: relative;
  height: 347px;
  padding: 18px 20px 24px;
}

.amelia-demo-scene {
  position: absolute;
  inset: 18px 20px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(34px) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 0.5s var(--am-ease),
    transform 0.65s var(--am-ease),
    filter 0.45s ease,
    visibility 0.45s;
}

.amelia-demo-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.demo-scene-header {
  min-height: 42px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-scene-header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-scene-kicker {
  color: #8189a7;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.demo-scene-header h3 {
  margin: 0;
  color: var(--am-ink);
  font-family: Poppins, Inter, sans-serif;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.45px;
}

.demo-scene-status,
.demo-add-button {
  min-height: 27px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 800;
  white-space: nowrap;
}

.demo-scene-status--blue {
  color: #5165cc;
  background: #eff2ff;
}

.demo-scene-status--green {
  color: #278696;
  background: #ebfbfd;
}

.demo-scene-status--green i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #48c6d8;
  box-shadow: 0 0 0 4px rgba(72,198,216,0.1);
  animation: am-live-pulse 2s ease-in-out infinite;
}

.demo-add-button {
  color: #fff;
  background: linear-gradient(120deg, #5668e8, #6378ef);
  box-shadow: 0 6px 13px rgba(72, 93, 232, 0.14);
}

/* Invoice scene */
.demo-invoice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(135px, 0.72fr);
  gap: 12px;
}

.demo-form-card,
.demo-preview-card,
.demo-stat-card,
.demo-table-card,
.demo-product-card,
.demo-sri-card,
.demo-timeline {
  border: 1px solid rgba(73, 85, 145, 0.09);
  background: #fff;
  box-shadow: 0 8px 21px rgba(50, 62, 121, 0.045);
}

.demo-form-card {
  min-height: 232px;
  padding: 13px;
  border-radius: 14px;
}

.demo-form-card label {
  display: block;
  margin-bottom: 5px;
  color: #8d94ad;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.demo-input-row {
  min-height: 31px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e8ebf5;
  border-radius: 8px;
  color: #465073;
  background: #fafbff;
  font-size: 8px;
  font-weight: 650;
}

.demo-input-row b { color: #2ea9bb; }

.demo-form-cols {
  margin-top: 9px;
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: 8px;
}

.demo-form-total {
  margin-top: 10px;
  padding: 9px 1px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #e0e4f0;
  color: #747d9d;
  font-size: 8px;
}

.demo-form-total strong { color: var(--am-primary-2); font-size: 13px; }

.demo-action-bar {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 7px;
  color: #70799a;
  font-size: 7.5px;
  font-weight: 750;
}

.demo-action-bar span,
.demo-action-bar strong {
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.demo-action-bar span { background: #f2f4fa; }
.demo-action-bar strong { color: #fff; background: linear-gradient(120deg, var(--am-primary-2), var(--am-blue)); }

.demo-preview-card {
  position: relative;
  min-height: 232px;
  padding: 15px 12px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, #f8f9ff);
}

.demo-preview-card::before {
  content: "";
  position: absolute;
  right: -35px;
  top: -35px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: rgba(71,198,221,0.08);
}

.demo-preview-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8088a5;
  font-family: "JetBrains Mono", monospace;
  font-size: 6.5px;
}

.demo-preview-card__line {
  width: 76%;
  height: 6px;
  margin-top: 15px;
  border-radius: 999px;
  background: #e8ebf5;
}

.demo-preview-card__line--wide { width: 100%; margin-top: 26px; }
.demo-preview-card__line--short { width: 48%; }

.demo-preview-card__amount {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  padding-top: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px dashed #dfe4ef;
}

.demo-preview-card__amount small { color: #858da8; font-size: 7px; }
.demo-preview-card__amount strong { color: var(--am-primary-2); font-size: 14px; }

/* Clients */
.demo-customer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.demo-stat-card {
  min-height: 80px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #f5f7ff);
}

.demo-stat-card--cyan { background: linear-gradient(145deg, #fff, #effbfe); }
.demo-stat-card span { color: #7e87a4; font-size: 7.5px; font-weight: 700; }
.demo-stat-card strong { margin-top: 5px; color: var(--am-ink); font-size: 20px; letter-spacing: -0.8px; }
.demo-stat-card small { margin-top: auto; color: #4ba8b7; font-size: 6.8px; font-weight: 750; }

.demo-table-card {
  margin-top: 10px;
  overflow: hidden;
  border-radius: 13px;
}

.demo-table-row {
  min-height: 37px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.55fr;
  align-items: center;
  border-top: 1px solid #eef0f6;
  color: #66708f;
  font-size: 7.2px;
}

.demo-table-row:first-child { border-top: 0; }
.demo-table-row--head { min-height: 29px; color: #959bb0; background: #f8f9fd; font-size: 6.5px; font-weight: 800; text-transform: uppercase; }
.demo-table-row > span:first-child { display: flex; align-items: center; gap: 6px; color: #384264; font-weight: 700; }
.demo-table-row b { width: max-content; padding: 4px 7px; border-radius: 999px; color: #2f8e9e; background: #edfafc; font-size: 6.5px; }

.demo-avatar {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--am-primary), var(--am-blue));
  font-style: normal;
  font-size: 6px;
}
.demo-avatar--cyan { background: linear-gradient(135deg, #43b7c9, #5bd3df); }
.demo-avatar--navy { background: linear-gradient(135deg, #28335f, #52638e); }

/* Products */
.demo-product-cards {
  display: grid;
  gap: 8px;
}

.demo-product-card {
  min-height: 58px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  transition: transform 0.25s var(--am-ease);
}

.demo-product-card:nth-child(2) { transform: translateX(8px); }
.demo-product-card:hover { transform: translateX(4px); }
.demo-product-card:nth-child(2):hover { transform: translateX(12px); }

.demo-product-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}
.demo-product-icon--blue { background: linear-gradient(135deg, #5b58e8, #4e79ed); }
.demo-product-icon--cyan { background: linear-gradient(135deg, #39adbf, #59cede); }
.demo-product-icon--navy { background: linear-gradient(135deg, #27325f, #59688f); }
.demo-product-card div { display: flex; flex-direction: column; gap: 2px; }
.demo-product-card div strong { color: #394365; font-size: 8px; }
.demo-product-card div small { color: #949aaf; font-size: 6.5px; }
.demo-product-card > b { color: var(--am-primary-2); font-size: 9px; }

.demo-stock-strip {
  margin-top: 10px;
  min-height: 39px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 11px;
  color: #56818c;
  background: linear-gradient(90deg, #f0fbfd, #f6f8ff);
  font-size: 6.8px;
}
.demo-stock-strip span { display: flex; align-items: center; gap: 6px; }
.demo-stock-strip i { width: 6px; height: 6px; border-radius: 999px; background: #48c4d5; }
.demo-stock-strip strong { color: #4d5b83; font-size: 6.8px; }

/* SRI */
.demo-sri-card {
  min-height: 86px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  background: linear-gradient(120deg, #f4f5ff, #effbfe);
}

.demo-sri-shield {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #3b91a2;
  background: #fff;
  box-shadow: 0 8px 18px rgba(48, 103, 119, 0.08);
  animation: am-shield-breathe 3.4s ease-in-out infinite;
}

.demo-sri-card > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.demo-sri-card span { color: #78839f; font-size: 7px; }
.demo-sri-card strong { color: #293a62; font-size: 11px; }
.demo-sri-card small { color: #8b92aa; font-family: "JetBrains Mono", monospace; font-size: 6.5px; }

.demo-timeline {
  margin-top: 10px;
  padding: 4px 11px;
  border-radius: 13px;
}

.demo-timeline__item {
  position: relative;
  min-height: 51px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eff1f6;
}
.demo-timeline__item:first-child { border-top: 0; }
.demo-timeline__item > i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #3aa5b7;
  background: #edfafd;
  font-style: normal;
  font-size: 8px;
  font-weight: 900;
}
.demo-timeline__item > span { display: flex; flex-direction: column; gap: 2px; }
.demo-timeline__item strong { color: #404a6d; font-size: 7.5px; }
.demo-timeline__item small { color: #989eb3; font-size: 6.5px; }
.demo-timeline__item > b { color: #838ba7; font-family: "JetBrains Mono", monospace; font-size: 6.5px; }
.demo-timeline__item.is-current > i { color: #fff; background: linear-gradient(135deg, var(--am-primary), var(--am-blue)); box-shadow: 0 0 0 5px rgba(72,93,232,0.08); }

/* Progress */
.amelia-demo-progress {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.amelia-demo-progress > span {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e8f3;
}

.amelia-demo-progress > span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--am-cyan), var(--am-blue), var(--am-primary));
}

.amelia-demo-progress > span.is-active::after {
  animation: am-progress 3.8s linear forwards;
}

/* Floating status cards */
.amelia-demo-float {
  position: absolute;
  z-index: 6;
  min-height: 54px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(75, 87, 148, 0.11);
  border-radius: 15px;
  color: #3f486c;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 15px 35px rgba(43, 53, 112, 0.12);
  backdrop-filter: blur(12px);
}

.amelia-demo-float > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.amelia-demo-float strong { font-size: 8.3px; }
.amelia-demo-float small { color: #8e95ac; font-size: 6.8px; }

.amelia-demo-float--top {
  right: -2px;
  top: 91px;
  animation: am-float-card-one 6s ease-in-out infinite;
}

.amelia-demo-float--bottom {
  left: -18px;
  bottom: 2px;
  animation: am-float-card-two 6.6s ease-in-out infinite;
}

.amelia-demo-float__icon,
.amelia-demo-float__check {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.amelia-demo-float__icon { color: #2e9cad; background: var(--am-cyan-soft); }
.amelia-demo-float__check { color: var(--am-primary-2); background: var(--am-violet-soft); font-size: 11px; font-weight: 900; }

/* Orbits behind product */
.amelia-demo-orbit {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  border: 1px solid rgba(61, 114, 245, 0.10);
  pointer-events: none;
}

.amelia-demo-orbit::before,
.amelia-demo-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--am-cyan);
  box-shadow: 0 0 16px rgba(71,198,221,0.35);
}

.amelia-demo-orbit--one {
  width: 540px;
  height: 540px;
  right: -90px;
  top: -5px;
  animation: am-orbit-rotate 22s linear infinite;
}
.amelia-demo-orbit--one::before { top: 72px; left: 53px; }
.amelia-demo-orbit--one::after { right: 36px; bottom: 100px; background: var(--am-primary); }

.amelia-demo-orbit--two {
  width: 430px;
  height: 430px;
  left: 42px;
  top: 64px;
  border-style: dashed;
  border-color: rgba(71, 198, 221, 0.13);
  animation: am-orbit-rotate 28s linear reverse infinite;
}
.amelia-demo-orbit--two::before { right: 52px; top: 38px; background: var(--am-blue); }
.amelia-demo-orbit--two::after { left: 16px; bottom: 110px; }

/* Initial reveal */
.hero-animate {
  opacity: 0;
  transform: translateY(22px);
  animation: am-hero-enter 0.9s var(--am-ease) forwards;
}
.hero-delay-1 { animation-delay: 0.06s; }
.hero-delay-2 { animation-delay: 0.14s; }
.hero-delay-3 { animation-delay: 0.23s; }
.hero-delay-4 { animation-delay: 0.33s; }
.hero-delay-5 { animation-delay: 0.43s; }

/* ============================================================
   KEYFRAMES
============================================================ */


@keyframes am-brand-line { 0%,100% { transform: scaleX(.28); opacity:.38; } 50% { transform: scaleX(.88); opacity:.8; } }
@keyframes am-nav-tracer { 0%,100% { left: 5%; opacity:.25; } 50% { left: calc(86% - 54px); opacity:.95; } }
@keyframes am-nav-icon-idle { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.5px) rotate(-2deg); } }
@keyframes am-header-line { from { background-position: 0 0; } to { background-position: 220% 0; } }
@keyframes am-brand-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-2deg); } }
@keyframes am-brand-glow { 0%,100% { opacity: .42; transform: scale(.92); } 50% { opacity: .8; transform: scale(1.08); } }
@keyframes am-nav-dot { 0%,100% { box-shadow: 0 0 0 4px rgba(71,198,221,.08); } 50% { box-shadow: 0 0 0 7px rgba(71,198,221,.02); } }
@keyframes am-cta-gradient { 0%,100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
@keyframes am-cta-breathe { 0%,100% { box-shadow: 0 11px 24px rgba(72,93,232,.20); } 50% { box-shadow: 0 13px 30px rgba(72,93,232,.30), 0 0 0 5px rgba(71,198,221,.035); } }
@keyframes am-cta-shine { 0%,58% { left: -40%; opacity: 0; } 64% { opacity: 1; } 82%,100% { left: 125%; opacity: 0; } }
@keyframes am-hero-sweep { 0%,100% { transform: translateX(-9%) skewX(-10deg); opacity: .35; } 50% { transform: translateX(45%) skewX(-10deg); opacity: .72; } }
@keyframes am-grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 56px 56px, 56px 56px; } }
@keyframes am-orb-one { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-32px,18px,0) scale(1.08); } }
@keyframes am-orb-two { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(26px,-22px,0) scale(.95); } }
@keyframes am-accent-breathe { 0%,100% { transform: scaleY(.7); opacity: .38; } 50% { transform: scaleY(1); opacity: .92; } }
@keyframes am-badge-shine { 0%,66% { left: -30%; opacity: 0; } 72% { opacity: 1; } 88%,100% { left: 120%; opacity: 0; } }
@keyframes am-badge-ring { 0% { transform: scale(.82); opacity: .9; } 75%,100% { transform: scale(1.38); opacity: 0; } }
@keyframes am-title-flow { 0%,100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }
@keyframes am-title-line { 0%,100% { width: 72px; background-position: 0 0; } 50% { width: 108px; background-position: 100% 0; } }
@keyframes am-hero-primary-breathe { 0%,100% { box-shadow: 0 14px 30px rgba(72,93,232,.21); } 50% { box-shadow: 0 17px 35px rgba(72,93,232,.29), 0 0 0 5px rgba(71,198,221,.035); } }
@keyframes am-primary-shine { 0%,60% { left: -32%; opacity: 0; } 67% { opacity: .85; } 84%,100% { left: 125%; opacity: 0; } }
@keyframes am-primary-orb { 0%,100% { transform: translateY(-50%) scale(.8); opacity: .45; } 50% { transform: translateY(-50%) scale(1.2); opacity: .8; } }
@keyframes am-secondary-breathe { 0%,100% { opacity: .25; } 50% { opacity: .95; } }
@keyframes am-play-wave { 0% { transform: scale(.7); opacity: .75; } 80%,100% { transform: scale(1.55); opacity: 0; } }
@keyframes am-platform-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes am-demo-float { 0%,100% { transform: translateY(0) rotateY(-1.5deg) rotateX(.4deg); } 50% { transform: translateY(-7px) rotateY(.4deg) rotateX(-.25deg); } }
@keyframes am-live-pulse { 0%,100% { transform: scale(.88); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes am-progress { from { width: 0; } to { width: 100%; } }
@keyframes am-float-card-one { 0%,100% { transform: translate3d(0,0,0) rotate(.2deg); } 50% { transform: translate3d(-4px,-7px,0) rotate(-.7deg); } }
@keyframes am-float-card-two { 0%,100% { transform: translate3d(0,0,0) rotate(-.2deg); } 50% { transform: translate3d(5px,-8px,0) rotate(.7deg); } }
@keyframes am-shield-breathe { 0%,100% { transform: scale(.96); box-shadow: 0 8px 18px rgba(48,103,119,.07); } 50% { transform: scale(1.03); box-shadow: 0 9px 22px rgba(48,103,119,.14); } }
@keyframes am-orbit-rotate { to { transform: rotate(360deg); } }
@keyframes am-hero-enter { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1230px) {
  .amelia-header__container { gap: 16px; }
  .amelia-brand { min-width: 172px; }
  .amelia-nav { gap: 1px; }
  .amelia-nav__link { padding: 0 7px; font-size: 12px; gap: 6px; }
  .amelia-nav__icon { width: 25px; height: 25px; }
  .amelia-header__cta { padding: 0 13px; font-size: 12.2px; }
  .amelia-hero__container {
    grid-template-columns: minmax(430px, .78fr) minmax(620px, 1.22fr);
    gap: 30px;
  }
  .amelia-hero__title { font-size: clamp(48px, 4.2vw, 61px); }
  .amelia-product-demo__shell { grid-template-columns: 88px 1fr; }
  .amelia-demo-nav__item { font-size: 7.2px; }
}

@media (max-width: 1050px) {
  .amelia-header__container { width: calc(100% - 28px); }
  .amelia-header.header-scrolled .amelia-header__container { width: calc(100% - 22px); }
  .amelia-nav,
  .amelia-header__actions { display: none; }
  .amelia-menu-toggle { display: flex; }

  .amelia-hero__container {
    width: min(820px, calc(100% - 42px));
    padding-top: 48px;
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .amelia-hero__content { max-width: 700px; }
  .amelia-hero__title { font-size: clamp(50px, 7.5vw, 68px); }
  .amelia-hero__visual { padding: 18px 20px 0; }
  .amelia-product-demo { min-height: 490px; }
  .amelia-demo-float--top { right: 4px; }
  .amelia-demo-float--bottom { left: 5px; bottom: 12px; }
}

@media (max-width: 700px) {
  .amelia-header { padding-top: 0; }
  .amelia-header__container,
  .amelia-header.header-scrolled .amelia-header__container {
    width: calc(100% - 24px);
    min-height: 64px;
    padding: 0;
  }
  .amelia-brand { min-width: 0; }
  .amelia-brand__icon { width: 32px; height: 32px; }
  .amelia-brand__icon img { width: 30px; height: 30px; }
  .amelia-brand__content strong { font-size: 19px; }
  .amelia-brand__content small { font-size: 5.7px; letter-spacing: 1.35px; }
  .amelia-mobile-menu { left: 9px; right: 9px; }

  .amelia-hero { min-height: auto; }
  .amelia-hero__container {
    width: calc(100% - 30px);
    min-height: 0;
    padding: 39px 0 58px;
    gap: 30px;
  }
  .amelia-hero__content::before { display: none; }
  .amelia-hero__badge { font-size: 10.5px; }
  .amelia-hero__title {
    margin-top: 18px;
    font-size: clamp(40px, 12.4vw, 56px);
    line-height: 1.01;
  }
  .amelia-hero__title span { margin-top: 8px; }
  .amelia-hero__description { margin-top: 19px; font-size: 14px; line-height: 1.65; }
  .amelia-hero__actions { align-items: stretch; }
  .amelia-hero__primary,
  .amelia-hero__secondary { width: 100%; min-width: 0; }
  .amelia-hero__micro { font-size: 9.5px; line-height: 1.5; }
  .amelia-dot { display: none; }
  .amelia-platforms { margin-top: 23px; }
  .amelia-platform { flex: 1 1 auto; justify-content: center; padding: 0 8px; }
  .amelia-platforms__separator { display: none; }

  .amelia-hero__visual { padding: 14px 0 0; }
  .amelia-product-demo {
    min-height: 525px;
    border-radius: 20px;
    transform: none;
    animation: am-demo-mobile-float 8s ease-in-out infinite;
  }
  .amelia-product-demo__browser {
    height: 48px;
    padding: 0 11px;
    grid-template-columns: auto 1fr auto;
    gap: 7px;
  }
  .amelia-product-demo__address { min-width: 0; justify-self: center; padding: 0 8px; font-size: 7px; }
  .amelia-product-demo__live { font-size: 0; }
  .amelia-product-demo__shell {
    height: 477px;
    grid-template-columns: 1fr;
    grid-template-rows: 65px 1fr;
  }
  .amelia-demo-nav {
    padding: 7px 8px;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(70,82,145,.09);
    overflow-x: auto;
  }
  .amelia-demo-nav__mark { display: none; }
  .amelia-demo-nav__item {
    min-width: 70px;
    min-height: 48px;
    flex: 1 0 70px;
    flex-direction: row;
    gap: 5px;
    font-size: 6.8px;
  }
  .amelia-demo-nav__item::after {
    left: 50%;
    top: auto;
    bottom: -7px;
    width: 0;
    height: 3px !important;
    transform: translateX(-50%);
    transition: width .3s var(--am-ease);
  }
  .amelia-demo-nav__item.is-active::after { width: 27px; }
  .amelia-demo-nav__icon { width: 24px; height: 24px; }
  .amelia-demo-stage__topbar { height: 56px; padding: 0 12px; }
  .amelia-demo-stage__topbar strong { font-size: 11px; }
  .amelia-demo-scenes { height: 345px; padding: 14px 12px 22px; }
  .amelia-demo-scene { inset: 14px 12px 22px; }
  .demo-scene-header h3 { font-size: 14px; }
  .demo-invoice-grid { grid-template-columns: 1fr; }
  .demo-preview-card { display: none; }
  .demo-form-card { min-height: 232px; }
  .demo-table-row { grid-template-columns: 1.4fr .9fr .5fr; font-size: 6.4px; }
  .demo-table-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
  .demo-product-card:nth-child(2) { transform: none; }
  .demo-stock-strip { align-items: center; }
  .amelia-demo-float--top { right: -3px; top: 76px; transform: scale(.92); transform-origin: right center; }
  .amelia-demo-float--bottom { left: 5px; bottom: 0; transform: scale(.92); transform-origin: left center; }
  .amelia-demo-orbit--one { width: 380px; height: 380px; right: -95px; top: 60px; }
  .amelia-demo-orbit--two { width: 300px; height: 300px; left: -60px; top: 155px; }
}

@media (max-width: 430px) {
  .amelia-brand__content small { display: none; }
  .amelia-hero__title { font-size: clamp(38px, 12.7vw, 50px); }
  .amelia-platform { font-size: 9px; }
  .amelia-demo-float { min-height: 49px; padding: 7px 9px; }
  .amelia-demo-float strong { font-size: 7.3px; }
  .amelia-demo-float small { font-size: 6.2px; }
  .amelia-demo-float__icon,
  .amelia-demo-float__check { width: 27px; height: 27px; }
  .demo-customer-layout { gap: 7px; }
  .demo-stat-card { padding: 9px; }
  .demo-table-row { padding: 0 7px; }
}

@keyframes am-demo-mobile-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .amelia-header__container::after,
  .amelia-brand__icon,
  .amelia-brand__icon::before,
  .amelia-header__cta,
  .amelia-header__cta::before,
  .amelia-hero::before,
  .amelia-hero__grid,
  .amelia-hero__glow,
  .amelia-hero__content::before,
  .amelia-hero__badge::after,
  .amelia-hero__badge-icon::after,
  .amelia-hero__title span,
  .amelia-hero__title span::after,
  .amelia-hero__primary,
  .amelia-hero__primary::before,
  .amelia-hero__primary::after,
  .amelia-hero__secondary::after,
  .amelia-hero__play::before,
  .amelia-hero__play::after,
  .amelia-platform,
  .amelia-product-demo,
  .amelia-product-demo__live > span,
  .demo-scene-status--green i,
  .amelia-demo-progress > span.is-active::after,
  .amelia-demo-float,
  .amelia-demo-orbit,
  .demo-sri-shield {
    animation: none !important;
  }
  .hero-animate { opacity: 1; transform: none; animation: none; }
}

/* ============================================================
   V3 · LEGIBILIDAD DEL MOCKUP DEL HERO
   Los textos del panel derecho son parte de la narrativa del producto,
   por eso evitamos tipografías decorativas demasiado pequeñas.
============================================================ */
@media (min-width: 701px) {
  .amelia-product-demo__address,
  .amelia-product-demo__live { font-size: 9.5px; }

  .amelia-demo-nav__item { font-size: 9px; }
  .amelia-demo-stage__eyebrow { font-size: 8px; }
  .amelia-demo-stage__topbar strong { font-size: 14px; }
  .demo-scene-kicker { font-size: 8.4px; }
  .demo-scene-header h3 { font-size: 18px; }
  .demo-scene-status,
  .demo-add-button { min-height: 29px; font-size: 8.5px; }

  .demo-form-card label { font-size: 7.8px; }
  .demo-input-row { font-size: 9px; }
  .demo-form-total { font-size: 8.8px; }
  .demo-action-bar { font-size: 8.3px; }
  .demo-preview-card__top { font-size: 7.4px; }
  .demo-preview-card__amount small { font-size: 7.8px; }

  .demo-stat-card span { font-size: 8.4px; }
  .demo-stat-card small { font-size: 7.7px; }
  .demo-table-row { font-size: 8.2px; }
  .demo-table-row--head { font-size: 7.3px; }
  .demo-table-row b { font-size: 7.4px; }
  .demo-avatar { font-size: 6.8px; }
}

/* ============================================================
   V5 · HERO ADAPTATIVO POR ANCHO + ALTO DE PANTALLA
   Objetivo: conservar la misma composición visual en desktop,
   evitando que el mockup crezca demasiado en monitores anchos
   o que se corte la franja inferior en laptops de poca altura.
============================================================ */

@media (min-width: 1051px) {
  .amelia-hero {
    min-height: calc(100svh - 82px);
  }

  .amelia-hero__container {
    width: min(1320px, calc(100% - 48px));
    min-height: calc(100svh - 82px);
    padding: clamp(30px, 4.2vh, 50px) 0 clamp(32px, 4.5vh, 54px);
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: clamp(28px, 3vw, 44px);
    align-items: center;
  }

  .amelia-hero__content {
    width: 100%;
    max-width: 580px;
    align-self: center;
  }

  .amelia-hero__title {
    font-size: clamp(52px, 3.7vw, 62px);
  }

  .amelia-hero__description {
    max-width: 560px;
  }

  .amelia-hero__visual {
    width: 100%;
    max-width: 720px;
    justify-self: end;
    align-self: center;
    padding: 0;
  }

  /* El panel deja de crecer indefinidamente con el ancho del monitor. */
  .amelia-product-demo {
    width: 100%;
    height: clamp(430px, 48vh, 500px);
    min-height: 0;
  }

  .amelia-product-demo__shell {
    height: calc(100% - 54px);
  }

  .amelia-demo-stage {
    display: flex;
    flex-direction: column;
  }

  .amelia-demo-stage__topbar {
    flex: 0 0 66px;
  }

  .amelia-demo-scenes {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
}

/* Laptop / pantallas con poca altura: compactamos verticalmente,
   pero mantenemos exactamente la misma distribución 2 columnas. */
@media (min-width: 1051px) and (max-height: 900px) {
  .amelia-hero__container {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .amelia-hero__title {
    margin-top: 17px;
    font-size: clamp(50px, 3.55vw, 57px);
    line-height: 0.985;
  }

  .amelia-hero__title span {
    margin-top: 8px;
    padding-bottom: 7px;
  }

  .amelia-hero__description {
    margin-top: 18px;
    font-size: 14.5px;
    line-height: 1.58;
  }

  .amelia-hero__actions {
    margin-top: 20px;
  }

  .amelia-hero__primary,
  .amelia-hero__secondary {
    min-height: 48px;
  }

  .amelia-hero__micro {
    margin-top: 10px;
  }

  .amelia-platforms {
    margin-top: 19px;
  }

  .amelia-product-demo {
    height: clamp(420px, 50vh, 450px);
    border-radius: 23px;
  }

  .amelia-product-demo__browser {
    height: 48px;
  }

  .amelia-product-demo__shell {
    height: calc(100% - 48px);
  }

  .amelia-demo-stage__topbar {
    flex-basis: 58px;
    height: 58px;
  }

  .amelia-demo-scenes {
    padding-top: 13px;
    padding-bottom: 19px;
  }

  .amelia-demo-scene {
    inset: 13px 20px 19px;
  }

  .amelia-demo-float--top {
    top: 78px;
  }
}

/* Alturas típicas de laptop 1366x768 / 1536x768: debe entrar completa
   la composición principal + la franja 1x4 en la primera vista. */
@media (min-width: 1051px) and (max-height: 790px) {
  .amelia-header__container {
    min-height: 72px;
  }

  .amelia-header.header-scrolled .amelia-header__container {
    min-height: 66px;
  }

  .amelia-hero {
    min-height: calc(100svh - 72px);
  }

  .amelia-hero__container {
    min-height: calc(100svh - 72px);
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .amelia-hero__badge {
    min-height: 31px;
  }

  .amelia-hero__title {
    margin-top: 14px;
    font-size: clamp(47px, 3.45vw, 53px);
  }

  .amelia-hero__description {
    margin-top: 14px;
    font-size: 13.8px;
    line-height: 1.52;
  }

  .amelia-hero__actions {
    margin-top: 16px;
  }

  .amelia-hero__primary,
  .amelia-hero__secondary {
    min-height: 45px;
  }

  .amelia-hero__micro {
    margin-top: 8px;
    font-size: 9.5px;
  }

  .amelia-platforms {
    margin-top: 15px;
  }

  .amelia-platforms__label {
    margin-bottom: 8px;
  }

  .amelia-platform {
    min-height: 40px;
  }

  .amelia-product-demo {
    height: 405px;
  }

  .amelia-product-demo__browser {
    height: 45px;
  }

  .amelia-product-demo__shell {
    height: calc(100% - 45px);
  }

  .amelia-demo-stage__topbar {
    flex-basis: 54px;
    height: 54px;
  }

  .amelia-demo-scenes {
    padding-top: 10px;
    padding-bottom: 17px;
  }

  .amelia-demo-scene {
    inset: 10px 18px 17px;
  }

  .demo-scene-header {
    min-height: 38px;
    margin-bottom: 8px;
  }

  .demo-stat-card {
    min-height: 72px;
  }

  .demo-table-row {
    min-height: 32px;
  }

  .demo-table-row--head {
    min-height: 25px;
  }

  .demo-sri-card {
    min-height: 76px;
  }

  .demo-sri-shield {
    width: 46px;
    height: 46px;
  }

  .demo-timeline {
    margin-top: 7px;
  }

  .demo-timeline__item {
    min-height: 43px;
  }

  .amelia-demo-float {
    min-height: 49px;
    padding: 7px 10px;
  }

  .amelia-demo-float--top {
    top: 68px;
  }
}

/* En resoluciones desktop más estrechas no permitimos mínimos rígidos
   que empujen la columna derecha fuera de la composición. */
@media (min-width: 1051px) and (max-width: 1320px) {
  .amelia-hero__container {
    width: calc(100% - 36px);
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 26px;
  }

  .amelia-hero__content {
    max-width: 540px;
  }

  .amelia-hero__visual {
    max-width: 690px;
  }

  .amelia-hero__title {
    font-size: clamp(48px, 4.1vw, 55px);
  }
}
