:root {
  --bg: #000;
  --card: #111214;
  --card2: #17181b;
  --edge: #26282c;
  --txt: #fff;
  --sub: #9a9a9a;
  --acc: #bfe0f5;
  --acc-ink: #10283a;
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", Inter, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--txt); font-family: var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 7.5vw, 6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.accent { color: var(--acc); }
.eyebrow { color: var(--acc); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.center { text-align: center; }
.sub, .lead { color: var(--sub); font-size: clamp(1rem, 1.6vw, 1.25rem); max-width: 640px; }
.note { color: #6b6b6b; font-size: .85rem; margin-top: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font-weight: 700; border-radius: 999px; transition: transform .25s, box-shadow .25s, background .25s; }
.btn-primary { background: var(--acc); color: var(--acc-ink); padding: 16px 28px; font-size: 1.05rem;
  box-shadow: 0 0 0 0 rgba(191, 224, 245, .5), 0 10px 40px -10px rgba(191, 224, 245, .55); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 6px rgba(191, 224, 245, .12), 0 16px 50px -10px rgba(191, 224, 245, .7); }
.btn-ghost { color: var(--txt); padding: 16px 24px; border: 1px solid var(--edge); }
.btn-ghost:hover { border-color: #444; }
.btn-small { background: var(--acc); color: var(--acc-ink); padding: 9px 16px; font-size: .85rem; }
.btn-big { padding: 20px 36px; font-size: 1.2rem; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px); background: rgba(0, 0, 0, .55); backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 1.05rem; }
.brand img { border-radius: 50%; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--sub); font-size: .92rem; }
.nav-links a:hover { color: var(--txt); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 110px clamp(16px, 5vw, 72px) 60px; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, #000); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 640px; }
.hero-copy .lead { margin: 22px 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--sub); font-size: .9rem; }
.trust li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.hero-fallback { display: none; }
.no-webgl .hero-fallback { display: block; position: absolute; right: -6%; top: 50%; width: 55%; transform: translateY(-50%) perspective(1200px) rotateY(-14deg);
  border-radius: 18px; opacity: .9; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid #444; border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--acc); border-radius: 2px; animation: hint 1.8s infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

section { padding: clamp(70px, 10vw, 140px) clamp(16px, 5vw, 72px); position: relative; }
.section-head { max-width: 900px; margin: 0 auto 50px; text-align: center; }
.section-head .sub { margin: 18px auto 0; }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1100px; margin: 0 auto; padding-top: 40px; }
.num-card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--edge); border-radius: var(--radius);
  padding: 34px 30px; }
.num { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.num.orange { color: var(--orange); }
.num.green { color: var(--green); }
.num-card p { color: var(--sub); margin: 6px 0 0; }
.numbers .note { grid-column: 1 / -1; text-align: center; }

/* csv stage */
.csv-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; max-width: 1100px; margin: 0 auto; }
.csv-box, .cat-box { background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius); padding: 18px; min-height: 360px; overflow: hidden; }
.box-title { color: var(--sub); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.csv-line { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; color: #7d7d7d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 7px 0; border-bottom: 1px solid #1c1d20; }
.cat-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #1c1d20; font-size: .92rem; }
.cat-line .amt { font-variant-numeric: tabular-nums; color: var(--red); font-weight: 600; }
.cat-line .amt.pos { color: var(--green); }
.pill { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #1d2a33; color: var(--acc); white-space: nowrap; }
.arrow { font-size: 2.4rem; color: var(--acc); }
.steps { list-style: none; padding: 0; margin: 60px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius); padding: 24px; }
.steps b { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); }
.steps p { color: var(--sub); margin: 6px 0 0; }

/* showcase */
.showcase { padding-left: 0; padding-right: 0; }
.show-track { display: flex; flex-direction: column; gap: 120px; padding: 0 clamp(16px, 5vw, 72px); }
.show-item { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 50px; align-items: center; }
.show-text p:not(.eyebrow) { color: var(--sub); font-size: 1.1rem; margin-top: 18px; }
.frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--edge); position: relative;
  box-shadow: 0 40px 120px -40px rgba(191, 224, 245, .35), 0 0 0 1px rgba(255, 255, 255, .03); transform-style: preserve-3d; }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .10), transparent 38%); pointer-events: none; }
.frame.wide { max-width: 1100px; margin: 60px auto 0; }

