:root {
  --ecosystem-onyx: #030405;
  --ecosystem-onyx-raised: #0b0e12;
  --ecosystem-platinum: #e8ecef;
  --ecosystem-platinum-dim: #9ca7ad;
  --ecosystem-edge: rgba(229, 235, 239, 0.16);
  --ecosystem-signal: #9ed7ca;
}

body[data-page="home"] .hero-trust-signals {
  display: none;
}

@media (min-width: 861px) {
  body[data-page="home"] main {
    overflow: clip;
  }

  body[data-page="home"] .webflow-landing {
    position: sticky !important;
    z-index: 90;
    top: 0;
    display: grid;
    box-sizing: border-box;
    width: 100%;
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 2.4vw, 42px);
    overflow: visible;
    padding: 10px max(24px, calc((100vw - 1140px) / 2));
    border-bottom: 1px solid rgba(226, 232, 237, 0.16);
    background: linear-gradient(110deg, rgba(3, 4, 6, 0.94), rgba(13, 16, 20, 0.9));
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(115%);
  }

  body[data-page="home"] .webflow-landing::before,
  body[data-page="home"] .webflow-landing::after {
    display: none;
  }

  body[data-page="home"] .main-logo {
    position: relative !important;
    inset: auto !important;
    display: block;
    width: clamp(190px, 18vw, 286px);
    height: 58px;
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    background: transparent;
    transform: none !important;
  }

  body[data-page="home"] .main-logo img {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
    filter: contrast(1.08) brightness(1.08);
    transform: translateY(-50%);
  }

  body[data-page="home"] .site-nav,
  body[data-page="home"].gateway-rail-compact .site-nav.adaptive-gateway-rail {
    position: relative !important;
    inset: auto !important;
    z-index: auto;
    display: block;
    width: max-content;
    max-width: none;
    min-width: 0;
    justify-self: end;
    margin: 0;
    transform: none !important;
  }

  body[data-page="home"] .site-nav .desktop-nav,
  body[data-page="home"].gateway-rail-compact .site-nav.adaptive-gateway-rail .desktop-nav {
    position: relative !important;
    inset: auto !important;
    display: flex;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 52px;
    justify-content: flex-end;
    gap: clamp(5px, 0.8vw, 14px);
    overflow: visible;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(0.7rem, 0.78vw, 0.82rem);
    backdrop-filter: none;
    transform: none !important;
  }

  body[data-page="home"] .site-nav .desktop-nav .nav-divider {
    display: none;
  }

  body[data-page="home"] .site-nav .desktop-nav > a:not(.tr4-button),
  body[data-page="home"] .site-nav .desktop-nav > .nav-ecosystem > summary {
    height: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    line-height: 1;
  }

  body[data-page="home"] .site-nav .desktop-nav .tr4-button {
    min-height: 44px;
  }

  body[data-page="home"] .page-hero {
    min-height: calc(100svh - 88px);
    padding: clamp(72px, 8vh, 112px) clamp(28px, 6vw, 96px);
  }

  body[data-page="home"] .page-hero::before {
    opacity: 0.56;
    filter: grayscale(0.72) saturate(0.52) brightness(0.68);
  }

  body[data-page="home"] .hero-copy {
    width: min(100%, 1040px);
    gap: 16px;
  }

  body[data-page="home"] .hero-copy h1 {
    max-width: 15ch;
    font-size: clamp(3.4rem, 5.8vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
  }

  body[data-page="home"] .hero-copy .hero-line {
    width: auto;
    max-width: 54ch;
    border: 0;
    padding: 0;
    font-size: clamp(0.8rem, 1.05vw, 1rem);
    letter-spacing: 0.045em;
  }

  body[data-page="home"] .hero-copy .lead {
    max-width: 62ch;
    color: rgba(232, 236, 239, 0.82);
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
    line-height: 1.55;
  }

  body[data-page="home"] .hero-trust-signals {
    display: none;
  }

  body[data-page="home"] .hero-copy .cta-row {
    gap: 16px;
    margin-top: 4px;
  }

  body[data-page="home"] .hero-copy .cta-row .secondary {
    min-width: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: rgba(239, 243, 246, 0.82);
  }

  body[data-page="home"] .wallet-entry-note {
    margin-top: -5px;
    color: rgba(229, 235, 239, 0.58);
    font-size: 0.68rem;
  }
}

