:root {
  color-scheme: dark;
  --bg: #030308;
  --panel: rgba(14, 18, 32, .50);
  --panel-strong: rgba(18, 22, 42, .75);
  --panel-soft: rgba(255, 255, 255, .03);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .2);
  --text: #ffffff;
  --muted: #a3aab8;
  --mint: #36d7ff;
  --cyan: #36d7ff;
  --blue: #274dff;
  --violet: #8c36ff;
  --rose: #ff4785;
  --amber-soft: #f2e2ff;
  --ink: #010103;
  --radius-xl: 36px;
  --radius-lg: 24px;
  --shadow: 0 40px 100px -20px rgba(0, 0, 0, .8);
  --shadow-soft: 0 20px 60px -10px rgba(0, 0, 0, .6);
  --font-display: "Space Grotesk", Inter, sans-serif;
  --font-body: Inter, "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --glass-bg: rgba(20, 20, 32, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(32px);
  --cursor-x: 50vw;
  --cursor-y: 35vh;
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(39, 77, 255, 0.15), transparent 60rem),
    radial-gradient(circle at 100% 40%, rgba(140, 54, 255, 0.1), transparent 50rem),
    radial-gradient(circle at 0% 80%, rgba(54, 215, 255, 0.08), transparent 40rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: -.02em;
}

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

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, .05);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--blue));
  box-shadow: 0 0 18px rgba(180, 92, 255, .42);
}

.cursor-glow {
  position: fixed;
  z-index: -1;
  left: -140px;
  top: -140px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  opacity: .28;
  pointer-events: none;
  background: radial-gradient(circle, rgba(180, 92, 255, .18), rgba(54, 215, 255, .08) 42%, transparent 72%);
  filter: blur(10px);
  transition: opacity .25s ease;
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

.site-aurora {
  position: fixed;
  z-index: -2;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  filter: blur(44px);
  opacity: .42;
  pointer-events: none;
  animation: float-orb 12s ease-in-out infinite;
}

.site-aurora--mint {
  left: -18rem;
  top: 10rem;
  background: rgba(180, 92, 255, .26);
}

.site-aurora--blue {
  right: -18rem;
  top: 4rem;
  background: rgba(54, 215, 255, .22);
  animation-delay: -5s;
}

.site-nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1220px, calc(100% - 40px));
  margin: 14px auto 0;
  padding: 7px;
  border: 1px solid rgba(222, 206, 255, .16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(235, 222, 255, .105), rgba(235, 222, 255, .032)),
    rgba(7, 3, 17, .78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}

.site-brand,
.site-nav-cta,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-brand {
  gap: 11px;
  padding-left: 6px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .96);
}

.site-brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.site-brand-copy strong {
  font-size: .88rem;
  letter-spacing: -.025em;
}

.site-brand-copy small {
  color: rgba(222, 206, 255, .58);
  font-family: var(--font-mono);
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, #fff 0 5%, transparent 18%),
    linear-gradient(135deg, #ff75c8, #b45cff 45%, #36d7ff);
  color: #09020d;
  box-shadow: 0 0 30px rgba(180, 92, 255, .34);
}

.site-nav-links {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(222, 206, 255, .1);
  border-radius: 999px;
  background: rgba(222, 206, 255, .045);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

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

.product-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid rgba(217, 197, 255, .15);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(235, 222, 255, .08), rgba(235, 222, 255, .025)),
    rgba(7, 8, 18, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.product-toggle::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(203, 161, 255, .94), rgba(54, 215, 255, .68));
  box-shadow: 0 14px 30px rgba(91, 108, 255, .24), inset 0 1px 0 rgba(255, 255, 255, .46);
  transform: translateX(0);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .22s ease;
  pointer-events: none;
}

.product-toggle[data-active-product="meridian"]::before {
  transform: translateX(calc(100% + 4px));
}

