/* ============ dap — marketing site ============ */

:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --green: #7ee787;
  --sheet-radius: clamp(24px, 5vw, 44px);
  --pill: 999px;
  --font: "Geist", -apple-system, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --card-w: min(78vw, 460px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #fff; color: var(--ink); }

img { display: block; }

.logo { display: block; }

/* ---------- liquid glass ---------- */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 48%, rgba(255, 255, 255, 0.11) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 1px rgba(255, 255, 255, 0.05),
    0 10px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--pill);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s, box-shadow 0.35s, border-color 0.35s;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: "→";
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-6px);
  transition: max-width 0.35s var(--ease), opacity 0.3s, transform 0.35s var(--ease), margin-left 0.35s var(--ease);
}
.btn:hover::after {
  max-width: 1.2em;
  margin-left: 10px;
  opacity: 1;
  transform: none;
}
.btn:active { transform: scale(0.96); }

.btn-glass {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.13) 100%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 8px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px) saturate(1.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.55);
}
.btn-glass:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.2) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 32px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-solid {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.08), 0 10px 30px rgba(0, 0, 0, 0.3);
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.08), 0 12px 40px rgba(255, 255, 255, 0.22);
}

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 17px 36px; font-size: 18px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 40px);
  padding-top: calc(14px + env(safe-area-inset-top));
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 11, 0.62);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-logo { color: #fff; }
.header-logo .logo { width: 54px; height: auto; }

.header-nav {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  display: none;
  gap: 6px;
  padding: 6px;
  border-radius: var(--pill);
}
.header-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--pill);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.header-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.site-header .header-logo,
.site-header .btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.site-header.is-scrolled .header-logo,
.site-header.is-scrolled .btn {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (min-width: 900px) {
  .header-nav { display: flex; }
}

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.28s; }
.reveal.d4 { transition-delay: 0.42s; }
.reveal.d5 { transition-delay: 0.56s; }

