/* Public marketing homepage (`/`).
 *
 * A dark, premium landing page in the brand yellow with cyan and violet
 * accents. Depth comes from an isometric SVG tower, soft light orbs and glass
 * cards. The brand display face is used for the company name only; everything else uses
 * the sans stack from tokens.css.
 *
 * Mobile first. Breakpoints: 40rem (two-column grids), 61.25rem (desktop header
 * and split sections), 75rem (wide grids).
 *
 * Motion is decorative: with `prefers-reduced-motion: reduce` every animation
 * stops and all content is visible. Content is only hidden for the scroll
 * reveal when home-init.js has marked the document with `.home-js`.
 */

.home-body {
  --hx-bg: #07080c;
  --hx-bg-raised: #0d0f16;
  --hx-surface: rgba(255, 255, 255, 0.045);
  --hx-surface-strong: rgba(255, 255, 255, 0.08);
  --hx-line: rgba(255, 255, 255, 0.1);
  --hx-line-strong: rgba(255, 255, 255, 0.18);
  --hx-text: #f5f6fa;
  --hx-muted: #a9adbd;
  --hx-subtle: #7d8193;
  --hx-ink: #0a0a0d;

  --hx-gold: #ebc42a;
  --hx-gold-hot: #ffd84d;
  --hx-cyan: #22d3ee;
  --hx-violet: #a78bfa;
  --hx-blue: #5b8cff;
  --hx-green: #34d399;
  --hx-rose: #fb7185;

  --hx-lv-1: #ebc42a;
  --hx-lv-2: #a3e635;
  --hx-lv-3: #34d399;
  --hx-lv-4: #22d3ee;
  --hx-lv-5: #38bdf8;
  --hx-lv-6: #5b8cff;
  --hx-lv-7: #818cf8;
  --hx-lv-8: #c084fc;

  --hx-radius: 1.25rem;
  --hx-radius-sm: 0.75rem;
  --hx-header: 4.5rem;
  --hx-shell: 75rem;
  --hx-gutter: 1.25rem;
  --hx-ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
  background-color: var(--hx-bg);
  color: var(--hx-text);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* The whole page is sized in rem, so growing the root size scales it as one
   piece. Up to about 1440px wide the root stays at the browser default; above
   that it grows with the viewport, so large and ultra-wide screens are filled
   instead of showing a small column in the middle. Scoped to this page only. */
html:has(.home-body) {
  font-size: clamp(1rem, 0.6vw + 0.46rem, 1.875rem);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hx-header, 4.5rem) + 0.75rem);
}

.home-body :where(h1, h2, h3) {
  letter-spacing: -0.02em;
}

/* Zero specificity, so a component such as a button can set its own colour. */
:where(.home-body) a {
  color: inherit;
}

.home-body .skip-link {
  background-color: var(--hx-gold);
  color: var(--hx-ink);
  font-weight: var(--font-weight-bold);
}

.home-body :focus-visible {
  outline: 2px solid var(--hx-gold);
  outline-offset: 0.1875rem;
}

.hx-shell {
  width: 100%;
  max-width: calc(var(--hx-shell) + 2 * var(--hx-gutter));
  margin-inline: auto;
  padding-inline: var(--hx-gutter);
}

.hx-shell--narrow {
  max-width: calc(53.75rem + 2 * var(--hx-gutter));
}

.hx-gradient-text {
  background: linear-gradient(95deg, var(--hx-gold-hot), var(--hx-cyan) 55%, var(--hx-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------------- Buttons */

.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 62.4375rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 200ms var(--hx-ease), box-shadow 200ms var(--hx-ease),
    background-color 200ms var(--hx-ease), border-color 200ms var(--hx-ease);
}

.hx-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.hx-btn:active {
  transform: translateY(0);
}

.hx-btn--primary {
  background: linear-gradient(135deg, var(--hx-gold-hot), var(--hx-gold));
  color: var(--hx-ink);
  box-shadow: 0 0.625rem 1.875rem -0.625rem rgba(235, 196, 42, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hx-btn--primary:hover {
  box-shadow: 0 1rem 2.5rem -0.75rem rgba(235, 196, 42, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hx-btn--ghost {
  border-color: var(--hx-line-strong);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--hx-text);
  backdrop-filter: blur(0.5rem);
}

.hx-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.08);
}

.hx-btn--sm {
  min-height: 2.75rem;
  padding: 0 1.1rem;
  font-size: 0.875rem;
}

.hx-btn--lg {
  min-height: 3.5rem;
  padding: 0 1.75rem;
  font-size: 1rem;
}

.hx-btn--block {
  width: 100%;
}

.hx-btn__arrow {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--hx-ease);
}

.hx-btn:hover .hx-btn__arrow {
  transform: translateX(0.1875rem);
}

/* ----------------------------------------------------------------- Header */

.hx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background-color: rgba(7, 8, 12, 0.55);
  backdrop-filter: blur(0.875rem) saturate(140%);
  transition: background-color 250ms ease, border-color 250ms ease;
}

.hx-header.is-scrolled,
.hx-header.is-menu-open {
  border-bottom-color: var(--hx-line);
  background-color: rgba(7, 8, 12, 0.88);
}

.hx-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--hx-header);
}