.product-toggle :is(button, a) {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: rgba(234, 223, 255, .62);
  cursor: pointer;
  font: inherit;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: -.01em;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.product-toggle :is(button, a):hover {
  color: var(--text);
}

.product-toggle :is(button, a).is-active {
  background: transparent;
  color: #08020f;
  box-shadow: none;
}

.product-toggle--nav {
  width: 178px;
}

.product-toggle--nav :is(button, a) {
  min-height: 28px;
  padding: 0 10px;
  font-size: .7rem;
}

.product-toggle--hero {
  width: min(100%, 386px);
  padding: 5px;
}

.product-toggle--hero :is(button, a) {
  min-height: 46px;
  padding: 0 18px;
  font-size: .92rem;
}

.site-nav-links a {
  position: relative;
  z-index: 2;
  padding: 8px 11px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.site-nav-links a:hover,
.site-nav-links a.is-active {
  color: var(--text);
}

.site-nav-indicator {
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  z-index: 1;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(180, 92, 255, .22), rgba(54, 215, 255, .07));
  border: 1px solid rgba(204, 164, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 28px rgba(72, 37, 154, .28);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), width .28s cubic-bezier(.22, 1, .36, 1);
}

.site-nav-cta {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #f0ddff 0%, #b45cff 50%, #5b6cff 100%);
  color: #08020f;
  font-weight: 800;
  font-size: .76rem;
  border: 1px solid rgba(235, 219, 255, .38);
  box-shadow: 0 10px 30px rgba(180, 92, 255, .28), inset 0 1px 0 rgba(255, 255, 255, .44);
}

.site-nav-cta--ghost {
  border-color: rgba(217, 197, 255, .16);
  background: rgba(217, 197, 255, .055);
  color: var(--text);
  box-shadow: none;
}

main {
  width: 100%;
  margin: 0 auto;
}

main > section:not(.hero-section) {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: calc(100svh - 72px);
  margin: -72px 0 68px;
  padding: clamp(128px, 13vw, 164px) clamp(18px, 5vw, 72px) clamp(54px, 7vw, 84px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-section::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(180, 92, 255, .2) 50%, transparent 52%),
    radial-gradient(circle at 50% 8%, rgba(255, 117, 200, .12), transparent 18rem),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 70%);
  opacity: .62;
}

.hero-section::after {
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 92, 255, .5), rgba(54, 215, 255, .28), transparent);
}

.hero-copy,
.section-copy,
.x402-panel,
.developer-section > div,
.final-cta {
  animation: rise-in .72s ease both;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 890px;
  margin: 0 auto;
  text-align: center;
}

.hero-product-copy {
  animation: panel-switch-in .42s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-product-copy[hidden] {
  display: none !important;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(.99);
  filter: none;
  transition:
    opacity .82s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms),
    transform .82s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms);
}

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

.hero-copy[data-reveal] {
  opacity: 1;
  transform: none;
}

.eyebrow-pill,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--mint);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow-pill {
  padding: 8px 12px;
  border: 1px solid rgba(204, 164, 255, .25);
  border-radius: 999px;
  background: rgba(180, 92, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 42px rgba(180, 92, 255, .14);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(180, 92, 255, .68);
  animation: pulse 1.8s infinite;
}

h1,
h2,
h3,
strong {
  font-family: var(--font-display);
}

h1 {
  max-width: 940px;
  margin: 22px auto 0;
  font-size: clamp(3.5rem, 7.5vw, 7.2rem);
  line-height: .9;
  letter-spacing: -.06em;
  text-wrap: balance;
  color: rgba(255, 255, 255, .98);
  text-shadow: 0 1px 0 rgba(255,255,255,.04), 0 28px 90px rgba(0, 0, 0, .52);
}

h1 span {
  display: inline;
  background: linear-gradient(96deg, #fff 0%, #b3c2ff 30%, #36d7ff 60%, #8c36ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 .hero-title-main {
  color: rgba(255, 255, 255, .92);
  background: none;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.065em;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
}

.hero-lead,
.section-copy p,
.x402-panel p,
.developer-section p,
.final-cta p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.72;
}

.hero-lead {
  margin: 24px auto 0;
  color: rgba(236, 226, 255, .76);
}

.hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 24px auto 0;
}