/* ---------- stacked sheets ---------- */
.sheet {
  position: relative;
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  margin-top: calc(-1 * var(--sheet-radius));
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.4);
}
.sheet-light { background: #fff; }
.sheet-dark { background: var(--ink); }

/* ---------- section primitives ---------- */
section { position: relative; }

.section-title {
  font-size: clamp(32px, 7vw, 58px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  text-wrap: balance;
}
.section-title .title-black {
  font-weight: 900;
}
.dark-text { color: var(--ink); }

.section-sub {
  font-size: clamp(16px, 2vw, 18.5px);
  text-align: center;
  color: var(--muted);
  max-width: 460px;
  margin: 22px auto 0;
}
.section-sub.thin { font-weight: 200; }
.section-sub.light { font-weight: 300; color: rgba(255, 255, 255, 0.88); }
.section-sub strong { color: #fff; font-weight: 700; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-bg img { animation: kenburns 32s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.14) translate(-1.5%, -2%); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.42) 30%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.96) 100%),
    radial-gradient(120% 70% at 50% 42%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 110px 24px 130px;
  width: 100%;
  max-width: 900px;
  will-change: transform, opacity;
}
.hero-logo {
  width: clamp(124px, 26vw, 184px);
  height: auto;
  margin: 0 auto clamp(28px, 6vh, 56px);
  color: #fff;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.5));
}

.hero-headline {
  font-size: clamp(40px, 10.5vw, 92px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.hero-headline .line { display: block; }

.country-line { position: relative; }
.country-rotator {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  min-width: 1ch;
}
.country {
  display: inline-block;
  white-space: nowrap;
}
.country.leave {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  animation: country-out 0.55s var(--ease) forwards;
}
.country.enter { animation: country-in 0.55s var(--ease) both; }
@keyframes country-out {
  to { transform: translateY(-110%); opacity: 0; }
}
@keyframes country-in {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.hero-sub {
  margin: 30px auto 0;
  font-size: clamp(14.5px, 1.8vw, 17.5px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

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

.scroll-cue {
  position: absolute;
  bottom: calc(20px + env(safe-area-inset-bottom) + var(--sheet-radius));
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  width: 24px;
  height: 38px;
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  translate: -50% 0;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.85);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  padding: clamp(48px, 8vw, 80px) 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-track span.outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(11, 11, 11, 0.85);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- features: pinned concertina (accordion) ---------- */
.features {
  z-index: 2;
}

.features-stage {
  /* runway: each card-slot = ~85svh of scroll, 4 slots + a buffer */
  height: 440svh;
}
.features-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.features-header {
  position: relative;
  z-index: 5;
  padding: clamp(56px, 7svh, 86px) clamp(20px, 5vw, 48px) clamp(14px, 2.5svh, 26px);
  text-align: center;
  pointer-events: none;
}
.features-title {
  font-size: clamp(24px, 4.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto;
  text-wrap: balance;
}
.features-title .title-black {
  font-weight: 900;
}

/* deck: row of 4 tiles, JS computes each tile's exact width.
   on mobile, JS also translates the deck so the active card stays
   centred while neighbours peek in. on desktop, the row centres
   naturally via flex justify-content. */
.features-deck {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  padding: clamp(6px, 1.2svh, 16px) clamp(12px, 3vw, 36px) clamp(58px, 10svh, 92px);
  width: 100%;
  will-change: transform;
}

@media (min-width: 760px) {
  .features-deck { gap: 12px; justify-content: center; }
}

.feature-tile {
  position: relative;
  flex: 0 0 80px;
  min-width: 0;
  height: 100%;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  will-change: flex-basis, transform;
}

.feature-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(1.05);
  transform: scale(1.05);
  will-change: filter, transform;
}

.feature-tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 32%, transparent 50%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

/* slim label: visible when the tile is collapsed */
.feature-tile-slim {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 2.5svh, 28px) 10px;
  color: #fff;
  pointer-events: none;
  will-change: opacity;
}
.feature-tile-slim .feature-tile-step {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
}
.feature-tile-slimlabel {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  rotate: 180deg;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* full content: visible when the tile is expanded */
.feature-tile-full {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3svh, 32px) clamp(20px, 2.6vw, 38px);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}
.feature-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.feature-tile-top .feature-tile-step {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
}
.feature-tile-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}
.feature-tile-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  border-radius: 18px;
  max-width: 520px;
}
.feature-tile-label {
  font-size: clamp(32px, 6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.feature-tile-copy {
  font-size: clamp(14px, 1.7vw, 16px);
  font-weight: 400;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: balance;
}

@media (min-width: 760px) {
  .feature-tile-bottom { padding: 18px 22px 20px; gap: 8px; }
}

/* mobile: tile content needs to fit narrower active widths */
@media (max-width: 520px) {
  .feature-tile-top .feature-tile-tag { display: none; }
  .feature-tile-full { padding: 22px 18px; }
  .feature-tile-bottom { padding: 14px 16px; }
}

/* rail / progress indicator */
.features-rail {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3svh, 30px);
  translate: -50% 0;
  z-index: 4;
  width: min(560px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.features-rail-bar {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
}
.features-rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), #fff);
  border-radius: 2px;
  will-change: width;
}
.features-rail-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: auto;
}
.features-rail-step {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.features-rail-step em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  transition: color 0.35s var(--ease);
}
.features-rail-step.is-active { color: #fff; }
.features-rail-step.is-active em { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 520px) {
  .features-rail-step span { display: none; }
  .features-rail-step em { font-size: 11.5px; }
}

/* reduced-motion fallback: stack tiles vertically, full content visible */
.features.no-jack .features-stage { height: auto; }
.features.no-jack .features-pin {
  position: static;
  height: auto;
  overflow: visible;
  padding-bottom: clamp(60px, 9vw, 110px);
}
.features.no-jack .features-deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 36px) 0;
}
.features.no-jack .feature-tile {
  height: min(60svh, 460px);
  flex: none;
  min-width: 0;
}
.features.no-jack .feature-tile-slim { display: none; }
.features.no-jack .feature-tile-full { opacity: 1; }
.features.no-jack .features-rail { display: none; }
@media (min-width: 760px) {
  .features.no-jack .features-deck { grid-template-columns: 1fr 1fr; }
}

/* ---------- send demo ---------- */
.send-demo {
  padding: clamp(88px, 13vw, 150px) 24px clamp(80px, 12vw, 140px);
  overflow: hidden;
  z-index: 3;
}

.split {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.split-copy .section-title { max-width: 620px; }

.split-visual { width: 100%; display: flex; justify-content: center; }

.phone-scene {
  position: relative;
  margin-top: clamp(48px, 9vw, 80px);
  display: flex;
  justify-content: center;
  width: 100%;
}

.route {
  position: absolute;
  width: min(170%, 980px);
  left: 50%;
  top: -13%;
  translate: -50% 0;
  z-index: 0;
  pointer-events: none;
}
.route-line { animation: route-march 1.4s linear infinite; }
@keyframes route-march {
  to { stroke-dashoffset: -14; }
}
.route-pulse {
  transform-origin: 30px 270px;
  animation: route-pulse 2.4s ease-out infinite;
}
.route-pulse.p2 {
  transform-origin: 770px 270px;
  animation-delay: 1.2s;
}
@keyframes route-pulse {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.phone {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18.4;
  border-radius: 44px;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 6px #060606,
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 120px rgba(255, 255, 255, 0.05);
  padding: 10px;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  translate: -50% 0;
  width: 86px;
  height: 24px;
  border-radius: 14px;
  background: #060606;
  z-index: 3;
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #101010 0%, #0b0b0b 100%);
  display: flex;
  flex-direction: column;
  padding: 58px 20px 24px;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.demo-logo { width: 34px; color: #fff; }
.demo-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; text-transform: uppercase; }

.demo-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 12px 14px;
}
.demo-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9a56, #ff5e62);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.demo-name { font-weight: 600; font-size: 15px; display: flex; flex-direction: column; }
.demo-name small { font-weight: 400; font-size: 11.5px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.demo-time { margin-left: auto; font-size: 11px; color: rgba(255,255,255,0.4); }

.demo-amount {
  font-size: clamp(44px, 13vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
  margin: auto 0 4px;
  font-variant-numeric: tabular-nums;
}
.demo-fee {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 22px;
}
.demo-fee strong { color: var(--green); font-weight: 600; }

.demo-btn {
  position: relative;
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
  text-align: center;
  padding: 15px;
  font-weight: 700;
  font-size: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.demo-btn.pressed { transform: scale(0.94); }
.demo-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(11,11,11,0.07) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen 2.6s ease-in-out infinite;
}
@keyframes sheen {
  0%, 35% { transform: translateX(-100%); }
  65%, 100% { transform: translateX(100%); }
}

.demo-success {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: #0b0b0b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s;
}
.demo-success.show { opacity: 1; }
.demo-success p { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.85); }
.check {
  width: 78px;
  height: 78px;
  fill: none;
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.check path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.demo-success.show .check circle { animation: draw 0.7s var(--ease) forwards; }
.demo-success.show .check path { animation: draw 0.45s 0.55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* desktop: copy left, phone right */
@media (min-width: 900px) {
  .split {
    flex-direction: row;
    align-items: center;
    gap: clamp(40px, 6vw, 90px);
  }
  .split-copy { flex: 1.15; }
  .split-copy .section-title { text-align: left; margin: 0; }
  .split-copy .section-sub { text-align: left; margin-left: 0; }
  .split-visual { flex: 1; }
  .phone-scene { margin-top: 0; }
  .route { width: 200%; top: 0; }
}

/* ---------- markets ---------- */
.markets {
  background: #000;
  padding: clamp(40px, 8vw, 90px) 0 clamp(80px, 11vw, 130px);
  overflow: hidden;
}
.markets .section-title,
.markets .section-sub { padding: 0 24px; }

.ticker {
  margin-top: clamp(40px, 7vw, 60px);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 13px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
.ticker-track em { font-style: normal; font-weight: 500; margin-left: 6px; }
.ticker-track .up { color: var(--green); }
.ticker-track .down { color: #ff7b72; }
@keyframes ticker {
  to { transform: translateX(-50%); }
}

.market-visual {
  position: relative;
  max-width: 980px;
  margin: clamp(36px, 6vw, 64px) auto 0;
  padding: 0 18px;
}

/* candlestick video + orbiting tokens */
.market-orbit {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 11;
}

.market-video {
  position: absolute;
  top: 18%;
  left: 12%;
  width: 76%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #000;
}
.market-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.market-video-fade {
  display: none;
}

/* six tokens hovering around the video at different heights, each with
   its own duration + delay so they breathe independently */
.coin {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.55));
  will-change: transform;
  animation: coin-hover var(--coin-dur, 6s) ease-in-out infinite;
  animation-delay: var(--coin-delay, 0s);
  z-index: 2;
}

/* tokens scattered around the video at irregular heights + sizes,
   each with its own duration + delay so they breathe independently */
.coin.c1 { top:    4%;  left:  0%;   width: 19%; --coin-dur: 6.4s; --coin-delay: 0s;   }
.coin.c2 { top:   -3%;  left: 30%;   width: 22%; --coin-dur: 7.5s; --coin-delay: 1.4s; }
.coin.c3 { top:   10%;  right: 4%;   width: 18%; --coin-dur: 5.8s; --coin-delay: 2.6s; }

.coin.c4 { bottom: 6%;  left:  6%;   width: 20%; --coin-dur: 6.9s; --coin-delay: 0.8s; }
.coin.c5 { bottom:-4%;  left: 38%;   width: 24%; --coin-dur: 7.8s; --coin-delay: 2.0s; }
.coin.c6 { bottom:14%;  right: -2%;  width: 21%; --coin-dur: 6.3s; --coin-delay: 3.3s; }

@keyframes coin-hover {
  0%   { transform: translate(0, 0)      rotate(0deg); }
  25%  { transform: translate(3px, -10px) rotate(2deg); }
  50%  { transform: translate(0, -18px)   rotate(0deg); }
  75%  { transform: translate(-3px, -8px) rotate(-2deg); }
  100% { transform: translate(0, 0)      rotate(0deg); }
}

/* mobile: taller orbit, bigger tokens that bleed off the edges so
   the constellation feels scattered, not framed */
@media (max-width: 520px) {
  .market-orbit { aspect-ratio: 7 / 9; }
  .market-video { top: 28%; left: 5%; width: 90%; }

  .coin.c1 { top:    2%;  left:  -4%;  width: 38%; }
  .coin.c2 { top:   12%;  left:  30%;  width: 42%; }
  .coin.c3 { top:   -2%;  right: -2%;  width: 34%; }

  .coin.c4 { bottom:  8%; left:  -5%;  width: 40%; }
  .coin.c5 { bottom: -3%; left:  32%;  width: 44%; }
  .coin.c6 { bottom: 14%; right: -4%;  width: 38%; }
}

/* bento stats */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1080px;
  margin: clamp(48px, 8vw, 90px) auto 0;
  padding: 0 16px;
}
.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: clamp(140px, 18vw, 190px);
  padding: clamp(20px, 4vw, 30px);
  border-radius: 24px;
  transition: transform 0.5s var(--ease), box-shadow 0.4s;
}
.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 18px 48px rgba(0, 0, 0, 0.4);
}
.bento-icon {
  position: absolute;
  top: clamp(18px, 3vw, 26px);
  right: clamp(18px, 3vw, 26px);
  width: clamp(24px, 3vw, 30px);
  height: auto;
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bento-num {
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bento-num small {
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.bento-label {
  font-size: clamp(13px, 1.6vw, 15.5px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- control ---------- */
.control {
  min-height: 76svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 4;
}
.control-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.control-bg img { width: 100%; height: 100%; object-fit: cover; }
.control-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0.6) 0%, rgba(11,11,11,0.1) 34%, rgba(11,11,11,0.25) 70%, rgba(11,11,11,0.95) 100%);
}
.control-content {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 11vw, 96px) 28px clamp(96px, 14vw, 120px);
}

/* liquid glass shield */
.shield-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(40px, 8vw, 64px);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.45));
}
.shield {
  position: relative;
  width: 220px;
  height: 260px;
  display: grid;
  place-items: center;
  clip-path: path("M110 8 L198 39 V127 C198 193 162 230 110 250 C58 230 22 193 22 127 V39 Z");
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.07) 52%, rgba(255, 255, 255, 0.16) 100%);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
.shield-spec {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.shield-logo {
  position: relative;
  width: 104px;
  color: #fff;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
}

.control .section-title { text-shadow: 0 2px 28px rgba(0,0,0,0.55); }
.control .section-sub { text-shadow: 0 1px 16px rgba(0,0,0,0.6); }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(110px, 17vw, 190px) 28px;
  text-align: center;
  z-index: 5;
}
.cta-headline {
  font-size: clamp(36px, 8vw, 80px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}
.cta .section-sub { margin-top: 30px; }
.cta .count { font-variant-numeric: tabular-nums; }
.cta .btn { margin-top: 42px; }
.cta-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- FAQ ---------- */
.faq {
  overflow: hidden;
  display: flex;
  justify-content: center;
  z-index: 6;
}
.faq-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}
/* constant-size image anchored to the top: opening an item reveals more
   of it instead of rescaling it. JS pins the height to section size + buffer. */
.faq-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.faq-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,11,0.8) 0%, rgba(20,12,4,0.55) 40%, rgba(11,11,11,0.92) 100%);
}
.faq-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: clamp(88px, 13vw, 130px) 22px clamp(100px, 15vw, 150px);
}
.faq-content .section-title { margin-bottom: clamp(34px, 6vw, 52px); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border-radius: 22px;
  overflow: hidden;
  transition: background 0.3s;
}
.faq-item[open] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.09) 48%, rgba(255, 255, 255, 0.16) 100%);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }

.chev {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.faq-item[open] .chev { transform: rotate(180deg); }

.faq-answer { overflow: hidden; }
.faq-answer p {
  padding: 0 22px 19px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

@media (min-width: 760px) {
  .faq-item summary { font-size: 18.5px; padding: 19px 26px; }
  .faq-answer p { font-size: 15.5px; padding: 0 26px 23px; }
}

/* ---------- get-app modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 32px);
  padding-top: calc(clamp(18px, 4vw, 32px) + env(safe-area-inset-top));
  padding-bottom: calc(clamp(18px, 4vw, 32px) + env(safe-area-inset-bottom));
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s var(--ease);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.modal-card {
  position: relative;
  width: min(460px, 100%);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 40px) clamp(22px, 4vw, 32px) clamp(24px, 4vw, 32px);
  background: linear-gradient(160deg, rgba(28, 28, 28, 0.88) 0%, rgba(14, 14, 14, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 30px 80px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s var(--ease);
}
.modal.is-open .modal-card {
  transform: none;
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: rotate(90deg);
}
.modal-close svg { width: 16px; height: 16px; }

.modal-head { text-align: center; }
.modal-logo {
  width: 56px;
  height: auto;
  margin: 0 auto 18px;
  color: #fff;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}
.modal-title {
  font-size: clamp(22px, 3.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  margin: 0 auto;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(22px, 4vw, 30px);
}

.store-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.16);
}
.store-btn:active { transform: scale(0.97); }
.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}
.store-btn-text small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(11, 11, 11, 0.55);
  line-height: 1;
  margin-bottom: 3px;
}
.store-btn-text strong {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.store-btn[data-coming-soon] {
  background: rgba(255, 255, 255, 0.86);
  color: rgba(11, 11, 11, 0.62);
  cursor: not-allowed;
}
.store-btn[data-coming-soon]:hover {
  transform: none;
  box-shadow: none;
}
.store-btn[data-coming-soon] .store-icon { opacity: 0.7; }
.store-btn[data-coming-soon] .store-btn-text small { color: rgba(11, 11, 11, 0.42); }

.modal-footnote {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* on small phones, store buttons grow comfortably */
@media (min-width: 520px) {
  .modal-actions { flex-direction: row; }
  .store-btn { flex: 1; padding: 14px 16px; }
  .store-tag { display: none; }
}

body.modal-open { overflow: hidden; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: #000;
  padding: clamp(56px, 9vw, 90px) clamp(24px, 5vw, 56px) 0;
  overflow: hidden;
  z-index: 7;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.footer-logo { width: 64px; color: #fff; }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}
.footer-links a:hover { color: #fff; }

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.footer-social a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.06);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-fine {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 30px;
}

.footer-watermark {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 5vw, 48px);
  margin-bottom: calc(-1 * clamp(40px, 11vw, 130px));
  pointer-events: none;
}
.footer-watermark svg {
  width: min(86vw, 900px);
  height: auto;
  color: #181818;
}

@media (min-width: 760px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
