html.ali-root,
html.ali-root body {
  background: #07140d;
  color: #f4fff6;
}

body.ali-page {
  background:
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(78, 211, 99, 0.16), transparent 60%),
    #07140d;
}

body.ali-page ::selection {
  background: #4ed363;
  color: #06210d;
}

body.ali-page .site-header {
  background: rgba(7, 20, 13, 0.55);
  border-bottom-color: rgba(78, 211, 99, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.ali-page .site-header.is-scrolled {
  background: rgba(6, 16, 11, 0.92);
}

body.ali-page .nav-link {
  color: rgba(244, 255, 246, 0.72);
}

body.ali-page .nav-link:hover,
body.ali-page .nav-link.is-current {
  color: #ffffff;
}

body.ali-page .nav-link.is-current::after {
  width: 100%;
}

body.ali-page .btn-talk {
  background: #4ed363;
  border-color: #4ed363;
  color: #06210d;
}

body.ali-page .btn-talk:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #06210d;
}

.ae-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 140;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff8b9a, #4ed363 55%, #f5a623);
  pointer-events: none;
}

.ae-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 211, 99, 0.16), transparent 68%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

.ae-cursor.is-on {
  opacity: 1;
}

.ae-curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.ae-curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  background: #04110a;
}

.ae-curtain-left {
  left: 0;
  box-shadow: inset -1px 0 0 rgba(78, 211, 99, 0.45);
  animation: aeCurtainLeft 1.05s cubic-bezier(0.77, 0, 0.18, 1) 0.42s forwards;
}

.ae-curtain-right {
  right: 0;
  box-shadow: inset 1px 0 0 rgba(78, 211, 99, 0.45);
  animation: aeCurtainRight 1.05s cubic-bezier(0.77, 0, 0.18, 1) 0.42s forwards;
}

.ae-curtain-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  animation: aeMark 0.95s ease 0.05s both;
}

.ae-curtain-mark img {
  width: 92px;
  height: auto;
}

.ae-curtain-mark span {
  color: #d9ffe0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.42em;
}

html.ae-skip-intro .ae-curtain {
  display: none;
}

@keyframes aeCurtainLeft {
  to { transform: translateX(-105%); }
}

@keyframes aeCurtainRight {
  to { transform: translateX(105%); }
}

@keyframes aeMark {
  0% { opacity: 0; transform: translate(-50%, -44%); }
  28% { opacity: 1; transform: translate(-50%, -50%); }
  68% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -56%); }
}

.ae-hero {
  position: relative;
  min-height: calc(100vh - 92px);
  margin-top: 92px;
  display: flex;
  align-items: center;
  padding: 48px 64px 80px;
  overflow: hidden;
}