.hero-proof-strip article {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(217, 197, 255, .12);
  border-radius: 20px;
  background: rgba(217, 197, 255, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.hero-proof-strip strong {
  display: block;
  font-size: 1.4rem;
}

.hero-proof-strip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-product-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions--center {
  justify-content: center;
}

.hero-product-cta {
  min-width: 190px;
}

.btn-primary,
.btn-secondary {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
  transition: transform .26s cubic-bezier(.2, .8, .2, 1), box-shadow .26s ease, border-color .26s ease, background .26s ease;
}

.btn-primary {
  border: 1px solid rgba(235, 219, 255, .36);
  background:
    linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,.36) 45%, transparent 58%) -140% 0 / 220% 100% no-repeat,
    linear-gradient(135deg, #f0ddff 0%, #b45cff 44%, #5b6cff 100%);
  color: #08020f;
  box-shadow: 0 18px 48px rgba(180, 92, 255, .32), inset 0 1px 0 rgba(255, 255, 255, .42);
}

.btn-secondary {
  border: 1px solid rgba(217, 197, 255, .16);
  background: rgba(217, 197, 255, .055);
  color: var(--text);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px) scale(1.012);
}

.btn-primary:hover {
  background-position: 140% 0, 0 0;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, .22);
}

.trust-row,
.logo-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row {
  justify-content: center;
  margin-top: 24px;
}

.trust-row span,
.logo-marquee span {
  border: 1px solid rgba(217, 197, 255, .14);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(217, 197, 255, .045);
  color: #eadfff;
  font-size: .84rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  min-height: 650px;
  margin: 0 auto;
  transform-style: preserve-3d;
  perspective: 1600px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  animation: product-float 8s ease-in-out infinite;
}

.device-shadow {
  position: absolute;
  inset: 16% 12% 2%;
  border-radius: 46%;
  background: radial-gradient(circle, rgba(180, 92, 255, .22), transparent 58%);
  filter: blur(36px);
  transform: translateZ(-80px);
}

.hero-token-cloud {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}

.token-object {
  position: absolute;
  display: grid;
  place-items: center;
  color: rgba(242, 235, 255, .84);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.07em;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .54));
  animation: object-drift 8s ease-in-out infinite;
}

.token-object--identity {
  left: -1%;
  top: 24%;
  width: clamp(68px, 8vw, 92px);
  height: clamp(68px, 8vw, 92px);
  border: 1px solid rgba(204, 164, 255, .34);
  border-radius: 30px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(145deg, rgba(180, 92, 255, .28), rgba(54, 215, 255, .08));
  color: rgba(244, 235, 255, .86);
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: .12em;
  opacity: .62;
  transform: rotateY(-28deg) rotateZ(-6deg);
}

.token-object--chain {
  right: -1%;
  top: 31%;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(204, 164, 255, .42);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(180, 92, 255, .28), rgba(54, 215, 255, .05));
  color: #d6b4ff;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  letter-spacing: .12em;
  opacity: .68;
  animation-delay: -3s;
}

.token-object--rail {
  left: 49%;
  top: 29%;
  width: 10px;
  height: 142px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, #e9d5ff 14%, #b45cff 48%, #36d7ff 86%, transparent);
  box-shadow: 0 0 24px rgba(180, 92, 255, .78), 0 0 90px rgba(54, 215, 255, .34);
  opacity: .74;
  animation-delay: -1.8s;
}

.motion-rings {
  position: absolute;
  inset: 11% 19% 5%;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: .55;
}

.motion-rings span {
  position: absolute;
  width: min(78vw, 760px);
  aspect-ratio: 1 / .38;
  border: 1px solid rgba(204, 164, 255, .14);
  border-radius: 999px;
  transform: rotateX(68deg) rotateZ(-7deg);
}

.motion-rings span:nth-child(2) {
  width: min(65vw, 620px);
  border-color: rgba(54, 215, 255, .13);
}

.motion-rings span:nth-child(3) {
  width: min(50vw, 470px);
  border-color: rgba(255, 117, 200, .14);
}

.product-shell,
.wallet-card,
.feature-card,
.x402-panel,
.flow-grid article,
.dashboard-card,
.security-board,
.developer-section,
.final-cta {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.product-shell {
  position: absolute;
  inset: 70px 8% 64px;
  z-index: 2;
  padding: clamp(22px, 3vw, 34px);
  border-radius: calc(var(--radius-xl) + 10px);
  transform: rotateX(calc(5deg + var(--tilt-x))) rotateY(calc(-4deg + var(--tilt-y))) translateZ(20px);
  transform-origin: center;
  transition: transform 0.1s linear, box-shadow 0.3s ease;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(180, 92, 255, .26), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(54, 215, 255, .16), transparent 22rem),
    linear-gradient(135deg, rgba(19, 18, 32, .82), rgba(8, 9, 18, .94));
  border-color: rgba(232, 218, 255, .18);
  border-top-color: rgba(255, 255, 255, .28);
  border-left-color: rgba(255, 255, 255, .14);
  box-shadow:
    0 54px 120px -30px rgba(0, 0, 0, .92),
    0 0 0 1px rgba(180, 92, 255, .05) inset,
    inset 0 0 56px rgba(180, 92, 255, .12);
}