.hx-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-decoration: none;
}

.hx-logo:hover {
  text-decoration: none;
}

.hx-logo__mark {
  flex: 0 0 auto;
  width: 2.125rem;
  height: 2.125rem;
}

.hx-logo__top { fill: var(--hx-gold-hot); }
.hx-logo__left { fill: #b08f14; }
.hx-logo__right { fill: #7a6208; }

/* The only use of the brand face on the page. */
.hx-logo__text {
  font-family: var(--font-brand);
  font-weight: var(--font-weight-brand);
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: var(--letter-spacing-brand);
  color: var(--hx-gold);
  white-space: nowrap;
}

.hx-nav,
.hx-header__actions {
  display: none;
}

.hx-nav__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 62.4375rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hx-muted);
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.hx-nav__link:hover,
.hx-nav__link.is-current {
  color: var(--hx-text);
  background-color: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.hx-nav__link.is-current::after {
  content: "";
  position: absolute;
  bottom: 0.375rem;
  left: 50%;
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background-color: var(--hx-gold);
  transform: translateX(-50%);
}

.hx-header__actions {
  gap: 0.5rem;
  margin-inline-start: auto;
}

.hx-burger {
  display: inline-grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  margin-inline-start: auto;
  padding: 0;
  border: 1px solid var(--hx-line-strong);
  border-radius: 0.875rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--hx-text);
  cursor: pointer;
}

.hx-burger__svg {
  width: 1.3rem;
  height: 1.3rem;
}

.hx-burger__icon--close,
.hx-header.is-menu-open .hx-burger__icon--open {
  display: none;
}

.hx-header.is-menu-open .hx-burger__icon--close {
  display: inline-flex;
}

.hx-progress {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}

.hx-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--hx-gold), var(--hx-cyan), var(--hx-violet));
  transform: scaleX(0);
  transform-origin: left;
}

.hx-mobile {
  display: none;
  padding: 0.5rem var(--hx-gutter) 1.25rem;
  border-top: 1px solid var(--hx-line);
}

.hx-header.is-menu-open .hx-mobile {
  display: block;
}

.hx-mobile__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-mobile__link {
  display: flex;
  align-items: center;
  min-height: 3.125rem;
  border-bottom: 1px solid var(--hx-line);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.hx-mobile__actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

/* ------------------------------------------------------------------- Hero */

.hx-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 4rem;
}

.hx-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(5rem);
  opacity: 0.55;
}

.hx-orb--gold {
  top: -10%;
  right: -10%;
  width: 32.5rem;
  height: 32.5rem;
  background: radial-gradient(circle, rgba(235, 196, 42, 0.55), transparent 65%);
}

.hx-orb--cyan {
  bottom: -20%;
  left: -15%;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 65%);
}

.hx-orb--violet {
  top: 30%;
  left: 40%;
  width: 23.75rem;
  height: 23.75rem;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.3), transparent 65%);
}

.hx-gridfloor {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

.hx-hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hx-hero__copy {
  min-width: 0;
}

.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(235, 196, 42, 0.35);
  border-radius: 62.4375rem;
  background-color: rgba(235, 196, 42, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hx-gold);
}

.hx-eyebrow__pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--hx-gold);
}

.hx-eyebrow__pulse::after {
  content: "";
  position: absolute;
  inset: -0.25rem;
  border-radius: 50%;
  border: 2px solid var(--hx-gold);
  animation: hx-ping 1.8s ease-out infinite;
}

@keyframes hx-ping {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.8); opacity: 0; }
}