.ae-aurora {
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(ellipse at 18% 40%, rgba(78, 211, 99, 0.28), transparent 48%),
    radial-gradient(ellipse at 82% 24%, rgba(255, 139, 154, 0.16), transparent 42%),
    radial-gradient(ellipse at 64% 82%, rgba(247, 169, 52, 0.14), transparent 40%);
  animation: aeAurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aeAurora {
  to { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}

.ae-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.ae-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #b8f7c4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ae-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ed363;
  box-shadow: 0 0 0 0 rgba(78, 211, 99, 0.7);
  animation: aePulse 1.8s ease-out infinite;
}

@keyframes aePulse {
  70% { box-shadow: 0 0 0 8px rgba(78, 211, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 211, 99, 0); }
}

.ae-hero h1,
.ae-finale h2,
.ae-section-head h2,
.ae-chapter h2 {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.ae-hero h1 {
  font-size: clamp(52px, 6vw, 92px);
  max-width: 740px;
}

.ae-hero h1 em,
.ae-finale h2 em {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 560;
  background: linear-gradient(120deg, #d9ffe2, #4ed363 55%, #f7d27a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ae-lead,
.ae-chapter .ae-copy,
.ae-finale > p,
.ae-feature p {
  color: rgba(244, 255, 246, 0.74);
  font-size: 17px;
  line-height: 1.6;
}

.ae-lead {
  max-width: 520px;
  margin-top: 22px;
}

.ae-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.ae-btn-primary {
  background: #4ed363;
  color: #06210d;
}

.ae-btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.ae-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.ae-btn-ghost:hover {
  border-color: #4ed363;
  color: #d9ffe2;
  transform: translateY(-2px);
}

.ae-meta,
.ae-visual-note {
  margin-top: 22px;
  color: rgba(244, 255, 246, 0.48);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ae-hero-copy > * {
  animation: aeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ae-hero-copy .ae-kicker { animation-delay: 0.45s; }
.ae-hero-copy h1 { animation-delay: 0.58s; }
.ae-hero-copy .ae-lead { animation-delay: 0.74s; }
.ae-hero-copy .ae-hero-actions { animation-delay: 0.88s; }
.ae-hero-copy .ae-meta { animation-delay: 1s; }

@keyframes aeIn {
  from { opacity: 0; transform: translateY(22px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

.ae-marquee {
  overflow: hidden;
  border-top: 1px solid rgba(78, 211, 99, 0.16);
  border-bottom: 1px solid rgba(78, 211, 99, 0.16);
  background: rgba(5, 16, 10, 0.72);
}

.ae-marquee-track {
  display: flex;
  width: max-content;
  animation: aeMarquee 28s linear infinite;
}

.ae-marquee:hover .ae-marquee-track {
  animation-play-state: paused;
}

.ae-marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 14px;
}

.ae-marquee-group span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ae-marquee-group i {
  color: #4ed363;
  font-style: normal;
}

@keyframes aeMarquee {
  to { transform: translateX(-50%); }
}

.ae-story {
  position: relative;
  padding: 36px 48px 10px;
}

.ae-story-row {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: center;
  padding: 56px 0 72px;
  scroll-margin: 18vh;
}

.ae-story-row.is-flip {
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
}

.ae-story-row.is-flip .ae-chapter {
  order: 2;
}

.ae-story-row.is-flip .ae-story-visual {
  order: 1;
}

.ae-chapter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

p.ae-chapter-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(64px, 7vw, 108px);
  line-height: 0.8;
  color: rgba(184, 247, 196, 0.45);
}

p.ae-chapter-kicker {
  margin: 8px 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ae-story-row[data-phase="antes"] .ae-chapter-kicker { color: #ffb4c0; }
.ae-story-row[data-phase="durante"] .ae-chapter-kicker { color: #9ef0a4; }
.ae-story-row[data-phase="despues"] .ae-chapter-kicker { color: #ffd27a; }

.ae-chapter h2 {
  font-size: clamp(34px, 4vw, 56px);
  margin-bottom: 16px;
}

.ae-chapter ul {
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.ae-chapter li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: rgba(244, 255, 246, 0.82);
  font-size: 15px;
}

.ae-chapter li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ed363;
}

.ae-story-visual {
  position: relative;
}

.phone-live-card.is-antes {
  background: linear-gradient(135deg, #ff8b9a 0%, #ff6b81 100%);
  box-shadow: 0 8px 20px rgba(255, 107, 129, 0.35);
}

.phone-live-card.is-durante {
  background: linear-gradient(135deg, #ff7a60 0%, #f79e4d 100%);
  box-shadow: 0 8px 20px rgba(247, 126, 80, 0.28);
}

.phone-live-card.is-despues {
  background: linear-gradient(135deg, #f5a623 0%, #f7c948 100%);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.32);
}

.ae-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ae-pill,
.ae-phasebar-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.ae-pill.is-active,
.ae-phasebar-btn.is-active {
  background: #edfff2;
  border-color: #edfff2;
  color: #0b1c10;
}

.ae-phasebar {
  display: none;
}

body.ali-page .ali-showcase {
  margin: 0 auto;
}

body.ali-page .ali-phone {
  animation: aePhoneGlow 3.4s ease-in-out infinite;
}

@keyframes aePhoneGlow {
  0%, 100% { box-shadow: 0 30px 65px rgba(0, 0, 0, 0.7), 0 0 0 0 rgba(78, 211, 99, 0); }
  50% { box-shadow: 0 30px 65px rgba(0, 0, 0, 0.7), 0 0 0 10px rgba(78, 211, 99, 0.12); }
}

.phone-live-card.is-swap,
.ali-chat-bubble.is-swap {
  animation: aeSwap 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aeSwap {
  from { transform: translateY(8px) scale(0.97); filter: blur(3px); }
  to { transform: none; filter: none; }
}

html.ae-js .phone-menu-item {
  animation: aeItem 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.ae-js .phone-menu-item:nth-child(2) { animation-delay: 0.05s; }
html.ae-js .phone-menu-item:nth-child(3) { animation-delay: 0.1s; }
html.ae-js .phone-menu-item:nth-child(4) { animation-delay: 0.15s; }

@keyframes aeItem {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

.ae-visual-note {
  text-align: center;
  letter-spacing: 0.08em;
}

.ae-section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.ae-section-head h2,
.ae-finale h2 {
  font-size: clamp(34px, 4.4vw, 62px);
}

.ae-wall-section,
.ae-features {
  padding: 88px 48px;
}

.ae-wall {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

.ae-shot {
  background: #fff;
  color: #1b2a20;
  border-radius: 16px;
  padding: 10px 10px 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: rotate(var(--rot)) translateY(28px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
  transition-delay: calc(var(--i) * 70ms);
}

.ae-wall.is-in .ae-shot {
  opacity: 1;
  transform: rotate(var(--rot));
}

.ae-shot:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.04);
  z-index: 2;
}

.ae-shot-media {
  height: 180px;
  border-radius: 10px;
}

.shot-night { background: linear-gradient(160deg, #163224, #0b1a12 60%, #f5a623); }
.shot-mint { background: linear-gradient(160deg, #d9ffe4, #3ecf55); }
.shot-amber { background: linear-gradient(160deg, #ffe7bf, #f5a623 55%, #ff8b9a); }

.ae-shot figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.ae-feature-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ae-feature {
  min-height: 210px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  position: relative;
}

.ae-feature::after {
  content: '';
  position: absolute;
  left: 22px;
  bottom: 0;
  width: 42px;
  height: 2px;
  background: #4ed363;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.ae-feature:hover,
html.ae-js .ae-feature.is-in:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 211, 99, 0.4);
}

.ae-feature:hover::after {
  transform: scaleX(1);
}

.ae-feature span {
  display: block;
  margin-bottom: 28px;
  color: #9ef0a4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.ae-feature h3 {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

html.ae-js .ae-reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}

html.ae-js .ae-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.ae-finale {
  position: relative;
  padding: 110px 24px 120px;
  text-align: center;
  overflow: hidden;
}

.ae-finale-glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(78, 211, 99, 0.22), transparent 68%);
  pointer-events: none;
}

.ae-finale h2,
.ae-finale p,
.ae-finale .ae-hero-actions,
.ae-finale .ae-kicker {
  position: relative;
}

.ae-finale h2 {
  max-width: 820px;
  margin: 0 auto;
}

.ae-finale p {
  max-width: 520px;
  margin: 16px auto 0;
}

.ae-finale .ae-hero-actions {
  justify-content: center;
}

.ae-btn:focus-visible,
.ae-pill:focus-visible,
.ae-phasebar-btn:focus-visible,
.phone-tab:focus-visible,
.ae-chapter:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid #4ed363;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .ae-hero {
    padding: 36px 24px 48px;
  }

  .ae-story {
    padding: 12px 20px 20px;
  }

  .ae-story-row,
  .ae-story-row.is-flip {
    grid-template-columns: 1fr;
    padding: 28px 0 36px;
  }

  .ae-story-row.is-flip .ae-chapter,
  .ae-story-row.is-flip .ae-story-visual {
    order: 0;
  }

  .ae-chapter {
    max-width: none;
    padding-bottom: 8px;
  }

  .ae-phasebar {
    display: flex;
    position: sticky;
    top: 76px;
    z-index: 40;
    gap: 8px;
    justify-content: center;
    margin: 0 -20px 12px;
    padding: 10px 16px;
    background: rgba(7, 20, 13, 0.92);
    border-bottom: 1px solid rgba(78, 211, 99, 0.16);
    backdrop-filter: blur(12px);
  }

  .ae-wall-section,
  .ae-features {
    padding: 64px 20px;
  }

  .ae-wall,
  .ae-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .ae-hero {
    margin-top: 76px;
    min-height: calc(100vh - 76px);
    padding-top: 28px;
  }

  body.ali-page .main-nav {
    background: #0c1a12;
    border-bottom-color: rgba(78, 211, 99, 0.2);
  }

  body.ali-page .menu-toggle span {
    background: #ffffff;
  }

  .ae-hero h1 {
    font-size: clamp(44px, 12vw, 64px);
  }

  body.ali-page .ali-showcase {
    transform: scale(0.82);
    transform-origin: top center;
    margin-bottom: -90px;
  }
}

@media (max-width: 640px) {
  .ae-wall,
  .ae-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ae-curtain,
  .ae-cursor {
    display: none;
  }

  .ae-aurora,
  .ae-marquee-track,
  .ae-live-dot,
  body.ali-page .ali-phone,
  .ali-polaroid,
  .ali-badge,
  .ali-chat-wrap {
    animation: none;
  }

  .ae-hero-copy > *,
  html.ae-js .ae-reveal,
  .ae-shot,
  .ae-chapter {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
