/* Instrument Sans, self-hosted (was Google Fonts; SIL OFL 1.1, see assets/fonts/OFL.txt) */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   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: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-manrope: "Instrument Sans", "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.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

p { text-wrap: pretty; }

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

.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.005em;
  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;
  /* starfield fades out before the next section instead of ending on a hard edge */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 240px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 240px), transparent);
}

.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: 93.8px;
  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: 15px;
  font-weight: 500;
  letter-spacing: 0;
  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(0, 218, 156, 0.5);
  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;
  letter-spacing: -0.03em;
  color: var(--ink-soft);
}

.hero-lead {
  max-width: 480px;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-card);
  text-wrap: pretty;
}

.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: 54px;
  line-height: 1.04;
  letter-spacing: -0.028em;
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

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

/* intro: one lead line + scannable cells instead of a wall of text */
.intro-lead {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.intro-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* same frosted glass + inner green glow as the format cards below */
.intro-cell {
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background:
    radial-gradient(120% 95% at 100% 110%, rgba(0, 91, 65, 0.3), transparent 62%),
    radial-gradient(90% 80% at 0% 0%, rgba(1, 35, 25, 0.4), transparent 70%),
    var(--glass);
  backdrop-filter: blur(75px);
  -webkit-backdrop-filter: blur(75px);
}

.intro-cell--wide { grid-column: 1 / -1; }

.intro-cell h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-card);
}

.intro-chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intro-chips li {
  padding: 6px 14px;
  border: 1px solid rgba(0, 218, 156, 0.45);
  border-radius: 999px;
  background: rgba(0, 218, 156, 0.08);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-card);
}

.intro-cell-note {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(243, 243, 245, 0.75);
}

.intro-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-card);
}

.intro-list li::before {
  content: "";
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  background: url("../assets/icon-check.svg") center / contain no-repeat;
}

.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.intro-stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.intro-stat__num {
  flex-shrink: 0;
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.028em;
  padding-bottom: 0.08em;
  background-image: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-stat__label {
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-card);
}

.intro-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 218, 156, 0.2);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(243, 243, 245, 0.75);
}

/* ============================================================
   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: 54px;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink-soft);
}

.formats-head p {
  font-size: 18px;
  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: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-card);
}

/* what the package is, under its name */
.card-sub {
  margin-top: -8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--mint);
}

.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: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  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: 13px;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================================
   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: 54px;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink-soft);
}

.tech-copy p {
  font-size: 18px;
  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: 54px;
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.cta-content p {
  font-size: 18px;
  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: 16px;
  line-height: 24px;
  letter-spacing: 0;
  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: 14px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  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: 48px;
  }

  .hero-main h1 {
    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: 80px;
  }

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

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

  .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: 42px;
  }
}

@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: 64px;
  }

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

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

  .hero-main h1 {
    font-size: clamp(34px, 9.6vw, 40px);
  }

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

  .hero-intro-text,
  .formats-head p,
  .tech-copy p,
  .cta-content p {
    font-size: 16px;
  }

  .card-head h3 {
    font-size: 22px;
  }

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

  .intro-lead,
  .hero-lead {
    font-size: 18px;
  }

  .hero-lead {
    margin-top: 16px;
  }

  .intro-grid,
  .intro-stats {
    grid-template-columns: 1fr;
  }

  .intro-cell {
    padding: 20px;
  }

  .intro-cell h3 {
    font-size: 19px;
  }

  .intro-stat__num {
    font-size: 44px;
    min-width: 64px;
  }

  .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 150px;
  }

  .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: contrast(1.08) saturate(1.1);
    object-position: 62% 30%;
    top: 170px;
  }

  /* keep the copy on the dark sky: the globe sits under the button, a soft shade covers the top */
  .cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(1, 6, 16, 0.92) 0%, rgba(1, 6, 16, 0.72) 42%, rgba(1, 6, 16, 0) 72%);
  }

  .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: 64px;
  }

  .hero-main h1 {
    font-size: clamp(34px, 9.6vw, 40px);
  }

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

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

  .logo .logo-text {
    width: 77px;
    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-3d {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.hero-planet-video-wrap { display: none; }
@media (max-width: 767px) {
  .hero-planet-video-wrap {
    position: relative;
    width: 116%;
    max-width: none;
    margin: 4px -8% 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }
  .hero-planet-video-wrap.is-on { display: block; }
  /* static crop stays visible until the live planet is ready */
  .hero-planet-video-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../assets/hero-planet-mobile.jpg") center / cover no-repeat;
    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%);
    transition: opacity 0.8s ease;
  }
  .hero-planet-video-wrap.is-live::before { opacity: 0; }
  .hero-planet-video-wrap .hero-planet-3d {
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%),
      linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%),
      linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-composite: intersect;
  }
}

/* ---------- live planet expected (class set in <head> before the first paint) ----------
   The baked-in planet art never shows up: the page opens on the planet-free backdrop and the
   live planet fades in. The <head> script drops the class again if the planet cannot run. */
@media (min-width: 768px) {
  .planet-live .hero-planet { visibility: hidden; }
}
@media (max-width: 767px) {
  .planet-live .hero-planet-m { display: none; }
  .planet-live .hero-planet-video-wrap { display: block; }
  .planet-live .hero-planet-video-wrap::before { display: none; }
}

/* smallest phones (320px): the footer lockup still pokes 8px past the screen edge */
@media (max-width: 359px) {
  .logo-footer .logo-tagline {
    width: 122px;
    height: 6.9px;
  }
}

.nowrap { white-space: nowrap; }

/* Big Family signature (bottom-right corner of the footer) */
.footer-bf {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  opacity: 0.72;
  transition: opacity 200ms ease;
}
.footer-bf:hover,
.footer-bf:focus-visible { opacity: 1; }
.footer-bf img { display: block; width: auto; height: 28px; }
/* three cells like the other sites: legal | copyright centred | signature */
@media (min-width: 768px) {
  .footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .footer-copy { position: static; transform: none; }
  .footer-bf { justify-self: end; }
}
@media (max-width: 767px) {
  .footer-copy { order: 1; }
}

/* short laptop windows (< ~675px tall): lift the hero copy so the CTA stays on the first screen,
   never closer than 40px to the header; tall screens keep the design position (shift = 0) */
@media (min-width: 1025px) {
  .hero-main { translate: 0 clamp(-179px, 100vh - 719px, 0px); }
}

/* small laptops (1024-1140): the tagline steps aside so "Contact us" stays on one line */
@media (min-width: 1024px) and (max-width: 1140px) {
  .site-header .logo .logo-divider,
  .site-header .logo .logo-tagline { display: none; }
}
.site-header .btn { white-space: nowrap; }
