/* ============================================================
   Big Family — Fintech Software Solutions
   Design reference: Figma "landing big family", frame web 1440
   ============================================================ */

:root {
  /* palette */
  --bg-page: #01030f;
  --bg-hero: #00081b;
  --text: #f3f3f5;
  --text-bright: #eaeaec;
  --text-muted: #8c8c98;
  --violet: #8a87f9;
  --violet-deep: #1d17f3;

  /* type */
  --font-main: "Funnel Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  --font-btn: "Manrope", "Segoe UI", system-ui, sans-serif;

  /* layout */
  --container: 1240px;
  --gutter: 20px;
  --radius-btn: 12px;
  --radius-card: 16px;
  --speed: 0.2s;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--violet-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- background bands ---------- */

.band { position: relative; overflow: clip; }

.band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.band__bg > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.band > *:not(.band__bg) { position: relative; z-index: 1; }

.band__hue {
  position: absolute;
  inset: 0;
  background: #827ff9;
  mix-blend-mode: hue;
}

/* ---------- shared type ---------- */

.eyebrow {
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}
.eyebrow--violet { color: var(--violet); }

.section-title {
  font-weight: 400;
  font-size: clamp(38px, 3.2vw + 18px, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-bright);
}

.section-text {
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 478px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 51px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #fff;
  cursor: pointer;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, background-color var(--speed) ease, border-color var(--speed) ease;
}
.btn img { width: 18px; height: 18px; }
.btn { white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gradient {
  background: linear-gradient(270deg, var(--violet) 0%, var(--violet-deep) 100%);
  /* inset ring instead of a translucent border: crisp on the rounded corners */
  box-shadow:
    inset 0 0 0 1px rgba(238, 237, 255, 0.16),
    0 16px 8px rgba(82, 77, 246, 0.07),
    0 4px 4.5px rgba(82, 77, 246, 0.08);
}
.btn--gradient:hover { box-shadow: inset 0 0 0 1px rgba(238, 237, 255, 0.22), 0 18px 20px rgba(82, 77, 246, 0.25); }

.btn--outline {
  border: 1px solid var(--violet);
  background: transparent;
  font-family: var(--font-btn);
}
.btn--outline:hover { background: rgba(138, 135, 249, 0.12); }

.btn--panel {
  border: 1px solid var(--violet);
  background: #0b061e;
  font-family: var(--font-btn);
  box-shadow:
    0 15px 4.5px rgba(85, 81, 246, 0.08),
    0 7px 3.5px rgba(85, 81, 246, 0.13),
    0 2px 2px rgba(85, 81, 246, 0.15);
}
.btn--panel:hover { background: #150e2f; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  transition: gap var(--speed) ease;
}
.link-more img { width: 18px; height: 18px; }
.link-more:hover { gap: 8px; }
.link-more { color: #a19ff9; }

/* ---------- header ---------- */

.band--hero { background: var(--bg-hero); }

.site-header { padding-top: 44px; }
.band > .site-header { z-index: 30; }
.site-header .container { max-width: 1380px; }
.site-nav__list a { white-space: nowrap; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.logo__mark { width: 54px; height: 65px; }
.logo__text { display: flex; align-items: center; gap: 17px; }
.logo__name { width: 145px; }
.logo__divider { height: 45px; width: 2px; }
.logo__subtitle { width: 146px; }

.site-nav { display: flex; align-items: center; gap: 60px; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: #fff;
  transition: color var(--speed) ease;
}
.site-nav__list a:hover { color: var(--violet); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 1px solid rgba(138, 135, 249, 0.4);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--speed) ease, opacity var(--speed) ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero__inner {
  position: relative;
  padding-top: 170px;
  padding-bottom: 150px;
}

.hero__copy { max-width: 526px; }

.hero__title {
  font-weight: 400;
  font-size: clamp(42px, 3.2vw + 18px, 64px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-bright);
  margin-top: 24px;
}

.text-gradient {
  background: linear-gradient(270deg, var(--violet) 0%, var(--violet-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 24px;
  max-width: 478px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.hero__copy .btn { margin-top: 43px; }

.hero__planet,
.products__globes-mobile { display: none; }

.hero__labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__label {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}
.hero__label img { width: 13px; height: 13px; margin-top: 3px; }
.hero__label--1 { left: 84.2%; top: 100px; }
.hero__label--2 { left: 91.6%; top: 170px; }
.hero__label--3 { left: 95.7%; top: 240px; }
.hero__label--4 { left: 93.5%; top: 310px; }

/* ---------- infrastructure ---------- */

.infra { padding-bottom: 120px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.section-head .section-title { max-width: 526px; }

.infra__grid {
  margin-top: 47px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 19px;
}

.infra-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 185px;
  padding: 19px;
  border-radius: var(--radius-card);
  border: 1px solid;
}
.infra-card {
  border-color: rgba(138, 135, 249, 0.25);
  background: linear-gradient(270deg, rgba(138, 135, 249, 0.07) 0%, rgba(48, 46, 144, 0.05) 100%);
}

.infra-card__icon { width: 32px; height: 32px; flex-shrink: 0; }
.infra-card__icon--tall { width: 26px; height: 33px; }

.infra-card__body h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.infra-card__body p {
  margin-top: 9px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-muted);
}

/* ---------- products ---------- */

.products {
  position: relative;
  overflow: hidden;
  background: var(--bg-page);
}
.products > .band__bg { z-index: 0; }
.products__inner { position: relative; z-index: 1; }

.products__globes {
  position: absolute;
  top: 60px;
  right: 0;
  width: min(1029px, 72vw);
  mix-blend-mode: lighten;
  pointer-events: none;
}

.products__inner { padding-top: 64px; }

.products__copy {
  position: relative;
  max-width: 526px;
}
.products__copy .section-title { margin-top: 16px; }

.products__sub {
  margin-top: 16px;
  max-width: 238px;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: #fff;
}
.products__copy .btn { margin-top: 48px; }

.products__note {
  margin-top: 60px;
  max-width: 333px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* products slider */

.slider {
  position: relative;
  margin-top: 150px;
  margin-bottom: 72px;
  border-radius: 21px;
  border: 1px solid rgba(161, 159, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.slider__glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.slider__glow--a { background: radial-gradient(circle, rgba(138, 135, 249, 0.16) 0%, rgba(138, 135, 249, 0) 65%); right: -5%; top: -220px; }
.slider__glow--b { background: radial-gradient(circle, rgba(92, 88, 246, 0.16) 0%, rgba(92, 88, 246, 0) 65%); left: -5%; top: -260px; }

.slider__slides { display: grid; }

.slide {
  grid-area: 1 / 1;
  position: relative;
  min-height: 401px;
  padding: 44px;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
  z-index: 1;
}

/* the incoming slide glides in from the direction of travel, over the fading one */
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(44px); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-44px); }
}
.slide--in-right.is-active,
.slide--in-left.is-active { animation: slide-in-right 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
.slide--in-left.is-active { animation-name: slide-in-left; }

.slide__mac {
  position: absolute;
  left: 20%;
  top: -90px;
  width: 932px;
  max-width: none;
  pointer-events: none;
}

.slide__orb {
  position: absolute;
  right: 13%;
  top: -10px;
  width: 200px;
  transform: rotate(-15deg);
  pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(54, 49, 230, 0.45));
}

.slide__copy {
  position: relative;
  max-width: 453px;
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}

.slide__title {
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.slide__lead {
  margin-top: 14px;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.slide__text {
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.slide__copy .btn { margin-top: 21px; }

.btn--slide {
  background: linear-gradient(270deg, var(--violet) 0%, var(--violet-deep) 100%);
  border-radius: 8px;
  min-height: 44px;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 14px;
}
.btn--slide:hover { box-shadow: 0 10px 24px rgba(82, 77, 246, 0.35); }
.btn--slide img { width: 15px; height: 15px; }

.slide__aside {
  position: absolute;
  /* painted area extends 24px right of the text column: background-clip: text
     erases any glyph that pokes outside the box, so give letters headroom */
  right: 42px;
  top: 104px;
  width: 176px;
  padding-right: 24px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--text) 0%, rgba(243, 243, 245, 0.8) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slider__controls {
  position: absolute;
  right: 66px;
  top: 196px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 152px;
}

.slider__btn {
  width: 44px;
  height: 44px;
  padding: 1px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--speed) ease, opacity var(--speed) ease;
}
.slider__btn img { width: 100%; height: 100%; }
.slider__btn:hover { transform: scale(1.08); }
.slider__btn:active { transform: scale(0.98); }

.slider__counter {
  margin-left: 16px;
  font-size: 16px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
}
.slider__counter .slider__total { color: rgba(243, 243, 245, 0.45); }

.slider__lines {
  position: absolute;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  width: 875px;
  max-width: none;
  pointer-events: none;
  z-index: 0;
}

/* ---------- combination band ---------- */

.band--deep { background: var(--bg-page); }

.combination { padding-top: 24px; }

.section-head--wide .section-title { max-width: 1068px; }

.section-cols {
  display: flex;
  gap: 42px;
}
.section-cols .section-text:last-child { max-width: 557px; }

.combo__grid {
  margin-top: 73px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.combo-card {
  position: relative;
  min-height: 256px;
  padding: 23px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.combo-card { border-color: rgba(161, 159, 255, 0.2); }

.combo-card__blob {
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  pointer-events: none;
}
.combo-card__blob--1 { background: radial-gradient(circle, rgba(138, 135, 249, 0.14) 0%, rgba(138, 135, 249, 0) 65%); left: -260px; top: -300px; }
.combo-card__blob--2 { background: radial-gradient(circle, rgba(92, 88, 246, 0.18) 0%, rgba(92, 88, 246, 0) 65%); left: 40px; top: 60px; }

.combo-card__orbs {
  position: absolute;
  top: 10px;
  right: 8px;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}
.combo-card__orb {
  width: 100px;
  position: relative;
  z-index: 1;
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 24px rgba(54, 49, 230, 0.4));
}
.combo-card__orb--back {
  width: 92px;
  z-index: 0;
  margin-left: -56px;
  transform: rotate(10deg) translateY(10px);
}

.combo-card__body {
  position: relative;
  max-width: 237px;
}
.combo-card__body h3 {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.combo-card__body p {
  margin-top: 9px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: rgba(243, 243, 245, 0.8);
}

.combo-card .link-more {
  position: relative;
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- challenges ---------- */

.challenges { padding-top: 140px; }

.challenges__inner {
  display: grid;
  grid-template-columns: 394px 1fr;
  gap: 30px;
  align-items: start;
}

.challenges__lead {
  margin-top: 24px;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: #fff;
}
.challenges__note {
  margin-top: 48px;
  max-width: 363px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.challenges__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 21px;
}

.challenge-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 182px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
}
.challenge-card__icon { width: 42px; height: 42px; flex-shrink: 0; }
/* natural 21x32 icon, rotated as in the design; margins keep the 42px icon column */
.challenge-card__icon--rot {
  width: 21px;
  height: 32px;
  margin: 0 14px 0 7px;
  transform: rotate(90deg);
}

.challenge-card__body h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}
.challenge-card__body p {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- CTA ---------- */

.cta { padding-top: 112px; padding-bottom: 26px; }

.cta__card {
  position: relative;
  overflow: hidden;
  min-height: 348px;
  border-radius: 24px;
  background: #121423;
  border: 1px solid rgba(47, 90, 107, 0.5);
  padding: 71px 63px;
  display: flex;
  align-items: center;
}

.cta__planet {
  /* pre-clipped 2x render of the card window from Figma */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  pointer-events: none;
  transition: opacity 0.9s linear;
}

.cta__glow {
  position: absolute;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  pointer-events: none;
}
.cta__glow--blue { background: radial-gradient(circle, rgba(94, 89, 248, 0.35) 0%, rgba(94, 89, 248, 0) 62%); left: 4%; top: -330px; }
.cta__glow--red { background: radial-gradient(circle, rgba(55, 49, 230, 0.4) 0%, rgba(55, 49, 230, 0) 62%); right: -14%; top: -60px; }

.cta__copy { position: relative; max-width: 640px; }
.cta__copy .section-title { color: #fff; white-space: nowrap; }
.cta__copy p {
  margin-top: 16px;
  max-width: 340px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #fff;
}
.cta__copy .btn { margin-top: 32px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-page);
  padding: 55px 0 50px;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.logo--footer .logo__mark { width: 73px; height: 87px; }
.logo--footer .logo__name { width: 195px; }
.logo--footer .logo__divider { height: 60px; }
.logo--footer .logo__subtitle { width: 196px; }

.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 213px;
}
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.03em;
  color: rgba(243, 243, 245, 0.5);
  transition: color var(--speed) ease;
}
.site-footer__nav a:hover { color: var(--text); }

.site-footer__bottom {
  margin-top: 90px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.site-footer__legal {
  display: flex;
  gap: 32px;
}
.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--speed) ease;
}
.site-footer__legal a:hover { color: var(--violet); }

.site-footer__copy { text-align: center; }
.site-footer__bottom::after { content: ""; }

/* ---------- 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__labels { display: none; }
  .slide__aside { display: none; }
  .slide__mac { left: 38%; }
  .slider__controls { top: auto; bottom: 32px; }
}

@media (max-width: 1100px) {
  .infra__grid { grid-template-columns: repeat(2, 1fr); }
  .infra-card { min-height: 0; }

  .combo__grid { grid-template-columns: repeat(2, 1fr); }

  .challenges__inner { grid-template-columns: 1fr; }
  .challenges__note { margin-bottom: 24px; }
}

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px;
    border-radius: 16px;
    background: #060a1f;
    border: 1px solid rgba(138, 135, 249, 0.3);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-header__inner { position: relative; }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-nav__list a { min-height: 48px; }

  .logo__subtitle, .logo__divider { display: none; }

  .hero__inner { padding-top: 100px; padding-bottom: 110px; }

  .slide {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 28px 44px;
  }
  /* the copy wrapper dissolves so the laptop can slot between title and lead */
  .slide__copy { display: contents; }
  .slide .badge { order: -3; align-self: flex-start; }
  .slide__title { order: -2; }
  .slide__mac {
    position: static;
    order: -1;
    width: 178%;
    max-width: none;
    margin: -4% -39% -6%;
  }
  .slide__orb { width: 120px; right: 16px; top: 14px; }
  .slider__lines { display: none; }
  /* arrows + counter overlay the reserved gap right under the laptop:
     they belong to the slider, not to a slide, so they never fade or jump */
  .slider__controls {
    position: absolute;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    justify-content: center;
    margin: 0;
    transition: top 0.45s ease;
  }
  .slide__lead,
  .slide__text,
  .slide__copy .btn { order: 1; }
  /* the gap under the laptop that the controls sit in */
  .slide__lead { margin-top: 78px; }

  .section-cols { flex-direction: column; gap: 20px; }

  .cta__copy .section-title { white-space: normal; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }

  .section-title br { display: none; }

  /* phone backdrop: only the clean starfield from the art's top-left corner,
     fading into the base color before any baked-in planet shows up */
  .band--hero .band__bg > img:first-child,
  .band--hero .band__hue {
    height: 900px;
    object-position: 0% top;
    -webkit-mask-image: linear-gradient(#000 65%, transparent 100%);
    mask-image: linear-gradient(#000 65%, transparent 100%);
  }

  /* soft dim so copy over the starfield stays readable */
  .band--hero .band__bg::after,
  .products > .band__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(1, 3, 15, 0.3);
  }

  /* the planet sits between the headline and the lead; lighten + edge mask
     melt the crop into the starfield with no visible seams */
  .hero__planet {
    display: block;
    width: 116%;
    max-width: none;
    margin: 4px -8%;
    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%);
  }

  /* four globes become a full-width strip between the copy and the slider */
  .products__globes { display: none; }
  .products__globes-mobile {
    display: block;
    width: 100%;
    margin-top: 32px;
    mix-blend-mode: lighten;
  }

  .site-header { padding-top: 24px; }
  .logo__mark { width: 42px; height: 50px; }
  .logo__name { width: 118px; }

  .hero__inner { padding-top: 72px; padding-bottom: 48px; }
  .hero__title { font-size: 38px; }
  .hero__lead { font-size: 16px; }

  .infra__grid { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .infra { padding-bottom: 72px; }

  .products__inner { padding-top: 48px; }
  .products__globes { top: auto; bottom: 52%; right: -28%; width: 150%; opacity: 0.75; }
  .products__note { margin-top: 32px; }
  .slider { margin-top: 24px; margin-bottom: 48px; }
  .slide { padding: 24px 20px 36px; }
  .slide__mac { width: 205%; margin: -6% -52.5% -8%; }
  .slide__lead { font-size: 18px; }
  .slide__title { font-size: 38px; }
  .slide__orb { width: 76px; right: 12px; top: 12px; }
  .slide .badge { max-width: calc(100% - 76px); }

  .combo__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .combo-card { min-height: 0; padding-bottom: 18px; }
  .combo-card__body { max-width: none; padding-right: 104px; }
  .combo-card__orbs { top: 14px; right: 12px; }
  .combo-card__orb { width: 72px; }
  .combo-card__orb--back { width: 66px; margin-left: -14px; }

  .challenges { padding-top: 72px; }
  .challenges__grid { grid-template-columns: 1fr; gap: 14px; }
  .challenge-card { min-height: 0; }
  .challenge-card__body p { margin-top: 8px; }

  .cta { padding-top: 64px; }
  .cta__card { padding: 40px 24px; min-height: 0; }

  .site-footer__top { flex-direction: column; gap: 32px; }
  .site-footer__bottom {
    margin-top: 48px;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }
  .site-footer__copy { text-align: left; }
  .site-footer__legal { gap: 20px; flex-wrap: wrap; }
}

@media (max-width: 479px) {
  .btn { width: 100%; }
  .btn--slide { width: auto; }
}

/* ---------- 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;
  }
}

/* ---------- 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__name,
.logo-intro header .logo .logo__divider,
.logo-intro header .logo .logo__subtitle { opacity: 0; transition: opacity 0.5s ease; }
.logo-intro header .logo .logo__divider { transition-delay: 0.22s; }
.logo-intro header .logo .logo__subtitle { transition-delay: 0.44s; }
.logo-intro header .logo .is-on { opacity: 1; }

/* ---------- wide screens: seamlessly extended hero art at design scale ---------- */
@media (min-width: 1441px) {
  .band--hero .band__bg {
    background: url("../assets/bg-hero-wide.jpg") center top / auto 100% no-repeat;
  }
  .band--hero .band__bg > img:first-child { display: none; }
  .products__globes {
    right: auto;
    left: calc(50% - 309px);
    width: 1029px;
  }
}

.products__globes-video {
  opacity: 0;
  transition: opacity 0.18s linear;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96.5%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96.5%, transparent 100%);
}
.products__globes-video.is-front { opacity: 1; }

.products__globes-video-wrap {
  display: none;
  position: relative;
  width: 100%;
  margin-top: 32px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  mix-blend-mode: lighten;
}

.band--hero .band__bg { overflow: clip; }

@media (min-width: 768px) {
  .hero--live .band__bg { background-color: #00081b; }
}
.band--hero .waves-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero--live .waves-canvas { opacity: 1; }

.band--hero .stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.band--hero .hero > .container { position: relative; z-index: 1; }
.band--hero .band__bg > img:first-child { transition: opacity 0.6s ease; }
.hero--live .band__bg > img:first-child { opacity: 0; }
.hero-planet-box { position: absolute; inset: 0; pointer-events: none; }
.hero-planet-video {
  position: absolute;
  left: calc(68.5vw - min(21.5vw, 310px));
  top: clamp(64px, 8.4vw, 129px);
  width: min(43vw, 620px);
  aspect-ratio: 1 / 1;
  mix-blend-mode: lighten;
  opacity: 0;
  transition: opacity 0.4s ease;
  
  
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect;
}
.hero--live .hero-planet-video { opacity: 1; }

.hero-moon {
  display: none;
  position: absolute;
  opacity: 0;
  transition: opacity 0.8s ease;
  mix-blend-mode: screen;
  pointer-events: none;
}
@media (min-width: 768px) {
  .band--hero {
    --mv-l: calc(68.5vw - min(21.5vw, 310px));
    --mv-t: clamp(64px, 8.4vw, 129px);
    --mv-w: min(43vw, 620px);
  }
  .hero-moon { display: block; }
  .hero--live .hero-moon { opacity: 1; }
  .hero-moon--sm {
    width: calc(var(--mv-w) * 0.209);
    left: calc(var(--mv-l) - var(--mv-w) * 0.016);
    top: calc(var(--mv-t) + var(--mv-w) * 0.12);
    animation: moon-drift 16s ease-in-out infinite alternate;
  }
  .hero-moon--lg {
    mix-blend-mode: normal; 
    width: calc(var(--mv-w) * 0.369);
    left: calc(var(--mv-l) - var(--mv-w) * 0.309);
    top: calc(var(--mv-t) + var(--mv-w) * 0.627);
    animation: moon-drift 22s ease-in-out infinite alternate-reverse;
  }
}
@keyframes moon-drift {
  from { transform: translate3d(0, -6px, 0); }
  to { transform: translate3d(0, 8px, 0); }
}
.hero__planet-video-wrap { display: none; } 
@media (min-width: 1441px) {
  .hero--live .band__bg { background-image: none; }
  
  .hero-planet-video { left: calc(50% - 46px); top: 129px; width: 620px; }
  .band--hero { --mv-l: calc(50% - 46px); --mv-t: 129px; --mv-w: 620px; }
}
@media (max-width: 767px) {
  .hero-planet-box { display: none; } 
  .hero__planet-video-wrap {
    display: none;
    position: relative;
    isolation: isolate; 
    width: 116%;
    max-width: none;
    margin: 4px -8%;
    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 .band__hue { z-index: 1; }
  .hero__planet-video-wrap video {
    position: static;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    transform: scale(1.05); 
    -webkit-mask-image: none; 
    mask-image: none;
  }
}

@media (max-width: 767px) {
  .products__globes-video-wrap.is-on { display: block; }
  .products__globes-video-wrap .products__globes-video {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    
    transform: scale(1.12);
  }
  .products__globes-video-wrap .band__hue { z-index: 1; }
}