.product-shell--wallet {
  background:
    radial-gradient(circle at 14% 8%, rgba(54, 215, 255, .22), transparent 25rem),
    radial-gradient(circle at 88% 16%, rgba(180, 92, 255, .18), transparent 24rem),
    linear-gradient(145deg, rgba(13, 24, 46, .84), rgba(20, 11, 34, .74));
}

.product-shell--wallet .wallet-card {
  background:
    linear-gradient(135deg, rgba(54, 215, 255, .13), rgba(180, 92, 255, .08)),
    rgba(217, 197, 255, .045);
}

.product-shell--meridian {
  background:
    radial-gradient(circle at 12% 8%, rgba(180, 92, 255, .26), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(54, 215, 255, .16), transparent 22rem),
    linear-gradient(145deg, rgba(26, 18, 44, .82), rgba(8, 16, 34, .72));
}

.product-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 12%, rgba(255,255,255,.12) 34%, transparent 52%),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.14), transparent 38%);
  opacity: .28;
  mix-blend-mode: normal;
}

.product-shell::after {
  content: "";
  position: absolute;
  top: 16%;
  bottom: 12%;
  left: 51%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(232, 218, 255, .58), rgba(54, 215, 255, .32), transparent);
  box-shadow: 0 0 26px rgba(180, 92, 255, .52);
  opacity: .44;
  transform: rotate(5deg);
}

.product-shell > * {
  position: relative;
  z-index: 1;
}

.app-window-controls {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.app-window-controls span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}

.app-window-controls span:nth-child(1) {
  background: #ff7a90;
}

.app-window-controls span:nth-child(2) {
  background: #d8b4fe;
}

.app-window-controls span:nth-child(3) {
  background: var(--mint);
}

.product-topline,
.dashboard-head,
.wallet-card,
.security-row,
.payment-timeline div,
.meridian-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-topline {
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(204, 164, 255, .24);
  border-radius: 999px;
  padding: 7px 12px;
  background: linear-gradient(135deg, rgba(180, 92, 255, .18), rgba(54, 215, 255, .10));
  color: var(--mint);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wallet-card {
  margin-top: 16px;
  padding: clamp(18px, 2.6vw, 24px);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  min-height: 124px;
  background:
    linear-gradient(135deg, rgba(217, 197, 255, .10), rgba(54, 215, 255, .045)),
    rgba(217, 197, 255, .04);
  border-color: rgba(232, 218, 255, .18);
}

.wallet-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 30%;
  height: 90px;
  background: radial-gradient(circle, rgba(180, 92, 255, .16), transparent 70%);
  filter: blur(18px);
}

.wallet-card > * {
  position: relative;
  z-index: 1;
}

.mini-label,
.metric-grid span,
.dashboard-card span,
.security-row span {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wallet-card strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  letter-spacing: -.045em;
}

.wallet-card p {
  margin: 7px 0 0;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.5;
}

.wallet-ring {
  width: clamp(76px, 9vw, 104px);
  height: clamp(76px, 9vw, 104px);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(from 140deg, #b45cff, #ff75c8, #36d7ff, #b45cff);
  animation: ring-spin 9s linear infinite;
}

.wallet-ring span {
  width: 70%;
  height: 70%;
  border-radius: 999px;
  background: #07101c;
  box-shadow: inset 0 0 24px rgba(180, 92, 255, .18);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.metric-grid article {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(217, 197, 255, .075), rgba(217, 197, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.metric-grid article:first-child {
  border-color: rgba(54, 215, 255, .26);
  background: linear-gradient(145deg, rgba(54, 215, 255, .11), rgba(180, 92, 255, .045));
}

.metric-grid strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(.95rem, 1.6vw, 1.18rem);
  letter-spacing: -.035em;
}

.payment-timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.payment-timeline div {
  position: relative;
  justify-content: flex-start;
  min-height: 44px;
  padding: 11px 13px 11px 48px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(217, 197, 255, .075), rgba(217, 197, 255, .028));
  border: 1px solid rgba(217, 197, 255, .08);
  color: #e9efff;
  font-size: clamp(.88rem, 1.5vw, 1rem);
}

.payment-timeline span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mint);
  font-weight: 900;
}