/* heatmap */
.heat-wrap { max-width: 1100px; margin: 0 auto; background: var(--card); border: 1px solid var(--edge); border-radius: var(--radius); padding: 26px; overflow-x: auto; }
.heat-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; min-width: 700px; }
.heat-grid i { aspect-ratio: 1; border-radius: 3px; background: #1c1d20; }
.heat-grid i.l1, .heat-legend .l1 { background: #e8c547; }
.heat-grid i.l2, .heat-legend .l2 { background: #ff9f0a; }
.heat-grid i.l3, .heat-legend .l3 { background: #ff6a2b; }
.heat-grid i.l4, .heat-legend .l4 { background: #ff453a; }
.heat-grid i.l5, .heat-legend .l5 { background: #1f7a3a; }
.heat-legend { display: flex; align-items: center; gap: 6px; justify-content: flex-end; margin-top: 16px; color: var(--sub); font-size: .8rem; }
.heat-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.heat-legend span { margin: 0 6px; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1100px; margin: 0 auto; }
.feat { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--edge); border-radius: var(--radius); padding: 28px;
  transition: border-color .3s, transform .3s; }
.feat:hover { border-color: #3a4a55; transform: translateY(-4px); }
.feat .ico { font-size: 1.6rem; }
.feat h3 { margin: 14px 0 8px; }
.feat p { color: var(--sub); margin: 0; }

/* banks marquee */
.banks { padding-top: 40px; padding-bottom: 40px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-inner { display: flex; gap: 56px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-inner span { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; color: #3a3b3f; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* faq */
.faq { max-width: 860px; margin: 0 auto; }
details { background: var(--card); border: 1px solid var(--edge); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--acc); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--sub); margin: 0 0 18px; }

/* final */
.final { text-align: center; padding-bottom: 160px; }
.final .sub { margin: 18px auto 34px; }

footer.foot { border-top: 1px solid #141414; padding: 40px 20px 110px; text-align: center; color: #5b5b5b; font-size: .85rem; }
.foot .socials, .foot .legal { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; }
.foot a { color: var(--sub); text-decoration: none; }
.foot a:hover { color: var(--txt); }

.sticky-buy { display: none; }

/* legal pages */
.legal-page { max-width: 760px; margin: 0 auto; padding: 120px 20px 80px; }
.legal-page h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 30px; }
.legal-page h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal-page p, .legal-page li { color: #c8c8c8; }

/* mobile */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { align-items: flex-end; padding-bottom: 90px; }
  .numbers, .steps, .feat-grid { grid-template-columns: 1fr; }
  .csv-stage { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .csv-box, .cat-box { min-height: 0; }
  .show-item { grid-template-columns: 1fr; gap: 26px; }
  .show-track { gap: 80px; }
  .sticky-buy { display: block; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
    background: var(--acc); color: var(--acc-ink); text-align: center; padding: 15px; border-radius: 999px; font-weight: 800; text-decoration: none;
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, .8), 0 0 30px -6px rgba(191, 224, 245, .5); transform: translateY(140%); transition: transform .4s; }
  .sticky-buy.show { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-inner, .scroll-hint span { animation: none; }
}

/* stacked hero (narrow or tall screens): dashboard on top, text below */
.stacked .hero { align-items: flex-end; padding-bottom: 80px; }
.stacked .hero-copy { max-width: 760px; }
.stacked h1 { font-size: clamp(2.3rem, 6.4vw, 4.4rem); }

/* small phones: more room for the 3D dashboard above the text */
@media (max-width: 480px) {
  .stacked .hero { padding-bottom: 36px; }
  .hero .btn-ghost { display: none; }
  .hero .lead { font-size: .98rem; }
  .eyebrow { letter-spacing: .14em; }
}

/* buy buttons: short shake every few seconds so they catch the eye */
@keyframes buy-wiggle {
  0%, 16%, 100% { rotate: 0deg; scale: 1; }
  2%  { rotate: -5deg; scale: 1.07; }
  4%  { rotate: 5deg;  scale: 1.07; }
  6%  { rotate: -4deg; scale: 1.06; }
  8%  { rotate: 3.5deg; scale: 1.05; }
  10% { rotate: -2.5deg; scale: 1.04; }
  12% { rotate: 1.5deg; scale: 1.02; }
  14% { rotate: -.5deg; scale: 1.01; }
}
a[href*="checkout-ds24"] { animation: buy-wiggle 3.2s ease-in-out 1.6s infinite; transform-origin: center; }
a[href*="checkout-ds24"]:hover, a[href*="checkout-ds24"]:focus-visible { animation: none; }
@media (prefers-reduced-motion: reduce) { a[href*="checkout-ds24"] { animation: none; } }
