/* AVA-Shops — Apple Liquid Glass landing */

:root {
  --ava-brand-blue: #6EA8FF;
  --ava-brand-purple: #8A7CFF;
  --ava-brand-pink: #C678FF;
  --ava-brand-lavender: #EDEBFF;
  --ava-brand-bg: #F5F6FF;
  --ava-brand-white: #FFFFFF;
  --ava-brand-gray: #E6E8F3;
  --ava-brand-ink: #1A1D2E;
  --lg-bg: #12183a;
  --lg-bg-elevated: #1a2248;
  --lg-surface: rgba(255, 255, 255, 0.14);
  --lg-surface-hover: rgba(255, 255, 255, 0.18);
  --lg-border: rgba(255, 255, 255, 0.22);
  --lg-border-bright: rgba(255, 255, 255, 0.38);
  --lg-highlight: rgba(255, 255, 255, 0.55);
  --lg-text: #f8f8fc;
  --lg-text-secondary: rgba(248, 248, 252, 0.84);
  --lg-text-tertiary: rgba(248, 248, 252, 0.62);
  --lg-accent: var(--ava-brand-blue);
  --lg-accent-soft: rgba(110, 168, 255, 0.48);
  --lg-glow-cyan: rgba(110, 168, 255, 0.42);
  --lg-glow-violet: rgba(138, 124, 255, 0.46);
  --lg-glow-pink: rgba(198, 120, 255, 0.32);
  --lg-blur: 56px;
  --lg-radius: 22px;
  --lg-radius-sm: 14px;
  --lg-radius-pill: 980px;
  --lg-nav-h: 58px;
  --lg-max: 1120px;
  --lg-section-pad: clamp(80px, 12vw, 140px);
  --lg-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --lg-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 120% 70% at 50% -15%, rgba(94, 235, 253, 0.14), transparent 52%),
    radial-gradient(ellipse 70% 50% at 100% 40%, rgba(122, 53, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 70%, rgba(94, 235, 253, 0.08), transparent 50%),
    linear-gradient(180deg, #161d45 0%, #12183a 38%, #0f1433 100%);
  color: var(--lg-text);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  touch-action: pan-x pan-y;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* Ambient canvas */
.lg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lg-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.72;
  will-change: transform;
}

.lg-ambient__beam {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.lg-ambient__beam--1 {
  width: 40%;
  height: 8%;
  top: 18%;
  left: 10%;
  background: linear-gradient(90deg, transparent, rgba(94, 235, 253, 0.35), transparent);
  animation: lg-beam-drift 14s ease-in-out infinite alternate;
}

.lg-ambient__beam--2 {
  width: 35%;
  height: 6%;
  bottom: 22%;
  right: 5%;
  background: linear-gradient(90deg, transparent, rgba(122, 53, 255, 0.3), transparent);
  animation: lg-beam-drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes lg-beam-drift {
  to { transform: translate(6%, -4%) scale(1.08); opacity: 0.55; }
}

.lg-ambient__particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.35) 0.5px, transparent 0.6px);
  background-size: 48px 48px;
  opacity: 0.12;
  animation: lg-particle-drift 60s linear infinite;
}

@keyframes lg-particle-drift {
  to { transform: translate(-24px, -32px); }
}

.lg-ambient__orb--1 {
  width: min(70vw, 620px);
  height: min(70vw, 620px);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, var(--lg-glow-violet) 0%, transparent 70%);
  animation: lg-float-a 18s var(--lg-ease) infinite alternate;
  opacity: 0.85;
}

.lg-ambient__orb--2 {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: 28%;
  right: -12%;
  background: radial-gradient(circle, var(--lg-accent-soft) 0%, transparent 70%);
  animation: lg-float-b 22s var(--lg-ease) infinite alternate;
}

.lg-ambient__orb--3 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  bottom: 8%;
  left: 22%;
  background: radial-gradient(circle, var(--lg-glow-cyan) 0%, transparent 70%);
  animation: lg-float-c 20s var(--lg-ease) infinite alternate;
}

.lg-ambient__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 60% at 50% -5%, rgba(94, 235, 253, 0.28), transparent 58%),
    radial-gradient(ellipse 60% 50% at 88% 32%, rgba(122, 53, 255, 0.24), transparent 52%),
    radial-gradient(ellipse 55% 45% at 10% 68%, rgba(255, 79, 216, 0.14), transparent 48%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255, 255, 255, 0.04), transparent 70%),
    linear-gradient(180deg, #141432 0%, var(--lg-bg) 40%, #0c0c24 100%);
  animation: lg-mesh-shift 24s var(--lg-ease) infinite alternate;
}

@keyframes lg-mesh-shift {
  to { filter: brightness(1.08); }
}

@keyframes lg-float-a {
  to { transform: translate(6%, 8%) scale(1.06); }
}

@keyframes lg-float-b {
  to { transform: translate(-5%, 6%) scale(1.04); }
}

@keyframes lg-float-c {
  to { transform: translate(4%, -6%) scale(1.05); }
}

/* Glass primitives */
.lg-glass {
  background: var(--lg-surface);
  backdrop-filter: blur(var(--lg-blur)) saturate(200%);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(200%);
  border: 1px solid var(--lg-border);
  box-shadow:
    0 1px 0 var(--lg-highlight) inset,
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

.lg-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 42%,
    transparent 58%,
    rgba(94, 235, 253, 0.05) 100%
  );
  opacity: 0.65;
  z-index: 0;
}

.lg-glass > * {
  position: relative;
  z-index: 1;
}

.lg-glass--premium {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(64px) saturate(220%);
  -webkit-backdrop-filter: blur(64px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 32px 64px rgba(0, 0, 0, 0.38),
    0 8px 32px rgba(94, 235, 253, 0.12);
  animation: lg-glass-breathe 8s ease-in-out infinite alternate;
}

@keyframes lg-glass-breathe {
  to {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.48) inset,
      0 -1px 0 rgba(255, 255, 255, 0.08) inset,
      0 36px 72px rgba(0, 0, 0, 0.4),
      0 12px 40px rgba(94, 235, 253, 0.16);
  }
}

.lg-glass--subtle {
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 32px rgba(0, 0, 0, 0.28);
}

/* Navigation */
.lg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: max(12px, env(safe-area-inset-top)) 20px 0;
  transition: padding 0.45s var(--lg-ease-out);
}

.lg-nav.is-scrolled {
  padding-top: max(8px, env(safe-area-inset-top));
}

.lg-nav__inner {
  max-width: var(--lg-max);
  margin: 0 auto;
  height: var(--lg-nav-h);
  padding: 0 18px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--lg-radius-pill);
  transition:
    height 0.45s var(--lg-ease-out),
    padding 0.45s var(--lg-ease-out),
    background 0.45s var(--lg-ease-out),
    box-shadow 0.45s var(--lg-ease-out);
}

.lg-nav.is-scrolled .lg-nav__inner {
  height: 44px;
  background: rgba(28, 28, 30, 0.72);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 32px rgba(0, 0, 0, 0.45);
}

.lg-nav__brand-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  align-self: center;
}

.lg-nav__brand {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

.ava-nav-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.ava-nav-brand__logo {
  display: block;
  width: 36px;
  height: auto;
  flex-shrink: 0;
  line-height: 0;
}

.ava-nav-brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  margin-left: 2px;
  background: linear-gradient(92deg, var(--ava-brand-blue) 0%, #f4f6ff 44%, var(--ava-brand-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (min-width: 768px) {
  .ava-nav-brand__logo {
    width: 40px;
  }

  .ava-nav-brand__name {
    font-size: 18px;
    margin-left: 4px;
  }
}

.lg-nav__links {
  display: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
  min-width: 0;
}

.lg-nav__links li {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .lg-nav__links {
    display: flex;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lg-nav__link {
    font-size: 13px;
  }

  .lg-nav__cta {
    display: none;
  }
}

.lg-nav__link {
  font-size: 14px;
  color: var(--lg-text-secondary);
  transition: color 0.25s var(--lg-ease);
}

.lg-nav__link:hover,
.lg-nav__link:focus-visible {
  color: var(--lg-text);
}

.lg-nav__cta {
  margin-left: auto;
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  min-height: 0;
}

@media (min-width: 768px) {
  .lg-nav__cta {
    margin-left: 0;
    padding: 7px 16px;
    font-size: 13px;
  }
}

.lg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--lg-radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition:
    transform 0.3s var(--lg-ease-out),
    background 0.3s var(--lg-ease),
    box-shadow 0.3s var(--lg-ease),
    border-color 0.3s var(--lg-ease);
}

.lg-btn:active {
  transform: scale(0.97);
}

.lg-btn--glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--lg-border-bright);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.lg-btn--glass:hover {
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.lg-btn--primary {
  background: linear-gradient(
    180deg,
    rgba(82, 148, 220, 0.92) 0%,
    rgba(58, 118, 192, 0.95) 100%
  );
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 4px 18px rgba(58, 118, 192, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lg-btn--primary:hover {
  background: linear-gradient(
    180deg,
    rgba(92, 158, 228, 0.96) 0%,
    rgba(64, 128, 202, 0.98) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38) inset,
    0 8px 24px rgba(58, 118, 192, 0.32);
}

.lg-btn--large {
  padding: 14px 28px;
  font-size: 16px;
}

.lg-btn--icon svg {
  width: 16px;
  height: 16px;
}

/* Layout */
.lg-page {
  position: relative;
  z-index: 1;
  overscroll-behavior: none;
}

.lg-section {
  padding: var(--lg-section-pad) 24px;
  position: relative;
  isolation: isolate;
}

.lg-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.9;
}

#hero::before {
  background:
    radial-gradient(ellipse 70% 55% at 75% 35%, rgba(94, 235, 253, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(122, 53, 255, 0.14), transparent 55%);
}

#features::before {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(122, 53, 255, 0.18), transparent 65%);
}

#automation::before {
  background:
    radial-gradient(ellipse 60% 45% at 30% 50%, rgba(94, 235, 253, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 40%, rgba(122, 53, 255, 0.14), transparent 55%);
}

.lg-voice::before,
#voice-commerce::before {
  background: radial-gradient(ellipse 75% 55% at 60% 45%, rgba(94, 235, 253, 0.2), transparent 62%);
}

#food-delivery::before {
  background: radial-gradient(ellipse 75% 55% at 40% 45%, rgba(255, 168, 76, 0.16), transparent 62%);
}

#how-it-works::before {
  background: radial-gradient(ellipse 65% 45% at 50% 100%, rgba(94, 235, 253, 0.1), transparent 60%);
}

.lg-faq::before,
#faq::before {
  background: radial-gradient(ellipse 55% 40% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 65%);
}

.lg-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 100%, rgba(122, 53, 255, 0.2), transparent 70%);
}

.lg-section__inner {
  max-width: var(--lg-max);
  margin: 0 auto;
}

.lg-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin-bottom: 12px;
}

.lg-headline {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.lg-subhead {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 400;
  color: var(--lg-text-secondary);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 640px;
}

.lg-section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.lg-section-lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--lg-text-secondary);
  max-width: 580px;
  line-height: 1.45;
  margin-bottom: 48px;
}

/* Hero */
.lg-hero {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--lg-nav-h) + max(24px, env(safe-area-inset-top)) + 48px);
  padding-bottom: 80px;
  position: relative;
}

.lg-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 960px) {
  .lg-hero__grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    align-items: center;
  }
}

.lg-hero__copy {
  text-align: center;
}

@media (min-width: 960px) {
  .lg-hero__copy {
    text-align: left;
  }
}

.lg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

@media (min-width: 960px) {
  .lg-hero__actions {
    justify-content: flex-start;
  }
}

#ava-landing-root.lg-showcase {
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

@media (min-width: 960px) {
  #ava-landing-root.lg-showcase {
    justify-content: center;
    align-items: center;
  }
}

/* Device showcase */
.lg-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.lg-showcase__frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  padding: 10px;
  background:
    linear-gradient(155deg, #aeaeb2 0%, #8e8e93 8%, #636366 35%, #48484a 65%, #2c2c2e 92%, #1c1c1e 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 2px 6px rgba(255, 255, 255, 0.2) inset,
    0 -2px 8px rgba(0, 0, 0, 0.45) inset,
    0 40px 80px rgba(0, 0, 0, 0.62),
    0 16px 32px rgba(94, 235, 253, 0.1),
    0 8px 24px rgba(122, 53, 255, 0.08);
  transform: rotateY(-4deg) rotateX(2deg);
  animation: lg-showcase-float 8s var(--lg-ease) infinite alternate;
}

@keyframes lg-showcase-float {
  to { transform: rotateY(-2deg) rotateX(1deg) translateY(-8px); }
}

.lg-showcase__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  transition: filter 0.65s var(--lg-ease-out);
}

.lg-showcase__wallpaper-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--lg-ease-out), filter 0.75s var(--lg-ease-out);
}

.lg-showcase__screen-shine {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 38%, transparent 62%, rgba(255, 255, 255, 0.05) 100%);
}

.lg-showcase__screen.is-locked .lg-showcase__wallpaper-img,
.lg-showcase__screen.is-locking .lg-showcase__wallpaper-img {
  transform: scale(1.05);
  filter: brightness(0.72) saturate(0.9);
}

.lg-showcase__screen.is-unlocked .lg-showcase__wallpaper-img,
.lg-showcase__screen.is-unlocking .lg-showcase__wallpaper-img {
  transform: scale(1);
  filter: brightness(0.85) saturate(1.05);
}

.lg-showcase__screen.is-unlocked-app .lg-showcase__wallpaper-img {
  filter: brightness(0.55) saturate(0.85);
}

.lg-showcase__screen.is-unlocked-app .lg-showcase__lock-ui {
  opacity: 0;
}

.lg-showcase__lock-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 56px;
  pointer-events: none;
  transition: opacity 0.65s var(--lg-ease-out);
}

.lg-showcase__screen.is-unlocked .lg-showcase__lock-ui,
.lg-showcase__screen.is-unlocking .lg-showcase__lock-ui {
  opacity: 0;
}

.lg-showcase__lock-time {
  font-size: 48px;
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.lg-showcase__lock-date {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lg-text-secondary);
}

.lg-showcase__lock-icon {
  position: absolute;
  bottom: 18px;
  opacity: 0.5;
}

.lg-showcase__home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 13;
  width: 96px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
}

.lg-showcase__island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 36px;
  border-radius: 22px;
  background: #000;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
  transition: width 0.45s var(--lg-ease-out), height 0.45s var(--lg-ease-out), border-radius 0.45s var(--lg-ease-out);
}

.lg-showcase__island:has(.lg-showcase__island-content--expanded.is-active) {
  width: calc(100% - 32px);
  height: 52px;
  border-radius: 28px;
}

.lg-showcase__island-content--expanded {
  justify-content: space-between;
  padding: 0 10px;
  gap: 8px;
}

.lg-island-product {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lg-island-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lg-island-price {
  font-size: 10px;
  color: var(--lg-accent);
  font-weight: 600;
}

.lg-island-action {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5eebfd, #7a35ff);
  color: #fff;
}

.lg-island-action--done {
  background: rgba(94, 235, 253, 0.25);
  color: var(--lg-accent);
}

.lg-live-activity {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 44px;
  z-index: 6;
  padding: 12px 14px;
  border-radius: 18px;
}

.lg-live-activity__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 10px;
  color: var(--lg-text-tertiary);
}

.lg-live-activity__app {
  font-weight: 600;
  color: var(--lg-accent);
}

.lg-live-activity__body {
  display: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.lg-live-activity__body.is-active {
  display: block;
}

.lg-showcase__island-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.5s var(--lg-ease);
}

.lg-showcase__island-content.is-active {
  opacity: 1;
}

.lg-island-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.lg-island-wave span {
  width: 3px;
  border-radius: 2px;
  background: var(--lg-accent);
  animation: lg-wave 1.2s var(--lg-ease) infinite;
}

.lg-island-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.lg-island-wave span:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.lg-island-wave span:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.lg-island-wave span:nth-child(4) { height: 14px; animation-delay: 0.15s; }
.lg-island-wave span:nth-child(5) { height: 7px; animation-delay: 0.25s; }

@keyframes lg-wave {
  0%, 100% { transform: scaleY(0.6); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

.lg-island-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--lg-text);
  white-space: nowrap;
}