.orbital-card {
  position: absolute;
  z-index: 2;
  width: 196px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 7, 6, .78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
  backdrop-filter: blur(10px);
  animation: orbit 7s ease-in-out infinite;
  border-color: rgba(255, 255, 255, .13);
}

.orbital-card span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
}

.orbital-card strong {
  display: block;
  margin-top: 7px;
}

.orbital-card--human {
  top: 3%;
  left: 5%;
}

.orbital-card--agent {
  right: 1%;
  bottom: 16%;
  animation-delay: -3s;
}

.control-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.control-ribbon span {
  flex: 1 1 130px;
  border: 1px solid rgba(217, 197, 255, .16);
  border-radius: 999px;
  padding: 9px 10px;
  background: rgba(7, 10, 19, .52);
  color: rgba(236, 226, 255, .72);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.logo-marquee {
  position: relative;
  justify-content: center;
  margin: 0 0 72px;
  padding: 14px;
  border: 1px solid rgba(217, 197, 255, .14);
  border-radius: 24px;
  background: rgba(217, 197, 255, .035);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.product-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
  padding: 18px 0 78px;
}

.product-switcher {
  display: grid;
  gap: 18px;
  padding: 18px 0 78px;
}

.product-switcher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 6px;
}

.product-switcher-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  text-align: right;
}

.product-switcher-stage {
  display: grid;
}

.product-panel {
  grid-area: 1 / 1;
  animation: panel-switch-in .36s cubic-bezier(.22, 1, .36, 1) both;
}

.product-panel[hidden],
[data-product-content][hidden] {
  display: none !important;
}

.product-duo-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.product-duo-card::before,
.product-duo-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.product-duo-card::before {
  inset: 24px 24px auto;
  height: 190px;
  border-radius: 34px;
  border: 1px solid rgba(232, 218, 255, .12);
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03)),
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.2), transparent 24%);
  opacity: .72;
}

.product-duo-card::after {
  width: 260px;
  height: 260px;
  right: -70px;
  top: -60px;
  border-radius: 999px;
  filter: blur(4px);
  opacity: .54;
}

.product-duo-card--wallet {
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 117, 200, .22), transparent 22rem),
    radial-gradient(circle at 86% 6%, rgba(180, 92, 255, .18), transparent 24rem),
    linear-gradient(145deg, rgba(217, 197, 255, .08), rgba(217, 197, 255, .026));
}

.product-duo-card--wallet::after {
  background: conic-gradient(from 130deg, #ff75c8, #b45cff, #36d7ff, #ff75c8);
}

.product-duo-card--meridian {
  background:
    radial-gradient(circle at 18% 12%, rgba(54, 215, 255, .18), transparent 24rem),
    radial-gradient(circle at 86% 8%, rgba(91, 108, 255, .22), transparent 24rem),
    linear-gradient(145deg, rgba(217, 197, 255, .075), rgba(217, 197, 255, .024));
}

.product-duo-card--meridian::after {
  background: linear-gradient(135deg, rgba(54, 215, 255, .72), rgba(180, 92, 255, .54));
  border-radius: 72px;
  transform: rotate(14deg);
}

.product-duo-card > * {
  position: relative;
  z-index: 1;
}

.product-duo-card h2 {
  max-width: 620px;
  margin: 14px 0 0;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: .92;
}

.product-duo-card p {
  max-width: 590px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.68;
}

.product-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 28px;
}

.product-points span {
  border: 1px solid rgba(217, 197, 255, .15);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(7, 10, 19, .42);
  color: rgba(242, 235, 255, .78);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee-drift 24s linear infinite;
}

.section-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 28px;
  align-items: start;
  padding: 72px 0;
}

.story-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 76px 0;
  text-align: center;
}

.story-copy {
  max-width: 760px;
  margin: 0 auto;
}

.story-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 14px auto 0;
}

.story-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.story-card {
  min-height: 260px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 0%, rgba(180, 92, 255, .13), transparent 28rem),
    linear-gradient(145deg, rgba(217, 197, 255, .075), rgba(217, 197, 255, .024));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(180, 92, 255, .45), rgba(54, 215, 255, .22), transparent);
  opacity: .75;
}