@media (min-width: 861px) and (max-width: 1200px) {
  body[data-page="home"] .site-nav .desktop-nav,
  body[data-page="home"].gateway-rail-compact .site-nav.adaptive-gateway-rail .desktop-nav {
    gap: clamp(3px, 0.55vw, 7px);
    font-size: clamp(0.62rem, 0.72vw, 0.72rem);
  }
}

.ecosystem-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 10vw, 160px) clamp(18px, 7vw, 120px);
  border-block: 1px solid rgba(229, 235, 239, 0.1);
  background:
    radial-gradient(circle at 12% 18%, rgba(191, 204, 212, 0.08), transparent 26rem),
    radial-gradient(circle at 90% 72%, rgba(104, 156, 145, 0.07), transparent 30rem),
    linear-gradient(145deg, #020304, #090c10 52%, #020304);
  color: var(--ecosystem-platinum);
}

.ecosystem-story::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(229, 235, 239, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 235, 239, 0.025) 1px, transparent 1px);
  background-size: clamp(72px, 8vw, 132px) clamp(72px, 8vw, 132px);
  content: "";
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  pointer-events: none;
}

.ecosystem-story,
.ecosystem-story *,
.ecosystem-story *::before,
.ecosystem-story *::after {
  box-sizing: border-box;
}

.ecosystem-story :where(h2, h3, p, span, a, strong) {
  overflow-wrap: anywhere;
}

.ecosystem-story-head {
  display: grid;
  width: min(100%, 1320px);
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: clamp(30px, 7vw, 110px);
  margin: 0 auto clamp(48px, 7vw, 96px);
}

.ecosystem-story-head h2 {
  max-width: 12ch;
  margin: 12px 0 0;
  color: #f1f3f5;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
}

.ecosystem-story-intro {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--ecosystem-edge);
  padding-top: 22px;
  color: rgba(229, 235, 239, 0.68);
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
  line-height: 1.65;
}

.ecosystem-story-intro p {
  margin: 0;
}

.ecosystem-story-route {
  color: var(--ecosystem-signal);
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 0.9vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ecosystem-story-grid {
  display: grid;
  width: min(100%, 1320px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.ecosystem-story-controls {
  display: none;
}

.ecosystem-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  min-height: clamp(390px, 35vw, 520px);
  align-content: end;
  overflow: hidden;
  border: 1px solid var(--ecosystem-edge);
  border-radius: clamp(24px, 3vw, 42px);
  padding: clamp(24px, 3vw, 42px);
  background:
    linear-gradient(145deg, rgba(24, 28, 34, 0.92), rgba(4, 6, 8, 0.96)),
    radial-gradient(circle at 80% 10%, rgba(229, 235, 239, 0.08), transparent 40%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
  backdrop-filter: blur(20px) saturate(110%);
}

.ecosystem-scene:nth-child(1),
.ecosystem-scene:nth-child(4) {
  grid-column: span 7;
}

.ecosystem-scene:nth-child(2),
.ecosystem-scene:nth-child(3) {
  grid-column: span 5;
}

.ecosystem-scene::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.08) 48%, transparent 58%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-70%);
  transition: opacity 300ms ease, transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ecosystem-scene:hover::after,
.ecosystem-scene:focus-within::after {
  opacity: 0.65;
  transform: translateX(70%);
}

.ecosystem-scene-visual {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  transform: translate3d(var(--ecosystem-x, 0), var(--ecosystem-y, 0), 0);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ecosystem-scene-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 3, 4, 0.98) 0%, rgba(2, 3, 4, 0.84) 34%, rgba(2, 3, 4, 0.18) 72%, rgba(2, 3, 4, 0.42) 100%),
    linear-gradient(0deg, rgba(2, 3, 4, 0.76), transparent 62%);
  content: "";
}

.ecosystem-scene-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  opacity: 0.82;
  filter: saturate(0.72) contrast(1.08) brightness(0.8);
  transform: scale(1.025);
}

.ecosystem-scene-copy {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 590px;
  gap: 12px;
}