.lg-showcase__layer {
  position: absolute;
  left: 16px;
  right: 16px;
  border-radius: var(--lg-radius-sm);
  padding: 14px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 0.6s var(--lg-ease-out),
    transform 0.6s var(--lg-ease-out);
  z-index: 7;
}

.lg-showcase__layer.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lg-showcase__layer--siri {
  top: 72px;
}

.lg-showcase__layer--product {
  top: 148px;
}

.lg-showcase__layer--lock {
  bottom: 48px;
}

.lg-showcase__layer--status {
  bottom: 48px;
}

.lg-showcase__layer--app {
  top: 148px;
}

.lg-app-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin-bottom: 10px;
}

.lg-siri-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lg-siri-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #5eebfd, #7a35ff, #ff4fd8, #5eebfd);
  box-shadow: 0 0 20px rgba(94, 235, 253, 0.45);
  animation: lg-orb-pulse 3s var(--lg-ease) infinite;
}

.lg-siri-orb--pulse {
  animation: lg-orb-pulse 1.2s var(--lg-ease) infinite;
}

.lg-siri-orb--success {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  animation: none;
}

@keyframes lg-orb-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.06); filter: brightness(1.15); }
}

.lg-siri-label {
  font-size: 13px;
  color: var(--lg-text-secondary);
}

.lg-siri-query {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.lg-product-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lg-product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.lg-product-thumb--shirt {
  background: linear-gradient(145deg, #1a472a 0%, #2d6a3e 40%, #1a472a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.lg-product-meta h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.lg-product-meta p {
  font-size: 12px;
  color: var(--lg-text-tertiary);
}

.lg-product-price {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--lg-accent);
}

.lg-lock-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lg-lock-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(41, 151, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.lg-lock-text {
  font-size: 12px;
  color: var(--lg-text-secondary);
  line-height: 1.35;
}

.lg-showcase__float {
  position: absolute;
  border-radius: var(--lg-radius-sm);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--lg-text-secondary);
  animation: lg-card-drift 10s var(--lg-ease) infinite alternate;
}

.lg-showcase__float--1 {
  top: 8%;
  right: -8%;
  animation-delay: -2s;
}

.lg-showcase__float--2 {
  bottom: 18%;
  left: -10%;
  animation-delay: -5s;
}

@keyframes lg-card-drift {
  to { transform: translateY(-10px); }
}

/* Feature grid */
.lg-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .lg-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .lg-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lg-feature-card {
  border-radius: var(--lg-radius);
  padding: 28px;
  transition:
    transform 0.5s var(--lg-ease-out),
    background 0.4s var(--lg-ease),
    box-shadow 0.5s var(--lg-ease);
  animation: lg-card-float 7s var(--lg-ease) infinite alternate;
}

.lg-feature-card:nth-child(2) { animation-delay: -1.2s; }
.lg-feature-card:nth-child(3) { animation-delay: -2.4s; }
.lg-feature-card:nth-child(4) { animation-delay: -0.8s; }
.lg-feature-card:nth-child(5) { animation-delay: -1.8s; }
.lg-feature-card:nth-child(6) { animation-delay: -2.8s; }
.lg-feature-card:nth-child(7) { animation-delay: -0.4s; }

@keyframes lg-card-float {
  to { transform: translateY(-6px); }
}

.lg-feature-card:hover {
  transform: translateY(-8px);
  background: var(--lg-surface-hover);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 0 40px rgba(94, 235, 253, 0.08),
    0 32px 64px rgba(0, 0, 0, 0.32);
  animation-play-state: paused;
}

.lg-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(41, 151, 255, 0.15);
  border: 1px solid rgba(41, 151, 255, 0.25);
  font-size: 20px;
  overflow: hidden;
}

.lg-feature-icon img,
.lg-voice-item__icon img,
.lg-session-flow__icon img,
.lg-mode-journey__icon img {
  display: block;
  object-fit: contain;
}

.lg-feature-icon img {
  width: 22px;
  height: 22px;
}

.lg-voice-item__icon img {
  width: 18px;
  height: 18px;
}

.lg-session-flow__icon img,
.lg-mode-journey__icon img {
  width: 18px;
  height: 18px;
}

.lg-session-flow__icon img[src*="ava-core"] {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.lg-mini-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.lg-siri-msg__product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.lg-feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.lg-feature-card p {
  font-size: 15px;
  color: var(--lg-text-secondary);
  line-height: 1.5;
}

/* Voice commerce */
.lg-voice {
  position: relative;
}

.lg-voice__panel {
  border-radius: calc(var(--lg-radius) + 8px);
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.lg-voice__panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle, rgba(94, 235, 253, 0.22), transparent 65%);
  pointer-events: none;
  animation: lg-glow-drift 14s var(--lg-ease) infinite alternate;
}

.lg-voice__panel::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(122, 53, 255, 0.14), transparent 65%);
  pointer-events: none;
}

.lg-voice__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .lg-voice__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.lg-voice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lg-voice-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--lg-radius-sm);
  transition: background 0.3s var(--lg-ease);
}

.lg-voice-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lg-voice-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 16px;
}

.lg-voice-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.lg-voice-item p {
  font-size: 14px;
  color: var(--lg-text-secondary);
  line-height: 1.45;
}

.lg-voice-visual {
  display: grid;
  gap: 16px;
  position: relative;
}

.lg-voice-visual::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 12%;
  bottom: 12%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(94, 235, 253, 0.35), rgba(122, 53, 255, 0.25), transparent);
  border-radius: 2px;
  opacity: 0.6;
}

.lg-voice-bubble {
  border-radius: var(--lg-radius);
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 90%;
  position: relative;
  transition: transform 0.4s var(--lg-ease-out), box-shadow 0.4s var(--lg-ease);
}

.lg-voice-bubble:hover {
  transform: translateX(4px);
}

.lg-voice-bubble--user {
  margin-left: auto;
  background: rgba(94, 235, 253, 0.16);
  border: 1px solid rgba(94, 235, 253, 0.32);
  box-shadow: 0 0 24px rgba(94, 235, 253, 0.08);
}

.lg-voice-bubble--ava {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--lg-border);
  box-shadow: 0 0 20px rgba(122, 53, 255, 0.06);
}

/* Food delivery */
.lg-food .lg-voice__panel::before {
  background: radial-gradient(circle, rgba(255, 168, 76, 0.2), transparent 65%);
}

.lg-food .lg-voice__panel::after {
  background: radial-gradient(circle, rgba(255, 107, 74, 0.12), transparent 65%);
}

.lg-voice-visual--food::before {
  background: linear-gradient(180deg, transparent, rgba(255, 168, 76, 0.35), rgba(255, 107, 74, 0.22), transparent);
}

.lg-voice-bubble--food {
  background: rgba(255, 168, 76, 0.14);
  border: 1px solid rgba(255, 168, 76, 0.3);
  box-shadow: 0 0 24px rgba(255, 168, 76, 0.08);
}

.lg-voice-carousel--food .lg-voice-carousel__glow {
  background: radial-gradient(circle at 50% 50%, rgba(255, 168, 76, 0.14), transparent 55%);
}

.lg-voice-carousel--food .lg-voice-carousel__label {
  color: rgba(255, 168, 76, 0.85);
}

.lg-commerce-stream--food .lg-commerce-capsule {
  border-color: rgba(255, 168, 76, 0.28);
  box-shadow: 0 0 20px rgba(255, 168, 76, 0.08);
}

/* How it works */
.lg-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}

@media (min-width: 768px) {
  .lg-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* How it works — timeline journey */
#how-it-works .lg-steps {
  position: relative;
  counter-reset: step;
}

@media (min-width: 768px) {
  #how-it-works .lg-steps::before {
    content: "";
    position: absolute;
    top: 44px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(94, 235, 253, 0.45) 15%,
      rgba(122, 53, 255, 0.4) 50%,
      rgba(94, 235, 253, 0.45) 85%,
      transparent
    );
    border-radius: 2px;
    z-index: 0;
  }

  #how-it-works .lg-step {
    z-index: 1;
  }
}

.lg-step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--lg-radius);
  counter-increment: step;
  transition: transform 0.4s var(--lg-ease-out), box-shadow 0.4s var(--lg-ease);
}

.lg-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 32px rgba(94, 235, 253, 0.08);
}

.lg-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--lg-accent);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.lg-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.lg-step p {
  font-size: 14px;
  color: var(--lg-text-secondary);
  line-height: 1.5;
}

/* Why */
.lg-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .lg-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lg-why-card {
  border-radius: var(--lg-radius);
  padding: 32px;
}

.lg-why-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.lg-why-card p {
  font-size: 15px;
  color: var(--lg-text-secondary);
  line-height: 1.55;
}

/* Privacy */
.lg-privacy {
  text-align: center;
}

.lg-privacy .lg-section-lead {
  margin-left: auto;
  margin-right: auto;
}

.lg-privacy-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .lg-privacy-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lg-privacy-card {
  border-radius: var(--lg-radius);
  padding: 24px;
}

.lg-privacy-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lg-privacy-card p {
  font-size: 14px;
  color: var(--lg-text-secondary);
  line-height: 1.5;
}

.lg-privacy-link {
  display: inline-flex;
  margin-top: 32px;
  color: var(--lg-accent);
  font-size: 15px;
  font-weight: 500;
  gap: 6px;
  align-items: center;
  transition: opacity 0.25s;
}

.lg-privacy-link:hover {
  opacity: 0.8;
}

/* Download */
.lg-download {
  text-align: center;
}

.lg-download .lg-section-lead {
  margin-left: auto;
  margin-right: auto;
}

.lg-download__panel {
  margin-top: 40px;
  border-radius: calc(var(--lg-radius) + 12px);
  padding: clamp(40px, 6vw, 72px) 32px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.lg-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--lg-radius-sm);
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  transition: transform 0.3s var(--lg-ease-out), box-shadow 0.3s var(--lg-ease);
  margin-bottom: 20px;
}

.lg-app-badge:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.lg-app-badge svg {
  width: 28px;
  height: 28px;
}

.lg-app-badge__text {
  text-align: left;
  line-height: 1.15;
}

.lg-app-badge__small {
  font-size: 11px;
  font-weight: 400;
}

.lg-app-badge__large {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lg-download-note {
  font-size: 14px;
  color: var(--lg-text-tertiary);
  margin-top: 16px;
}

.lg-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* Footer */
.lg-footer {
  padding:
    48px 24px
    calc(56px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.lg-footer__inner {
  max-width: var(--lg-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding-bottom: 8px;
}

.lg-footer__top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 16px 22px;
  width: 100%;
  max-width: 100%;
}

.lg-footer__brand {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.lg-footer__divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.lg-footer__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.lg-footer__links li {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .lg-footer__top {
    gap: 10px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-inline: 4px;
  }

  .lg-footer__top::-webkit-scrollbar {
    display: none;
  }

  .lg-footer__brand {
    font-size: 15px;
  }

  .lg-footer__divider {
    height: 14px;
  }

  .lg-footer__links {
    gap: 6px 14px;
  }

  .lg-footer__link {
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 479px) {
  .lg-footer__divider {
    display: none;
  }
}

.lg-footer__link {
  font-size: 13px;
  color: var(--lg-text-tertiary);
  white-space: nowrap;
  transition: color 0.25s;
}

.lg-footer__link:hover {
  color: var(--lg-text-secondary);
}

.lg-footer__disclosure {
  margin: 4px 0 0;
  max-width: 640px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--lg-text-tertiary);
}

.lg-footer__copy {
  margin: 0;
  font-size: 12px;
  color: var(--lg-text-tertiary);
}

.lg-app-store-status {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: var(--lg-radius-sm);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 168, 76, 0.95);
  background: rgba(255, 168, 76, 0.1);
  border: 1px solid rgba(255, 168, 76, 0.28);
  text-align: center;
}

.lg-app-store-status[hidden] {
  display: none;
}

.lg-download-pricing {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--lg-text-secondary);
  text-align: center;
}

.lg-app-badge.is-coming-soon {
  opacity: 0.72;
  cursor: default;
}

/* Demo modal */
.lg-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--lg-ease), visibility 0.4s;
}

.lg-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lg-modal__dialog {
  position: relative;
  width: min(100%, 880px);
  border-radius: var(--lg-radius);
  padding: 32px;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.45s var(--lg-ease-out);
}

.lg-modal.is-open .lg-modal__dialog {
  transform: scale(1) translateY(0);
}

.lg-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 18px;
  line-height: 1;
  transition: background 0.25s;
}

.lg-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lg-modal__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.lg-modal__lead {
  font-size: 15px;
  color: var(--lg-text-secondary);
  margin-bottom: 28px;
}

.lg-demo-stage {
  border-radius: var(--lg-radius-sm);
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #14141c, #08080e);
  border: 1px solid var(--lg-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.lg-demo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.5s var(--lg-ease-out), transform 0.5s var(--lg-ease-out);
}

.lg-demo-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.lg-demo-slide__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lg-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lg-demo-slide__text {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 480px;
}

.lg-demo-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.lg-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s, transform 0.3s;
}

.lg-demo-dot.is-active {
  background: var(--lg-accent);
  transform: scale(1.2);
}

/* Scroll reveal */
.lg-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--lg-ease-out),
    transform 0.8s var(--lg-ease-out);
}

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

.lg-reveal--delay-1 { transition-delay: 0.1s; }
.lg-reveal--delay-2 { transition-delay: 0.2s; }
.lg-reveal--delay-3 { transition-delay: 0.3s; }

@media (max-width: 767px) {
  .lg-section {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .lg-hero {
    min-height: auto;
    padding-top: calc(var(--lg-nav-h) + max(16px, env(safe-area-inset-top)) + 28px);
    padding-bottom: 48px;
  }

  .lg-hero__grid {
    gap: 32px;
  }

  .lg-nav__inner {
    padding: 0 12px;
    gap: 10px;
  }

  .lg-nav__cta {
    display: none;
  }

  .ava-nav-brand__name {
    font-size: 17px;
  }

  @supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .ava-nav-brand__name {
      -webkit-text-fill-color: #f5f5f7;
      color: #f5f5f7;
    }
  }

  .lg-mobile-menu {
    z-index: 1001;
    padding:
      max(24px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }

  .lg-siri-stage__device {
    min-height: 0;
    padding: 8px 0 12px;
  }

  .lg-voice-carousel {
    min-height: 96px;
    padding: 18px 16px;
  }

  .lg-voice-carousel__command {
    left: 16px;
    right: 16px;
    top: 44px;
    font-size: clamp(16px, 4.5vw, 19px);
  }

  .lg-automation-branch {
    padding: 20px 16px;
  }

  #ava-landing-root.lg-showcase {
    overflow: visible;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-ambient__orb,
  .lg-showcase__frame,
  .lg-showcase__float,
  .lg-siri-orb,
  .lg-island-wave span {
    animation: none !important;
  }

  .lg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile nav menu */
.lg-nav__menu-btn {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .lg-nav__menu-btn {
    display: none;
  }
}

.lg-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.lg-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.lg-mobile-menu a {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.lg-mobile-menu__close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 20px;
}

/* Hero kicker + trust (visual only) */
.lg-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #5eebfd, #7a35ff, #ff4fd8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lg-hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 248, 252, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(94, 235, 253, 0.28);
  box-shadow: 0 0 24px rgba(94, 235, 253, 0.08);
}

.lg-hero-trust {
  margin-top: 20px;
  font-size: 14px;
  color: var(--lg-text-tertiary);
  line-height: 1.6;
  max-width: 420px;
}

/* Automation section (grid unchanged; card visuals only) */
#automation .lg-automation-trust {
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  #automation .lg-automation-trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

#automation .lg-automation-flow {
  counter-reset: none;
  margin-top: 0;
  position: relative;
}

#automation .lg-automation-flow .lg-step::before {
  content: none;
  display: none;
}

@media (min-width: 1100px) {
  #automation .lg-automation-flow::before {
    content: "";
    position: absolute;
    top: 52px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(94, 235, 253, 0.5),
      rgba(122, 53, 255, 0.45) 50%,
      rgba(94, 235, 253, 0.5)
    );
    border-radius: 2px;
    opacity: 0.65;
    z-index: 0;
  }

  #automation .lg-automation-flow .lg-step {
    z-index: 1;
  }
}