.story-card--agent {
  background:
    radial-gradient(circle at 0% 0%, rgba(54, 215, 255, .14), transparent 28rem),
    linear-gradient(145deg, rgba(217, 197, 255, .075), rgba(217, 197, 255, .024));
}

.story-card--merchant {
  background:
    radial-gradient(circle at 0% 0%, rgba(39, 77, 255, .16), transparent 28rem),
    linear-gradient(145deg, rgba(217, 197, 255, .075), rgba(217, 197, 255, .024));
}

.story-card span {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.story-card h3 {
  margin-top: 40px;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.story-card p {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.section-grid--reverse {
  grid-template-columns: 1fr .95fr;
}

.feature-grid,
.flow-grid,
.dashboard-section {
  display: grid;
  gap: 16px;
}

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

.feature-card,
.flow-grid article,
.dashboard-card,
.security-board,
.developer-section,
.final-cta {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.feature-card {
  min-height: 260px;
  transition: transform .24s ease, border-color .24s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.flow-grid article::before,
.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(180, 92, 255, .11), transparent 23rem);
  opacity: .38;
}

.feature-card:hover,
.flow-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.feature-icon,
.flow-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(180, 92, 255, .12);
  color: var(--mint);
  font-weight: 900;
  font-family: var(--font-mono);
}

.feature-card h3,
.flow-grid strong {
  display: block;
  margin-top: 42px;
  font-size: 1.35rem;
}

.feature-card p,
.flow-grid p,
.dashboard-card p,
.security-row em {
  color: var(--muted);
  line-height: 1.58;
}

.x402-section {
  padding: 72px 0;
}

.x402-panel {
  padding: clamp(26px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 10%, rgba(180, 92, 255, .14), transparent 28rem),
    radial-gradient(circle at 92% 0%, rgba(39, 77, 255, .16), transparent 30rem),
    linear-gradient(145deg, rgba(217, 197, 255, .075), rgba(217, 197, 255, .03));
  overflow: hidden;
  position: relative;
}

.x402-panel::after {
  content: "402";
  position: absolute;
  right: clamp(18px, 5vw, 60px);
  bottom: -36px;
  color: rgba(255, 224, 184, .035);
  font-family: var(--font-display);
  font-size: clamp(7rem, 18vw, 16rem);
  font-weight: 900;
  letter-spacing: -.08em;
}

.flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.dashboard-section {
  grid-template-columns: 1.25fr .75fr;
  padding: 72px 0;
}

.dashboard-card--large {
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.dashboard-card--large::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: conic-gradient(from 30deg, #b45cff, #ff75c8, #36d7ff, #b45cff);
  opacity: .18;
  filter: blur(4px);
}

.dashboard-card h2 {
  font-size: clamp(1.75rem, 3.5vw, 3.5rem);
}

.dashboard-stack {
  display: grid;
  gap: 16px;
}

.dashboard-stack .dashboard-card {
  min-height: 202px;
}

.dashboard-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.chart-bars {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 14px;
  margin-top: 60px;
}

.chart-bars span {
  flex: 1;
  min-width: 24px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #e9d5ff, rgba(180, 92, 255, .62) 52%, rgba(54, 215, 255, .22));
  box-shadow: 0 0 34px rgba(180, 92, 255, .16);
  animation: bar-rise 1s ease both;
  transform-origin: bottom;
}

.security-board {
  display: grid;
  gap: 12px;
}

.security-row {
  padding: 16px;
  border-radius: 18px;
  background: rgba(217, 197, 255, .04);
}

.security-row strong {
  color: #fff;
}

.security-row em {
  font-style: normal;
  text-align: right;
}

.developer-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  margin: 72px 0;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-xl);
}

.code-card {
  overflow: auto;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(204, 164, 255, .24);
  border-radius: 22px;
  background: #040914;
  color: #dfffee;
  font-family: var(--font-mono);
  font-size: .9rem;
  line-height: 1.65;
  box-shadow: inset 0 0 44px rgba(180, 92, 255, .06);
}

.code-dim {
  color: #8cc7ff;
}

.final-cta {
  margin: 72px 0 48px;
  padding: clamp(34px, 6vw, 78px);
  text-align: center;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(180, 92, 255, .17), transparent 26rem),
    linear-gradient(145deg, rgba(217, 197, 255, .075), rgba(217, 197, 255, .026));
}

