/* ============================================================
   Codectra — Payment Hub landing
   Source: Figma Z7ms1qCbJp6Qct4uDmMqHD / node 178:612 (1440px ref)
   ============================================================ */

:root {
  /* Palette — exact tokens from the Figma output */
  --color-bg: #01030f;
  --color-hero-bg: #00081b;
  --color-accent: #f47d0d;
  --color-accent-light: #ffc691;
  --color-accent-light-2: #ffb065;
  --color-heading: #eaeaec;
  --color-text-bright: #f3f3f5;
  --color-text-muted: rgba(243, 243, 245, 0.6);
  --color-text-dim: rgba(243, 243, 245, 0.5);
  --color-card-bg: rgba(255, 255, 255, 0.05);
  --color-card-border: #563611;
  --color-cta-bg: #121423;
  --color-cta-border: rgba(244, 125, 13, 0.2);
  --color-btn-border: rgba(238, 237, 255, 0.1);
  --glow-orange: #ee8019;
  --glow-brown: #b35215;
  --glow-brown-50: rgba(179, 82, 21, 0.5);
  --glow-deep: #161102;
  --glow-umber: #2b1500;

  /* Type */
  --font-sans: "Funnel Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Funnel Display", "Funnel Sans", "Segoe UI", system-ui, sans-serif;
  --font-manrope: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;

  /* Radii */
  --radius-btn: 12px;
  --radius-card: 21px;
  --radius-cta: 24px;

  --transition: 200ms ease;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background-color: var(--color-bg);
  color: var(--color-text-bright);
  overflow-x: clip;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1280px; /* 1240 content + 2 x 20 padding */
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
  cursor: pointer;
  transition: filter var(--transition), background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn:focus-visible {
  border-radius: var(--radius-btn);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  width: 172px;
  height: 51px;
  padding: 16px;
  letter-spacing: -0.32px;
  border: none;
  background-image: linear-gradient(90deg, #f47d0d 0%, #ffc691 100%);
  box-shadow:
    inset 0 0 0 1px var(--color-btn-border),
    0 4px 4.5px rgba(248, 151, 61, 0.08),
    0 16px 8px rgba(248, 151, 61, 0.07),
    0 35px 10.5px rgba(248, 151, 61, 0.04),
    0 63px 12.5px rgba(248, 151, 61, 0.01);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-cta {
  background-image: linear-gradient(90deg, #f47d0d 52.907%, #ffb065 100%);
  box-shadow:
    0 1px 1.5px rgba(128, 126, 249, 0.05),
    0 5px 2.5px rgba(128, 126, 249, 0.05),
    0 12px 3.5px rgba(128, 126, 249, 0.03),
    0 22px 4.5px rgba(128, 126, 249, 0.01);
}

.btn-outline {
  padding: 14px 32px;
  border: 1px solid var(--color-accent);
  background: transparent;
  font-family: var(--font-manrope);
}

.btn-outline:hover {
  background-color: rgba(244, 125, 13, 0.15);
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 60px;
  z-index: 100; /* above card backdrop-filter/blend stacking contexts — burger panel must cover page content */
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 17.5px;
}

.site-header .brand-mark {
  width: 55.3px;
  height: 65.6px;
}

.site-header .brand-word {
  width: 129.4px;
  height: 24.8px;
}

.site-header .brand-divider {
  width: 1px;
  height: 45.6px;
}

.site-header .brand-tagline {
  width: 148.3px;
  height: 23.2px;
}

.hero-planet-m { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 56px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.16px;
  color: #ffffff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--color-accent-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(244, 125, 13, 0.5);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--color-text-bright);
  transition: transform var(--transition), opacity var(--transition);
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 1071px;
  display: flex;
  flex-direction: column;
  overflow: clip;
  background-color: var(--color-hero-bg);
  background-image: url("../assets/bg-hero.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-inner {
  padding-top: 317px;
}

.hero-title {
  max-width: 526px;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -2.56px;
  color: var(--color-heading);
  margin-bottom: 43px;
}

.hero-market {
  margin-top: auto;
  padding-top: 80px;
  padding-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 72px;
}

.market-title {
  font-weight: 400;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -2.56px;
  white-space: nowrap;
  background-image: linear-gradient(103.47deg, #f47d0d 1.5%, #ffc691 99.76%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.market-text {
  max-width: 683px;
  font-size: 18px;
  letter-spacing: -0.18px;
  color: #ffffff;
}

/* ---------- How it works ---------- */
.how-it-works {
  position: relative;
  overflow: clip;
  padding: 48px 0 49px;
  background-color: var(--color-bg);
  background-image: url("../assets/bg-how-it-works.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.section-title {
  font-weight: 400;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -2.56px;
  color: var(--color-heading);
}

.section-subtitle {
  font-size: 18px;
  letter-spacing: -0.18px;
  color: #ffffff;
  max-width: 478px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 20px;
}

.card {
  position: relative;
  min-height: 306px;
  border-radius: var(--radius-card);
  border: 0.873px solid var(--color-card-border);
  background-color: var(--color-card-bg);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  overflow: clip;
}

.glow {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
}

.card .glow-1 {
  width: 60%;
  left: -23%;
  top: -92px;
  background-color: rgba(244, 125, 13, 0.2);
}

.card .glow-2 {
  width: 48%;
  left: 74%;
  top: 349px;
  background-color: var(--glow-brown);
}

.card .glow-3 {
  width: 65%;
  left: 20%;
  top: 333px;
  background-color: var(--glow-brown-50);
}

.card .glow-4 {
  width: 65%;
  left: 67%;
  top: 164px;
  background-color: var(--glow-deep);
}

.card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 23px;
}

.card-icon {
  width: 42px;
  height: 42px;
}

.card-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.72px;
  color: var(--color-text-bright);
}

.card-text {
  margin-top: -8px; /* title/text gap = 8px inside the 16px column gap */
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.54px;
  color: var(--color-text-muted);
}

/* ---------- What the partner gets ---------- */
.partner {
  padding-top: 48px;
}

.partner-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.partner-left {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 492px;
  flex-shrink: 0;
}

.partner-title {
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -2.56px;
  color: var(--color-heading);
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 7px;
  background-color: var(--color-accent);
}

.benefit-icon img {
  width: 20px;
  height: 20px;
}

.benefit-text {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.96px;
  color: var(--color-text-bright);
}

/* Glass visual card with MacBook */
.partner-visual {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 700 / 600;
  border-radius: 20.7px;
  background-color: var(--color-card-bg);
  -webkit-backdrop-filter: blur(21.5px);
  backdrop-filter: blur(21.5px);
  overflow: clip;
}

.pv-glow {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.pv-glow-orange {
  width: 37%;
  left: 62.9%;
  top: -24px;
  background-color: var(--glow-orange);
  opacity: 0.25;
  filter: blur(197px);
}

.pv-glow-dark {
  width: 63%;
  left: 0;
  top: -178px;
  background-color: var(--glow-umber);
  opacity: 0.25;
  filter: blur(197px);
}

.pv-glow-center {
  width: 42.4%;
  left: 29.6%;
  top: 26.7%;
  background-color: rgba(244, 125, 13, 0.5);
  filter: blur(229px);
}

.pv-orbit-1 {
  position: absolute;
  left: 8.2%;
  top: 19.2%;
  width: 174%;
  max-width: none;
}

.pv-macbook {
  position: absolute;
  right: -30.5%;
  top: -15%;
  width: 168.4%;
  max-width: none;
  aspect-ratio: 1179 / 884;
  object-fit: cover;
}

.pv-badge-glow {
  position: absolute;
  right: 13.3%;
  top: 20%;
  width: 13.6%;
  aspect-ratio: 1;
  border-radius: 26px;
  background-image: linear-gradient(to top, #f47d0d, #ffc691);
  filter: blur(33px);
}

.pv-badge {
  position: absolute;
  right: -4.4%;
  top: -1.4%;
  width: 45.3%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-badge img {
  width: 81.6%;
  transform: rotate(-15deg);
}

.pv-orbit-wrap {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.pv-orbit-wrap-2 {
  right: 38%;
  top: 51.3%;
  width: 121%;
  aspect-ratio: 848 / 540;
}

.pv-orbit-wrap-2 .pv-orbit-img {
  width: 127%;
  max-width: none;
  transform: rotate(9.91deg);
}

.pv-orbit-wrap-3 {
  right: -3.5%;
  top: 72.5%;
  width: 117.3%;
  aspect-ratio: 821 / 476;
}

.pv-orbit-wrap-3 .pv-orbit-img {
  width: 131%;
  max-width: none;
  transform: rotate(4.94deg);
}

/* ---------- CTA ---------- */
.cta-section {
  margin-top: 44px;
}

.cta-card {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-cta);
  border: 1px solid var(--color-cta-border);
  background-color: var(--color-cta-bg);
  overflow: clip;
}

.cta-bg {
  position: absolute;
  left: -6.4%;
  top: -51px;
  width: 111.8%;
  max-width: none;
  transition: opacity 0.9s linear;
}

.cta-shade {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.cta-shade-1 {
  width: 37%;
  left: -7.3%;
  top: -89px;
  background-color: rgba(1, 6, 16, 0.8);
}

.cta-shade-2 {
  width: 27%;
  left: -5%;
  top: 84px;
  background-color: rgba(1, 6, 16, 0.6);
}

.cta-tint {
  position: absolute;
  inset: 0;
  background-color: var(--color-accent);
  mix-blend-mode: color;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 47px;
}

.cta-title {
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -1.92px;
  color: #ffffff;
}

.cta-subtitle {
  font-size: 18px;
  letter-spacing: -0.18px;
  color: #ffffff;
}

.cta-content .btn {
  margin-top: 8px; /* 24px block gap vs 16px text gap */
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 104px;
  padding: 53px 0 81px;
  background-color: var(--color-bg);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.brand-footer {
  gap: 20.3px;
}

.brand-footer .brand-lockup {
  gap: 22.2px;
}

.brand-footer .brand-mark {
  width: 70px;
  height: 83px;
}

.brand-footer .brand-word {
  width: 163.9px;
  height: 31.3px;
}

.brand-footer .brand-divider {
  width: 1px;
  height: 57.8px;
}

.brand-footer .brand-tagline {
  width: 151.4px;
  height: 28.4px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 2px;
}

.footer-nav-link {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.54px;
  color: var(--color-text-dim);
  transition: color var(--transition);
}

.footer-nav-link:hover {
  color: var(--color-text-bright);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 145px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-legal-link {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.48px;
  color: var(--color-text-bright);
  white-space: nowrap;
  transition: color var(--transition);
}

.footer-legal-link:hover {
  color: var(--color-accent-light);
}

.footer-copy {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.48px;
  color: var(--color-text-bright);
  text-align: center;
}

/* ---------- scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1200px) {
  .hero-title,
  .section-title,
  .market-title,
  .partner-title {
    font-size: 56px;
    letter-spacing: -2.24px;
  }

  .hero {
    min-height: 960px;
  }

  .hero-inner {
    padding-top: 270px;
  }

  .cta-title {
    font-size: 42px;
    letter-spacing: -1.68px;
  }

  .partner-left {
    max-width: 440px;
  }

  .benefit-text {
    font-size: 22px;
    letter-spacing: -0.66px;
  }
}

@media (max-width: 1023px) {
  .site-header {
    padding-top: 24px;
  }

  .site-header .brand-mark {
    width: 46px;
    height: 54.6px;
  }

  .site-header .brand-word {
    width: 110px;
    height: 21.1px;
  }

  .site-header .brand-divider {
    height: 38px;
  }

  .site-header .brand-tagline {
    width: 124px;
    height: 19.4px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(244, 125, 13, 0.3);
    background-color: #040a1c;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-link {
    font-size: 18px;
  }

  .btn-outline {
    justify-content: center;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding-top: 200px;
  }

  .hero-market {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-top: 96px;
    padding-bottom: 64px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    min-height: 0;
  }

  .partner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-left {
    max-width: 620px;
  }

  .partner-visual {
    align-self: center;
  }

  .footer-bottom {
    margin-top: 96px;
  }
}

@media (max-width: 767px) {
  .hero-title,
  .section-title,
  .market-title,
  .partner-title {
    font-size: 44px;
    letter-spacing: -1.76px;
  }

  .market-title {
    white-space: normal;
  }

  .hero {
    /* phones: show only the clean dark left side of the art; the planet gets
       its own stage between the headline and the CTA button */
    background-image: linear-gradient(rgba(1, 3, 15, 0.35), rgba(1, 3, 15, 0.15) 60%, rgba(1, 3, 15, 0) 90%), url("../assets/bg-hero.jpg");
    background-position: center top, 0% top;
  }

  .hero-planet-m {
    display: block;
    width: 116%;
    max-width: none;
    margin: 4px -8% 0;
    mix-blend-mode: lighten;
    -webkit-mask-image: radial-gradient(ellipse 72% 66% at 50% 48%, #000 55%, transparent 96%);
    mask-image: radial-gradient(ellipse 72% 66% at 50% 48%, #000 55%, transparent 96%);
  }

  .hero-title { margin-bottom: 0; }
  .hero-inner .btn-primary { margin-top: 24px; }

  /* soften the bright planets behind the CTA copy */
  .cta-bg { filter: brightness(0.6); }

  .hero-inner {
    padding-top: 170px;
  }

  .hero-title {
    margin-bottom: 32px;
  }

  .hero-market {
    gap: 24px;
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .how-it-works {
    padding: 56px 0 64px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .partner {
    padding-top: 56px;
  }

  .partner-inner {
    gap: 32px;
  }

  .partner-left {
    gap: 32px;
  }

  .cta-section {
    margin-top: 56px;
  }

  .cta-card {
    min-height: 0; /* content-driven height — no empty band under the button */
  }

  .cta-title {
    font-size: 32px;
    letter-spacing: -1.28px;
  }

  .cta-title br,
  .partner-title br {
    display: none;
  }

  .cta-content {
    padding: 32px 24px;
  }

  .cta-bg {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* zoom the framing onto the central planet so the narrow card
       doesn't cram the whole planetary family into view; anchor on the
       dark space up-left of the planet so its lit arc settles bottom-right
       and the text sits on clean sky */
    object-position: 24% 28%;
    transform: scale(1.55);
    transform-origin: 24% 28%;
  }

  .benefit-text {
    font-size: 20px;
    letter-spacing: -0.6px;
  }

  .glow,
  .pv-glow {
    filter: blur(70px);
  }

  .site-footer {
    margin-top: 72px;
    padding: 48px 0 56px;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  /* 44px touch targets for footer links (line-height stays 24px on desktop) */
  .footer-nav {
    gap: 0;
  }

  .footer-nav-link,
  .footer-legal-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-legal {
    gap: 0 24px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 20px;
    margin-top: 64px;
  }

  .footer-copy {
    text-align: left;
  }

  .footer-spacer {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header .brand-divider,
  .site-header .brand-tagline {
    display: none;
  }

  .brand-footer .brand-divider,
  .brand-footer .brand-tagline {
    display: none;
  }
}

@media (max-width: 479px) {
  /* primary actions go full-width on phones, like the hub page */
  .hero .btn-primary,
  .cta-content .btn {
    width: 100%;
  }

  .hero-title,
  .section-title,
  .market-title,
  .partner-title {
    font-size: 36px;
    letter-spacing: -1.44px;
  }

  .hero-title br {
    display: none;
  }

  .hero-inner {
    padding-top: 150px;
  }

  .cta-title {
    font-size: 28px;
    letter-spacing: -1.12px;
  }

  .card-body {
    padding: 20px;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 0 20px; /* rows are already 44px tall — no extra row gap needed */
  }

  .brand-footer .brand-mark {
    width: 52px;
    height: 61.7px;
  }

  .brand-footer .brand-word {
    width: 130px;
    height: 24.9px;
  }

  .brand-footer .brand-divider {
    height: 44px;
  }

  .brand-footer .brand-tagline {
    width: 118px;
    height: 22.1px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- logo flip on hover ---------- */
header .brand { perspective: 360px; }
.logo-coin {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  transform-style: preserve-3d;
}
.logo-coin .logo-coin__layer {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}
.logo-coin.is-flipping .logo-coin__layer { opacity: 1; }
.logo-coin .logo-coin__back { filter: brightness(0.5) saturate(0.85); }
@keyframes logo-flip {
  to { transform: rotateY(-1turn); }
}
.logo-coin.is-flipping { animation: logo-flip 0.9s cubic-bezier(0.45, 0.05, 0.3, 1); }

/* intro: wordmark hidden from the first frame (html.logo-intro is set in <head>), then fades in */
.logo-intro header .brand .brand-word,
.logo-intro header .brand .brand-divider,
.logo-intro header .brand .brand-tagline { opacity: 0; transition: opacity 0.5s ease; }
.logo-intro header .brand .brand-divider { transition-delay: 0.22s; }
.logo-intro header .brand .brand-tagline { transition-delay: 0.44s; }
.logo-intro header .brand .is-on { opacity: 1; }

/* ---------- animated waves background ---------- */
.waves-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 30% at 12% 22%, rgba(244, 125, 13, 0.16), transparent 70%),
    radial-gradient(56% 34% at 62% 42%, rgba(244, 125, 13, 0.09), transparent 70%),
    radial-gradient(42% 30% at 88% 80%, rgba(255, 198, 145, 0.12), transparent 72%);
}
.how-it-works.has-waves { background-image: none; }
.how-it-works.has-waves > :not(.waves-canvas) { position: relative; z-index: 1; }

/* ---------- orbiting stars in the hero ---------- */
.stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero.has-stars .hero-inner { position: relative; z-index: 1; }

/* ---------- wide screens: seamlessly extended hero art at design scale ---------- */
@media (min-width: 1441px) {
  .hero {
    background-image: url("../assets/bg-hero-wide.jpg");
    background-size: auto 100%;
    background-position: center top;
  }
}

.hero-planet-video {
  position: absolute;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 44.3% 44.3% at 49.9% 47.8%, #000 76%, transparent 100%);
  mask-image: radial-gradient(ellipse 44.3% 44.3% at 49.9% 47.8%, #000 76%, transparent 100%);
}
.hero--live .hero-planet-video { opacity: 1; }
.hero-planet-video-wrap { display: none; }
@media (max-width: 767px) {
  .hero-planet-video { display: none; }
  .hero-planet-video-wrap {
    position: relative;
    width: 116%;
    max-width: none;
    margin: 4px -8% 0;
    aspect-ratio: 1100 / 897;
    overflow: hidden;
    mix-blend-mode: lighten;
    -webkit-mask-image: radial-gradient(ellipse 70% 58% at 50% 48%, #000 45%, transparent 86%);
    mask-image: radial-gradient(ellipse 70% 58% at 50% 48%, #000 45%, transparent 86%);
  }
  .hero-planet-video-wrap.is-on { display: block; }
  .hero-planet-video-wrap video {
    display: block;
    position: static;
    width: 100% !important;
    height: 100% !important;
    left: auto !important;
    top: auto !important;
    object-fit: cover;
    transform: scale(1.05);
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (min-width: 768px) {
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../assets/bg-hero-live.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
  }
  .hero--live::before { opacity: 1; }
  
  .hero .hero-market { position: relative; z-index: 1; }
}
@media (min-width: 1441px) {
  .hero::before {
    background-image: url("../assets/bg-hero-wide-live.jpg");
    background-size: auto 100%;
  }
}