#automation .lg-automation-flow .lg-step {
  padding-top: 28px;
  transition: transform 0.45s var(--lg-ease-out), box-shadow 0.45s var(--lg-ease);
}

#automation .lg-automation-flow .lg-step:hover {
  transform: translateY(-5px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 0 36px rgba(122, 53, 255, 0.1);
}

@media (min-width: 768px) {
  #automation .lg-automation-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1100px) {
  #automation .lg-automation-flow {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

.lg-step--icon .lg-feature-icon {
  margin-bottom: 16px;
}

/* FAQ — premium accordion */
.lg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.lg-faq-item {
  border-radius: calc(var(--lg-radius) + 4px);
  overflow: hidden;
  transition:
    background 0.45s var(--lg-ease-out),
    box-shadow 0.45s var(--lg-ease-out),
    border-color 0.45s var(--lg-ease-out);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lg-faq-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 28px rgba(94, 235, 253, 0.06);
}

.lg-faq-item[open] {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(94, 235, 253, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 16px 40px rgba(0, 0, 0, 0.22),
    0 0 32px rgba(94, 235, 253, 0.08);
}

.lg-faq-item summary {
  padding: 24px 28px;
  min-height: 64px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color 0.3s var(--lg-ease);
}

.lg-faq-item[open] summary {
  color: var(--lg-text);
  padding-bottom: 12px;
}

.lg-faq-item summary::-webkit-details-marker {
  display: none;
}

.lg-faq-item summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 400;
  color: var(--lg-text-secondary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.4s var(--lg-ease-out),
    color 0.3s var(--lg-ease),
    background 0.3s var(--lg-ease);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  line-height: 1;
}

.lg-faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--lg-accent);
  background: rgba(94, 235, 253, 0.12);
  border-color: rgba(94, 235, 253, 0.3);
}

.lg-faq-item p {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--lg-text-secondary);
  line-height: 1.6;
  animation: lg-faq-open 0.4s var(--lg-ease-out);
}

@keyframes lg-faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lg-glow-drift {
  to { transform: translate(-4%, 6%) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .lg-feature-card,
  .lg-ambient__mesh,
  .lg-voice__panel::before {
    animation: none;
  }

  .lg-faq-item p {
    animation: none;
  }
}

/* Surgical polish — section atmosphere (subtle, non-neon) */
#features::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  top: 12%;
  right: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 53, 255, 0.12), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  animation: lg-section-pulse 10s ease-in-out infinite alternate;
}

#automation::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 4px;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(94, 235, 253, 0.25), transparent);
  filter: blur(2px);
  pointer-events: none;
  animation: lg-section-pulse 8s ease-in-out infinite alternate;
}

.lg-voice::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 235, 253, 0.14), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: lg-section-pulse 12s ease-in-out infinite alternate;
}

#how-it-works::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  top: 40%;
  left: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 235, 253, 0.1), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  animation: lg-section-pulse 11s ease-in-out infinite alternate;
}

.lg-faq::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  top: 8%;
  left: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}

.lg-faq-item {
  position: relative;
}

.lg-faq-item[open]::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(94, 235, 253, 0.12), rgba(122, 53, 255, 0.08));
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

@keyframes lg-section-pulse {
  to { opacity: 0.55; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  #features::after,
  #automation::after,
  .lg-voice::after,
  #how-it-works::after {
    animation: none;
  }
}

/* ── Commerce network layer (ambient) ── */
.lg-ambient__network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.lg-network-lines {
  animation: lg-network-drift 48s var(--lg-ease) infinite alternate;
}

.lg-network-nodes {
  animation: lg-network-pulse 12s ease-in-out infinite alternate;
}

@keyframes lg-network-drift {
  to { transform: translate(2%, -1.5%) scale(1.02); }
}

@keyframes lg-network-pulse {
  to { opacity: 0.65; }
}

/* ── Retailer network marquee ── */
.lg-retailer-network {
  position: relative;
  padding: clamp(32px, 5vw, 56px) 24px clamp(40px, 6vw, 72px);
  isolation: isolate;
}

.lg-retailer-network__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lg-retailer-network__mesh {
  position: absolute;
  inset: 20% 0 auto;
  width: 100%;
  height: 120px;
  opacity: 0.5;
}

.lg-retailer-network__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 40px);
}

.lg-retailer-network__panel {
  width: min(100%, 1120px);
  border-radius: calc(var(--lg-radius) + 6px);
  padding: clamp(20px, 3vw, 28px) 0;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 32px 64px rgba(0, 0, 0, 0.38),
    0 0 80px rgba(94, 235, 253, 0.06),
    0 0 60px rgba(122, 53, 255, 0.05);
}

.lg-retailer-network__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(94, 235, 253, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 70% at 85% 50%, rgba(122, 53, 255, 0.07), transparent 50%);
  pointer-events: none;
}

.lg-retailer-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.lg-retailer-marquee__track {
  display: flex;
  width: max-content;
  animation: lg-retailer-marquee 72s linear infinite;
}

.lg-retailer-marquee:hover .lg-retailer-marquee__track {
  animation-play-state: paused;
}

@keyframes lg-retailer-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.lg-retailer-marquee__row {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 4px 16px;
  flex-shrink: 0;
}

.lg-retailer-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--lg-text-secondary);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 16px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  transition: border-color 0.35s var(--lg-ease), box-shadow 0.35s var(--lg-ease);
}

.lg-retailer-node:hover {
  border-color: rgba(94, 235, 253, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 0 20px rgba(94, 235, 253, 0.1);
}

.lg-retailer-node__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, #5eebfd, #7a35ff);
  box-shadow: 0 0 8px rgba(94, 235, 253, 0.45);
}

.lg-retailer-network__copy {
  text-align: center;
  max-width: 640px;
}

.lg-retailer-network__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.lg-retailer-network__lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--lg-text-secondary);
  line-height: 1.5;
}

.lg-retailer-network__siri {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(94, 235, 253, 0.82);
  line-height: 1.5;
}

/* Automation — branched paths */
.lg-automation-branch {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--lg-radius) + 8px);
  padding: clamp(24px, 3vw, 36px);
}

.lg-automation-branch__glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 20%, rgba(94, 235, 253, 0.14), transparent 55%);
  pointer-events: none;
  animation: lg-branch-glow 7s ease-in-out infinite alternate;
}

@keyframes lg-branch-glow {
  to { opacity: 0.45; transform: scale(1.04); }
}

.lg-automation-branch__trunk {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: min(100%, 420px);
  margin: 0 auto 24px;
}

.lg-automation-branch__node {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 248, 252, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(94, 235, 253, 0.28);
  box-shadow: 0 0 20px rgba(94, 235, 253, 0.08);
}

.lg-automation-branch__connector {
  display: block;
  width: 2px;
  height: 26px;
  background: linear-gradient(180deg, rgba(94, 235, 253, 0.45), rgba(122, 53, 255, 0.35));
  border-radius: 2px;
  animation: lg-path-pulse 3s ease-in-out infinite;
}

.lg-automation-branch__connector--split {
  height: 32px;
  margin-bottom: 4px;
}

.lg-automation-branch__fork {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(94, 235, 253, 0.8);
  text-align: center;
}

.lg-automation-branch__fork span {
  display: block;
  margin: 4px 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--lg-text-tertiary);
}

.lg-automation-branch__particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(94, 235, 253, 0.35) 1px, transparent 1.2px);
  background-size: 32px 32px;
  opacity: 0.08;
  animation: lg-particle-drift 40s linear infinite;
  pointer-events: none;
}

.lg-auto-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.lg-commerce-visual {
  width: 100%;
  padding: clamp(16px, 2vw, 20px);
  border-radius: var(--lg-radius-sm);
}

.lg-commerce-visual--voice {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lg-commerce-visual__orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, #5eebfd, #7a35ff 55%, #2a1a4a);
  box-shadow: 0 0 20px rgba(94, 235, 253, 0.35);
  animation: lg-siri-orb-pulse 3s ease-in-out infinite;
}

@keyframes lg-siri-orb-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 28px rgba(94, 235, 253, 0.5); }
}

.lg-commerce-visual__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.lg-commerce-visual__wave span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: rgba(94, 235, 253, 0.7);
  animation: lg-voice-wave 1.2s ease-in-out infinite;
}

.lg-commerce-visual__wave span:nth-child(2) { animation-delay: 0.1s; height: 14px; }
.lg-commerce-visual__wave span:nth-child(3) { animation-delay: 0.2s; height: 18px; }
.lg-commerce-visual__wave span:nth-child(4) { animation-delay: 0.3s; height: 12px; }
.lg-commerce-visual__wave span:nth-child(5) { animation-delay: 0.4s; height: 10px; }

@keyframes lg-voice-wave {
  0%, 100% { transform: scaleY(0.6); opacity: 0.5; }
  50% { transform: scaleY(1.2); opacity: 1; }
}

.lg-commerce-visual__quote {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 500;
  color: rgba(248, 248, 252, 0.88);
  line-height: 1.35;
}

.lg-commerce-visual--discover {
  display: grid;
  gap: 8px;
}

.lg-mini-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--lg-radius-sm);
  position: relative;
}

.lg-mini-product__thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lg-mini-product__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.lg-mini-product__meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--lg-text-secondary);
}

.lg-mini-product--selected {
  border: 1px solid rgba(94, 235, 253, 0.35);
  box-shadow: 0 0 24px rgba(94, 235, 253, 0.12);
  animation: lg-product-select 2.5s ease-in-out infinite alternate;
}

@keyframes lg-product-select {
  to { box-shadow: 0 0 32px rgba(94, 235, 253, 0.22); }
}

.lg-mini-product__check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #5eebfd;
  background: rgba(94, 235, 253, 0.15);
  border: 1px solid rgba(94, 235, 253, 0.35);
}

.lg-auto-mini-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lg-auto-mini-card {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(248, 248, 252, 0.88);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: lg-mini-card-float 5s ease-in-out infinite;
}

.lg-auto-mini-card:nth-child(2) { animation-delay: 0.3s; }
.lg-auto-mini-card:nth-child(3) { animation-delay: 0.6s; }
.lg-auto-mini-card:nth-child(4) { animation-delay: 0.9s; }

.lg-auto-mini-card--assist {
  border-color: rgba(94, 235, 253, 0.28);
  color: #5eebfd;
}

.lg-auto-mini-card--cart {
  border-color: rgba(255, 168, 76, 0.28);
}

.lg-auto-mini-card--fast {
  border-color: rgba(180, 140, 255, 0.3);
}

.lg-auto-mini-card--retailer {
  border-color: rgba(122, 53, 255, 0.25);
}

@keyframes lg-mini-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.lg-automation-branch__paths {
  position: relative;
  z-index: 1;
  padding-top: 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .lg-automation-branch__paths {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .lg-automation-branch__paths::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 2px;
    height: 24px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(122, 53, 255, 0.4), transparent);
  }
}

.lg-automation-branch__path {
  position: relative;
  padding: clamp(22px, 3vw, 28px) clamp(20px, 2.5vw, 26px);
  border-radius: var(--lg-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lg-automation-branch__path--guided {
  border-color: rgba(94, 235, 253, 0.22);
  box-shadow: 0 0 28px rgba(94, 235, 253, 0.06);
}

.lg-automation-branch__path--express {
  border-color: rgba(122, 53, 255, 0.22);
  box-shadow: 0 0 28px rgba(122, 53, 255, 0.06);
}

.lg-automation-branch__path-title {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .lg-automation-branch__trunk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    justify-items: stretch;
    max-width: 100%;
    margin-bottom: 28px;
    column-gap: 0;
    row-gap: 6px;
  }

  .lg-automation-branch__trunk > .lg-auto-stage {
    align-self: stretch;
  }

  .lg-automation-branch__trunk > .lg-auto-stage:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .lg-automation-branch__trunk > .lg-automation-branch__connector:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
    width: clamp(28px, 4vw, 56px);
    height: 2px;
    margin-top: 52px;
    align-self: start;
    background: linear-gradient(90deg, rgba(94, 235, 253, 0.45), rgba(122, 53, 255, 0.35));
  }

  .lg-automation-branch__trunk > .lg-auto-stage:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .lg-automation-branch__trunk > .lg-automation-branch__connector:nth-of-type(2) {
    grid-column: 4;
    grid-row: 1;
    width: clamp(28px, 4vw, 56px);
    height: 2px;
    margin-top: 52px;
    align-self: start;
    background: linear-gradient(90deg, rgba(94, 235, 253, 0.45), rgba(122, 53, 255, 0.35));
  }

  .lg-automation-branch__trunk > .lg-auto-stage:nth-child(5) {
    grid-column: 5;
    grid-row: 1;
  }

  .lg-automation-branch__trunk > .lg-automation-branch__connector--split {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 2px;
    height: 36px;
    margin: 0 auto;
    justify-self: center;
    background: linear-gradient(180deg, rgba(94, 235, 253, 0.45), rgba(122, 53, 255, 0.35));
  }

  .lg-automation-branch__trunk > .lg-automation-branch__fork {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 0;
    font-size: 13px;
  }

  .lg-automation-branch .lg-commerce-visual--discover {
    gap: 10px;
  }

  .lg-automation-branch .lg-mini-product__thumb {
    width: 48px;
    height: 48px;
  }

  .lg-automation-branch .lg-mini-product__title {
    font-size: 15px;
  }

  .lg-automation-branch .lg-auto-mini-cards {
    gap: 10px;
  }

  .lg-automation-branch .lg-auto-mini-card {
    padding: 11px 16px;
    font-size: 13px;
  }
}

.lg-automation-branch__path--guided .lg-automation-branch__path-title {
  color: rgba(94, 235, 253, 0.88);
}

.lg-automation-branch__path--express .lg-automation-branch__path-title {
  color: rgba(180, 140, 255, 0.92);
}

.lg-automation-branch__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lg-automation-branch__steps li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lg-text-secondary);
  line-height: 1.4;
}

.lg-automation-branch__steps li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(94, 235, 253, 0.35), rgba(122, 53, 255, 0.2));
  opacity: 0.5;
}

.lg-automation-branch__steps li:first-child::before {
  top: 50%;
}

.lg-automation-branch__steps li:last-child::before {
  bottom: 50%;
}

.lg-automation-branch__steps li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(94, 235, 253, 0.35);
  box-shadow: 0 0 12px rgba(94, 235, 253, 0.35);
  animation: lg-path-node 4s ease-in-out infinite;
  animation-delay: calc(var(--step-i, 0) * 0.4s);
}

.lg-automation-branch__path--express .lg-automation-branch__steps li::after {
  background: rgba(122, 53, 255, 0.45);
  box-shadow: 0 0 14px rgba(122, 53, 255, 0.35);
  animation-duration: 2.5s;
}

.lg-automation-branch__path--express .lg-automation-branch__steps li {
  animation: lg-express-nudge 2.8s ease-in-out infinite;
  animation-delay: calc(var(--step-i, 0) * 0.25s);
}

.lg-automation-branch__path--guided .lg-automation-branch__steps li:nth-child(1) { --step-i: 0; }
.lg-automation-branch__path--guided .lg-automation-branch__steps li:nth-child(2) { --step-i: 1; }
.lg-automation-branch__path--guided .lg-automation-branch__steps li:nth-child(3) { --step-i: 2; }
.lg-automation-branch__path--guided .lg-automation-branch__steps li:nth-child(4) { --step-i: 3; }
.lg-automation-branch__path--guided .lg-automation-branch__steps li:nth-child(5) { --step-i: 4; }
.lg-automation-branch__path--guided .lg-automation-branch__steps li:nth-child(6) { --step-i: 5; }
.lg-automation-branch__path--express .lg-automation-branch__steps li:nth-child(1) { --step-i: 0; }
.lg-automation-branch__path--express .lg-automation-branch__steps li:nth-child(2) { --step-i: 1; }
.lg-automation-branch__path--express .lg-automation-branch__steps li:nth-child(3) { --step-i: 2; }
.lg-automation-branch__path--express .lg-automation-branch__steps li:nth-child(4) { --step-i: 3; }

@keyframes lg-path-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes lg-path-node {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateY(-50%) scale(1.15); opacity: 1; }
}