.hx-hero__title {
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hx-hero__lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
  color: var(--hx-muted);
}

.hx-amount {
  padding: 0.05em 0.45em;
  border-radius: 0.5rem;
  background-color: rgba(235, 196, 42, 0.14);
  color: var(--hx-gold-hot);
  white-space: nowrap;
}

.hx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hx-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2.5rem 0 0;
}

.hx-stat {
  padding: 0.9rem 1rem;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.hx-stat dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hx-subtle);
}

.hx-stat dd {
  margin: 0.15rem 0 0;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.hx-stat dd small {
  margin-inline-start: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hx-gold);
}

/* Isometric level tower */
.hx-hero__art {
  position: relative;
  width: min(100%, 35rem);
  margin: 0 auto;
}

.hx-tower {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hx-tower__floor path {
  fill: none;
  stroke: rgba(34, 211, 238, 0.16);
  stroke-width: 1;
}

.hx-tower__floor path:first-child {
  fill: rgba(34, 211, 238, 0.03);
}

.hx-col { color: var(--hx-lv-1); }
.hx-col--2 { color: var(--hx-lv-2); }
.hx-col--3 { color: var(--hx-lv-3); }
.hx-col--4 { color: var(--hx-lv-4); }
.hx-col--5 { color: var(--hx-lv-5); }
.hx-col--6 { color: var(--hx-lv-6); }
.hx-col--7 { color: var(--hx-lv-7); }
.hx-col--8 { color: var(--hx-lv-8); }

.hx-col__top {
  fill: currentColor;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1;
}

.hx-col__left {
  fill: color-mix(in srgb, currentColor 62%, #000);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.hx-col__right {
  fill: color-mix(in srgb, currentColor 38%, #000);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.hx-col__label {
  fill: var(--hx-ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.hx-tower__beam {
  fill: none;
  stroke: url(#hxBeam);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  animation: hx-dash 1.6s linear infinite;
}

.hx-tower__beam--glow {
  stroke-width: 10;
  stroke-dasharray: none;
  opacity: 0.22;
  animation: none;
}

@keyframes hx-dash {
  to { stroke-dashoffset: -36; }
}

.hx-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: hx-bob 5s ease-in-out infinite;
}

.hx-float--1 { fill: var(--hx-cyan); }
.hx-float--2 { fill: var(--hx-violet); animation-delay: -1.6s; }
.hx-float--3 { fill: var(--hx-gold); animation-delay: -3.2s; }

@keyframes hx-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-0.625rem) rotate(12deg); }
}

.hx-tag {
  position: absolute;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--hx-line-strong);
  border-radius: 62.4375rem;
  background-color: rgba(13, 15, 22, 0.8);
  backdrop-filter: blur(0.625rem);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0.625rem 1.875rem -0.75rem rgba(0, 0, 0, 0.8);
}

.hx-tag--entry {
  bottom: 4%;
  left: 2%;
  color: var(--hx-gold);
}

.hx-tag--top {
  top: 0;
  right: 2%;
  color: var(--hx-lv-8);
}

/* ---------------------------------------------------------------- Marquee */

.hx-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(235, 196, 42, 0.4);
  background: linear-gradient(90deg, var(--hx-gold), var(--hx-gold-hot), var(--hx-gold));
  color: var(--hx-ink);
}

.hx-marquee__track {
  display: flex;
  width: max-content;
  animation: hx-marquee 38s linear infinite;
}

.hx-marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hx-marquee__track span::after {
  content: "";
  width: 0.5625rem;
  height: 0.5625rem;
  background-color: var(--hx-ink);
  transform: rotate(45deg);
}

@keyframes hx-marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- Sections */

.hx-section {
  position: relative;
  padding: clamp(4rem, 3rem + 4vw, 7rem) 0;
}

.hx-section--panel {
  border-block: 1px solid var(--hx-line);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(91, 140, 255, 0.08), transparent 70%),
    var(--hx-bg-raised);
}

.hx-head {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.hx-head--left {
  margin: 0;
  text-align: start;
}

.hx-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hx-cyan);
}

.hx-title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
}

.hx-lead {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--hx-muted);
}

.hx-footnote {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--hx-subtle);
}

.hx-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

/* Scroll reveal: only once home-init.js has marked the page. */
.home-js .hx-reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms var(--hx-ease), transform 700ms var(--hx-ease);
}

