:root {
  --ink: #17211b;
  --muted: #647069;
  --paper: #f7f3e8;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(23, 33, 27, 0.14);
  --yellow: #ffcf40;
  --orange: #ff7138;
  --green: #1a7f5a;
  --blue: #246bfe;
  --purple: #7656ff;
  --shadow: 0 24px 80px rgba(45, 38, 20, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 207, 64, 0.34), transparent 26rem),
    radial-gradient(circle at 88% 20%, rgba(36, 107, 254, 0.16), transparent 30rem),
    var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  padding: 14px max(20px, calc((100vw - 1280px) / 2));
  backdrop-filter: blur(18px);
  background: rgba(247, 243, 232, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 40px rgba(23, 33, 27, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand span span {
  color: var(--orange);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.desktop-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.77rem;
  font-weight: 750;
  white-space: nowrap;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25c979;
  box-shadow: 0 0 0 5px rgba(37, 201, 121, 0.12);
}

.signal-change.up {
  color: #087c45;
}

.signal-change.down {
  color: #c53f2d;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  content: "";
  border-radius: 99px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button.is-open span {
  opacity: 0;
}

.menu-button.is-open::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-button.is-open::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  gap: 8px;
  padding: 12px 0 4px;
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  text-decoration: none;
}

.page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  min-height: min(830px, calc(100svh - 86px));
  padding: 74px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: #56635b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: var(--orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 7.2vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 24px;
}

.hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--orange);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 4%;
  height: 10px;
  content: "";
  border: solid var(--yellow);
  border-width: 3px 0 0;
  border-radius: 50%;
  transform: rotate(-2deg);
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: #526058;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 21px;
  border: 1px solid var(--ink);
  border-radius: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 11px 0 rgba(23, 33, 27, 0.13);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 14px 0 rgba(23, 33, 27, 0.13);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.68);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-badges--compact {
  margin-top: 16px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-width: 190px;
  min-height: 60px;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 12px;
  color: #fff;
  background: #050505;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 11px 28px rgba(0, 0, 0, 0.24);
}

.store-badge small,
.store-badge strong {
  display: block;
  line-height: 1.05;
}

.store-badge small {
  margin-bottom: 3px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.store-badge strong {
  font: 500 1.25rem/1 "Space Grotesk", sans-serif;
  white-space: nowrap;
}

.store-mark {
  position: relative;
  display: grid;
  width: 30px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
}

.store-mark--apple {
  font-size: 2.15rem;
  line-height: 1;
}

.store-mark--apple::after {
  position: absolute;
  top: 1px;
  right: 4px;
  width: 8px;
  height: 4px;
  content: "";
  border-radius: 100% 0;
  background: #fff;
  transform: rotate(-35deg);
}

.store-mark--play {
  width: 0;
  height: 0;
  margin-inline: 5px 2px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 27px solid #35d071;
  filter: drop-shadow(6px 0 0 #ffcc35) drop-shadow(2px -2px 0 #43a5ff);
}

.store-badges--compact .store-badge {
  min-width: 156px;
  min-height: 49px;
  padding: 7px 11px;
}

.store-badges--compact .store-badge strong {
  font-size: 1rem;
}

.store-badges--compact .store-mark {
  transform: scale(0.8);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  list-style: none;
}

.trust-line li::before {
  margin-right: 7px;
  color: var(--green);
  content: "●";
  font-size: 0.6rem;
}

.mission-control {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.eco-orbit {
  --orbit-r: clamp(148px, 22vw, 220px);
  position: relative;
  z-index: 0;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 0 auto;
  isolation: isolate;
}

.eco-orbit__glow {
  position: absolute;
  inset: 28%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 207, 64, 0.32), transparent 58%),
    radial-gradient(circle at 65% 70%, rgba(255, 120, 82, 0.14), transparent 52%);
  filter: blur(10px);
  animation: eco-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.eco-orbit__ring {
  position: absolute;
  inset: 50%;
  z-index: 1;
  border: 1.5px dashed rgba(23, 33, 27, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.eco-orbit__ring--a {
  width: calc(var(--orbit-r) * 2);
  height: calc(var(--orbit-r) * 2);
  border-color: rgba(196, 90, 18, 0.28);
  animation: eco-spin 48s linear infinite;
}

.eco-orbit__ring--b {
  width: calc(var(--orbit-r) * 1.55);
  height: calc(var(--orbit-r) * 1.55);
  border-style: solid;
  border-color: rgba(23, 33, 27, 0.08);
  animation: eco-spin 36s linear infinite reverse;
}

.eco-orbit__ring--c {
  width: calc(var(--orbit-r) * 1.15);
  height: calc(var(--orbit-r) * 1.15);
  border-color: rgba(255, 207, 64, 0.45);
  animation: eco-spin 28s linear infinite;
}

.eco-orbit__nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}

.eco-node {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: max-content;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--orbit-r) * -1)) rotate(calc(var(--a) * -1));
  pointer-events: none;
}