@keyframes lg-express-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* Two ways to shop */
.lg-shop-modes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .lg-shop-modes {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.lg-shop-mode-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--lg-radius) + 4px);
  padding: clamp(28px, 4vw, 36px);
}

.lg-shop-mode-card--guided::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: 55%;
  height: 60%;
  background: radial-gradient(circle, rgba(94, 235, 253, 0.12), transparent 65%);
  pointer-events: none;
  animation: lg-guided-drift 10s ease-in-out infinite alternate;
}

.lg-shop-mode-card--express::before {
  content: "";
  position: absolute;
  top: -15%;
  left: -10%;
  width: 50%;
  height: 55%;
  background: radial-gradient(circle, rgba(122, 53, 255, 0.14), transparent 65%);
  pointer-events: none;
  animation: lg-express-drift 6s ease-in-out infinite alternate;
}

@keyframes lg-guided-drift {
  to { transform: translate(-6px, 8px); opacity: 0.6; }
}

@keyframes lg-express-drift {
  to { transform: translate(8px, 4px); opacity: 0.85; }
}

.lg-shop-mode-card__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(94, 235, 253, 0.85);
}

.lg-shop-mode-card--express .lg-shop-mode-card__eyebrow {
  color: rgba(180, 140, 255, 0.92);
}

.lg-shop-mode-card__feel {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--lg-text-secondary);
  line-height: 1.45;
}

.lg-shop-mode-card__best {
  position: relative;
  z-index: 1;
  margin: 20px 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lg-text-tertiary);
}

.lg-shop-mode-card__tags {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lg-shop-mode-card__tags li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(248, 248, 252, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lg-shop-mode-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lg-mode-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lg-mode-live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.lg-mode-live--guided {
  color: rgba(120, 220, 140, 0.95);
  background: rgba(120, 220, 140, 0.1);
  border: 1px solid rgba(120, 220, 140, 0.28);
}

.lg-mode-live--guided .lg-mode-live__dot {
  background: rgba(120, 220, 140, 0.9);
  box-shadow: 0 0 12px rgba(120, 220, 140, 0.55);
  animation: lg-mode-indicator 2.5s ease-in-out infinite;
}

.lg-mode-live--express {
  color: rgba(180, 140, 255, 0.95);
  background: rgba(122, 53, 255, 0.12);
  border: 1px solid rgba(122, 53, 255, 0.32);
}

.lg-mode-live--express .lg-mode-live__dot {
  background: rgba(180, 140, 255, 0.9);
  box-shadow: 0 0 14px rgba(122, 53, 255, 0.5);
  animation: lg-mode-indicator 1.8s ease-in-out infinite;
}

.lg-mode-journey {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
  padding: 8px 0 8px 4px;
}

.lg-mode-journey--rail {
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  padding: 8px 0;
}

.lg-mode-journey__rail {
  position: relative;
  width: 28px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  min-height: 100%;
}

.lg-mode-journey__rail .lg-mode-journey__track {
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 14px;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(94, 235, 253, 0.15), rgba(94, 235, 253, 0.45) 40%, rgba(122, 53, 255, 0.35));
  overflow: hidden;
}

.lg-mode-journey__rail .lg-mode-journey__track::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(94, 235, 253, 0.9), transparent);
  animation: lg-journey-glow 5s ease-in-out infinite;
}

.lg-mode-journey--express .lg-mode-journey__rail .lg-mode-journey__track::after {
  animation-duration: 3s;
  background: linear-gradient(180deg, transparent, rgba(255, 200, 120, 0.95), transparent);
}

.lg-mode-journey__node {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(94, 235, 253, 0.5);
  box-shadow: 0 0 10px rgba(94, 235, 253, 0.35);
  flex-shrink: 0;
}

.lg-mode-journey--express .lg-mode-journey__node {
  background: rgba(255, 168, 76, 0.55);
  box-shadow: 0 0 10px rgba(255, 168, 76, 0.35);
}

.lg-mode-journey__steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 4px 0;
}

.lg-mode-journey__track {
  position: absolute;
  left: 18px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(94, 235, 253, 0.15), rgba(94, 235, 253, 0.45) 40%, rgba(122, 53, 255, 0.35));
  overflow: hidden;
}

.lg-mode-journey__track::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(94, 235, 253, 0.9), transparent);
  animation: lg-journey-glow 5s ease-in-out infinite;
}

.lg-mode-journey--express .lg-mode-journey__track {
  background: linear-gradient(180deg, rgba(122, 53, 255, 0.2), rgba(255, 168, 76, 0.45) 50%, rgba(94, 235, 253, 0.4));
}

.lg-mode-journey--express .lg-mode-journey__track::after {
  animation-duration: 3s;
  background: linear-gradient(180deg, transparent, rgba(255, 200, 120, 0.95), transparent);
}

@keyframes lg-journey-glow {
  0% { top: -40%; }
  100% { top: 100%; }
}

.lg-mode-journey__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--lg-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: lg-step-float 6s ease-in-out infinite;
  animation-delay: calc(var(--step-i, 0) * 0.55s);
}

.lg-mode-journey--express .lg-mode-journey__step {
  animation-name: lg-step-pulse;
  animation-duration: 3.5s;
}

.lg-mode-journey__step:nth-child(odd) {
  background: rgba(255, 255, 255, 0.05);
}

.lg-mode-journey--guided .lg-mode-journey__step.is-highlight,
.lg-mode-journey--guided .lg-mode-journey__step:hover {
  border-color: rgba(94, 235, 253, 0.28);
  box-shadow: 0 0 20px rgba(94, 235, 253, 0.1);
}

.lg-mode-journey--express .lg-mode-journey__step:hover {
  border-color: rgba(255, 168, 76, 0.35);
  box-shadow: 0 0 22px rgba(255, 168, 76, 0.12);
}

@keyframes lg-step-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes lg-step-pulse {
  0%, 100% { transform: translateX(0); box-shadow: none; }
  50% { transform: translateX(4px); box-shadow: 0 0 18px rgba(255, 168, 76, 0.1); }
}

.lg-mode-journey__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lg-mode-journey--express .lg-mode-journey__icon {
  background: rgba(255, 168, 76, 0.12);
  border-color: rgba(255, 168, 76, 0.25);
}

.lg-mode-journey__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(248, 248, 252, 0.9);
}

/* Siri + AVA-Shops conversation */
.lg-siri-conversation {
  position: relative;
  max-width: min(100%, 680px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px);
  border-radius: calc(var(--lg-radius) + 4px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.lg-siri-conversation__glow {
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 30% 20%, rgba(94, 235, 253, 0.14), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(122, 53, 255, 0.1), transparent 55%);
  pointer-events: none;
  animation: lg-siri-voice-glow 8s ease-in-out infinite alternate;
}

@keyframes lg-siri-voice-glow {
  to { opacity: 0.55; transform: scale(1.03); }
}

.lg-siri-msg {
  position: relative;
  z-index: 1;
  border-radius: var(--lg-radius);
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lg-siri-msg__role {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(94, 235, 253, 0.75);
}

.lg-siri-msg p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: rgba(248, 248, 252, 0.92);
}

.lg-siri-msg--user {
  margin-right: 6%;
  background: rgba(94, 235, 253, 0.1);
  border-color: rgba(94, 235, 253, 0.28);
  box-shadow: 0 0 24px rgba(94, 235, 253, 0.08);
}

.lg-siri-msg--user .lg-siri-msg__role {
  color: rgba(94, 235, 253, 0.9);
}

.lg-siri-msg--ava {
  margin-left: 4%;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(122, 53, 255, 0.25);
  box-shadow: 0 0 28px rgba(122, 53, 255, 0.08);
}

.lg-siri-msg--ava .lg-siri-msg__role {
  color: rgba(180, 140, 255, 0.9);
}

.lg-siri-msg__typing {
  display: inline-flex;
  gap: 5px;
  margin-top: 12px;
}

.lg-siri-msg__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(94, 235, 253, 0.7);
  animation: lg-typing-dot 1.4s ease-in-out infinite;
}

.lg-siri-msg__typing span:nth-child(2) { animation-delay: 0.2s; }
.lg-siri-msg__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes lg-typing-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.lg-siri-msg--product {
  margin-left: 4%;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.lg-siri-msg--status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
}

.lg-siri-msg--status p {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5eebfd;
}

.lg-siri-msg--express {
  border-color: rgba(255, 168, 76, 0.28);
}

.lg-siri-msg--cart {
  border-color: rgba(94, 235, 253, 0.22);
}

.lg-siri-msg--checkout {
  border-color: rgba(122, 53, 255, 0.28);
  box-shadow: 0 0 20px rgba(122, 53, 255, 0.08);
}

/* Shop Anywhere */
.lg-shop-anywhere {
  text-align: center;
}

.lg-shop-anywhere .lg-section-lead {
  margin-left: auto;
  margin-right: auto;
}

.lg-shop-anywhere__strip {
  position: relative;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 32px);
  border-radius: calc(var(--lg-radius) + 4px);
}

.lg-shop-anywhere__beam {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 235, 253, 0.35) 15%,
    rgba(122, 53, 255, 0.4) 50%,
    rgba(94, 235, 253, 0.35) 85%,
    transparent
  );
  animation: lg-stream-beam 5s ease-in-out infinite alternate;
}

.lg-shop-anywhere__beam::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 35%;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(94, 235, 253, 0.45), transparent 70%);
  filter: blur(3px);
  animation: lg-stream-pulse 4s ease-in-out infinite;
}

.lg-shop-anywhere__surfaces {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 10px;
}

.lg-shop-anywhere__surface {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 248, 252, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(94, 235, 253, 0.25);
  box-shadow: 0 0 20px rgba(94, 235, 253, 0.08);
  animation: lg-surface-float 5s ease-in-out infinite;
}

.lg-shop-anywhere__surface:nth-child(1) { animation-delay: 0s; }
.lg-shop-anywhere__surface:nth-child(2) { animation-delay: 0.4s; }
.lg-shop-anywhere__surface:nth-child(3) { animation-delay: 0.8s; }
.lg-shop-anywhere__surface:nth-child(4) { animation-delay: 1.2s; }

@keyframes lg-surface-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.lg-shop-anywhere__check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #5eebfd;
  background: rgba(94, 235, 253, 0.15);
  border: 1px solid rgba(94, 235, 253, 0.35);
}

#siri-ava-shops::before {
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(94, 235, 253, 0.14), transparent 62%);
}

#shop-anywhere::before {
  background: radial-gradient(ellipse 65% 45% at 50% 50%, rgba(122, 53, 255, 0.1), transparent 62%);
}

/* Siri stage — split layout */
.lg-siri-stage {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--lg-radius) + 8px);
  padding: clamp(24px, 4vw, 40px);
}

.lg-siri-stage__glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 25% 40%, rgba(94, 235, 253, 0.16), transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(122, 53, 255, 0.12), transparent 55%);
  pointer-events: none;
  animation: lg-siri-voice-glow 9s ease-in-out infinite alternate;
}

.lg-siri-stage__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.lg-siri-stage__device {
  order: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(78vh, 700px);
}

.lg-siri-conversation {
  order: 1;
}

@media (min-width: 900px) {
  .lg-siri-stage__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 36px;
    align-items: center;
  }

  .lg-siri-stage__device {
    order: 2;
    min-height: 720px;
  }

  .lg-siri-conversation {
    order: 1;
  }
}

.lg-siri-conversation .lg-siri-msg {
  padding: 20px 22px;
}

.lg-siri-conversation .lg-siri-msg p {
  font-size: 18px;
}

@media (min-width: 900px) {
  .lg-siri-conversation .lg-siri-msg p {
    font-size: 19px;
  }

  .lg-siri-conversation .lg-siri-msg--status p {
    font-size: 16px;
  }
}

.lg-siri-conversation--animated .lg-siri-msg {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.65s var(--lg-ease-out),
    transform 0.65s var(--lg-ease-out);
}

.lg-siri-conversation--animated.is-revealed .lg-siri-msg[data-siri-step].is-visible,
.lg-siri-conversation--animated.is-playing .lg-siri-msg[data-siri-step].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lg-siri-msg__product-name {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  color: #5eebfd;
}

.lg-shop-mode-card--guided .lg-shop-mode-card__eyebrow::after,
.lg-shop-mode-card--express .lg-shop-mode-card__eyebrow::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  vertical-align: middle;
  animation: lg-mode-indicator 3s ease-in-out infinite;
}

.lg-shop-mode-card--guided .lg-shop-mode-card__eyebrow::after {
  background: rgba(94, 235, 253, 0.85);
  box-shadow: 0 0 12px rgba(94, 235, 253, 0.5);
}

.lg-shop-mode-card--express .lg-shop-mode-card__eyebrow::after {
  background: rgba(255, 168, 76, 0.9);
  box-shadow: 0 0 14px rgba(255, 168, 76, 0.45);
  animation-duration: 2s;
}

@keyframes lg-mode-indicator {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* One shopping session flow */
.lg-session-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.lg-session-flow__track {
  position: absolute;
  left: 50%;
  top: 24px;
  bottom: 24px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(94, 235, 253, 0.2), rgba(94, 235, 253, 0.5) 30%, rgba(122, 53, 255, 0.4) 70%, rgba(94, 235, 253, 0.2));
  border-radius: 2px;
  overflow: hidden;
}

.lg-session-flow__track::after {
  content: "";
  position: absolute;
  left: 0;
  top: -30%;
  width: 100%;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(94, 235, 253, 0.9), transparent);
  animation: lg-journey-glow 4s ease-in-out infinite;
}

.lg-session-flow__card {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: var(--lg-radius);
  transition: transform 0.45s var(--lg-ease-out), box-shadow 0.45s var(--lg-ease);
  animation: lg-session-float 6s ease-in-out infinite;
}

.lg-session-flow__card:nth-child(2) { animation-delay: 0s; }
.lg-session-flow__card:nth-child(4) { animation-delay: 0.5s; }
.lg-session-flow__card:nth-child(6) { animation-delay: 1s; }
.lg-session-flow__card:nth-child(8) { animation-delay: 1.5s; }
.lg-session-flow__card:nth-child(10) { animation-delay: 2s; }
.lg-session-flow__card:nth-child(12) { animation-delay: 2.5s; }
.lg-session-flow__card:nth-child(14) { animation-delay: 3s; }

.lg-session-flow__card:hover {
  transform: translateX(6px);
  box-shadow: 0 0 32px rgba(94, 235, 253, 0.12);
}

.lg-session-flow__card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lg-session-flow__card--assist {
  border-color: rgba(94, 235, 253, 0.28);
}

.lg-session-flow__card--retailer {
  border-color: rgba(122, 53, 255, 0.25);
}

.lg-session-flow__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lg-session-flow__arrow {
  font-size: 12px;
  color: rgba(94, 235, 253, 0.5);
  line-height: 1;
}

@keyframes lg-session-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.lg-automation-branch__paths::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 60%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(94, 235, 253, 0.4), rgba(122, 53, 255, 0.35), transparent);
  animation: lg-branch-route 5s ease-in-out infinite alternate;
}

@keyframes lg-branch-route {
  to { opacity: 0.35; width: 72%; }
}

/* ── Section commerce stream dividers ── */
.lg-commerce-stream {
  padding: clamp(20px, 4vw, 36px) 24px;
  position: relative;
}

.lg-commerce-stream__inner {
  max-width: var(--lg-max);
  margin: 0 auto;
  position: relative;
  padding: 18px 12px;
}

.lg-commerce-stream__beam {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 235, 253, 0.2) 20%,
    rgba(122, 53, 255, 0.25) 50%,
    rgba(94, 235, 253, 0.2) 80%,
    transparent
  );
  animation: lg-stream-beam 6s ease-in-out infinite alternate;
}

.lg-commerce-stream__beam::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 40%;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(94, 235, 253, 0.35), transparent 70%);
  filter: blur(4px);
  animation: lg-stream-pulse 5s ease-in-out infinite;
}

@keyframes lg-stream-beam {
  to { opacity: 0.55; }
}

@keyframes lg-stream-pulse {
  0%, 100% { left: 0; opacity: 0.4; }
  50% { left: 60%; opacity: 0.85; }
}

.lg-commerce-stream__nodes {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 6px;
}