.home-js .hx-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- Features */

.hx-features {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-feature {
  --hx-accent: var(--hx-gold);
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: transform 300ms var(--hx-ease), border-color 300ms ease, box-shadow 300ms ease;
}

.hx-feature::before {
  content: "";
  position: absolute;
  inset: -40% 40% 60% -40%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hx-accent) 35%, transparent), transparent 70%);
  opacity: 0.5;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.hx-feature:hover {
  transform: translateY(-0.375rem);
  border-color: color-mix(in srgb, var(--hx-accent) 50%, transparent);
  box-shadow: 0 1.875rem 3.75rem -1.875rem color-mix(in srgb, var(--hx-accent) 60%, transparent);
}

.hx-feature:hover::before {
  opacity: 1;
}

.hx-feature--cyan { --hx-accent: var(--hx-cyan); }
.hx-feature--violet { --hx-accent: var(--hx-violet); }
.hx-feature--blue { --hx-accent: var(--hx-blue); }
.hx-feature--green { --hx-accent: var(--hx-green); }
.hx-feature--rose { --hx-accent: var(--hx-rose); }

.hx-feature__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hx-accent) 30%, transparent), color-mix(in srgb, var(--hx-accent) 8%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hx-accent) 45%, transparent);
  color: var(--hx-accent);
}

.hx-feature__icon svg {
  width: 1.625rem;
  height: 1.625rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hx-feature__title {
  position: relative;
  font-size: 1.25rem;
  font-weight: 800;
}

.hx-feature__text {
  position: relative;
  margin-top: 0.5rem;
  color: var(--hx-muted);
}

.hx-feature__text strong {
  color: var(--hx-text);
}

/* ------------------------------------------------------------------ Levels */

.hx-lv--1 { --hx-lv: var(--hx-lv-1); --hx-w: 18%; }
.hx-lv--2 { --hx-lv: var(--hx-lv-2); --hx-w: 29%; }
.hx-lv--3 { --hx-lv: var(--hx-lv-3); --hx-w: 40%; }
.hx-lv--4 { --hx-lv: var(--hx-lv-4); --hx-w: 51%; }
.hx-lv--5 { --hx-lv: var(--hx-lv-5); --hx-w: 62%; }
.hx-lv--6 { --hx-lv: var(--hx-lv-6); --hx-w: 73%; }
.hx-lv--7 { --hx-lv: var(--hx-lv-7); --hx-w: 86%; }
.hx-lv--8 { --hx-lv: var(--hx-lv-8); --hx-w: 100%; }

.hx-levels {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.hx-levels__focus {
  display: grid;
  min-width: 0;
}

.hx-level-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  min-height: 18.75rem;
  padding: 2rem;
  border: 1px solid color-mix(in srgb, var(--hx-lv) 45%, transparent);
  border-radius: var(--hx-radius);
  background:
    radial-gradient(90% 90% at 100% 0%, color-mix(in srgb, var(--hx-lv) 35%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--hx-lv) 14%, var(--hx-bg-raised)), var(--hx-bg-raised));
  box-shadow: 0 2.5rem 5rem -2.5rem color-mix(in srgb, var(--hx-lv) 70%, transparent);
}

.hx-level-card::after {
  content: "";
  position: absolute;
  right: -1.875rem;
  bottom: -1.875rem;
  width: 11.25rem;
  height: 11.25rem;
  border: 1px solid color-mix(in srgb, var(--hx-lv) 40%, transparent);
  border-radius: 1.75rem;
  transform: rotate(45deg);
  opacity: 0.6;
}

.home-js .hx-level-card:not([hidden]) {
  animation: hx-card-in 450ms var(--hx-ease);
}

@keyframes hx-card-in {
  from { opacity: 0; transform: translateY(0.625rem) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.hx-level-card__badge {
  justify-self: start;
  padding: 0.3rem 0.8rem;
  border-radius: 62.4375rem;
  background-color: var(--hx-lv);
  color: var(--hx-ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.hx-level-card__value {
  margin-top: 0.75rem;
  font-size: clamp(3rem, 2rem + 4vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--hx-text);
}

.hx-level-card__value small {
  margin-inline-start: 0.5rem;
  font-size: 1.1rem;
  letter-spacing: 0;
  color: var(--hx-lv);
}

.hx-level-card__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hx-lv);
}

.hx-level-card__text {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin-top: 1rem;
  color: var(--hx-muted);
}

.hx-levels__list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-level {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.125rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-sm);
  background-color: var(--hx-surface);
  color: var(--hx-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--hx-ease);
}

.hx-level:hover {
  transform: translateX(0.25rem);
  border-color: color-mix(in srgb, var(--hx-lv) 55%, transparent);
}

.hx-level[aria-pressed="true"] {
  border-color: var(--hx-lv);
  background-color: color-mix(in srgb, var(--hx-lv) 12%, transparent);
  box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--hx-lv) 18%, transparent);
}