.ecosystem-scene-index {
  color: var(--ecosystem-signal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ecosystem-scene h3 {
  max-width: 16ch;
  margin: 0;
  color: #f0f3f5;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.ecosystem-scene p {
  max-width: 62ch;
  margin: 0;
  color: rgba(229, 235, 239, 0.66);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  line-height: 1.6;
}

.ecosystem-story-handoff {
  display: grid;
  width: min(100%, 1320px);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin: clamp(32px, 5vw, 64px) auto 0;
  border-top: 1px solid var(--ecosystem-edge);
  padding-top: clamp(24px, 3vw, 38px);
}

.ecosystem-story-handoff p {
  margin: 0;
  color: rgba(229, 235, 239, 0.62);
  line-height: 1.6;
}

.ecosystem-story-handoff strong {
  color: #f0f3f5;
}

.ecosystem-story .tr4-button.primary {
  border-color: rgba(239, 243, 246, 0.6);
  background: linear-gradient(135deg, #eef1f3, #abb5ba);
  color: #050709;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3), inset 0 1px #fff;
}

.ecosystem-story.is-motion-ready .ecosystem-scene {
  opacity: 1;
  transform: translateY(24px);
  transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--ecosystem-delay, 0ms), border-color 220ms ease;
}

.ecosystem-story.is-motion-ready .ecosystem-scene.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ecosystem-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .ecosystem-story-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ecosystem-story-head h2 {
    max-width: 10ch;
  }

  .ecosystem-story-intro {
    max-width: 640px;
  }

  .ecosystem-story-controls {
    display: flex;
    width: min(100%, 1320px);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto 14px;
  }

  .ecosystem-story-controls p {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0;
    color: var(--ecosystem-platinum);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .ecosystem-story-controls small {
    color: var(--ecosystem-platinum-dim);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .ecosystem-story-controls > div {
    display: flex;
    gap: 8px;
  }

  .ecosystem-story-controls button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--ecosystem-edge);
    border-radius: 50%;
    background: rgba(229, 235, 239, 0.055);
    color: var(--ecosystem-platinum);
    font-size: 1rem;
  }

  .ecosystem-story-controls button:disabled {
    opacity: 0.34;
  }

  .ecosystem-story-controls button:focus-visible {
    outline: 2px solid var(--ecosystem-signal);
    outline-offset: 3px;
  }

  .ecosystem-story-grid {
    display: flex;
    width: calc(100% + clamp(18px, 5vw, 36px));
    gap: 14px;
    overflow-x: auto;
    margin-right: calc(clamp(18px, 5vw, 36px) * -1);
    padding: 2px clamp(18px, 5vw, 36px) 20px 0;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .ecosystem-scene,
  .ecosystem-scene:nth-child(n) {
    min-width: min(82vw, 620px);
    min-height: clamp(430px, 68vw, 560px);
    flex: 0 0 min(82vw, 620px);
    scroll-snap-align: start;
  }

  .ecosystem-story-handoff {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .ecosystem-story {
    padding: 74px 14px 96px;
  }

  .ecosystem-story-head {
    margin-bottom: 38px;
  }

  .ecosystem-story-head h2 {
    font-size: clamp(2.5rem, 12vw, 4.2rem);
  }

  .ecosystem-story-grid {
    width: calc(100% + 14px);
    margin-right: -14px;
    padding-right: 14px;
  }

  .ecosystem-story-controls small {
    display: block;
    max-width: 16ch;
    line-height: 1.25;
  }

  .ecosystem-scene,
  .ecosystem-scene:nth-child(n) {
    min-width: min(86vw, 420px);
    min-height: 520px;
    flex-basis: min(86vw, 420px);
    padding: 24px 20px;
  }

  .ecosystem-scene-visual {
    inset: 0;
  }

  .ecosystem-scene-visual::after {
    background:
      linear-gradient(0deg, rgba(2, 3, 4, 0.98) 0%, rgba(2, 3, 4, 0.8) 42%, rgba(2, 3, 4, 0.16) 78%, rgba(2, 3, 4, 0.34) 100%),
      linear-gradient(90deg, rgba(2, 3, 4, 0.54), transparent 70%);
  }

  .ecosystem-scene-visual img {
    object-position: 62% center;
    opacity: 0.72;
  }

  .ecosystem-scene h3 {
    font-size: clamp(1.85rem, 9vw, 2.9rem);
  }

  .ecosystem-story-handoff .tr4-button {
    width: 100%;
    white-space: normal;
  }
}

body.motion-paused .ecosystem-scene-visual,
body.motion-paused .ecosystem-scene-visual img,
body.motion-paused .ecosystem-scene::after {
  animation: none;
  transition: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-story.is-motion-ready .ecosystem-scene,
  .ecosystem-scene-visual,
  .ecosystem-scene-visual img,
  .ecosystem-scene::after {
    opacity: 1;
    animation: none;
    transition: none;
    transform: none;
  }
}

@media (max-width: 860px) {
  body[data-page="home"] .mobile-shell {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    z-index: 95;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    width: auto;
    height: var(--tr4-mobile-header);
    min-height: 0;
    padding: 0;
    background: linear-gradient(180deg, rgba(2, 3, 4, 0.76), rgba(2, 3, 4, 0));
    pointer-events: none;
  }

  body[data-page="home"] .mobile-shell .mobile-brand {
    position: relative;
    inset: auto;
    grid-column: 2;
    justify-self: center;
    display: block !important;
    width: clamp(168px, 52vw, 224px);
    height: clamp(48px, 12vw, 58px);
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  body[data-page="home"] .webflow-landing {
    display: none !important;
  }

  body[data-page="home"].gateway-rail-compact:not(.nav-open) .mobile-brand {
    width: clamp(116px, 34vw, 136px);
    height: 48px;
  }
}

@media (max-width: 360px) {
  body[data-page="home"] .mobile-shell {
    right: max(8px, env(safe-area-inset-right));
    left: max(8px, env(safe-area-inset-left));
  }

  body[data-page="home"] .mobile-shell .mobile-brand {
    width: clamp(148px, 50vw, 176px);
  }
}

.home-app-bridge {
  width: min(100% - 40px, 1320px);
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) 0;
}

.home-app-bridge > div:last-child {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.home-app-bridge h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: .92;
}

.home-app-bridge > div:last-child > p:not(.section-label) {
  max-width: 56ch;
  color: #9ca7ad;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}

.home-app-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-content: center;
  overflow: hidden;
  border: 1px solid rgba(229, 235, 239, .16);
  border-radius: 28px;
  background: radial-gradient(circle at 18% 10%, rgba(244, 247, 248, .09), transparent 40%), linear-gradient(145deg, rgba(14, 18, 22, .95), rgba(3, 5, 7, .97));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .09);
}

.home-app-visual::before,
.home-app-visual::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(229, 235, 239, .11);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.home-app-visual::after {
  width: 440px;
  height: 440px;
  border-color: rgba(158, 215, 202, .08);
}

.home-app-visual img {
  width: min(68%, 340px);
  opacity: .9;
  filter: brightness(.82) contrast(1.04);
}

.home-app-visual span {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(229, 235, 239, .2);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(7, 10, 13, .9);
  color: #d9e0e3;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-app-visual span:nth-of-type(1) { top: 12%; left: 15%; }
.home-app-visual span:nth-of-type(2) { top: 25%; right: 8%; }
.home-app-visual span:nth-of-type(3) { right: 13%; bottom: 15%; }
.home-app-visual span:nth-of-type(4) { bottom: 22%; left: 8%; }

@media (max-width: 860px) {
  .home-app-bridge { width: min(100% - 28px, 720px); grid-template-columns: 1fr; gap: 34px; padding: 74px 0; }
  .home-app-visual { min-height: 460px; order: 2; }
  .home-app-bridge > div:last-child { justify-items: center; text-align: center; }
  .home-app-bridge h2 { max-width: 10ch; }
}

@media (max-width: 480px) {
  .home-app-bridge {
    box-sizing: border-box;
    width: 100%;
    gap: 26px;
    padding: 58px 14px 88px;
    background: linear-gradient(180deg, rgba(2, 4, 6, .96), rgba(4, 8, 11, .9));
  }

  .home-app-bridge > div:last-child {
    gap: 15px;
  }

  .home-app-bridge .section-label,
  .home-app-bridge h2,
  .home-app-bridge > div:last-child > p:not(.section-label),
  .home-app-bridge .tr4-button {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .home-app-bridge h2 {
    max-width: 11ch;
    color: #f3f6f8;
    font-size: clamp(2.15rem, 10.8vw, 3rem);
    line-height: .94;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .9);
  }

  .home-app-bridge > div:last-child > p:not(.section-label) {
    max-width: 31ch;
    color: rgba(239, 244, 247, .84);
    font-size: 1rem;
  }

  .home-app-visual {
    min-height: 318px;
    border-radius: 24px;
  }

  .home-app-visual::before { width: 270px; height: 270px; }
  .home-app-visual::after { width: 320px; height: 320px; }
  .home-app-visual img { width: min(62%, 218px); opacity: 1; filter: brightness(.94) contrast(1.06); }
  .home-app-visual span { font-size: .54rem; padding: 8px 10px; }
  .home-app-visual span:nth-of-type(1) { top: 9%; left: 8%; }
  .home-app-visual span:nth-of-type(2) { top: 18%; right: 6%; }
  .home-app-visual span:nth-of-type(3) { right: 8%; bottom: 10%; }
  .home-app-visual span:nth-of-type(4) { bottom: 13%; left: 6%; }
}
