/* Homepage hero: near-black purple stage, big headline + stats (left), orbital scene (right) */
.hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 48px);
  background: #37305c; color: #fff; overflow: hidden;
}

.hero .hero__spot::before { background: radial-gradient(circle, rgba(241, 135, 23, 0.2) 0%, rgba(241, 135, 23, 0.06) 45%, transparent 72%); }

/* smooth handoff into the white section below: fade the dark hero into white instead of a hard edge */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(32px, 4vw, 48px); z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.5) 60%, #fff 100%);
}

.hero .intro { max-width: 760px; order: 0; }
.hero .intro h1 { margin: 0; color: #fff; font-size: clamp(42px, 5.5vw, 86px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; text-wrap: wrap; }
.hero .intro__lead { margin: clamp(18px, 2vw, 26px) 0 0; max-width: 24ch; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.32; font-weight: 400; color: rgba(255, 255, 255, 0.58); }
.hero__cta { margin-top: clamp(24px, 3vw, 38px); }
.hero__cta .btn { padding: 17px 30px; font-size: 17px; }

.hero__stats { margin: clamp(40px, 5.5vw, 76px) 0 0; display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; }
.hero__stats li { display: flex; align-items: center; gap: 10px; padding: 0 clamp(16px, 2.2vw, 32px); border-left: 1px solid rgba(255, 255, 255, 0.16); }
.hero__stats li:first-child { padding-left: 0; border-left: 0; }
.hero__stats b { display: block; font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.02em; color: #fff; line-height: 1.15; }
.hero__stats span { display: block; font-size: clamp(13px, 1.1vw, 16px); color: rgba(255, 255, 255, 0.55); }
.hero__stat--icon i { font-size: clamp(22px, 2vw, 30px); color: var(--o); align-self: flex-start; margin-top: 3px; }

/* orbital scene */
.hero__orbit { position: relative; width: 112%; margin-right: -12%; aspect-ratio: 4 / 3; align-self: center; }
.hero__orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* ---- dark header over the hero (home page only) ---- */
body.home .ribbon { background: linear-gradient(90deg, #ffffff 0%, #fbf9ff 50%, #ffffff 100%); color: var(--plum); border-bottom: 1px solid rgba(55, 48, 92, 0.08); }
body.home .ribbon__item a { color: var(--o); }
body.home .ribbon__close { color: var(--mute); }
body.home .ribbon__close:hover { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
body.home .nav { background: #37305c; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.home .nav.is-stuck { background: rgba(55, 48, 92, 0.94); box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.8); }
body.home .nav__link { color: rgba(255, 255, 255, 0.86); }
body.home .nav__link:hover, body.home .has-drop.open > .nav__link, body.home .has-drop:hover > .nav__link { color: #fff; }
body.home .nav__burger { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
body.home .nav__logo img { filter: none; }

@media (max-width: 980px) {
  
  .hero .intro { max-width: 100%; margin-inline: 0; }
  .hero .intro__lead { margin-inline: 0; }
  .hero__stats { margin-top: 32px; row-gap: 18px; }
  .hero__orbit { width: 100%; margin-right: 0; max-width: 640px; margin-inline: auto; margin-top: 24px; }
  body.home .nav__menu { background: #37305c; border-color: rgba(255, 255, 255, 0.08); }
  body.home .nav__menu .nav__link { color: #fff; }
  body.home .nav__login--drawer { color: #fff; }
}
@media (max-width: 560px) {
  
  .hero__stats li { padding: 0 14px; }
}

.hero__stats li:not(.hero__stat--icon) { flex-direction: column; align-items: flex-start; gap: 0; justify-content: center; }
.hero__stat--icon > div { display: flex; flex-direction: column; }

/* orbiting pills (positioned by js/hero-orbit.js) */
.hero__pills { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* keep the three hero stats on a single line */
.hero__stats { flex-wrap: nowrap; }
.hero__stats li { flex: 0 1 auto; min-width: 0; padding: 0 clamp(8px, 1.6vw, 22px); }
.hero__stats b { font-size: clamp(13px, 1.35vw, 19px); font-weight: 600; white-space: nowrap; }
.hero__stats span { font-size: clamp(10.5px, 0.9vw, 13px); white-space: nowrap; }
.hero__stat--icon i { font-size: clamp(16px, 1.5vw, 22px); margin-top: 1px; }
@media (max-width: 560px) {
  .hero__stats li { padding: 0 7px; gap: 6px; }
  .hero__stats b { font-size: 11.5px; }
  .hero__stats span { font-size: 9.5px; }
  .hero__stat--icon i { font-size: 14px; }
}

/* lift the stats row closer to the CTA */
.hero__stats { margin-top: clamp(16px, 2vw, 28px); }
@media (max-width: 980px) { .hero__stats { margin-top: 20px; } }

/* lift the headline block up: vertically centred in the hero instead of sitting on the bottom edge */
@media (min-width: 981px) {
  .hero .intro { align-self: center; margin-bottom: clamp(24px, 3vw, 48px); }
}

/* centre logo as a continuously tumbling 3D cube: square, seamless faces (no gaps at the edges), soft glow behind */

/* crop the icon's transparent rounded corners so each face is a full square */

/* three.js rounded cube replaces the CSS fallback cube */

/* orbit pills: thin-line icons (same set as the rest of the site) in a soft orange chip */

/* ---- Hero colours swapped: white stage with Navy Purple type and elements ---- */
.hero { background: #fff; color: var(--purple); }

.hero .hero__spot::before { background: radial-gradient(circle, rgba(241, 135, 23, 0.14) 0%, rgba(241, 135, 23, 0.04) 45%, transparent 72%); }
.hero::after { display: none; }

.hero .intro h1 { color: var(--purple); }
.hero .intro__lead { color: rgba(55, 48, 92, 0.72); }
.hero__stats li { border-left-color: rgba(55, 48, 92, 0.2); }
.hero__stats b { color: var(--purple); }
.hero__stats span { color: rgba(55, 48, 92, 0.62); }

/* =====================================================================
   Hero redesign: bright airy stage, serif headline, glass orbit around a cube on a marble pedestal
   ===================================================================== */
.hero { background: #fbf1ee; padding-bottom: clamp(40px, 5vw, 72px); }

.hero .hero__spot::before { background: radial-gradient(circle, rgba(241, 135, 23, 0.14), transparent 70%); }

.hero .intro h1 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 800; font-size: clamp(44px, 6.3vw, 104px); line-height: 1; letter-spacing: -0.02em; color: #2a2160; }
.hero .intro h1 em { font-style: normal; }
.hero .intro h1 em .gword, .hero .intro h1 em { background: linear-gradient(180deg, #ffa83d 0%, #f27a0c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero .intro__lead { max-width: 22ch; margin-top: clamp(22px, 2.4vw, 34px); font-size: clamp(20px, 2.1vw, 34px); font-weight: 300; line-height: 1.28; color: #6c6788; }
.hero__cta { margin-top: clamp(28px, 3.4vw, 46px); }
.hero__cta .btn { padding: clamp(16px, 1.5vw, 22px) clamp(32px, 3vw, 46px); font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; border-radius: 999px; color: #1e1640; }

.hero__stats { margin-top: clamp(40px, 5vw, 72px); }
.hero__stats li { align-items: center; gap: 14px; padding: 0 clamp(14px, 1.8vw, 26px); border-left: 1px solid rgba(55, 48, 92, 0.14); }
.hero__stats li:first-child { padding-left: 0; border-left: 0; }
.hero__stats li > div { display: grid; gap: 2px; }
.hero__stats b { font-size: clamp(16px, 1.3vw, 20px); font-weight: 500; letter-spacing: 0; color: #2a2160; }
.hero__stats li span:not(.hs__ic) { font-size: clamp(12px, 0.95vw, 14px); color: #7d7896; }
.hs__ic { flex: 0 0 auto; width: clamp(40px, 3.4vw, 50px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #fff, #fbeee6); border: 1px solid rgba(241, 135, 23, 0.18); box-shadow: 0 6px 14px -8px rgba(120, 70, 20, 0.25); }
.hs__ic i { font-size: clamp(20px, 1.7vw, 25px); color: #2a2160; align-self: center; margin: 0; }

/* orbit: glass rings + pedestal */
.hero__orbit svg ellipse:nth-of-type(1) { stroke: rgba(205, 190, 235, 0.7); stroke-dasharray: none; }
.hero__orbit svg ellipse:nth-of-type(3) { fill: rgba(255, 255, 255, 0.28); stroke: rgba(241, 135, 23, 0.5); }
.hero__orbit svg ellipse:nth-of-type(4) { fill: rgba(205, 190, 240, 0.22); stroke: rgba(255, 255, 255, 0.9); stroke-dasharray: none; stroke-width: 2; }
.hero__orbit::before {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -7%; height: 22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #f7eff3 55%, #eadfe8 100%);
  box-shadow: 0 14px 0 0 #efe5ea, 0 30px 0 -4px #e2d4df, 0 50px 60px -20px rgba(110, 70, 130, 0.35), inset 0 0 0 4px rgba(241, 135, 23, 0.4), inset 0 0 0 10px rgba(255, 255, 255, 0.7);
}
.hero__orbit::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: -2%; height: 11%; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(241, 135, 23, 0.55); box-shadow: 0 0 24px rgba(241, 135, 23, 0.35);
}

/* layout tuning to the reference */

.hero .intro { max-width: none; }
.hero .intro h1 { font-size: clamp(42px, 6vw, 100px); }
.hero__stats .hs__ic { display: grid; }

.hero__orbit { width: 118%; margin-right: -14%; }
.hero .intro h1 em { background: none; -webkit-text-fill-color: initial; color: inherit; }
.hero .intro h1 em:not(:has(.gword)) { background: linear-gradient(180deg, #ffa83d 0%, #f27a0c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