.hx-level__name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--hx-lv);
}

.hx-level__bar {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 62.4375rem;
  background-color: rgba(255, 255, 255, 0.06);
}

.hx-level__bar span {
  display: block;
  width: var(--hx-w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hx-lv) 40%, transparent), var(--hx-lv));
  box-shadow: 0 0 0.75rem color-mix(in srgb, var(--hx-lv) 60%, transparent);
}

.hx-level__value {
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ Matrix */

.hx-milestones {
  display: grid;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hx-milestone {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-sm);
  background-color: var(--hx-surface);
  transition: border-color 300ms ease, background-color 300ms ease, transform 300ms var(--hx-ease);
}

.hx-milestone div {
  display: grid;
}

.hx-milestone strong {
  font-size: 1.02rem;
}

.hx-milestone span:not(.hx-milestone__dot) {
  font-size: 0.92rem;
  color: var(--hx-muted);
}

.hx-milestone__dot {
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.35rem;
  border-radius: 0.25rem;
  border: 2px solid var(--hx-line-strong);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.hx-milestone.is-active {
  transform: translateX(0.375rem);
  border-color: rgba(235, 196, 42, 0.5);
  background-color: rgba(235, 196, 42, 0.08);
}

.hx-milestone.is-active .hx-milestone__dot {
  border-color: var(--hx-gold);
  background-color: var(--hx-gold);
  box-shadow: 0 0 0.875rem var(--hx-gold);
}

.hx-ring {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 27.5rem;
}

.hx-ring__stage {
  --hx-r: 42%;
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(235, 196, 42, 0.12), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.08), transparent 72%);
}

.hx-ring__progress {
  position: absolute;
  inset: 17%;
  transform: rotate(-90deg);
}

.hx-ring__track,
.hx-ring__meter {
  fill: none;
  stroke-width: 6;
}

.hx-ring__track {
  stroke: rgba(255, 255, 255, 0.07);
}

.hx-ring__meter {
  stroke: var(--hx-gold);
  stroke-linecap: round;
  stroke-dasharray: 553;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 0.375rem rgba(235, 196, 42, 0.7));
  transition: stroke-dashoffset 400ms var(--hx-ease);
}

.hx-ring__spots {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-spot {
  --hx-i: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13%;
  aspect-ratio: 1;
  margin: -6.5% 0 0 -6.5%;
  transform: rotate(calc(var(--hx-i) * 360deg / 14)) translateY(-320%) rotate(calc(var(--hx-i) * -360deg / 14));
}

.hx-spot span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--hx-line-strong);
  border-radius: 30%;
  background-color: var(--hx-bg-raised);
  color: var(--hx-subtle);
  font-size: clamp(0.7rem, 0.55rem + 0.5vw, 0.95rem);
  font-weight: 800;
  transition: background-color 300ms ease, color 300ms ease, transform 300ms var(--hx-ease), box-shadow 300ms ease;
}

.hx-spot.is-filled span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--hx-gold-hot), var(--hx-gold));
  color: var(--hx-ink);
  box-shadow: 0 0 1.125rem rgba(235, 196, 42, 0.55);
}

.hx-spot.is-new span {
  transform: scale(1.18);
}

.hx-spot.is-unlock span {
  background: linear-gradient(135deg, var(--hx-cyan), var(--hx-violet));
  box-shadow: 0 0 1.375rem rgba(34, 211, 238, 0.7);
}

.hx-spot--2 { --hx-i: 1; }
.hx-spot--3 { --hx-i: 2; }
.hx-spot--4 { --hx-i: 3; }
.hx-spot--5 { --hx-i: 4; }
.hx-spot--6 { --hx-i: 5; }
.hx-spot--7 { --hx-i: 6; }
.hx-spot--8 { --hx-i: 7; }
.hx-spot--9 { --hx-i: 8; }
.hx-spot--10 { --hx-i: 9; }
.hx-spot--11 { --hx-i: 10; }
.hx-spot--12 { --hx-i: 11; }
.hx-spot--13 { --hx-i: 12; }
.hx-spot--14 { --hx-i: 13; }