.eco-node a {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 168px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(23, 33, 27, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(23, 33, 27, 0.12);
  color: var(--ink);
  text-decoration: none;
  pointer-events: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: eco-chip-bob 5.5s ease-in-out infinite;
}

.eco-node a:hover,
.eco-node a:focus-visible {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(196, 90, 18, 0.35);
  box-shadow: 0 16px 40px rgba(23, 33, 27, 0.16);
}

.eco-node img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
  object-fit: cover;
}

.eco-node strong,
.eco-node small {
  display: block;
  line-height: 1.15;
}

.eco-node strong {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.eco-node small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.eco-node:nth-child(2) a {
  animation-delay: -0.8s;
}
.eco-node:nth-child(3) a {
  animation-delay: -1.6s;
}
.eco-node:nth-child(4) a {
  animation-delay: -2.4s;
}
.eco-node:nth-child(5) a {
  animation-delay: -3.2s;
}
.eco-node:nth-child(6) a {
  animation-delay: -4s;
}

/* Center coin: no transform/filter on ancestors — those blank WebGL canvases */
.eco-orbit__core {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  text-align: center;
  pointer-events: none;
  isolation: isolate;
}

.orbit-coin-stage {
  position: relative;
  z-index: 31;
  width: clamp(220px, 36vw, 320px);
  height: clamp(220px, 36vw, 320px);
  margin: 0;
  pointer-events: auto;
}

.orbit-coin,
model-viewer.orbit-coin {
  position: relative;
  z-index: 32;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 180px;
  min-height: 180px;
  background: transparent;
  --poster-color: transparent;
}

.orbit-coin canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.orbit-coin::part(default-progress-bar) {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes eco-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes eco-pulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes eco-chip-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

.product-link {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  border-bottom: none;
}

a.product-link:hover,
a.product-link:focus-visible {
  color: var(--accent);
}

.ticker {
  overflow: hidden;
  margin: 0 calc(50% - 50vw);
  padding: 14px 0;
  border-block: 1px solid rgba(23, 33, 27, 0.18);
  background: var(--yellow);
  transform: rotate(-1deg);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker span {
  padding-right: 26px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticker span::after {
  margin-left: 26px;
  content: "✦";
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 120px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-head h2,
.wallet-app__copy h2,
.builder-copy h2 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.section-head p {
  max-width: 440px;
  margin-bottom: 4px;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.product-card {
  --accent: var(--orange);
  position: relative;
  grid-column: span 4;
  min-height: 430px;
  overflow: hidden;
  border: none;
  border-radius: var(--radius);
  color: #fff;
  background: #141a17;
  box-shadow: 0 14px 50px rgba(23, 33, 27, 0.08);
  text-decoration: none;
  transform-style: preserve-3d;
}

article.product-card {
  display: block;
}

.product-card.wide {
  grid-column: span 8;
}

.product-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.product-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15), transparent 30%),
    linear-gradient(180deg, rgba(8, 10, 9, 0.02) 27%, rgba(8, 10, 9, 0.9) 100%);
}

.product-card:hover img,
.product-card:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.product-copy {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
}

.product-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-kicker::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent);
}

.product-copy h3 {
  margin-bottom: 7px;
  font-size: clamp(1.65rem, 2.5vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.product-copy p {
  max-width: 520px;
  margin-bottom: 17px;
  opacity: 0.78;
  font-size: 0.92rem;
}

.journey {
  position: relative;
  overflow: hidden;
  margin: 0 calc(50% - 50vw);
  padding: 120px max(20px, calc((100vw - 1280px) / 2));
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 12% 18%, rgba(255, 207, 64, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 72%, rgba(255, 120, 82, 0.1), transparent 50%),
    #14221b;
}

.journey::before {
  position: absolute;
  top: -280px;
  right: -120px;
  width: 720px;
  height: 720px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(255, 255, 255, 0.02),
    0 0 0 180px rgba(255, 255, 255, 0.015);
  pointer-events: none;
}

.journey-head {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px 72px;
  align-items: end;
  max-width: 1100px;
}

.journey h2 {
  margin-bottom: 28px;
  font-size: clamp(3.1rem, 6.4vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.journey-intro {
  max-width: 36rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
  line-height: 1.55;
}

.credo-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(64px, 9vw, 96px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.credo {
  min-height: 0;
  padding: 0;
  border: none;
  background: none;
}

.credo-lead {
  margin: 0 0 16px;
  max-width: 16ch;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.credo p:last-child {
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.98rem;
  line-height: 1.55;
}

.wallet-app {
  position: relative;
}

.wallet-app__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.wallet-app__copy h2 {
  max-width: 11ch;
}

.wallet-app__lead {
  max-width: 38rem;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.wallet-app__visual {
  position: relative;
  min-height: clamp(520px, 58vw, 720px);
}

.wallet-shot {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
}

.wallet-shot--main {
  inset: 0 10% 6% 0;
  box-shadow: 0 22px 60px rgba(23, 33, 27, 0.16);
  transform: rotate(-2deg);
}

.wallet-shot--main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  animation: wallet-app-scroll 24s ease-in-out infinite alternate;
}

.wallet-shot--play {
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 48%;
  height: 42%;
  border: none;
  border-radius: 22px;
  box-shadow: none;
  filter: none;
  transform: rotate(3deg);
}

.wallet-shot--play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes wallet-app-scroll {
  0%,
  12% {
    object-position: top center;
  }
  88%,
  100% {
    object-position: bottom center;
  }
}

.wallet-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 40px) clamp(24px, 3vw, 36px);
  padding-top: clamp(36px, 5vw, 52px);
  border-top: 1px solid rgba(23, 33, 27, 0.12);
}

.wallet-feature {
  min-height: 0;
  padding: 0;
  border: none;
  background: none;
}

.wallet-feature__kicker {
  margin: 0 0 10px;
  color: var(--orange);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wallet-feature h3 {
  margin: 0 0 12px;
  max-width: 16ch;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.wallet-feature p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .wallet-shot--main img {
    animation: none;
    object-position: top center;
  }
}

.builder {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  margin-bottom: 120px;
  padding: clamp(34px, 6vw, 76px);
  border: 1px solid rgba(23, 33, 27, 0.12);
  border-radius: 38px;
  background:
    radial-gradient(circle at 88% 15%, rgba(118, 86, 255, 0.28), transparent 19rem),
    #ece8ff;
}

.builder-copy p {
  max-width: 580px;
  margin: 24px 0 30px;
  color: #5c5870;
  font-size: 1.05rem;
}

.code-window {
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(31, 25, 75, 0.25);
  color: #edf0ff;
  background: #171526;
  transform: rotate(2deg);
}

.code-top {
  display: flex;
  gap: 7px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.code-top i:nth-child(2) {
  background: var(--yellow);
}

.code-top i:nth-child(3) {
  background: #4bd58b;
}

.code-window pre {
  margin: 0;
  padding: 26px;
  overflow: auto;
  font: 500 0.84rem/1.8 "DM Mono", monospace;
}

.code-green {
  color: #72e7ab;
}

.code-yellow {
  color: #ffdb6e;
}

.code-purple {
  color: #bcaaff;
}

.site-footer {
  margin: 0 calc(50% - 50vw);
  padding: 64px max(20px, calc((100vw - 1280px) / 2)) 28px;
  color: #fff;
  background: #0f1713;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}

.footer-main h2 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.footer-main h2 span {
  color: var(--yellow);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 11px 25px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .header-inner .signal {
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 62px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .mission-control {
    min-height: 600px;
  }

  .product-card,
  .product-card.wide {
    grid-column: span 6;
  }

  .journey-head,
  .wallet-app__top,
  .builder {
    grid-template-columns: 1fr;
  }

  .credo-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .wallet-app__copy {
    order: -1;
  }

  .wallet-app__visual {
    min-height: 520px;
  }

  .wallet-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .code-window {
    transform: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-inline: 16px;
  }

  .page {
    width: min(100% - 28px, 1280px);
  }

  .header-inner .signal {
    display: none;
  }

  .brand {
    margin-right: auto;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 66px;
  }

  h1 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  .hero-title-rest {
    white-space: normal;
  }

  .mission-control {
    min-height: 520px;
  }

  .eco-orbit {
    --orbit-r: clamp(128px, 38vw, 168px);
    width: min(100%, 400px);
  }

  .eco-orbit__core {
    width: auto;
    padding: 0;
    border-radius: 0;
  }

  .orbit-coin-stage {
    width: clamp(180px, 52vw, 240px);
    height: clamp(180px, 52vw, 240px);
  }

  .eco-node a {
    max-width: 128px;
    padding: 6px 8px 6px 6px;
    gap: 7px;
  }

  .eco-node img {
    width: 32px;
    height: 32px;
  }

  .eco-node strong {
    font-size: 0.74rem;
  }

  .eco-node small {
    display: none;
  }

  .section {
    padding: 86px 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 20px;
  }

  .product-card,
  .product-card.wide {
    grid-column: 1 / -1;
    min-height: 380px;
  }

  .product-card img {
    min-height: 380px;
  }

  .store-badges,
  .store-badges--compact {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-badge,
  .store-badges--compact .store-badge {
    width: 100%;
    min-width: 0;
    min-height: 58px;
  }

  .journey {
    padding-block: 86px;
  }

  .credo-lead {
    max-width: 22ch;
  }

  .credo p:last-child {
    max-width: none;
  }

  .wallet-app__visual {
    min-height: 380px;
  }

  .wallet-features {
    grid-template-columns: 1fr;
  }

  .wallet-feature h3,
  .wallet-feature p {
    max-width: none;
  }

  .builder {
    margin-bottom: 86px;
    border-radius: 26px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* === Legal pages (Terms / Privacy) === */
.legal-page {
  padding-top: 28px;
}

.legal-doc {
  max-width: 820px;
  margin: 0 auto 80px;
  padding: 0 4px 40px;
}

.legal-hero {
  margin-bottom: 36px;
}

.legal-hero h1 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.legal-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font: 600 0.88rem/1.4 "DM Mono", monospace;
}

.legal-lead {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text, #17211b);
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 42px;
  padding: 16px 0;
  border-top: 1px solid var(--line, rgba(23, 33, 27, 0.12));
  border-bottom: 1px solid var(--line, rgba(23, 33, 27, 0.12));
}

.legal-toc a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 33, 27, 0.05);
  color: var(--muted, rgba(23, 33, 27, 0.68));
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--text, #17211b);
  background: rgba(23, 33, 27, 0.09);
}

.legal-doc section {
  margin: 0 0 34px;
}

.legal-doc h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.legal-doc h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.legal-doc p,
.legal-doc li {
  color: rgba(23, 33, 27, 0.82);
  font-size: 1.02rem;
  line-height: 1.65;
}

.legal-doc p {
  margin: 0 0 12px;
}

.legal-doc ul {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.legal-doc li + li {
  margin-top: 6px;
}

.legal-doc a {
  color: #c45a12;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footnote {
  margin-top: 40px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line, rgba(23, 33, 27, 0.12));
  color: var(--muted, rgba(23, 33, 27, 0.62)) !important;
  font-size: 0.92rem !important;
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: var(--text, #17211b);
}

.footer-links a[aria-current="page"] {
  color: var(--yellow, #ffcf40);
}
