/* ============================================================
   HERO v2 — premium fluid.glass / activetheory aesthetic
   Loaded last; replaces all earlier .hero rules.
   ============================================================ */

/* hide old hero scaffolding if any still lingers */
.hero__inner, .hero__aura, .hero__top, .hero__center,
.hero__bottom, .hero__steps, .hero__scroll,
.hero__pill, .hero__meta, .hero__title, .hero__sub, .hero__ctas{ display:none !important; }

.hero.hero--v2{
  position: relative;
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, #FFFFFF 0%, #F7F4EE 35%, #EDEEEC 65%, #E5E7E5 100%);
  overflow: hidden;
  isolation: isolate;
}

/* ---------- soft atmosphere ---------- */
.hero-atmos{ position:absolute; inset:0; overflow:hidden; z-index:0; pointer-events:none; }
.hero-orb{
  position:absolute; border-radius:50%;
  filter: blur(80px);
  will-change: transform;
  mix-blend-mode: multiply;
}
.hero-orb--a{
  width: 70vw; height: 70vw;
  top: -20vw; left: -20vw;
  background: radial-gradient(circle, #B7EDE3 0%, transparent 65%);
  animation: orbA 26s ease-in-out infinite;
  opacity: .9;
}
.hero-orb--b{
  width: 60vw; height: 60vw;
  top: 10vh; right: -18vw;
  background: radial-gradient(circle, #C8DEFB 0%, transparent 65%);
  animation: orbA 32s ease-in-out infinite reverse;
  opacity: .85;
}
.hero-orb--c{
  width: 50vw; height: 50vw;
  bottom: -22vw; left: 32vw;
  background: radial-gradient(circle, #FDE0EA 0%, transparent 65%);
  animation: orbA 36s ease-in-out infinite;
  opacity: .85;
}
@keyframes orbA{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(6%,-3%,0) scale(1.08); }
}
.hero-grain{
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/></svg>");
  opacity:.45; mix-blend-mode: overlay; pointer-events:none;
}
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(11,23,51,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,23,51,.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
}

/* ---------- canvas ---------- */
.hero--v2 .hero__canvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  z-index: 1;
  pointer-events:none;
  display:block !important;
}

/* ---------- top meta bar ---------- */
.hero-top{
  position: relative; z-index: 4;
  width: min(1440px, 94vw);
  margin: 0 auto;
  padding: 130px 0 0;
  display:flex; justify-content:space-between; align-items:center; gap:24px;
  color: var(--ink);
}
.hero-pill{
  display:inline-flex; align-items:center; gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 99px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 14px 30px -20px rgba(11,23,51,.2);
}
.hero-pill .dot{
  width: 8px; height: 8px; border-radius: 50%; background: #3ec792;
  box-shadow: 0 0 0 4px rgba(62,199,146,.18);
  animation: pulse 2s ease-in-out infinite;
}
.hero-meta{
  display:inline-flex; align-items:center; gap: 14px;
  color: var(--muted); font-size: 13px;
  font-family: var(--font-display);
}
.hero-meta em{ font-style: italic; }
.hero-meta .line{
  width: 60px; height: 1px; background: currentColor; opacity: .4; display: inline-block;
}

/* ---------- main stage ---------- */
.hero-stage{
  position: relative; z-index: 3;
  width: min(1440px, 94vw);
  margin: 0 auto;
  padding: 30px 0 20px;
  min-height: calc(100vh - 360px);
  display: flex; align-items: center; justify-content: center;
}

/* MASSIVE typography wrapping the centerpiece */
.hero-h1{
  position: relative; z-index: 3;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 12vw, 200px);
  line-height: .88;
  letter-spacing: -0.045em;
  color: var(--ink);
  pointer-events: none;
  width: 100%;
}
.hero-h1__row{
  display: flex; justify-content: center; align-items: center;
  gap: clamp(20px, 4vw, 80px);
  white-space: nowrap;
}
.hero-h1__row--top{ }
.hero-h1__row--mid{
  font-size: clamp(40px, 7vw, 110px);
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(11,23,51,.35);
  font-family: var(--font-sans);
  margin: clamp(6px, 1vw, 12px) 0;
}
.hero-h1 .word{
  display:inline-block; overflow:hidden; line-height: .9;
}
.hero-h1 .word > span{
  display: inline-block;
  transform: translateY(110%);
}
.hero.is-ready .hero-h1 .word > span{
  transform: translateY(0);
  transition: transform 1.1s var(--ease);
}
.hero.is-ready .hero-h1__row--top .word:nth-child(1) > span{ transition-delay: .05s; }
.hero.is-ready .hero-h1__row--top .word:nth-child(2) > span{ transition-delay: .15s; }
.hero.is-ready .hero-h1__row--mid .word > span{ transition-delay: .25s; }
.hero.is-ready .hero-h1__row--bot .word:nth-child(1) > span{ transition-delay: .35s; }
.hero.is-ready .hero-h1__row--bot .word:nth-child(2) > span{ transition-delay: .45s; }
.hero-h1 .italic{
  font-style: italic; font-weight: 400;
  color: var(--brand-2);
}