.hx-ring__center {
  position: absolute;
  inset: 30%;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.hx-ring__count {
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hx-ring__count small {
  font-size: 0.45em;
  color: var(--hx-subtle);
}

.hx-ring__cycle {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hx-cyan);
}

.hx-ring__status {
  min-height: 1.4em;
  font-size: 0.85rem;
  color: var(--hx-muted);
}

.hx-ring__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--hx-subtle);
}

/* ----------------------------------------------------------------- Recycle */

.hx-loop {
  position: relative;
  justify-self: center;
  width: min(100%, 25rem);
  margin: 0;
}

.hx-loop__svg {
  width: 100%;
  height: auto;
}

.hx-loop__halo {
  fill: rgba(167, 139, 250, 0.06);
  stroke: rgba(167, 139, 250, 0.18);
}

.hx-loop__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 14;
}

.hx-loop__dash {
  fill: none;
  stroke: var(--hx-violet);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 60 18;
  transform-origin: 9.375rem 9.375rem;
  animation: hx-spin 14s linear infinite;
  filter: drop-shadow(0 0 0.375rem rgba(167, 139, 250, 0.8));
}

.hx-loop__arrow {
  fill: var(--hx-violet);
}

.hx-loop__orbit {
  transform-origin: 9.375rem 9.375rem;
  animation: hx-spin 9s linear infinite reverse;
}

.hx-loop__dot--a { fill: var(--hx-gold); }
.hx-loop__dot--b { fill: var(--hx-cyan); }
.hx-loop__dot--c { fill: var(--hx-violet); }
.hx-loop__dot--d { fill: var(--hx-green); }

@keyframes hx-spin {
  to { transform: rotate(360deg); }
}

.hx-loop__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(4.5rem, 3.5rem + 4vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--hx-gold-hot);
  text-shadow: 0 0 1.5rem rgba(235, 196, 42, 0.55);
}

.hx-loop__chip {
  position: absolute;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--hx-line-strong);
  border-radius: 62.4375rem;
  background-color: rgba(13, 15, 22, 0.85);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.hx-loop__chip--1 { top: 6%; left: 0; color: var(--hx-gold); }
.hx-loop__chip--2 { top: 44%; right: -2%; color: var(--hx-cyan); }
.hx-loop__chip--3 { bottom: 6%; left: 8%; color: var(--hx-violet); }

.hx-checks {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hx-checks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.hx-checks__icon {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.375rem;
  border-radius: 0.5rem;
  background-color: rgba(52, 211, 153, 0.14);
  color: var(--hx-green);
}

/* ------------------------------------------------------------------- Steps */

.hx-steps {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hx-step;
}

.hx-step {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  transition: transform 300ms var(--hx-ease), border-color 300ms ease;
}

.hx-step:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(34, 211, 238, 0.45);
}

.hx-step__num {
  display: block;
  margin-bottom: 1rem;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--hx-gold-hot), var(--hx-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hx-step__title {
  font-size: 1.15rem;
  font-weight: 800;
}

.hx-step__text {
  margin-top: 0.5rem;
  color: var(--hx-muted);
}

.hx-step__text strong {
  color: var(--hx-gold-hot);
}

.hx-joinbox {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.75rem;
  border: 1px solid rgba(235, 196, 42, 0.35);
  border-radius: var(--hx-radius);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(235, 196, 42, 0.16), transparent 60%),
    var(--hx-bg-raised);
}

.hx-joinbox__title {
  font-size: 1.35rem;
  font-weight: 800;
}

.hx-joinbox__text {
  margin-top: 0.35rem;
  color: var(--hx-muted);
}

/* ------------------------------------------------------------------- Trust */

.hx-trust {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-trust__item {
  padding: 1.5rem;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  background-color: var(--hx-surface);
}

.hx-trust__icon {
  width: 1.875rem;
  height: 1.875rem;
  margin-bottom: 0.9rem;
  color: var(--hx-cyan);
}

.hx-trust__item h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.hx-trust__item p {
  margin-top: 0.4rem;
  color: var(--hx-muted);
}

.hx-stage {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-sm);
  background-color: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  color: var(--hx-muted);
}

