/* ==========================================================================
   AMAES HERO — scoped hero styles (extracted from modern.css)
   Self-contained: only the hero and its dependencies. No global/base rules,
   no .mx scroll-reveal engine, no logo/play-button/scrollbar/body font
   overrides — so linking this file does NOT affect the rest of the page.
   ========================================================================== */

/* Design tokens the hero depends on (namespaced --mx-*, safe to include) */
:root {
  --mx-maroon: #800000;
  --mx-crimson: #b30000;
  --mx-ember: #ff6a3d;
  --mx-gold: #ffb347;
  --mx-ink: #1a1a1f;
  --mx-muted: #5b5b66;
  --mx-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --mx-ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --mx-shadow-lg: 0 24px 60px -18px rgba(128, 0, 0, 0.25);
}

/* ==========================================================================
   HERO — cinematic entrance, animated aurora field, pure CSS
   ========================================================================== */
.hero {
  position: relative;
  min-height: max(88vh, 620px);
  min-height: max(88svh, 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 9rem 1.5rem 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero--compact {
  min-height: 0;
  padding: 8.5rem 1.5rem 4.5rem;
}
.hero--compact .scroll-cue { display: none; }

.hero[hidden] { display: none; }

.hero-bg {
  position: absolute;
  inset: -12%;
  z-index: -2;
  will-change: transform;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: orbFloat 16s ease-in-out infinite alternate;
  will-change: transform;
}
.o1 {
  width: 46vw; height: 46vw; min-width: 340px; min-height: 340px;
  left: -8%; top: 4%;
  background: radial-gradient(circle at 30% 30%, rgba(128, 0, 0, 0.42), transparent 65%);
}
.o2 {
  width: 38vw; height: 38vw; min-width: 280px; min-height: 280px;
  right: -6%; top: 18%;
  background: radial-gradient(circle at 60% 40%, rgba(255, 106, 61, 0.35), transparent 65%);
  animation-delay: -6s;
}
.o3 {
  width: 30vw; height: 30vw; min-width: 240px; min-height: 240px;
  left: 32%; bottom: -14%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 179, 71, 0.33), transparent 65%);
  animation-delay: -11s;
}
@keyframes orbFloat {
  from { transform: translate3d(0, -3%, 0) scale(1); }
  to   { transform: translate3d(4%, 5%, 0) scale(1.12); }
}

/* subtle dot matrix + fade so hero blends into the page */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(128, 0, 0, 0.10) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 42%, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 62% at 50% 42%, #000 35%, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(to top, rgba(245, 247, 250, 0.9), transparent);
  pointer-events: none;
}

/* --- badge --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 100%;
  text-align: center;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mx-maroon);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(128, 0, 0, 0.18);
  box-shadow: 0 8px 28px -12px rgba(128, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.hero-badge .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--mx-crimson);
  box-shadow: 0 0 0 0 rgba(179, 0, 0, 0.55);
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  70%  { box-shadow: 0 0 0 9px rgba(179, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(179, 0, 0, 0); }
}

/* --- headline with masked line reveal --- */
.hero-title {
  margin: 0 0 1.4rem;
  font-size: clamp(2.45rem, 7vw, 5.2rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--mx-ink);
  max-width: min(17ch, 100%);
}
.hero-title .hl {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em; /* keep descenders visible during mask */
}
.hero-title .hl > span {
  display: inline-block;
  max-width: 100%;
  transform: translateY(112%);
  animation: hlUp 1s var(--mx-ease-out) forwards;
}
.hero-title .hl:nth-child(2) > span { animation-delay: 0.13s; }
.hero-title .hl:nth-child(3) > span { animation-delay: 0.26s; }
@keyframes hlUp {
  to { transform: translateY(0); }
}

.grad-text {
  font-style: normal;
  background: linear-gradient(100deg, var(--mx-maroon) 10%, var(--mx-crimson) 48%, var(--mx-ember) 85%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- sub copy / CTAs / trust --- */
.hero-sub,
.hero-ctas,
.hero-trust {
  opacity: 0;
  animation: heroFade 0.9s var(--mx-ease-out) forwards;
}
.hero-sub   { animation-delay: 0.42s; }
.hero-ctas  { animation-delay: 0.58s; }
.hero-trust { animation-delay: 0.74s; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-sub {
  max-width: 56ch;
  margin: 0 auto 2.4rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.65;
  color: var(--mx-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.btn-hero {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.35s var(--mx-ease-snap), box-shadow 0.35s ease;
  will-change: transform;
}
.btn-hero svg { transition: transform 0.35s var(--mx-ease-snap); }
.btn-hero:hover { transform: translateY(-3px) scale(1.02); }
.btn-hero:hover svg { transform: translateX(4px); }
.btn-hero:active { transform: translateY(-1px) scale(0.99); }

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--mx-maroon), var(--mx-crimson) 60%, #d42b2b);
  background-size: 160% 160%;
  box-shadow: 0 14px 34px -10px rgba(179, 0, 0, 0.55);
}
.btn-primary:hover { box-shadow: 0 20px 44px -12px rgba(179, 0, 0, 0.65); }
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.4s ease-in-out infinite;
}
@keyframes sheen {
  0%, 55%  { left: -80%; }
  75%, 100%{ left: 130%; }
}

.btn-ghost {
  color: var(--mx-maroon);
  background: rgba(255, 255, 255, 0.66);
  border: 1.5px solid rgba(128, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px -14px rgba(128, 0, 0, 0.3);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--mx-maroon);
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.6rem;
  margin: 0;
  padding: 0;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b5a5a;
}
.hero-trust i { font-size: 1.05rem; color: var(--mx-maroon); }

/* --- scroll cue --- */
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(128, 0, 0, 0.45);
  border-radius: 999px;
  opacity: 0;
  animation: heroFade 0.8s 1.15s var(--mx-ease-out) forwards;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--mx-maroon);
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ==========================================================================
   REDUCED MOTION — hero only
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-sub, .hero-ctas, .hero-trust, .scroll-cue { opacity: 1; animation: none; }
  .hero-title .hl > span { transform: none; animation: none; }
  .orb { animation: none; }
}

/* ---------- Mobile (hero only) ---------- */
@media (max-width: 640px) {
  .hero { padding-top: 7.5rem; }
  .hero-title { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .btn-hero { width: 100%; justify-content: center; }
  .scroll-cue { display: none; }
  .o1, .o2, .o3 { filter: blur(52px); opacity: 0.42; }
}