.final-cta p {
  margin-left: auto;
  margin-right: auto;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(180, 92, 255, 0);
  }
}

@keyframes float-orb {
  50% {
    transform: translate3d(0, 34px, 0) scale(1.04);
  }
}

@keyframes product-float {
  50% {
    transform: translateY(-16px);
  }
}

@keyframes orbit {
  50% {
    transform: translateY(-12px);
  }
}

@keyframes panel-switch-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bar-rise {
  from {
    transform: scaleY(.2);
    transform-origin: bottom;
    opacity: .3;
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee-drift {
  to {
    transform: translateX(-28%);
  }
}

@keyframes object-drift {
  50% {
    translate: 0 -16px;
    rotate: 2deg;
  }
}

@media (max-width: 1040px) {
  .site-nav {
    width: calc(100% - 26px);
  }

  .site-brand-copy small {
    display: none;
  }

  .site-nav-links {
    display: none;
  }

  .hero-section,
  .story-section,
  .product-duo,
  .section-grid,
  .section-grid--reverse,
  .dashboard-section,
  .developer-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: calc(100svh - 58px);
    padding-top: clamp(112px, 18vw, 136px);
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: .9;
    letter-spacing: -.075em;
  }

  .hero-visual {
    min-height: 620px;
  }

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

@media (max-width: 680px) {
  .cursor-glow {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 8px;
    left: 50%;
    width: calc(100vw - 18px) !important;
    max-width: none;
    margin: 0;
    padding: 6px;
    border-radius: 24px;
    overflow: hidden;
    transform: translateX(-50%);
  }

  .site-brand-copy,
  .site-brand span:last-child {
    display: none;
  }

  .site-nav-actions {
    gap: 6px;
  }

  .site-nav-cta {
    min-height: 32px;
    padding: 0 10px;
    font-size: .68rem;
  }

  .site-nav-actions {
    margin-left: auto;
  }

  .site-nav-links,
  .site-nav-indicator {
    display: none;
  }

  main {
    width: 100%;
  }

  .hero-section {
    min-height: 100svh;
    margin: -62px 0 48px;
    padding: 112px 18px 38px;
    border-radius: 0;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .eyebrow-pill {
    max-width: 100%;
    overflow: hidden;
    justify-content: center;
    text-overflow: ellipsis;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  h1 {
    max-width: min(100%, 352px);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.72rem, 8.8vw, 2.18rem);
    line-height: 1.03;
    letter-spacing: -.052em;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  h1 span,
  h1 .hero-title-main {
    display: block;
  }

  .hero-lead {
    max-width: 100%;
    font-size: .96rem;
    line-height: 1.62;
  }

  h2 {
    font-size: clamp(2.1rem, 12vw, 3.1rem);
  }

  .hero-actions,
  .hero-actions--center,
  .hero-product-controls {
    flex-direction: column;
    max-width: 352px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-toggle--hero,
  .hero-product-controls .btn-primary {
    width: 100%;
  }

  .product-toggle--hero :is(button, a) {
    flex: 1;
    padding: 0 10px;
    font-size: .82rem;
  }

  .trust-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 352px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .trust-row::-webkit-scrollbar {
    display: none;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-token-cloud,
  .motion-rings {
    display: none;
  }

  .product-shell {
    position: relative;
    inset: auto;
    transform: none;
    animation: none;
  }

  .hero-proof-strip {
    grid-template-columns: 1fr;
    max-width: 352px;
  }

  .product-duo {
    padding: 8px 0 48px;
  }

  .product-switcher {
    padding: 8px 0 48px;
  }

  .product-switcher-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-switcher-head p {
    text-align: left;
  }

  .product-duo-card {
    min-height: 420px;
  }

  .product-duo-card::before {
    height: 150px;
  }

  .orbital-card {
    display: none;
  }

  .metric-grid,
  .feature-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    min-height: 220px;
    text-align: left;
  }
  
  .story-stack {
    grid-template-columns: 1fr;
  }

  .story-card h3 {
    margin-top: 36px;
  }

  .wallet-card,
  .product-topline,
  .dashboard-head,
  .security-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .security-row em {
    text-align: left;
  }

  .section-grid,
  .x402-section,
  .dashboard-section {
    padding: 48px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