.lg-commerce-capsule {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(248, 248, 252, 0.78);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lg-commerce-stream--alt .lg-commerce-capsule {
  color: rgba(94, 235, 253, 0.88);
  border-color: rgba(94, 235, 253, 0.2);
}

.lg-commerce-stream--voice .lg-commerce-capsule {
  border-color: rgba(122, 53, 255, 0.22);
}

.lg-commerce-stream__arrow {
  font-size: 11px;
  color: rgba(248, 248, 252, 0.28);
  user-select: none;
}

/* ── Voice command carousel ── */
.lg-voice-carousel {
  position: relative;
  min-height: 108px;
  padding: 22px 24px;
  border-radius: var(--lg-radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.lg-voice-carousel__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(94, 235, 253, 0.12), transparent 55%);
  pointer-events: none;
  animation: lg-carousel-glow 8s ease-in-out infinite alternate;
}

@keyframes lg-carousel-glow {
  to { opacity: 0.5; transform: scale(1.06); }
}

.lg-voice-carousel__label {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(94, 235, 253, 0.75);
}

.lg-voice-carousel__command {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 48px;
  margin: 0;
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.65s var(--lg-ease-out),
    transform 0.65s var(--lg-ease-out);
  pointer-events: none;
}

.lg-voice-carousel__command.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .lg-ambient__network,
  .lg-network-lines,
  .lg-network-nodes,
  .lg-retailer-marquee__track,
  .lg-commerce-stream__beam,
  .lg-commerce-stream__beam::after,
  .lg-voice-carousel__glow,
  .lg-automation-branch__glow,
  .lg-automation-branch__connector,
  .lg-automation-branch__steps li,
  .lg-automation-branch__steps li::after,
  .lg-mode-journey__track::after,
  .lg-mode-journey__step,
  .lg-shop-mode-card--guided::before,
  .lg-shop-mode-card--express::before,
  .lg-siri-conversation__glow,
  .lg-siri-msg__typing span,
  .lg-shop-anywhere__beam,
  .lg-shop-anywhere__beam::after,
  .lg-shop-anywhere__surface,
  .lg-glass--premium,
  .lg-ambient__beam,
  .lg-ambient__particles,
  .lg-session-flow__card,
  .lg-session-flow__track::after,
  .lg-siri-stage__glow {
    animation: none !important;
  }

  .lg-retailer-marquee__track {
    transform: none;
  }

  .lg-voice-carousel__command {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    opacity: 0;
  }

  .lg-voice-carousel__command.is-active {
    opacity: 1;
    transform: none;
  }
}

/* Commerce, Compressed — looping theater + comparison chart */

.ava-compress-section {
  position: relative;
  padding: clamp(112px, 16vw, 180px) 24px clamp(80px, 12vw, 120px);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.ava-compress-section.is-chart {
  overflow: visible;
  padding-bottom: clamp(96px, 14vw, 140px);
}

.ava-compress-section__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 110% 70% at 50% 30%, rgba(122, 53, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 12% 88%, rgba(94, 235, 253, 0.1), transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
}

.ava-compress-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--lg-max);
  margin: 0 auto;
}

.ava-compress-copy {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-compress-section.is-visible .ava-compress-copy {
  opacity: 1;
  transform: translateY(0);
}

.ava-compress-copy__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin-bottom: 14px;
}

.ava-compress-copy__title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 0.94;
  margin: 0 0 18px;
  color: #fff;
}

.ava-compress-copy__lead {
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 400;
  letter-spacing: -0.026em;
  line-height: 1.32;
  color: rgba(248, 248, 252, 0.75);
  margin: 0 auto;
  max-width: 580px;
}

/* Stage — stacked crossfade (grid grows to tallest visual, no clip) */
.ava-compress-stage {
  position: relative;
  display: grid;
  grid-template-areas: "stack";
  align-items: center;
  min-height: min(64vh, 580px);
}

.ava-compress-visual,
.ava-compress-chart {
  grid-area: stack;
  position: relative;
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  pointer-events: none;
  transition:
    opacity 1.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.35s cubic-bezier(0.4, 0, 0.2, 1),
    filter 1.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
}

.ava-compress-chart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  padding: clamp(12px, 2vw, 24px) 0 clamp(16px, 3vw, 28px);
}

.ava-compress-visual.is-active,
.ava-compress-chart.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.ava-compress-visual:not(.is-active),
.ava-compress-chart:not(.is-active) {
  position: absolute;
  inset: 0;
  width: 100%;
}

/* Theater */
.ava-compress-theater {
  position: relative;
  height: 100%;
  min-height: min(64vh, 580px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-compress-theater__floor {
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: min(88%, 820px);
  height: 32%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(94, 235, 253, 0.16) 0%, transparent 68%);
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
  pointer-events: none;
}

.ava-compress-section.is-converged .ava-compress-theater__floor {
  opacity: 1;
}

.ava-compress-theater__grid {
  position: absolute;
  inset: 8% 6%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  opacity: 0.35;
  pointer-events: none;
}

.ava-compress-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ava-compress-orbit__ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  transform-origin: 500px 300px;
}

.ava-compress-orbit__ring--1 {
  stroke-dasharray: 6 10;
  animation: avaOrbitSpin 40s linear infinite;
}

.ava-compress-orbit__ring--2 {
  stroke: rgba(94, 235, 253, 0.14);
  animation: avaOrbitSpin 30s linear infinite reverse;
}

.ava-compress-orbit__ring--3 {
  stroke: rgba(122, 53, 255, 0.16);
  animation: avaOrbitSpin 22s linear infinite;
}

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

.ava-compress-orbit__glow {
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}

.ava-compress-section.is-gathering .ava-compress-orbit__glow,
.ava-compress-section.is-converged .ava-compress-orbit__glow {
  opacity: 1;
}

.ava-compress-beam {
  fill: none;
  stroke-linecap: round;
  opacity: 0;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  transition:
    opacity 0.8s ease,
    stroke-dashoffset 3.4s cubic-bezier(0.62, 0.04, 0.98, 0.34);
  transition-delay: var(--beam-delay, 0s);
}

.ava-compress-beam--halo {
  stroke: rgba(94, 235, 253, 0.42);
  stroke-width: 10;
}

.ava-compress-beam--core {
  stroke: url(#avaBeamGrad);
  stroke-width: 3;
}

.ava-compress-section.is-gathering .ava-compress-beam {
  opacity: 1;
  stroke-dashoffset: 0;
}

.ava-compress-section.is-gathering .ava-compress-beam--halo {
  opacity: 0.55;
}

.ava-compress-section.is-gathering .ava-compress-beam--core {
  opacity: 1;
}

.ava-compress-section.is-converged .ava-compress-beam {
  opacity: 0;
  stroke-dashoffset: 0;
  transition:
    opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 0s;
  transition-delay: 0.2s;
}

.ava-compress-canvas {
  position: relative;
  width: min(100%, 960px);
  height: min(58vh, 500px);
  margin: 0 auto;
}

/* Nodes — frosted glass capsules */
.ava-compress-node {
  position: absolute;
  left: var(--nx, 50%);
  top: var(--ny, 50%);
  transform: translate(-50%, -50%);
  z-index: 2;
  transition:
    left 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    top 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 3.6s cubic-bezier(0.62, 0.04, 0.98, 0.34),
    opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    filter 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ava-compress-node__body {
  position: relative;
  animation: avaNodeFloat 6.5s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0s) + var(--ring, 0) * 0.85s);
  will-change: transform;
}

@keyframes avaNodeFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  20% {
    transform: translate3d(calc(var(--fx, 12px) * 0.55), -16px, 0) rotate(-1.4deg) scale(1.02);
  }
  45% {
    transform: translate3d(calc(var(--fx, 12px) * -0.85), -28px, 0) rotate(1deg) scale(1.035);
  }
  70% {
    transform: translate3d(calc(var(--fx, 12px) * 0.35), -12px, 0) rotate(-0.8deg) scale(1.015);
  }
  88% {
    transform: translate3d(calc(var(--fx, 12px) * -0.25), -24px, 0) rotate(0.6deg) scale(1.03);
  }
}

.ava-compress-section.is-gathering .ava-compress-node__body,
.ava-compress-section.is-converged .ava-compress-node__body {
  animation: none;
  transform: none;
}

@keyframes avaNodeShadowFloat {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55) inset,
      0 -1px 0 rgba(0, 0, 0, 0.35) inset,
      0 0 0 1px rgba(0, 0, 0, 0.28),
      0 10px 28px rgba(0, 0, 0, 0.38);
  }
  45% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55) inset,
      0 -1px 0 rgba(0, 0, 0, 0.35) inset,
      0 0 0 1px rgba(0, 0, 0, 0.28),
      0 24px 52px rgba(0, 0, 0, 0.48);
  }
}

.ava-compress-section.is-gathering .ava-compress-node__chip,
.ava-compress-section.is-converged .ava-compress-node__chip {
  animation: none;
}

.ava-compress-node__halo {
  position: absolute;
  inset: -10px -12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.55;
  pointer-events: none;
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ava-compress-node--retail .ava-compress-node__halo {
  box-shadow: 0 0 24px rgba(94, 235, 253, 0.12);
}

.ava-compress-node--delivery .ava-compress-node__halo {
  box-shadow: 0 0 24px rgba(255, 79, 216, 0.1);
}

.ava-compress-node--meta .ava-compress-node__halo {
  box-shadow: 0 0 24px rgba(166, 125, 255, 0.12);
}

.ava-compress-node__glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  opacity: 0.34;
  filter: blur(10px);
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ava-compress-node--retail .ava-compress-node__glow {
  background: radial-gradient(circle, rgba(94, 235, 253, 0.55), transparent 68%);
}

.ava-compress-node--delivery .ava-compress-node__glow {
  background: radial-gradient(circle, rgba(255, 79, 216, 0.42), transparent 68%);
}

.ava-compress-node--meta .ava-compress-node__glow {
  background: radial-gradient(circle, rgba(166, 125, 255, 0.48), transparent 68%);
}

.ava-compress-node__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 38%, rgba(8, 8, 14, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset,
    0 0 0 1px rgba(0, 0, 0, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.38);
  animation: avaNodeShadowFloat 6.5s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0s) + var(--ring, 0) * 0.85s);
  transition:
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ava-compress-node--retail .ava-compress-node__chip {
  border-color: rgba(94, 235, 253, 0.34);
}

.ava-compress-node--delivery .ava-compress-node__chip {
  border-color: rgba(255, 79, 216, 0.3);
}

.ava-compress-node--meta .ava-compress-node__chip {
  border-color: rgba(166, 125, 255, 0.32);
}

.ava-compress-node__badge {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 4px 12px rgba(0, 0, 0, 0.28);
}

.ava-compress-node--retail .ava-compress-node__badge {
  background: linear-gradient(145deg, #7ef4ff 0%, #5eebfd 45%, #2bb8d4 100%);
}

.ava-compress-node--delivery .ava-compress-node__badge {
  background: linear-gradient(145deg, #ff8ae8 0%, #ff4fd8 48%, #d936b8 100%);
}

.ava-compress-node--meta .ava-compress-node__badge {
  background: linear-gradient(145deg, #c4a8ff 0%, #a67dff 48%, #7a35ff 100%);
  font-size: 11px;
}

.ava-compress-node__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.ava-compress-node__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}

.ava-compress-node__kind {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: capitalize;
  line-height: 1;
  color: rgba(248, 248, 252, 0.46);
}

.ava-compress-node--retail .ava-compress-node__kind { color: rgba(94, 235, 253, 0.72); }
.ava-compress-node--delivery .ava-compress-node__kind { color: rgba(255, 143, 220, 0.78); }
.ava-compress-node--meta .ava-compress-node__kind { color: rgba(196, 168, 255, 0.78); }

.ava-compress-section.is-gathering .ava-compress-node,
.ava-compress-section.is-converged .ava-compress-node {
  left: 50%;
  top: 50%;
}

.ava-compress-section.is-gathering .ava-compress-node {
  transition:
    left 3.6s cubic-bezier(0.62, 0.04, 0.98, 0.34),
    top 3.6s cubic-bezier(0.62, 0.04, 0.98, 0.34),
    transform 3.6s cubic-bezier(0.62, 0.04, 0.98, 0.34),
    filter 2.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--gather-delay, 0s);
  transform: translate(-50%, -50%) scale(0.78);
  filter: brightness(1.12);
}

.ava-compress-section.is-gathering .ava-compress-node__chip {
  transform: scale(0.96);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 0 36px rgba(94, 235, 253, 0.28),
    0 16px 40px rgba(0, 0, 0, 0.45);
  transition:
    transform 3.6s cubic-bezier(0.62, 0.04, 0.98, 0.34),
    box-shadow 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--gather-delay, 0s);
}

.ava-compress-section.is-gathering .ava-compress-node__halo {
  opacity: 1;
  transform: scale(1.12);
  border-color: rgba(255, 255, 255, 0.28);
  transition:
    opacity 1s ease,
    transform 3.6s cubic-bezier(0.62, 0.04, 0.98, 0.34),
    border-color 1s ease;
  transition-delay: var(--gather-delay, 0s);
}

.ava-compress-section.is-converged .ava-compress-node {
  opacity: 1;
  transform: translate(-50%, -50%) scale(0.78);
  filter: blur(0) brightness(1.12);
  transition: none;
  animation: avaNodeAbsorb 2.8s cubic-bezier(0.33, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--gather-delay, 0s) * 0.12);
}

@keyframes avaNodeAbsorb {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.78);
    filter: blur(0) brightness(1.12);
  }
  28% {
    opacity: 0.94;
    transform: translate(-50%, -50%) scale(0.66);
    filter: blur(0.5px) brightness(1.22);
  }
  55% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.42);
    filter: blur(3px) brightness(1.38);
  }
  78% {
    opacity: 0.22;
    transform: translate(-50%, -50%) scale(0.18);
    filter: blur(8px) brightness(1.52);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.04);
    filter: blur(18px) brightness(1.75);
  }
}

.ava-compress-section.is-converged .ava-compress-node__body {
  animation: avaNodeBodyAbsorb 2.8s cubic-bezier(0.33, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--gather-delay, 0s) * 0.12 + 0.08s);
}

@keyframes avaNodeBodyAbsorb {
  0%, 35% { opacity: 1; }
  100% { opacity: 0; }
}

.ava-compress-section.is-converged .ava-compress-node__chip {
  animation: none;
  transition:
    opacity 2.2s cubic-bezier(0.33, 0, 0.2, 1),
    transform 2.6s cubic-bezier(0.33, 0, 0.2, 1),
    box-shadow 2s ease;
  transition-delay: calc(var(--gather-delay, 0s) * 0.12 + 0.1s);
  opacity: 0;
  transform: scale(0.72);
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0),
    0 0 48px rgba(94, 235, 253, 0.35);
}

.ava-compress-section.is-converged .ava-compress-node__halo {
  transition:
    opacity 2.4s cubic-bezier(0.33, 0, 0.2, 1),
    transform 2.8s cubic-bezier(0.33, 0, 0.2, 1);
  transition-delay: calc(var(--gather-delay, 0s) * 0.12);
  opacity: 0;
  transform: scale(0.55);
}

.ava-compress-section.is-converged .ava-compress-node__glow {
  transition: opacity 2.6s cubic-bezier(0.33, 0, 0.2, 1);
  transition-delay: calc(var(--gather-delay, 0s) * 0.12 + 0.05s);
  opacity: 0;
}

.ava-compress-section.is-gathering .ava-compress-node__glow {
  opacity: 0.9;
  transition: opacity 1.4s ease;
  transition-delay: var(--gather-delay, 0s);
}

/* Orb — crisp */
.ava-compress-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.55);
  opacity: 0;
  z-index: 4;
  transition:
    opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
    transform 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.ava-compress-section.is-gathering .ava-compress-orb {
  opacity: 0.55;
  transform: translate(-50%, -50%) scale(0.88);
  transition:
    opacity 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s,
    transform 3.8s cubic-bezier(0.62, 0.04, 0.98, 0.34) 0.25s;
}

.ava-compress-section.is-converged .ava-compress-orb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition:
    opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    transform 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s;
}

.ava-compress-orb__burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 235, 253, 0.45) 0%, transparent 62%);
  opacity: 0;
  pointer-events: none;
}

.ava-compress-section.is-converged .ava-compress-orb__burst {
  animation: avaOrbBurst 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes avaOrbBurst {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.25); }
}