/* ---------- floating glass chips around the centerpiece ---------- */
.hero-chip{
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 18px;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 30px 60px -28px rgba(11,23,51,.25),
    inset 0 1px 0 rgba(255,255,255,.8);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease) .6s, transform .9s var(--ease) .6s;
  will-change: transform;
}
.hero.is-ready .hero-chip{ opacity: 1; transform: none; }
.hero-chip__ico{
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #9DE5DA 0%, #5DD3C5 100%);
  color: #fff;
  flex-shrink: 0;
}
.hero-chip__ico--mint{ background: linear-gradient(135deg, #B6E7DF, #6FE0D6); }
.hero-chip__ico--blue{ background: linear-gradient(135deg, #C8DEFB, #5AA9F0); }
.hero-chip__ico svg{
  width: 22px; height: 22px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.hero-chip strong{ display: block; font-size: 14.5px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.hero-chip em{ display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.hero-chip--a{ top: 18%; left: 4%;  animation: floatY 7s ease-in-out infinite; }
.hero-chip--b{ top: 40%; right: 3%; animation: floatY 9s ease-in-out infinite 1.5s; }
.hero-chip--c{ bottom: 18%; left: 8%; animation: floatY 8s ease-in-out infinite 3s; }
@keyframes floatY{
  0%, 100%{ transform: translateY(0) rotate(0); }
  50%{ transform: translateY(-14px) rotate(-1deg); }
}

/* ---------- rating badge ---------- */
.hero-badge{
  position: absolute; z-index: 4;
  right: 6%; bottom: 14%;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(11,23,51,.92);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 60px -28px rgba(11,23,51,.45);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease) .8s, transform .9s var(--ease) .8s;
  animation: floatY 10s ease-in-out infinite 2s;
}
.hero.is-ready .hero-badge{ opacity: 1; transform: none; }
.hero-badge__ring{
  display:flex; gap: 2px;
  font-size: 14px; color: #F5B400;
}
.hero-badge__ring span{ display: inline-block; }
.hero-badge__num strong{
  display:block; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1; color: #fff;
}
.hero-badge__num em{
  display:block; font-style: normal; font-size: 11.5px; color: rgba(255,255,255,.7); margin-top: 3px;
}

/* ---------- foot: sub + CTAs ---------- */
.hero-foot{
  position: relative; z-index: 4;
  width: min(1240px, 94vw);
  margin: 0 auto;
  padding: 10px 0 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.hero-sub{
  margin: 0;
  font-size: clamp(15px, 1.05vw, 17.5px);
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.55;
}
.hero-ctas{
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end;
}

/* ---------- step rail at the very bottom ---------- */
.hero-rail{
  position: relative; z-index: 3;
  width: min(1440px, 94vw);
  margin: 0 auto;
  padding: 30px 0 100px;
}
.hero-rail__inner{
  display: flex; align-items: center; gap: 18px;
  padding: 16px 24px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 99px;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 24px 50px -28px rgba(11,23,51,.25);
  overflow: hidden;
}
.hero-rail__item{
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.hero-rail__item i{
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: var(--ink);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-rail__item strong{
  font-weight: 600; font-size: 14px; color: var(--ink);
}
.hero-rail__item em{
  font-style: normal; font-size: 12.5px; color: var(--muted);
}
.hero-rail__dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(11,23,51,.2);
  flex-shrink: 0;
}

/* ---------- scroll cue ---------- */
.hero-scroll{
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 5;
  color: var(--muted);
}
.hero-scroll em{
  font-style: normal;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
}
.hero-scroll span{
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--ink), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px){
  .hero-chip--a{ top: 14%; left: 2%; }
  .hero-chip--b{ top: 40%; right: 2%; }
  .hero-chip--c{ bottom: 22%; left: 2%; }
  .hero-badge{ right: 2%; bottom: 22%; }
}
@media (max-width: 900px){
  .hero-top{ padding-top: 100px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-meta{ font-size: 12px; }
  .hero-stage{ min-height: 60vh; padding-top: 24px; }
  .hero-h1{ font-size: clamp(54px, 16vw, 100px); }
  .hero-h1__row{ gap: 14px; flex-wrap: wrap; justify-content: center; }
  .hero-h1__row--mid{ font-size: clamp(28px, 8vw, 56px); }
  .hero-chip{ padding: 10px 14px; font-size: 12px; gap: 8px; }
  .hero-chip__ico{ width: 36px; height: 36px; border-radius: 10px; }
  .hero-chip strong{ font-size: 13px; }
  .hero-chip em{ font-size: 11.5px; }
  .hero-chip--a{ top: 8%; left: 2%; }
  .hero-chip--b{ top: 36%; right: 2%; }
  .hero-chip--c{ bottom: 26%; left: 2%; }
  .hero-badge{ display:none; }
  .hero-foot{ grid-template-columns: 1fr; gap: 20px; }
  .hero-ctas{ justify-content: flex-start; }
  .hero-rail{ padding-bottom: 60px; }
  .hero-rail__inner{
    border-radius: 22px; flex-wrap: wrap; gap: 12px;
    padding: 14px 16px;
  }
  .hero-rail__dot{ display: none; }
  .hero-rail__item{ flex: 1 1 45%; }
  .hero-scroll{ display: none; }
}
@media (max-width: 540px){
  .hero-h1{ font-size: clamp(46px, 17vw, 80px); }
  .hero-chip{
    position: static;
    margin: 0;
    animation: none;
    transform: none;
  }
  .hero-stage{
    display: grid;
    grid-template-rows: auto auto;
    padding: 20px 0;
    min-height: auto;
  }
  /* on tiny screens, drop chips inline below headline */
  .hero-chip--a, .hero-chip--b, .hero-chip--c{
    position: static !important;
    display: none;
  }
}