.hx-stage strong {
  color: var(--hx-text);
}

.hx-stage__icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  color: var(--hx-subtle);
}

/* --------------------------------------------------------------------- FAQ */

.hx-faq {
  display: grid;
  gap: 0.75rem;
}

.hx-faq__item {
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-sm);
  background-color: var(--hx-surface);
  transition: border-color 200ms ease, background-color 200ms ease;
}

.hx-faq__item[open] {
  border-color: rgba(235, 196, 42, 0.4);
  background-color: rgba(235, 196, 42, 0.05);
}

.hx-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.hx-faq__item summary::-webkit-details-marker {
  display: none;
}

.hx-faq__chevron {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--hx-gold);
  transition: transform 250ms var(--hx-ease);
}

.hx-faq__item[open] .hx-faq__chevron {
  transform: rotate(180deg);
}

.hx-faq__item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--hx-muted);
}

/* --------------------------------------------------------------------- CTA */

.hx-cta {
  padding: 2rem 0 5rem;
}

.hx-cta__inner {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border: 1px solid rgba(235, 196, 42, 0.35);
  border-radius: 1.75rem;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(167, 139, 250, 0.3), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(34, 211, 238, 0.22), transparent 60%),
    linear-gradient(135deg, #15130a, #0d0f16);
  text-align: center;
}

.hx-cta__title {
  max-width: 44rem;
  margin: 0 auto;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.hx-cta__text {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--hx-muted);
}

.hx-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ------------------------------------------------------------------ Footer */

.hx-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--hx-line);
  background-color: #05060a;
}

.hx-footer__top {
  display: grid;
  gap: 2rem;
}

.hx-footer__tagline {
  margin-top: 0.75rem;
  color: var(--hx-subtle);
}

.hx-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  color: var(--hx-muted);
  text-decoration: none;
}

.hx-footer__links a:hover {
  color: var(--hx-gold);
}

.hx-disclaimer {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(240, 168, 60, 0.35);
  border-radius: var(--hx-radius-sm);
  background-color: rgba(240, 168, 60, 0.06);
  font-size: 0.9rem;
  color: var(--hx-muted);
}

.hx-disclaimer__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f0a83c;
}

.hx-disclaimer__icon {
  width: 1.125rem;
  height: 1.125rem;
}

.hx-footer__legal {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--hx-subtle);
}

/* ------------------------------------------------------------ Back to top */

.hx-totop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, var(--hx-gold-hot), var(--hx-gold));
  color: var(--hx-ink);
  box-shadow: 0 0.75rem 1.875rem -0.625rem rgba(235, 196, 42, 0.8);
  transition: opacity 250ms ease, transform 250ms var(--hx-ease), visibility 250ms;
}

.hx-totop__icon {
  width: 1.375rem;
  height: 1.375rem;
  transform: rotate(180deg);
}

.hx-totop.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
}

/* ------------------------------------------------------------- Breakpoints */

@media (min-width: 640px) {
  .home-body {
    --hx-gutter: 2rem;
  }

  .hx-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hx-features,
  .hx-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hx-joinbox {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hx-footer__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .hx-nav,
  .hx-header__actions {
    display: flex;
  }

  .hx-nav {
    margin-inline: auto;
  }

  .hx-header__actions {
    margin-inline-start: 0;
  }

  .hx-burger,
  .hx-header.is-menu-open .hx-mobile {
    display: none;
  }

  .hx-hero {
    padding: 5rem 0 6rem;
  }

  .hx-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .hx-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .hx-levels {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .hx-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .hx-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hx-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .hx-level {
    grid-template-columns: 4.25rem minmax(0, 1fr) auto;
    padding-inline: 0.75rem;
  }

  .hx-hero__actions .hx-btn {
    width: 100%;
  }

  .hx-tag {
    font-size: 0.7rem;
  }
}

/* ---------------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html:has(.home-body) {
    scroll-behavior: auto;
  }

  .hx-eyebrow__pulse::after,
  .hx-tower__beam,
  .hx-float,
  .hx-marquee__track,
  .hx-loop__dash,
  .hx-loop__orbit,
  .home-js .hx-level-card:not([hidden]) {
    animation: none;
  }

  .home-js .hx-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hx-feature:hover,
  .hx-step:hover,
  .hx-btn:hover,
  .hx-level:hover {
    transform: none;
  }
}
