/* ============================================================
   Softler — Fintech Platform
   Static landing, desktop reference 1440px
   ============================================================ */

:root {
  /* Palette (mirrored from Figma) */
  --bg-page: #01030f;
  --bg-hero: #00081b;
  --bg-cta-card: #121423;
  --ink: #ffffff;
  --ink-soft: #eaeaec;
  --ink-card: #f3f3f5;
  --ink-footer-muted: rgba(243, 243, 245, 0.5);
  --mint: #00da9c;
  --mint-light: #81fdda;
  --mint-badge-bg: rgba(0, 218, 156, 0.3);
  --card-border: #005b41;
  --cta-border: rgba(56, 201, 160, 0.8);
  --glass: rgba(255, 255, 255, 0.05);
  --btn-border: rgba(238, 237, 255, 0.1);
  --glow-card: #012319;
  --hero-blend: rgba(2, 158, 112, 0.8);

  /* Gradients */
  --grad-btn: linear-gradient(90deg, #00da9c 60.465%, #81fdda 100%);
  --grad-text: linear-gradient(105.79deg, #00da9c 0%, #81fdda 99.76%);

  /* 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 / radii */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --radius-btn: 12px;
  --radius-card: 21px;
  --radius-cta: 24px;

  /* Shadows */
  --shadow-btn: 0 1px 1.5px rgba(1, 218, 156, 0.05),
                0 5px 2.5px rgba(1, 218, 156, 0.05),
                0 12px 3.5px rgba(1, 218, 156, 0.03),
                0 22px 4.5px rgba(1, 218, 156, 0.01);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 1280px) {
  .container {
    padding-inline: 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 51px;
  min-width: 172px;
  padding: 16px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  transition: filter 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-gradient {
  background-image: var(--grad-btn);
  border: none;
  box-shadow: inset 0 0 0 1px var(--btn-border), var(--shadow-btn);
}

.btn-gradient:hover {
  filter: brightness(1.1);
}

.btn-gradient:active {
  transform: translateY(1px);
}

.btn-card {
  border-color: var(--mint);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--mint);
  padding: 14px 32px;
  min-width: 0;
  font-family: var(--font-manrope);
  letter-spacing: 0;
}

.btn-outline:hover {
  background-color: rgba(0, 218, 156, 0.15);
}

.btn:focus-visible,
.burger:focus-visible,
a:focus-visible {
  outline: 2px solid var(--mint-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible {
  border-radius: var(--radius-btn);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--bg-hero);
  overflow: clip;
}

.hero-lines {
  position: absolute;
  bottom: -569px; /* matches Figma: top 1085 in a 1250px hero */
  left: 50%;
  transform: translateX(-50%);
  width: 2045px;
  height: 734px;
  pointer-events: none;
}

.hero-lines img {
  position: absolute;
  inset: -27.25% -9.78%;
  width: 119.56%;
  height: 154.5%;
  max-width: none;
}

.hero-blend {
  position: absolute;
  inset: 0 0 -70px 0;
  background: var(--hero-blend);
  mix-blend-mode: color;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-planet {
  position: absolute;
  top: 112px;
  left: calc(50% - 113px);
  width: 819px;
  height: 819px;
  object-fit: cover;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.hero-planet-m { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  padding-top: 60px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 15.5px;
  flex-shrink: 0;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 17px;
}

.logo .logo-mark {
  width: 54.5px;
  height: 64.7px;
}

.logo .logo-text {
  width: 86.5px;
  height: 24.4px;
}

.logo .logo-divider {
  width: 1px;
  height: 45px;
}

.logo .logo-tagline {
  width: 145.7px;
  height: 8.25px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 56px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  padding: 10px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 200ms ease;
}

.nav-links a:hover {
  color: var(--mint-light);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(238, 237, 255, 0.2);
  border-radius: 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero main ---------- */
.hero-main {
  position: relative;
  z-index: 10;
  padding-top: 193px;
}

.hero-main h1 {
  max-width: 526px;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink-soft);
}

.btn-hero {
  margin-top: 43px;
}

/* ---------- Hero intro ("Everything you need") ---------- */
.hero-intro {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 72px;
  align-items: flex-start;
  margin-top: 284px;
  padding-bottom: 56px;
  scroll-margin-top: 40px;
}

.gradient-heading {
  flex-shrink: 0;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-intro-text {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-intro-text p + p {
  margin-top: 16px;
}

.hero-intro-text strong {
  font-weight: 700;
}

/* ============================================================
   FORMATS ("Choose your format")
   ============================================================ */
.formats {
  position: relative;
  background: var(--bg-page);
  overflow: hidden;
  padding: 48px 0 48px;
  scroll-margin-top: 0;
}

.formats-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.formats-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.formats-head {
  max-width: 617px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.formats-head h2 {
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink-soft);
}

.formats-head p {
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  min-height: 548px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: var(--glass);
  backdrop-filter: blur(75px);
  -webkit-backdrop-filter: blur(75px);
  overflow: hidden;
  padding: 23px;
  display: flex;
}

/* inner nebula glows (positions mirrored from Figma) */
.card-glow {
  position: absolute;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  filter: blur(131px);
  pointer-events: none;
}

.card-glow.g1 {
  left: -15.6%;
  right: 55.51%;
  top: -85px;
  background: rgba(1, 35, 25, 0.2);
}

.card-glow.g2 {
  left: 74.06%;
  right: -21.7%;
  top: 349px;
  background: var(--glow-card);
}

.card-glow.g3 {
  left: 20.28%;
  right: 14.15%;
  top: 333px;
  background: rgba(1, 35, 25, 0.5);
}

.card-glow.g4 {
  left: 67.22%;
  right: -32.78%;
  top: 164px;
  background: var(--glow-card);
}

.card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.card-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.card-icon-rotated {
  transform: rotate(-90deg);
}

.card-head h3 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink-card);
}

.card-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card-features img {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  margin-top: -1px;
}

.card-features span {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink-card);
}

.btn-card {
  align-self: flex-start;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge {
  position: absolute;
  z-index: 3;
  top: 25px;
  right: 23px;
  padding: 4px 12px;
  border-radius: 5px;
  background: var(--mint-badge-bg);
  color: var(--mint);
  font-size: 16px;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

/* ============================================================
   TECH ("Your payments business. Our technology")
   ============================================================ */
.tech {
  padding: 50px 0 80px;
}

.tech-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.tech-copy {
  flex: 1 1 380px;
  max-width: 492px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tech-copy h2 {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-soft);
}

.tech-copy p {
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tech-visual {
  position: relative;
  flex: 0 1 700px;
  width: 700px;
  max-width: 100%;
  aspect-ratio: 7 / 6;
  border-radius: 20.7px;
  background: var(--glass);
  backdrop-filter: blur(21.5px);
  -webkit-backdrop-filter: blur(21.5px);
  overflow: hidden;
}

/* The collage is authored on a 700x600 canvas; every internal px value is
   written in em with font-size: 1px, so 1em = 1px at desktop size. On mobile
   the font-size is recomputed from the viewport width and the whole collage
   scales proportionally. */
.tech-art {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1px;
  width: 700em;
  height: 600em;
}

.tech-glow {
  position: absolute;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  filter: blur(197em);
  opacity: 0.25;
  pointer-events: none;
}

.tech-glow.orange {
  left: 62.94%;
  right: 0;
  top: -24em;
  background: #ee8019;
}

.tech-glow.dark {
  left: 0;
  right: 37.06%;
  top: -178em;
  background: #00130e;
}

.tech-glow.mint-1 {
  left: 41.43%;
  right: -13.85%;
  top: 260em;
  background: rgba(15, 193, 141, 0.5);
}

.tech-glow.mint-2 {
  left: -11.56%;
  right: 68.92%;
  top: -184em;
  background: #3de4a8;
}

.tech-glow.mint-3 {
  left: 31.08%;
  right: -3.5%;
  top: -376em;
  background: rgba(15, 193, 141, 0.5);
}

.tech-glow.teal {
  left: 83.77%;
  right: 6.49%;
  top: 132em;
  filter: blur(92em);
  opacity: 1;
  background: #029b98;
}

.wire {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

.wire-1 {
  left: 53em;
  top: 151em;
  width: 1219em;
}

.wire-2 {
  left: -527em;
  top: 230em;
  width: 1075em;
  transform: rotate(9.91deg);
}

.wire-3 {
  left: -224em;
  top: 325em;
  width: 1075em;
  transform: rotate(4.94deg);
}

.tech-laptop {
  position: absolute;
  right: -213em;
  top: -90em;
  width: 1179em;
  max-width: none;
  object-fit: cover;
}

.tech-logo3d {
  position: absolute;
  left: 60.43%;
  top: -18em;
  width: 318em;
  max-width: none;
  transform: rotate(-15deg);
}

/* ============================================================
   CTA ("Ready to launch?")
   ============================================================ */
.cta {
  padding: 0 0 64px;
  scroll-margin-top: 40px;
}

.cta-card {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--cta-border);
  border-radius: var(--radius-cta);
  background: var(--bg-cta-card);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 3px;
  left: 0;
  width: 100%;
  height: 926px;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.9s linear;
}

/* dark nebula circles that shade the left side (from Figma) */
.cta-nebula {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-nebula i {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  transform: scaleX(-1);
}

.cta-nebula i:nth-child(1)  { left: -330px; top: 181px;  width: 267px; height: 267px; background: #010610; }
.cta-nebula i:nth-child(2)  { left: -63px;  top: 84px;   width: 453px; height: 453px; background: rgba(1, 6, 16, 0.6); }
.cta-nebula i:nth-child(3)  { left: -289px; top: -178px; width: 453px; height: 453px; background: rgba(1, 6, 16, 0.6); }
.cta-nebula i:nth-child(4)  { left: -90px;  top: -89px;  width: 506px; height: 506px; background: rgba(1, 6, 16, 0.8); }
.cta-nebula i:nth-child(5)  { left: 12px;   top: -150px; width: 621px; height: 621px; background: rgba(1, 6, 16, 0.5); }
.cta-nebula i:nth-child(6)  { left: 323px;  top: -81px;  width: 309px; height: 309px; background: rgba(1, 6, 16, 0.5); }
.cta-nebula i:nth-child(7)  { left: 426px;  top: -156px; width: 229px; height: 229px; background: #010610; }
.cta-nebula i:nth-child(8)  { left: 189px;  top: 228px;  width: 229px; height: 229px; background: #010610; }
.cta-nebula i:nth-child(9)  { left: 94px;   top: -156px; width: 229px; height: 229px; background: #010610; }
.cta-nebula i:nth-child(10) { right: -194px; top: 160px; width: 463px; height: 463px; background: rgba(1, 6, 16, 0.5); }

.cta-blend {
  position: absolute;
  inset: -1px;
  background: var(--mint);
  mix-blend-mode: color;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 47px;
}

.cta-content h2 {
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.cta-content p {
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-page);
}

.footer-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 53px 60px 80px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.logo-footer {
  gap: 20px;
}

.logo-footer .logo-lockup {
  gap: 22px;
}

.logo-footer .logo-mark {
  width: 74.3px;
  height: 88px;
}

.logo-footer .logo-text {
  width: 120.9px;
  height: 31.4px;
}

.logo-footer .logo-divider {
  width: 1px;
  height: 58px;
}

.logo-footer .logo-tagline {
  width: 187.8px;
  height: 10.6px;
}

.footer-nav {
  padding-top: 2px;
  min-width: 213px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav a {
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.03em;
  color: var(--ink-footer-muted);
  transition: color 200ms ease;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 0;
}

.footer-nav a:hover {
  color: var(--ink-card);
}

.footer-bottom {
  position: relative;
  margin-top: 140px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 24px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-legal a,
.footer-copy {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.03em;
  color: var(--ink-card);
}

.footer-legal a {
  transition: color 200ms ease;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
}

.footer-legal a:hover {
  color: var(--mint-light);
}

.footer-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

/* ---------- 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: 1279px) {
  .hero-planet {
    left: auto;
    right: -100px;
    width: 640px;
    height: 640px;
  }

  .hero-main {
    padding-top: 150px;
  }

  .hero-intro {
    margin-top: 180px;
  }
}

@media (max-width: 1199px) {
  .hero-main h1,
  .gradient-heading,
  .formats-head h2,
  .tech-copy h2 {
    font-size: 56px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card {
    min-height: 0;
  }
}

/* ---------- Burger navigation below 1024 ---------- */
@media (max-width: 1023px) {
  .burger {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 16px);
    left: 20px;
    right: 20px;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px;
    background: #010616;
    border: 1px solid rgba(0, 218, 156, 0.35);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 4px;
  }

  .site-nav .btn-outline {
    margin-top: 8px;
    justify-content: center;
  }

  .site-header {
    padding-top: 32px;
  }

  .hero-planet {
    right: -140px;
    top: 120px;
    width: 540px;
    height: 540px;
  }

  .hero-main {
    padding-top: 120px;
  }

  .hero-main h1 {
    font-size: 48px;
  }

  .gradient-heading,
  .formats-head h2,
  .tech-copy h2 {
    font-size: 48px;
  }

  .hero-intro {
    flex-direction: column;
    gap: 32px;
    margin-top: 140px;
  }

  .hero-intro-text br,
  .tech-copy p br {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .tech-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .tech-copy {
    max-width: 617px;
    flex: none;
  }

  .tech-visual {
    flex-basis: auto;
    width: 100%;
    max-width: 700px;
  }

  .cta-content h2 {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  /* keep the nebula bands (left-of-center in the source art) in the crop */
  .hero-bg {
    object-position: 35% 50%;
  }

  .hero-planet { display: none; }

  .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-main {
    padding-top: 150px;
  }

  .hero-main h1 {
    margin-bottom: 0;
  }

  .btn-hero {
    margin-top: 24px;
  }

  .hero-main h1 {
    font-size: 40px;
  }

  .gradient-heading,
  .formats-head h2,
  .tech-copy h2 {
    font-size: 40px;
  }

  .hero-intro {
    margin-top: 96px;
    padding-bottom: 48px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .card-body {
    gap: 32px;
  }

  .card-features {
    gap: 16px;
  }

  .tech {
    padding: 40px 0 56px;
  }

  /* container width is 100vw - 40px here; keep the 7/6 canvas and scale the
     whole collage to it (capped at the native 1px = 1em size) */
  .tech-art {
    font-size: min(1px, calc((100vw - 40px) / 700));
  }

  .cta-content {
    padding: 32px 24px;
  }

  .cta-content h2 {
    font-size: 32px;
  }

  .cta-content h2 br {
    display: none;
  }

  /* the ten dark nebula blobs are laid out for the wide desktop card;
     on the narrow card they stack up and bury the video — ease them off,
     lift the video and aim the framing at the glowing globe */
  .cta-nebula {
    opacity: 0.2;
  }

  .cta-bg {
    filter: brightness(1.3);
    object-position: 62% 40%;
  }

  .footer-inner {
    padding: 48px 20px 56px;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  /* full-size lockup is 448px wide — trim the tagline so it fits down to 480px */
  .logo-footer .logo-tagline {
    width: 160px;
    height: 9px;
  }

  .footer-bottom {
    margin-top: 56px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-copy {
    position: static;
    transform: none;
    text-align: left;
    white-space: normal;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  /* comfortable touch targets for footer links */
  .footer-nav a,
  .footer-legal a {
    padding: 10px 0;
  }
}

@media (max-width: 479px) {
  /* primary actions go full-width on phones, like the hub page */
  .btn-hero {
    width: 100%;
  }

  .hero-main {
    padding-top: 120px;
  }

  .hero-main h1 {
    font-size: 34px;
  }

  .gradient-heading,
  .formats-head h2,
  .tech-copy h2 {
    font-size: 34px;
  }

  .logo .logo-mark {
    width: 42px;
    height: 50px;
  }

  .logo .logo-text {
    width: 72px;
    height: 20px;
  }

  .logo .logo-divider,
  .logo .logo-tagline {
    display: none;
  }

  .logo-footer .logo-divider,
  .logo-footer .logo-tagline {
    display: inline-block;
  }

  /* footer lockup at desktop size overflows 375px — scale it down */
  .logo-footer {
    gap: 12px;
  }

  .logo-footer .logo-lockup {
    gap: 14px;
  }

  .logo-footer .logo-mark {
    width: 48px;
    height: 56.8px;
  }

  .logo-footer .logo-text {
    width: 86px;
    height: 22.3px;
  }

  .logo-footer .logo-divider {
    height: 40px;
  }

  .logo-footer .logo-tagline {
    width: 134px;
    height: 7.6px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .btn-card,
  .cta-content .btn {
    width: 100%;
    align-self: stretch;
  }

  .btn-hero {
    margin-top: 32px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- logo flip on hover ---------- */
header .logo { 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 .logo .logo-text,
.logo-intro header .logo .logo-divider,
.logo-intro header .logo .logo-tagline { opacity: 0; transition: opacity 0.5s ease; }
.logo-intro header .logo .logo-divider { transition-delay: 0.22s; }
.logo-intro header .logo .logo-tagline { transition-delay: 0.44s; }
.logo-intro header .logo .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(0, 218, 156, 0.16), transparent 70%),
    radial-gradient(56% 34% at 62% 42%, rgba(0, 218, 156, 0.09), transparent 70%),
    radial-gradient(42% 30% at 88% 80%, rgba(129, 253, 218, 0.12), transparent 72%);
}
.formats.has-waves .formats-bg { display: none; }

/* ---------- orbiting stars in the hero ---------- */
.stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-planet-video {
  position: absolute;
  mix-blend-mode: lighten;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 45.2% 45.2% at 49.8% 47.6%, #000 76%, transparent 100%);
  mask-image: radial-gradient(ellipse 45.2% 45.2% at 49.8% 47.6%, #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;
  }
}