.ava-compress-orb__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.ava-compress-orb__ring--1 {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  animation: avaOrbRing 4s ease-in-out infinite;
}

.ava-compress-orb__ring--2 {
  width: 248px;
  height: 248px;
  margin: -124px 0 0 -124px;
  border-color: rgba(94, 235, 253, 0.22);
  animation: avaOrbRing 4s ease-in-out infinite reverse;
}

@keyframes avaOrbRing {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.03); opacity: 1; }
}

.ava-compress-orb__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 235, 253, 0.35) 0%, rgba(122, 53, 255, 0.15) 40%, transparent 70%);
  animation: avaOrbPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes avaOrbPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

.ava-compress-orb__core {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  overflow: hidden;
  background: conic-gradient(from 225deg, #5eebfd 0%, #7a35ff 38%, #d040ff 62%, #5eebfd 100%);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 48px rgba(94, 235, 253, 0.55),
    0 0 96px rgba(122, 53, 255, 0.2),
    0 2px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(0, 0, 0, 0.25);
}

.ava-compress-orb__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.5) 0%, transparent 36%);
  pointer-events: none;
}

.ava-compress-orb__mark {
  position: relative;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
}

.ava-compress-orb__tagline {
  position: relative;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  max-width: 120px;
  line-height: 1.35;
}

/* Comparison sheet — editorial split, no dashboard bars */
.ava-compare-sheet {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
}

.ava-compare-sheet__rail {
  position: absolute;
  top: 52px;
  bottom: 0;
  left: calc(36% + 1px);
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(94, 235, 253, 0.35) 12%,
    rgba(122, 53, 255, 0.28) 50%,
    rgba(94, 235, 253, 0.35) 88%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleY(0.6);
  transform-origin: top center;
  transition:
    opacity 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
    transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
  pointer-events: none;
}

.ava-compress-section.is-chart-ready .ava-compare-sheet__rail {
  opacity: 1;
  transform: scaleY(1);
}

.ava-compare-sheet__head {
  display: grid;
  grid-template-columns: minmax(148px, 1.32fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(8px, 1.5vw, 16px);
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ava-compare-sheet__head-col {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ava-compare-sheet__head-col--without {
  color: rgba(248, 248, 252, 0.44);
  text-align: right;
  padding-right: clamp(12px, 2vw, 20px);
}

.ava-compare-sheet__head-col--ava {
  color: var(--lg-accent);
  padding-left: clamp(12px, 2vw, 20px);
}

.ava-compare-sheet__row {
  display: grid;
  grid-template-columns: minmax(148px, 1.32fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(8px, 1.5vw, 16px);
  align-items: center;
  padding: clamp(16px, 2.2vw, 22px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--row-i, 0) * 0.08s + 0.12s);
}

.ava-compare-sheet__row:last-child {
  border-bottom: none;
}

.ava-compress-section.is-chart-ready .ava-compare-sheet__row {
  opacity: 1;
  transform: translateY(0);
}

.ava-compress-section.is-chart:not(.is-chart-ready) .ava-compare-sheet__row {
  opacity: 0;
  transform: translateY(8px);
  transition-delay: calc((4 - var(--row-i, 0)) * 0.04s);
}

.ava-compare-sheet__label {
  margin: 0;
  padding-right: clamp(12px, 2vw, 24px);
  font-size: clamp(15px, 1.85vw, 19px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.2;
  color: rgba(248, 248, 252, 0.92);
}

.ava-compare-sheet__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.ava-compare-sheet__cell--without {
  align-items: flex-end;
  text-align: right;
  padding-right: clamp(12px, 2vw, 20px);
}

.ava-compare-sheet__cell--ava {
  padding-left: clamp(12px, 2vw, 20px);
}

.ava-compare-sheet__metric {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
  white-space: nowrap;
}

.ava-compare-sheet__cell--without .ava-compare-sheet__metric {
  color: rgba(248, 248, 252, 0.28);
  font-weight: 600;
}

.ava-compare-sheet__cell--ava .ava-compare-sheet__metric {
  background: linear-gradient(118deg, #fff 0%, #5eebfd 52%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(94, 235, 253, 0.25));
}

.ava-compare-sheet__hint {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.ava-compare-sheet__cell--without .ava-compare-sheet__hint {
  color: rgba(248, 248, 252, 0.28);
}

.ava-compare-sheet__cell--ava .ava-compare-sheet__hint {
  color: rgba(94, 235, 253, 0.72);
}

.ava-compress-chart__note {
  margin: 0 auto;
  width: min(100%, 960px);
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(248, 248, 252, 0.42);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
}

.ava-compress-section.is-chart-ready .ava-compress-chart__note {
  opacity: 1;
}

@media (max-width: 640px) {
  .ava-compare-sheet__rail {
    display: none;
  }

  .ava-compare-sheet__head {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ava-compare-sheet__head-spacer {
    display: none;
  }

  .ava-compare-sheet__head-col--without,
  .ava-compare-sheet__head-col--ava {
    text-align: left;
    padding: 0;
  }

  .ava-compare-sheet__row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px 0 22px;
  }

  .ava-compare-sheet__label {
    grid-column: 1 / -1;
    padding: 0 0 4px;
  }

  .ava-compare-sheet__cell--without,
  .ava-compare-sheet__cell--ava {
    padding: 0;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .ava-compress-copy {
    text-align: left;
    margin-bottom: 32px;
  }

  .ava-compress-stage {
    min-height: min(56vh, 480px);
  }

  .ava-compress-theater {
    min-height: min(56vh, 480px);
  }

  .ava-compress-canvas {
    height: min(50vh, 400px);
  }

  .ava-compress-node__chip {
    padding: 6px 12px 6px 6px;
    gap: 8px;
  }

  .ava-compress-node__badge {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 10px;
  }

  .ava-compress-node__label {
    font-size: 11px;
  }

  .ava-compress-node__kind {
    font-size: 8px;
  }

  .ava-compress-node__halo {
    inset: -8px -10px;
  }

  .ava-compress-orb__core {
    width: 168px;
    height: 168px;
  }

  .ava-compress-orb__mark {
    font-size: 28px;
  }

  .ava-compress-section.is-chart-ready .ava-compress-chart__note {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ava-compress-visual,
  .ava-compress-chart,
  .ava-compress-node,
  .ava-compress-node__body,
  .ava-compress-node__chip,
  .ava-compress-beam,
  .ava-compress-orb,
  .ava-compress-orbit__ring,
  .ava-compress-orb__halo,
  .ava-compare-sheet__row,
  .ava-compare-sheet__rail {
    animation: none;
    transition: none;
  }

  .ava-compress-section.is-visible .ava-compress-copy {
    opacity: 1;
    transform: none;
  }

  .ava-compress-visual.is-active,
  .ava-compress-chart.is-active {
    opacity: 1;
    transform: none;
  }

  .ava-compress-section.is-chart-ready .ava-compare-sheet__row {
    opacity: 1;
    transform: none;
  }

  .ava-compress-section.is-converged .ava-compress-node {
    animation: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    filter: none;
  }
}


/* Commerce Brain — flowing intelligence theater */

.ava-brain-section {
  position: relative;
  padding: clamp(112px, 16vw, 180px) 24px clamp(96px, 14vw, 140px);
  overflow: hidden;
}

.ava-brain-section__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 30% 80%, rgba(122, 53, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(94, 235, 253, 0.14), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.ava-brain-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--lg-max);
  margin: 0 auto;
}

.ava-brain-copy {
  max-width: 680px;
  margin-bottom: clamp(48px, 7vw, 72px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-copy {
  opacity: 1;
  transform: translateY(0);
}

.ava-brain-copy__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin-bottom: 18px;
}

.ava-brain-copy__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(248, 248, 252, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Theater layout */
.ava-brain-theater {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: 360px;
}

.ava-brain-flow {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
  min-height: 280px;
}

.ava-brain-flow__svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  height: 140px;
  transform: translateY(-50%);
  overflow: visible;
  pointer-events: none;
}

.ava-brain-flow__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
  stroke-linecap: round;
}

.ava-brain-flow__progress {
  fill: none;
  stroke: url(#avaBrainFlowGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(94, 235, 253, 0.45));
}

.ava-brain-flow__runner {
  fill: #5eebfd;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  offset-path: path("M 40 80 C 180 20, 320 120, 480 80 S 760 20, 960 80");
  offset-distance: 0%;
  offset-rotate: 0deg;
  transition: offset-distance 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 12px rgba(94, 235, 253, 0.8));
}

.ava-brain-flow__stages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.ava-brain-flow__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  opacity: 0.32;
  transform: translateY(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-flow__stage.is-past {
  opacity: 0.58;
}

.ava-brain-flow__stage.is-active {
  opacity: 1;
  transform: translateY(-6px);
}

.ava-brain-flow__node {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-brain-flow__node-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    background 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.ava-brain-flow__node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.8);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-core {
  background: var(--lg-accent);
  transform: scale(1.3);
  box-shadow: 0 0 28px rgba(94, 235, 253, 0.75);
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-ring {
  opacity: 1;
  transform: scale(1.35);
  border-color: rgba(94, 235, 253, 0.45);
  animation: avaBrainNodeRing 2.4s ease-in-out infinite;
}

@keyframes avaBrainNodeRing {
  0%, 100% { transform: scale(1.35); opacity: 0.9; }
  50% { transform: scale(1.55); opacity: 0.45; }
}

.ava-brain-flow__label {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--lg-text-secondary);
  max-width: 9em;
  transition: color 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__label {
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, var(--lg-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Premium widget */
.ava-brain-widget {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-widget {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.ava-brain-widget__backdrop {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 50% 50%, var(--widget-accent, rgba(94, 235, 253, 0.85)), transparent 65%);
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.ava-brain-widget__surface {
  position: relative;
  border-radius: 32px;
  padding: 22px 22px 26px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(56px) saturate(220%);
  -webkit-backdrop-filter: blur(56px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 12px 40px rgba(94, 235, 253, 0.12);
}

.ava-brain-widget__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 32%, transparent 100%);
  pointer-events: none;
}

.ava-brain-widget__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ava-brain-widget__siri-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(from 200deg, #5eebfd, #7a35ff, #ff4fd8, #5eebfd);
  box-shadow: 0 0 16px rgba(94, 235, 253, 0.55);
  animation: avaWidgetOrb 3s ease-in-out infinite alternate;
}

@keyframes avaWidgetOrb {
  to { transform: scale(1.06); filter: brightness(1.15); }
}

.ava-brain-widget__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 248, 252, 0.72);
  flex: 1;
}

.ava-brain-widget__live {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--widget-accent, var(--lg-accent));
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 235, 253, 0.12);
  border: 1px solid rgba(94, 235, 253, 0.22);
}

.ava-brain-widget__body {
  position: relative;
}

.ava-brain-widget__product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ava-brain-widget__thumb {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(94, 235, 253, 0.25), rgba(122, 53, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.ava-brain-widget__thumb-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 50%);
}

.ava-brain-widget__copy {
  min-width: 0;
  flex: 1;
}

.ava-brain-widget__status {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  animation: avaWidgetFade 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-widget__detail {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(248, 248, 252, 0.88);
  line-height: 1.35;
}

.ava-brain-widget__meta {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--widget-accent, var(--lg-accent));
}

.ava-brain-widget__progress {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.ava-brain-widget__pip {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.5s ease, transform 0.5s ease;
}

.ava-brain-widget__pip.is-done {
  background: rgba(94, 235, 253, 0.35);
}

.ava-brain-widget__pip.is-active {
  background: linear-gradient(90deg, rgba(94, 235, 253, 0.9), rgba(122, 53, 255, 0.75));
  transform: scaleY(1.6);
  box-shadow: 0 0 12px rgba(94, 235, 253, 0.45);
}

@keyframes avaWidgetFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .ava-brain-theater {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ava-brain-widget {
    justify-self: center;
    max-width: 400px;
    transform: none;
  }

  .ava-brain-section.is-visible .ava-brain-widget {
    transform: none;
  }

  .ava-brain-flow__stages {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 360px;
    margin: 0 auto;
  }

  .ava-brain-flow__stage {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .ava-brain-flow__label {
    max-width: none;
    font-size: 18px;
  }

  .ava-brain-flow__svg {
    display: none;
  }
}

@media (max-width: 720px) {
  .ava-brain-copy {
    margin-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ava-brain-copy,
  .ava-brain-flow__stage,
  .ava-brain-flow__progress,
  .ava-brain-flow__runner,
  .ava-brain-widget,
  .ava-brain-widget__status,
  .ava-brain-widget__siri-orb {
    animation: none;
    transition: none;
  }

  .ava-brain-section.is-visible .ava-brain-copy {
    opacity: 1;
    transform: none;
  }

  .ava-brain-flow__stage.is-active {
    transform: none;
  }
}


/* Commerce Brain — flowing intelligence theater */

.ava-brain-section {
  position: relative;
  padding: clamp(112px, 16vw, 180px) 24px clamp(96px, 14vw, 140px);
  overflow: hidden;
}

.ava-brain-section__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 30% 80%, rgba(122, 53, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(94, 235, 253, 0.14), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.ava-brain-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--lg-max);
  margin: 0 auto;
}

.ava-brain-copy {
  max-width: 680px;
  margin-bottom: clamp(48px, 7vw, 72px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-copy {
  opacity: 1;
  transform: translateY(0);
}

.ava-brain-copy__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin-bottom: 18px;
}

.ava-brain-copy__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(248, 248, 252, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Theater layout */
.ava-brain-theater {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: 360px;
}

.ava-brain-flow {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
  min-height: 280px;
}

.ava-brain-flow__svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  height: 140px;
  transform: translateY(-50%);
  overflow: visible;
  pointer-events: none;
}

.ava-brain-flow__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
  stroke-linecap: round;
}

.ava-brain-flow__progress {
  fill: none;
  stroke: url(#avaBrainFlowGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(94, 235, 253, 0.45));
}

.ava-brain-flow__runner {
  fill: #5eebfd;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  offset-path: path("M 40 80 C 180 20, 320 120, 480 80 S 760 20, 960 80");
  offset-distance: 0%;
  offset-rotate: 0deg;
  transition: offset-distance 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 12px rgba(94, 235, 253, 0.8));
}

.ava-brain-flow__stages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.ava-brain-flow__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  opacity: 0.32;
  transform: translateY(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-flow__stage.is-past {
  opacity: 0.58;
}

.ava-brain-flow__stage.is-active {
  opacity: 1;
  transform: translateY(-6px);
}

.ava-brain-flow__node {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-brain-flow__node-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    background 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.ava-brain-flow__node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.8);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-core {
  background: var(--lg-accent);
  transform: scale(1.3);
  box-shadow: 0 0 28px rgba(94, 235, 253, 0.75);
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-ring {
  opacity: 1;
  transform: scale(1.35);
  border-color: rgba(94, 235, 253, 0.45);
  animation: avaBrainNodeRing 2.4s ease-in-out infinite;
}

@keyframes avaBrainNodeRing {
  0%, 100% { transform: scale(1.35); opacity: 0.9; }
  50% { transform: scale(1.55); opacity: 0.45; }
}

.ava-brain-flow__label {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--lg-text-secondary);
  max-width: 9em;
  transition: color 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__label {
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, var(--lg-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Premium widget */
.ava-brain-widget {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-widget {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.ava-brain-widget__backdrop {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 50% 50%, var(--widget-accent, rgba(94, 235, 253, 0.85)), transparent 65%);
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.ava-brain-widget__surface {
  position: relative;
  border-radius: 32px;
  padding: 22px 22px 26px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(56px) saturate(220%);
  -webkit-backdrop-filter: blur(56px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 12px 40px rgba(94, 235, 253, 0.12);
}

.ava-brain-widget__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 32%, transparent 100%);
  pointer-events: none;
}

.ava-brain-widget__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ava-brain-widget__siri-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(from 200deg, #5eebfd, #7a35ff, #ff4fd8, #5eebfd);
  box-shadow: 0 0 16px rgba(94, 235, 253, 0.55);
  animation: avaWidgetOrb 3s ease-in-out infinite alternate;
}

@keyframes avaWidgetOrb {
  to { transform: scale(1.06); filter: brightness(1.15); }
}

.ava-brain-widget__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 248, 252, 0.72);
  flex: 1;
}

.ava-brain-widget__live {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--widget-accent, var(--lg-accent));
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 235, 253, 0.12);
  border: 1px solid rgba(94, 235, 253, 0.22);
}

.ava-brain-widget__body {
  position: relative;
}

.ava-brain-widget__product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ava-brain-widget__thumb {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(94, 235, 253, 0.25), rgba(122, 53, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.ava-brain-widget__thumb-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 50%);
}

.ava-brain-widget__copy {
  min-width: 0;
  flex: 1;
}

.ava-brain-widget__status {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  animation: avaWidgetFade 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-widget__detail {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(248, 248, 252, 0.88);
  line-height: 1.35;
}

.ava-brain-widget__meta {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--widget-accent, var(--lg-accent));
}

.ava-brain-widget__progress {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.ava-brain-widget__pip {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.5s ease, transform 0.5s ease;
}

.ava-brain-widget__pip.is-done {
  background: rgba(94, 235, 253, 0.35);
}

.ava-brain-widget__pip.is-active {
  background: linear-gradient(90deg, rgba(94, 235, 253, 0.9), rgba(122, 53, 255, 0.75));
  transform: scaleY(1.6);
  box-shadow: 0 0 12px rgba(94, 235, 253, 0.45);
}

@keyframes avaWidgetFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .ava-brain-theater {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ava-brain-widget {
    justify-self: center;
    max-width: 400px;
    transform: none;
  }

  .ava-brain-section.is-visible .ava-brain-widget {
    transform: none;
  }

  .ava-brain-flow__stages {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 360px;
    margin: 0 auto;
  }

  .ava-brain-flow__stage {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .ava-brain-flow__label {
    max-width: none;
    font-size: 18px;
  }

  .ava-brain-flow__svg {
    display: none;
  }
}

@media (max-width: 720px) {
  .ava-brain-copy {
    margin-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ava-brain-copy,
  .ava-brain-flow__stage,
  .ava-brain-flow__progress,
  .ava-brain-flow__runner,
  .ava-brain-widget,
  .ava-brain-widget__status,
  .ava-brain-widget__siri-orb {
    animation: none;
    transition: none;
  }

  .ava-brain-section.is-visible .ava-brain-copy {
    opacity: 1;
    transform: none;
  }

  .ava-brain-flow__stage.is-active {
    transform: none;
  }
}


/* Commerce Brain — flowing intelligence theater */

.ava-brain-section {
  position: relative;
  padding: clamp(112px, 16vw, 180px) 24px clamp(96px, 14vw, 140px);
  overflow: hidden;
}

.ava-brain-section__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 30% 80%, rgba(122, 53, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(94, 235, 253, 0.14), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.ava-brain-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--lg-max);
  margin: 0 auto;
}

.ava-brain-copy {
  max-width: 680px;
  margin-bottom: clamp(48px, 7vw, 72px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-copy {
  opacity: 1;
  transform: translateY(0);
}

.ava-brain-copy__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin-bottom: 18px;
}

.ava-brain-copy__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(248, 248, 252, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Theater layout */
.ava-brain-theater {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: 360px;
}

.ava-brain-flow {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
  min-height: 280px;
}

.ava-brain-flow__svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  height: 140px;
  transform: translateY(-50%);
  overflow: visible;
  pointer-events: none;
}

.ava-brain-flow__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
  stroke-linecap: round;
}

.ava-brain-flow__progress {
  fill: none;
  stroke: url(#avaBrainFlowGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(94, 235, 253, 0.45));
}

.ava-brain-flow__runner {
  fill: #5eebfd;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  offset-path: path("M 40 80 C 180 20, 320 120, 480 80 S 760 20, 960 80");
  offset-distance: 0%;
  offset-rotate: 0deg;
  transition: offset-distance 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 12px rgba(94, 235, 253, 0.8));
}

.ava-brain-flow__stages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.ava-brain-flow__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  opacity: 0.32;
  transform: translateY(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-flow__stage.is-past {
  opacity: 0.58;
}

.ava-brain-flow__stage.is-active {
  opacity: 1;
  transform: translateY(-6px);
}

.ava-brain-flow__node {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-brain-flow__node-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    background 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.ava-brain-flow__node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.8);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-core {
  background: var(--lg-accent);
  transform: scale(1.3);
  box-shadow: 0 0 28px rgba(94, 235, 253, 0.75);
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-ring {
  opacity: 1;
  transform: scale(1.35);
  border-color: rgba(94, 235, 253, 0.45);
  animation: avaBrainNodeRing 2.4s ease-in-out infinite;
}

@keyframes avaBrainNodeRing {
  0%, 100% { transform: scale(1.35); opacity: 0.9; }
  50% { transform: scale(1.55); opacity: 0.45; }
}

.ava-brain-flow__label {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--lg-text-secondary);
  max-width: 9em;
  transition: color 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__label {
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, var(--lg-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Premium widget */
.ava-brain-widget {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-widget {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.ava-brain-widget__backdrop {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 50% 50%, var(--widget-accent, rgba(94, 235, 253, 0.85)), transparent 65%);
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.ava-brain-widget__surface {
  position: relative;
  border-radius: 32px;
  padding: 22px 22px 26px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(56px) saturate(220%);
  -webkit-backdrop-filter: blur(56px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 12px 40px rgba(94, 235, 253, 0.12);
}

.ava-brain-widget__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 32%, transparent 100%);
  pointer-events: none;
}

.ava-brain-widget__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ava-brain-widget__siri-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(from 200deg, #5eebfd, #7a35ff, #ff4fd8, #5eebfd);
  box-shadow: 0 0 16px rgba(94, 235, 253, 0.55);
  animation: avaWidgetOrb 3s ease-in-out infinite alternate;
}

@keyframes avaWidgetOrb {
  to { transform: scale(1.06); filter: brightness(1.15); }
}

.ava-brain-widget__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 248, 252, 0.72);
  flex: 1;
}

.ava-brain-widget__live {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--widget-accent, var(--lg-accent));
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 235, 253, 0.12);
  border: 1px solid rgba(94, 235, 253, 0.22);
}

.ava-brain-widget__body {
  position: relative;
}

.ava-brain-widget__product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ava-brain-widget__thumb {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(94, 235, 253, 0.25), rgba(122, 53, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.ava-brain-widget__thumb-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 50%);
}

.ava-brain-widget__copy {
  min-width: 0;
  flex: 1;
}

.ava-brain-widget__status {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  animation: avaWidgetFade 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-widget__detail {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(248, 248, 252, 0.88);
  line-height: 1.35;
}

.ava-brain-widget__meta {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--widget-accent, var(--lg-accent));
}

.ava-brain-widget__progress {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.ava-brain-widget__pip {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.5s ease, transform 0.5s ease;
}

.ava-brain-widget__pip.is-done {
  background: rgba(94, 235, 253, 0.35);
}

.ava-brain-widget__pip.is-active {
  background: linear-gradient(90deg, rgba(94, 235, 253, 0.9), rgba(122, 53, 255, 0.75));
  transform: scaleY(1.6);
  box-shadow: 0 0 12px rgba(94, 235, 253, 0.45);
}

@keyframes avaWidgetFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .ava-brain-theater {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ava-brain-widget {
    justify-self: center;
    max-width: 400px;
    transform: none;
  }

  .ava-brain-section.is-visible .ava-brain-widget {
    transform: none;
  }

  .ava-brain-flow__stages {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 360px;
    margin: 0 auto;
  }

  .ava-brain-flow__stage {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .ava-brain-flow__label {
    max-width: none;
    font-size: 18px;
  }

  .ava-brain-flow__svg {
    display: none;
  }
}

@media (max-width: 720px) {
  .ava-brain-copy {
    margin-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ava-brain-copy,
  .ava-brain-flow__stage,
  .ava-brain-flow__progress,
  .ava-brain-flow__runner,
  .ava-brain-widget,
  .ava-brain-widget__status,
  .ava-brain-widget__siri-orb {
    animation: none;
    transition: none;
  }

  .ava-brain-section.is-visible .ava-brain-copy {
    opacity: 1;
    transform: none;
  }

  .ava-brain-flow__stage.is-active {
    transform: none;
  }
}


/* Commerce Brain — flowing intelligence theater */

.ava-brain-section {
  position: relative;
  padding: clamp(112px, 16vw, 180px) 24px clamp(96px, 14vw, 140px);
  overflow: hidden;
}

.ava-brain-section__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 30% 80%, rgba(122, 53, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(94, 235, 253, 0.14), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.ava-brain-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--lg-max);
  margin: 0 auto;
}

.ava-brain-copy {
  max-width: 680px;
  margin-bottom: clamp(48px, 7vw, 72px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-copy {
  opacity: 1;
  transform: translateY(0);
}

.ava-brain-copy__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin-bottom: 18px;
}

.ava-brain-copy__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(248, 248, 252, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Theater layout */
.ava-brain-theater {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: 360px;
}

.ava-brain-flow {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
  min-height: 280px;
}

.ava-brain-flow__svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  height: 140px;
  transform: translateY(-50%);
  overflow: visible;
  pointer-events: none;
}

.ava-brain-flow__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
  stroke-linecap: round;
}

.ava-brain-flow__progress {
  fill: none;
  stroke: url(#avaBrainFlowGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(94, 235, 253, 0.45));
}

.ava-brain-flow__runner {
  fill: #5eebfd;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  offset-path: path("M 40 80 C 180 20, 320 120, 480 80 S 760 20, 960 80");
  offset-distance: 0%;
  offset-rotate: 0deg;
  transition: offset-distance 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 12px rgba(94, 235, 253, 0.8));
}

.ava-brain-flow__stages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.ava-brain-flow__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  opacity: 0.32;
  transform: translateY(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-flow__stage.is-past {
  opacity: 0.58;
}

.ava-brain-flow__stage.is-active {
  opacity: 1;
  transform: translateY(-6px);
}

.ava-brain-flow__node {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-brain-flow__node-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    background 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.ava-brain-flow__node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.8);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-core {
  background: var(--lg-accent);
  transform: scale(1.3);
  box-shadow: 0 0 28px rgba(94, 235, 253, 0.75);
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-ring {
  opacity: 1;
  transform: scale(1.35);
  border-color: rgba(94, 235, 253, 0.45);
  animation: avaBrainNodeRing 2.4s ease-in-out infinite;
}

@keyframes avaBrainNodeRing {
  0%, 100% { transform: scale(1.35); opacity: 0.9; }
  50% { transform: scale(1.55); opacity: 0.45; }
}

.ava-brain-flow__label {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--lg-text-secondary);
  max-width: 9em;
  transition: color 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__label {
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, var(--lg-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Premium widget */
.ava-brain-widget {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-widget {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.ava-brain-widget__backdrop {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 50% 50%, var(--widget-accent, rgba(94, 235, 253, 0.85)), transparent 65%);
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.ava-brain-widget__surface {
  position: relative;
  border-radius: 32px;
  padding: 22px 22px 26px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(56px) saturate(220%);
  -webkit-backdrop-filter: blur(56px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 12px 40px rgba(94, 235, 253, 0.12);
}

.ava-brain-widget__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 32%, transparent 100%);
  pointer-events: none;
}

.ava-brain-widget__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ava-brain-widget__siri-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(from 200deg, #5eebfd, #7a35ff, #ff4fd8, #5eebfd);
  box-shadow: 0 0 16px rgba(94, 235, 253, 0.55);
  animation: avaWidgetOrb 3s ease-in-out infinite alternate;
}

@keyframes avaWidgetOrb {
  to { transform: scale(1.06); filter: brightness(1.15); }
}

.ava-brain-widget__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 248, 252, 0.72);
  flex: 1;
}

.ava-brain-widget__live {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--widget-accent, var(--lg-accent));
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 235, 253, 0.12);
  border: 1px solid rgba(94, 235, 253, 0.22);
}

.ava-brain-widget__body {
  position: relative;
}

.ava-brain-widget__product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ava-brain-widget__thumb {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(94, 235, 253, 0.25), rgba(122, 53, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.ava-brain-widget__thumb-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 50%);
}

.ava-brain-widget__copy {
  min-width: 0;
  flex: 1;
}

.ava-brain-widget__status {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  animation: avaWidgetFade 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-widget__detail {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(248, 248, 252, 0.88);
  line-height: 1.35;
}

.ava-brain-widget__meta {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--widget-accent, var(--lg-accent));
}

.ava-brain-widget__progress {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.ava-brain-widget__pip {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.5s ease, transform 0.5s ease;
}

.ava-brain-widget__pip.is-done {
  background: rgba(94, 235, 253, 0.35);
}

.ava-brain-widget__pip.is-active {
  background: linear-gradient(90deg, rgba(94, 235, 253, 0.9), rgba(122, 53, 255, 0.75));
  transform: scaleY(1.6);
  box-shadow: 0 0 12px rgba(94, 235, 253, 0.45);
}

@keyframes avaWidgetFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .ava-brain-theater {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ava-brain-widget {
    justify-self: center;
    max-width: 400px;
    transform: none;
  }

  .ava-brain-section.is-visible .ava-brain-widget {
    transform: none;
  }

  .ava-brain-flow__stages {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 360px;
    margin: 0 auto;
  }

  .ava-brain-flow__stage {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .ava-brain-flow__label {
    max-width: none;
    font-size: 18px;
  }

  .ava-brain-flow__svg {
    display: none;
  }
}

@media (max-width: 720px) {
  .ava-brain-copy {
    margin-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ava-brain-copy,
  .ava-brain-flow__stage,
  .ava-brain-flow__progress,
  .ava-brain-flow__runner,
  .ava-brain-widget,
  .ava-brain-widget__status,
  .ava-brain-widget__siri-orb {
    animation: none;
    transition: none;
  }

  .ava-brain-section.is-visible .ava-brain-copy {
    opacity: 1;
    transform: none;
  }

  .ava-brain-flow__stage.is-active {
    transform: none;
  }
}


/* Commerce Brain — flowing intelligence theater */

.ava-brain-section {
  position: relative;
  padding: clamp(112px, 16vw, 180px) 24px clamp(96px, 14vw, 140px);
  overflow: hidden;
}

.ava-brain-section__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 30% 80%, rgba(122, 53, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(94, 235, 253, 0.14), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.ava-brain-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--lg-max);
  margin: 0 auto;
}

.ava-brain-copy {
  max-width: 680px;
  margin-bottom: clamp(48px, 7vw, 72px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-copy {
  opacity: 1;
  transform: translateY(0);
}

.ava-brain-copy__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin-bottom: 18px;
}

.ava-brain-copy__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(248, 248, 252, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Theater layout */
.ava-brain-theater {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: 360px;
}

.ava-brain-flow {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
  min-height: 280px;
}

.ava-brain-flow__svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  height: 140px;
  transform: translateY(-50%);
  overflow: visible;
  pointer-events: none;
}

.ava-brain-flow__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
  stroke-linecap: round;
}

.ava-brain-flow__progress {
  fill: none;
  stroke: url(#avaBrainFlowGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(94, 235, 253, 0.45));
}

.ava-brain-flow__runner {
  fill: #5eebfd;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  offset-path: path("M 40 80 C 180 20, 320 120, 480 80 S 760 20, 960 80");
  offset-distance: 0%;
  offset-rotate: 0deg;
  transition: offset-distance 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 12px rgba(94, 235, 253, 0.8));
}

.ava-brain-flow__stages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.ava-brain-flow__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  opacity: 0.32;
  transform: translateY(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-flow__stage.is-past {
  opacity: 0.58;
}

.ava-brain-flow__stage.is-active {
  opacity: 1;
  transform: translateY(-6px);
}

.ava-brain-flow__node {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-brain-flow__node-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    background 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.ava-brain-flow__node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.8);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-core {
  background: var(--lg-accent);
  transform: scale(1.3);
  box-shadow: 0 0 28px rgba(94, 235, 253, 0.75);
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-ring {
  opacity: 1;
  transform: scale(1.35);
  border-color: rgba(94, 235, 253, 0.45);
  animation: avaBrainNodeRing 2.4s ease-in-out infinite;
}

@keyframes avaBrainNodeRing {
  0%, 100% { transform: scale(1.35); opacity: 0.9; }
  50% { transform: scale(1.55); opacity: 0.45; }
}

.ava-brain-flow__label {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--lg-text-secondary);
  max-width: 9em;
  transition: color 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__label {
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, var(--lg-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Premium widget */
.ava-brain-widget {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-widget {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.ava-brain-widget__backdrop {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 50% 50%, var(--widget-accent, rgba(94, 235, 253, 0.85)), transparent 65%);
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.ava-brain-widget__surface {
  position: relative;
  border-radius: 32px;
  padding: 22px 22px 26px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(56px) saturate(220%);
  -webkit-backdrop-filter: blur(56px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 12px 40px rgba(94, 235, 253, 0.12);
}

.ava-brain-widget__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 32%, transparent 100%);
  pointer-events: none;
}

.ava-brain-widget__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ava-brain-widget__siri-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(from 200deg, #5eebfd, #7a35ff, #ff4fd8, #5eebfd);
  box-shadow: 0 0 16px rgba(94, 235, 253, 0.55);
  animation: avaWidgetOrb 3s ease-in-out infinite alternate;
}

@keyframes avaWidgetOrb {
  to { transform: scale(1.06); filter: brightness(1.15); }
}

.ava-brain-widget__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 248, 252, 0.72);
  flex: 1;
}

.ava-brain-widget__live {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--widget-accent, var(--lg-accent));
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 235, 253, 0.12);
  border: 1px solid rgba(94, 235, 253, 0.22);
}

.ava-brain-widget__body {
  position: relative;
}

.ava-brain-widget__product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ava-brain-widget__thumb {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(94, 235, 253, 0.25), rgba(122, 53, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.ava-brain-widget__thumb-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 50%);
}

.ava-brain-widget__copy {
  min-width: 0;
  flex: 1;
}

.ava-brain-widget__status {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  animation: avaWidgetFade 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-widget__detail {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(248, 248, 252, 0.88);
  line-height: 1.35;
}

.ava-brain-widget__meta {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--widget-accent, var(--lg-accent));
}

.ava-brain-widget__progress {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.ava-brain-widget__pip {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.5s ease, transform 0.5s ease;
}

.ava-brain-widget__pip.is-done {
  background: rgba(94, 235, 253, 0.35);
}

.ava-brain-widget__pip.is-active {
  background: linear-gradient(90deg, rgba(94, 235, 253, 0.9), rgba(122, 53, 255, 0.75));
  transform: scaleY(1.6);
  box-shadow: 0 0 12px rgba(94, 235, 253, 0.45);
}

@keyframes avaWidgetFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .ava-brain-theater {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ava-brain-widget {
    justify-self: center;
    max-width: 400px;
    transform: none;
  }

  .ava-brain-section.is-visible .ava-brain-widget {
    transform: none;
  }

  .ava-brain-flow__stages {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 360px;
    margin: 0 auto;
  }

  .ava-brain-flow__stage {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .ava-brain-flow__label {
    max-width: none;
    font-size: 18px;
  }

  .ava-brain-flow__svg {
    display: none;
  }
}

@media (max-width: 720px) {
  .ava-brain-copy {
    margin-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ava-brain-copy,
  .ava-brain-flow__stage,
  .ava-brain-flow__progress,
  .ava-brain-flow__runner,
  .ava-brain-widget,
  .ava-brain-widget__status,
  .ava-brain-widget__siri-orb {
    animation: none;
    transition: none;
  }

  .ava-brain-section.is-visible .ava-brain-copy {
    opacity: 1;
    transform: none;
  }

  .ava-brain-flow__stage.is-active {
    transform: none;
  }
}


/* Commerce Brain — flowing intelligence theater */

.ava-brain-section {
  position: relative;
  padding: clamp(112px, 16vw, 180px) 24px clamp(96px, 14vw, 140px);
  overflow: hidden;
}

.ava-brain-section__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 30% 80%, rgba(122, 53, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(94, 235, 253, 0.14), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.ava-brain-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--lg-max);
  margin: 0 auto;
}

.ava-brain-copy {
  max-width: 680px;
  margin-bottom: clamp(48px, 7vw, 72px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-copy {
  opacity: 1;
  transform: translateY(0);
}

.ava-brain-copy__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin-bottom: 18px;
}

.ava-brain-copy__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(248, 248, 252, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Theater layout */
.ava-brain-theater {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: 360px;
}

.ava-brain-flow {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
  min-height: 280px;
}

.ava-brain-flow__svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  height: 140px;
  transform: translateY(-50%);
  overflow: visible;
  pointer-events: none;
}

.ava-brain-flow__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
  stroke-linecap: round;
}

.ava-brain-flow__progress {
  fill: none;
  stroke: url(#avaBrainFlowGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(94, 235, 253, 0.45));
}

.ava-brain-flow__runner {
  fill: #5eebfd;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  offset-path: path("M 40 80 C 180 20, 320 120, 480 80 S 760 20, 960 80");
  offset-distance: 0%;
  offset-rotate: 0deg;
  transition: offset-distance 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 12px rgba(94, 235, 253, 0.8));
}

.ava-brain-flow__stages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.ava-brain-flow__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  opacity: 0.32;
  transform: translateY(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-flow__stage.is-past {
  opacity: 0.58;
}

.ava-brain-flow__stage.is-active {
  opacity: 1;
  transform: translateY(-6px);
}

.ava-brain-flow__node {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-brain-flow__node-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    background 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.ava-brain-flow__node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.8);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-core {
  background: var(--lg-accent);
  transform: scale(1.3);
  box-shadow: 0 0 28px rgba(94, 235, 253, 0.75);
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-ring {
  opacity: 1;
  transform: scale(1.35);
  border-color: rgba(94, 235, 253, 0.45);
  animation: avaBrainNodeRing 2.4s ease-in-out infinite;
}

@keyframes avaBrainNodeRing {
  0%, 100% { transform: scale(1.35); opacity: 0.9; }
  50% { transform: scale(1.55); opacity: 0.45; }
}

.ava-brain-flow__label {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--lg-text-secondary);
  max-width: 9em;
  transition: color 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__label {
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, var(--lg-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Premium widget */
.ava-brain-widget {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-widget {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.ava-brain-widget__backdrop {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 50% 50%, var(--widget-accent, rgba(94, 235, 253, 0.85)), transparent 65%);
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.ava-brain-widget__surface {
  position: relative;
  border-radius: 32px;
  padding: 22px 22px 26px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(56px) saturate(220%);
  -webkit-backdrop-filter: blur(56px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 12px 40px rgba(94, 235, 253, 0.12);
}

.ava-brain-widget__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 32%, transparent 100%);
  pointer-events: none;
}

.ava-brain-widget__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ava-brain-widget__siri-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(from 200deg, #5eebfd, #7a35ff, #ff4fd8, #5eebfd);
  box-shadow: 0 0 16px rgba(94, 235, 253, 0.55);
  animation: avaWidgetOrb 3s ease-in-out infinite alternate;
}

@keyframes avaWidgetOrb {
  to { transform: scale(1.06); filter: brightness(1.15); }
}

.ava-brain-widget__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 248, 252, 0.72);
  flex: 1;
}

.ava-brain-widget__live {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--widget-accent, var(--lg-accent));
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 235, 253, 0.12);
  border: 1px solid rgba(94, 235, 253, 0.22);
}

.ava-brain-widget__body {
  position: relative;
}

.ava-brain-widget__product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ava-brain-widget__thumb {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(94, 235, 253, 0.25), rgba(122, 53, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.ava-brain-widget__thumb-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 50%);
}

.ava-brain-widget__copy {
  min-width: 0;
  flex: 1;
}

.ava-brain-widget__status {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  animation: avaWidgetFade 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-widget__detail {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(248, 248, 252, 0.88);
  line-height: 1.35;
}

.ava-brain-widget__meta {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--widget-accent, var(--lg-accent));
}

.ava-brain-widget__progress {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.ava-brain-widget__pip {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.5s ease, transform 0.5s ease;
}

.ava-brain-widget__pip.is-done {
  background: rgba(94, 235, 253, 0.35);
}

.ava-brain-widget__pip.is-active {
  background: linear-gradient(90deg, rgba(94, 235, 253, 0.9), rgba(122, 53, 255, 0.75));
  transform: scaleY(1.6);
  box-shadow: 0 0 12px rgba(94, 235, 253, 0.45);
}

@keyframes avaWidgetFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .ava-brain-theater {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ava-brain-widget {
    justify-self: center;
    max-width: 400px;
    transform: none;
  }

  .ava-brain-section.is-visible .ava-brain-widget {
    transform: none;
  }

  .ava-brain-flow__stages {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 360px;
    margin: 0 auto;
  }

  .ava-brain-flow__stage {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .ava-brain-flow__label {
    max-width: none;
    font-size: 18px;
  }

  .ava-brain-flow__svg {
    display: none;
  }
}

@media (max-width: 720px) {
  .ava-brain-copy {
    margin-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ava-brain-copy,
  .ava-brain-flow__stage,
  .ava-brain-flow__progress,
  .ava-brain-flow__runner,
  .ava-brain-widget,
  .ava-brain-widget__status,
  .ava-brain-widget__siri-orb {
    animation: none;
    transition: none;
  }

  .ava-brain-section.is-visible .ava-brain-copy {
    opacity: 1;
    transform: none;
  }

  .ava-brain-flow__stage.is-active {
    transform: none;
  }
}


/* Commerce Brain — flowing intelligence theater */

.ava-brain-section {
  position: relative;
  padding: clamp(112px, 16vw, 180px) 24px clamp(96px, 14vw, 140px);
  overflow: hidden;
}

.ava-brain-section__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 30% 80%, rgba(122, 53, 255, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(94, 235, 253, 0.14), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.ava-brain-section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--lg-max);
  margin: 0 auto;
}

.ava-brain-copy {
  max-width: 680px;
  margin-bottom: clamp(48px, 7vw, 72px);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-copy {
  opacity: 1;
  transform: translateY(0);
}

.ava-brain-copy__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-accent);
  margin-bottom: 18px;
}

.ava-brain-copy__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(248, 248, 252, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Theater layout */
.ava-brain-theater {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: 360px;
}

.ava-brain-flow {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
  min-height: 280px;
}

.ava-brain-flow__svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  height: 140px;
  transform: translateY(-50%);
  overflow: visible;
  pointer-events: none;
}

.ava-brain-flow__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
  stroke-linecap: round;
}

.ava-brain-flow__progress {
  fill: none;
  stroke: url(#avaBrainFlowGrad);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 8px rgba(94, 235, 253, 0.45));
}

.ava-brain-flow__runner {
  fill: #5eebfd;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  offset-path: path("M 40 80 C 180 20, 320 120, 480 80 S 760 20, 960 80");
  offset-distance: 0%;
  offset-rotate: 0deg;
  transition: offset-distance 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 12px rgba(94, 235, 253, 0.8));
}

.ava-brain-flow__stages {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.ava-brain-flow__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  opacity: 0.32;
  transform: translateY(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-flow__stage.is-past {
  opacity: 0.58;
}

.ava-brain-flow__stage.is-active {
  opacity: 1;
  transform: translateY(-6px);
}

.ava-brain-flow__node {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-brain-flow__node-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition:
    background 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.ava-brain-flow__node-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.8);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-core {
  background: var(--lg-accent);
  transform: scale(1.3);
  box-shadow: 0 0 28px rgba(94, 235, 253, 0.75);
}

.ava-brain-flow__stage.is-active .ava-brain-flow__node-ring {
  opacity: 1;
  transform: scale(1.35);
  border-color: rgba(94, 235, 253, 0.45);
  animation: avaBrainNodeRing 2.4s ease-in-out infinite;
}

@keyframes avaBrainNodeRing {
  0%, 100% { transform: scale(1.35); opacity: 0.9; }
  50% { transform: scale(1.55); opacity: 0.45; }
}

.ava-brain-flow__label {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--lg-text-secondary);
  max-width: 9em;
  transition: color 0.5s ease;
}

.ava-brain-flow__stage.is-active .ava-brain-flow__label {
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, var(--lg-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Premium widget */
.ava-brain-widget {
  position: relative;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-section.is-visible .ava-brain-widget {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.ava-brain-widget__backdrop {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 50% 50%, var(--widget-accent, rgba(94, 235, 253, 0.85)), transparent 65%);
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.ava-brain-widget__surface {
  position: relative;
  border-radius: 32px;
  padding: 22px 22px 26px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.12) 100%);
  backdrop-filter: blur(56px) saturate(220%);
  -webkit-backdrop-filter: blur(56px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42) inset,
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 12px 40px rgba(94, 235, 253, 0.12);
}

.ava-brain-widget__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 32%, transparent 100%);
  pointer-events: none;
}

.ava-brain-widget__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ava-brain-widget__siri-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(from 200deg, #5eebfd, #7a35ff, #ff4fd8, #5eebfd);
  box-shadow: 0 0 16px rgba(94, 235, 253, 0.55);
  animation: avaWidgetOrb 3s ease-in-out infinite alternate;
}

@keyframes avaWidgetOrb {
  to { transform: scale(1.06); filter: brightness(1.15); }
}

.ava-brain-widget__brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 248, 252, 0.72);
  flex: 1;
}

.ava-brain-widget__live {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--widget-accent, var(--lg-accent));
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 235, 253, 0.12);
  border: 1px solid rgba(94, 235, 253, 0.22);
}

.ava-brain-widget__body {
  position: relative;
}

.ava-brain-widget__product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ava-brain-widget__thumb {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(94, 235, 253, 0.25), rgba(122, 53, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 8px 24px rgba(0, 0, 0, 0.28);
}

.ava-brain-widget__thumb-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 50%);
}

.ava-brain-widget__copy {
  min-width: 0;
  flex: 1;
}

.ava-brain-widget__status {
  margin: 0 0 6px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  animation: avaWidgetFade 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ava-brain-widget__detail {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(248, 248, 252, 0.88);
  line-height: 1.35;
}

.ava-brain-widget__meta {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--widget-accent, var(--lg-accent));
}

.ava-brain-widget__progress {
  display: flex;
  gap: 6px;
  margin-top: 24px;
}

.ava-brain-widget__pip {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.5s ease, transform 0.5s ease;
}

.ava-brain-widget__pip.is-done {
  background: rgba(94, 235, 253, 0.35);
}

.ava-brain-widget__pip.is-active {
  background: linear-gradient(90deg, rgba(94, 235, 253, 0.9), rgba(122, 53, 255, 0.75));
  transform: scaleY(1.6);
  box-shadow: 0 0 12px rgba(94, 235, 253, 0.45);
}

@keyframes avaWidgetFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .ava-brain-theater {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .ava-brain-widget {
    justify-self: center;
    max-width: 400px;
    transform: none;
  }

  .ava-brain-section.is-visible .ava-brain-widget {
    transform: none;
  }

  .ava-brain-flow__stages {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 360px;
    margin: 0 auto;
  }

  .ava-brain-flow__stage {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .ava-brain-flow__label {
    max-width: none;
    font-size: 18px;
  }

  .ava-brain-flow__svg {
    display: none;
  }
}

@media (max-width: 720px) {
  .ava-brain-copy {
    margin-bottom: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ava-brain-copy,
  .ava-brain-flow__stage,
  .ava-brain-flow__progress,
  .ava-brain-flow__runner,
  .ava-brain-widget,
  .ava-brain-widget__status,
  .ava-brain-widget__siri-orb {
    animation: none;
    transition: none;
  }

  .ava-brain-section.is-visible .ava-brain-copy {
    opacity: 1;
    transform: none;
  }

  .ava-brain-flow__stage.is-active {
    transform: none;
  }
}


/* AVA Predicts — confidence engine landing */
.ava-predicts {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.ava-predicts::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(120, 180, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.ava-predicts__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.ava-predicts__header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.ava-predicts__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
}

.ava-predicts__subtitle {
  margin: 0.35rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: rgba(140, 210, 255, 0.92);
}

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

.ava-predicts__card {
  padding: 1.1rem 1.15rem;
  border-radius: 1.25rem;
}

.ava-predicts__item {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.ava-predicts__confidence {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(140, 210, 255, 0.9);
}

.ava-predicts__reason {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.ava-predicts__caption {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 820px) {
  .ava-predicts__grid {
    grid-template-columns: 1fr;
  }
}

#ava-landing-sections-root { display: block; }
