/* BMFPartners affiliate landing page. Plain CSS, no build step. */

/* Self-hosted fonts (SIL Open Font License): Exo 2 and Inter, Latin subset. Upload the fonts/ folder with the site. */
@font-face { font-family: "Exo 2"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/exo-2-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: italic; font-weight: 900; font-display: swap; src: url("../fonts/exo-2-900-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@property --beam-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #06030f;
  --bg-2: #0c0720;
  --surface: #110a2b;
  --line: rgba(160, 110, 240, 0.18);
  --text: #f4f1fb;
  --muted: #a9a2c2;
  --purple: #7a2fc9;
  --purple-hi: #a863f5;
  --purple-lo: #4a1a85;
  --glow: rgba(122, 47, 201, 0.45);
  --radius: 18px;
  --font-head: "Exo 2", "Saira", "Arial Black", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 80px; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(168, 99, 245, 0.25); }
h1, h2, h3 { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-hi); }
:focus-visible { outline: 3px solid var(--purple-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; font-style: italic; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }
.grad {
  background: linear-gradient(100deg, #fff 10%, var(--purple-hi) 55%, #7a2fc9 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; font: 700 0.78rem/1 var(--font-head); font-style: italic;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--purple-hi); margin-bottom: 16px;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.section { overflow-x: clip; padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); margin: 14px 0 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(6, 3, 15, 0.72); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font: 900 1.6rem/1 var(--font-head); font-style: italic; text-decoration: none; color: #fff; letter-spacing: -0.02em; }
.brand b { color: var(--purple-hi); }

.nav { display: flex; gap: 26px; align-items: center; }
.nav a:not(.btn):not(.bg-anim) { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.nav a:not(.btn):not(.bg-anim):hover { color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn):not(.bg-anim) { display: none; } }

/* ---------- border-beam button ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; text-decoration: none; cursor: pointer;
  font: 800 0.95rem/1 var(--font-head); font-style: italic; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, #8a3ee0, #5c1fa6);
  box-shadow: 0 8px 30px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(150, 70, 240, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn::before, .beam::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--beam-angle), transparent 0 70%, #fff 85%, var(--purple-hi) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 3.6s linear infinite; pointer-events: none;
}
@keyframes beam { to { --beam-angle: 360deg; } }
.btn.ghost { background: rgba(255, 255, 255, 0.04); box-shadow: none; border: 1px solid var(--line); }
.btn.ghost::before { display: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.09); box-shadow: none; }
.btn.sm { padding: 11px 20px; font-size: 0.8rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(70px, 11vw, 150px) 0 clamp(70px, 9vw, 120px); isolation: isolate; text-align: center; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before { /* static radial gradient */
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(122, 47, 201, 0.55), transparent 70%),
    radial-gradient(ellipse 40% 35% at 15% 60%, rgba(74, 26, 133, 0.45), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 55%, rgba(122, 47, 201, 0.3), transparent 70%);
}
.grid-beam { /* grid lines with a moving highlight */
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 25%, transparent 78%);
}
.grid-beam { overflow: hidden; }
.grid-beam::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--purple-hi), transparent) 0 0 / 100% 2px no-repeat;
  filter: drop-shadow(0 0 12px var(--glow)); opacity: 0;
  animation: sweep 7s ease-in-out infinite; will-change: transform, opacity;
}
@keyframes sweep { 0% { transform: translateY(5%); opacity: 0; } 15% { opacity: 0.9; } 85% { opacity: 0.9; } 100% { transform: translateY(95%); opacity: 0; } }
.texture { position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero h1 { margin-bottom: 22px; }
.hero h1 .roll { display: inline-block; min-width: 2ch; }
.hero .lead { margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 22px; color: var(--muted); font-size: 0.82rem; }
.stat-row { display: flex; justify-content: center; gap: clamp(20px, 5vw, 56px); flex-wrap: wrap; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(1.5rem, 3vw, 2.1rem)/1 var(--font-head); font-style: italic; color: #fff; }
.stat span { font-size: 0.82rem; color: var(--muted); }

/* ---------- cards ---------- */
.card {
  position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease; overflow: hidden;
}
.card::after { /* halo that follows the cursor */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(168, 99, 245, 0.18), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(168, 99, 245, 0.5); }
.card:hover::after { opacity: 1; }
.card p { color: var(--muted); margin: 10px 0 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(122, 47, 201, 0.2); border: 1px solid var(--line); color: var(--purple-hi); }
.card .icon svg { width: 22px; height: 22px; }
.beam { border-color: transparent; }
.beam::before { padding: 1.5px; animation-duration: 5s; }

.grid { display: grid; gap: 18px; }
.grid.five { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- steps ---------- */
.step-num { font: 900 3.4rem/1 var(--font-head); font-style: italic; color: transparent; -webkit-text-stroke: 1.5px var(--purple-hi); margin-bottom: 14px; }

/* ---------- tiers ---------- */
.tier-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tier { text-align: left; padding: 24px 22px; }
.tier .t-label { font: 700 0.72rem/1 var(--font-head); font-style: italic; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.tier .pct { font: 900 3rem/1 var(--font-head); font-style: italic; margin: 14px 0 4px; }
.tier .range { color: var(--muted); font-size: 0.9rem; }
.tier.start .t-label::after { content: "  · START"; color: var(--purple-hi); }
.tier.top { background: linear-gradient(180deg, rgba(122, 47, 201, 0.28), rgba(122, 47, 201, 0.06)); }
.tier-ramp { height: 4px; border-radius: 4px; margin-top: 18px; background: linear-gradient(90deg, var(--purple-lo), var(--purple-hi)); opacity: 0.85; }
.rules { margin-top: 36px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rules .card { padding: 24px; }
.rules ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.rules li { margin: 6px 0; }
.formula { margin-top: 18px; padding: 16px 20px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px dashed var(--line); font-family: ui-monospace, Consolas, monospace; font-size: 0.9rem; color: #d9c8fa; overflow-x: auto; }

/* ---------- testimonials ---------- */
.t-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.t-card { display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: inherit; min-height: 220px; }
.t-card blockquote { margin: 0; font-size: 1.05rem; color: var(--text); }
.t-card blockquote::before { content: "\201C"; display: block; font: 900 3rem/0.6 var(--font-head); color: var(--purple-hi); margin-bottom: 8px; }
.t-card footer { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.t-card img { height: 40px; width: auto; max-width: 150px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px 10px; flex: none; }
.t-card cite { font-style: normal; font-weight: 700; display: block; }
.t-card .site { font-size: 0.82rem; color: var(--purple-hi); }
.t-empty { text-align: center; max-width: 560px; margin-inline: auto; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(168, 99, 245, 0.5); background: rgba(122, 47, 201, 0.08); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-head); color: var(--purple-hi); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }

/* ---------- final cta ---------- */
.final { text-align: center; overflow: hidden; isolation: isolate; }
.final .hero-bg::before { height: 160%; inset: -40% -10% auto; }
.final .wrap { position: relative; z-index: 2; }
.final p { margin: 18px auto 32px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 0.86rem; background: var(--bg); }
.site-footer .row { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }
.legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; max-width: 900px; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--muted); font-weight: 800; font-size: 0.8rem; margin-right: 10px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn::before, .beam::before, .grid-beam::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- extra: testimonials more link, sub pages ---------- */
.t-more { text-align: center; margin-top: 28px; }
.page-hero { padding: clamp(48px, 7vw, 90px) 0 20px; text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-hero p { color: var(--muted); max-width: 60ch; margin: 14px auto 0; }
.doc { max-width: 820px; margin-inline: auto; padding: 20px 0 90px; }
.doc h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 48px 0 14px; text-transform: none; font-style: normal; font-weight: 800; scroll-margin-top: 90px; }
.doc h2 .n { color: var(--purple-hi); margin-right: 8px; }
.doc h3 { font-size: 1.05rem; font-style: normal; margin: 26px 0 8px; }
.doc p, .doc li { color: #cfc8e3; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--muted); font-size: 0.86rem; }
.doc .toc { margin: 28px 0 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.doc .toc ol { columns: 2 260px; margin: 8px 0 0; }
.doc .toc a { text-decoration: none; }
.doc .toc a:hover { text-decoration: underline; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { font: 700 0.75rem/1 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple-hi); }
.doc .table-wrap { overflow-x: auto; }
.doc .note { padding: 14px 18px; border-left: 3px solid var(--purple-hi); background: rgba(122, 47, 201, 0.1); border-radius: 0 12px 12px 0; }
/* ---------- contact buttons ---------- */
.btn.contact {
  background: linear-gradient(180deg, rgba(168, 99, 245, 0.16), rgba(122, 47, 201, 0.06));
  border: 1px solid rgba(168, 99, 245, 0.45);
  box-shadow: 0 0 0 0 var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.btn.contact::before { display: none; }
.btn.contact svg { width: 18px; height: 18px; flex: none; color: var(--purple-hi); transition: transform 0.25s ease, color 0.25s ease; }
.btn.contact:hover { background: linear-gradient(180deg, rgba(168, 99, 245, 0.32), rgba(122, 47, 201, 0.16)); border-color: var(--purple-hi); box-shadow: 0 10px 34px rgba(150, 70, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn.contact:hover svg { color: #fff; transform: scale(1.12) rotate(-6deg); }
.t-card img.on-dark { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }

/* =====================================================================
   v3 components (plain CSS ports of Cult UI-style effects)
   ===================================================================== */

/* ---------- shared pill button shell ---------- */
.cosmic, .bg-anim, .metal {
  position: relative; display: inline-flex; padding: 2px; border-radius: 999px;
  text-decoration: none; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease, padding 0.2s ease, margin 0.2s ease;
}
.cosmic .in, .bg-anim .in, .metal .in {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; color: #fff; white-space: nowrap;
  font: 800 0.95rem/1 var(--font-head); font-style: italic; letter-spacing: 0.06em; text-transform: uppercase;
}
.cosmic.sm .in, .bg-anim.sm .in, .metal.sm .in { padding: 11px 20px; font-size: 0.8rem; }
.cosmic svg, .metal svg { width: 18px; height: 18px; flex: none; }
.cosmic::before, .cosmic::after, .bg-anim::before, .metal::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; will-change: transform;
  width: 640px; height: 640px; margin: -320px 0 0 -320px;
}
@keyframes spin-cw { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

/* cosmic: two conic layers spinning in opposite directions, noise on the face, border grows on hover */
.cosmic { box-shadow: 0 10px 36px rgba(122, 47, 201, 0.45); }
.cosmic::before { background: conic-gradient(from 0deg, transparent 0 55%, #7a2fc9 72%, #e8d9ff 86%, transparent 100%); animation: spin-cw 3s linear infinite; }
.cosmic::after { background: conic-gradient(from 90deg, transparent 0 60%, #4a1a85 75%, #b57bff 90%, transparent 100%); animation: spin-ccw 5s linear infinite; opacity: 0.9; }
.cosmic .in {
  background: radial-gradient(120% 170% at 50% 0%, #2c1366 0%, #130a30 55%, #0a0618 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -10px 24px rgba(122, 47, 201, 0.35);
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}
.cosmic .in::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0.14; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cosmic:hover { padding: 3px; margin: -1px; box-shadow: 0 14px 48px rgba(150, 70, 240, 0.65); }
.cosmic:hover .in { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -14px 30px rgba(168, 99, 245, 0.55); }
.cosmic:active .in { transform: scale(0.98); }

/* bg-animate: a solid spinning gradient shows as a ring around the button */
.bg-anim { box-shadow: 0 6px 24px rgba(122, 47, 201, 0.4); }
.bg-anim::before { background: conic-gradient(from 0deg, #4a1a85, #a863f5, #ff7ad9, #7a2fc9, #4a1a85); animation: spin-cw 4s linear infinite; }
.bg-anim .in { background: #0d0722; transition: background 0.25s ease; }
.bg-anim:hover::before { animation-duration: 1.6s; }
.bg-anim:hover .in { background: #170c3a; }
.bg-anim:hover { box-shadow: 0 8px 32px rgba(168, 99, 245, 0.6); transform: translateY(-1px); }

/* metal: brushed-chrome ring with moving highlights (CSS stand-in for the liquid-metal shader) */
.metal { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
.metal::before { background: conic-gradient(from 0deg, #f4f0ff, #8f84b8, #2a2148, #d9d0f5, #ffffff, #6a5a9c, #1c1536, #cfc6ee, #f4f0ff); animation: spin-cw 9s linear infinite; }
.metal .in { background: linear-gradient(180deg, #1c1340 0%, #0b0720 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -8px 18px rgba(0, 0, 0, 0.45); transition: background 0.25s ease; }
.metal:hover::before { animation-duration: 3s; }
.metal:hover .in { background: linear-gradient(180deg, #2a1c5c 0%, #120a30 100%); }
.metal:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(168, 99, 245, 0.35); }

/* ---------- text-animate (whipInUp): words rise and sharpen, staggered ---------- */
.ta-ready .ta-i { display: inline-block; opacity: 0; transform: translateY(0.55em); filter: blur(6px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
  transition-delay: calc(var(--i) * 70ms); }
.ta-ready.ta-in .ta-i { opacity: 1; transform: none; filter: none; }

/* ---------- hero: dot grid canvas (wave + cursor glow) ---------- */
.dot-grid { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 40%, #000 30%, transparent 80%); }
.grid-beam.sweep-only { background-image: none; }

/* ---------- why: feature carousel (enhanced) ---------- */
.is-fc { display: grid; gap: 18px; grid-template-columns: minmax(240px, 340px) 1fr; align-items: stretch; }
.fc-tabs { display: flex; flex-direction: column; gap: 10px; }
.fc-tab { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; cursor: pointer;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted);
  font: 700 0.98rem/1.2 var(--font-body); overflow: hidden; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.fc-tab svg { width: 20px; height: 20px; flex: none; color: var(--purple-hi); }
.fc-tab:hover { color: #fff; border-color: rgba(168, 99, 245, 0.45); }
.fc-tab[aria-selected="true"] { color: #fff; background: rgba(122, 47, 201, 0.16); border-color: rgba(168, 99, 245, 0.55); }
.fc-tab .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--purple), var(--purple-hi)); }
.fc-tab[aria-selected="true"] .bar { animation: fc-fill 5.5s linear forwards; }
.is-fc:hover .fc-tab .bar, .is-fc:focus-within .fc-tab .bar { animation-play-state: paused; }
@keyframes fc-fill { to { transform: scaleX(1); } }
.fc-stage { position: relative; min-height: 300px; }
.is-fc .fc-stage > article { display: none; height: 100%; min-height: 300px; padding: clamp(28px, 5vw, 52px); flex-direction: column; justify-content: center; opacity: 1; transform: none; }
.is-fc .fc-stage > article.on { display: flex; animation: fc-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.is-fc .fc-stage .icon { width: 64px; height: 64px; border-radius: 18px; }
.is-fc .fc-stage .icon svg { width: 30px; height: 30px; }
.is-fc .fc-stage h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.is-fc .fc-stage p { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; }
.is-fc .fc-stage::before { content: attr(data-n); position: absolute; right: 22px; top: 6px; z-index: 1; pointer-events: none;
  font: 900 clamp(5rem, 11vw, 9rem)/1 var(--font-head); font-style: italic; color: transparent; -webkit-text-stroke: 1.5px rgba(168, 99, 245, 0.28); }
@keyframes fc-in { from { opacity: 0; transform: translateX(28px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 820px) {
  .is-fc { grid-template-columns: 1fr; }
  .fc-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 8px; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .fc-tab { width: auto; flex: none; white-space: nowrap; scroll-snap-align: start; }
}

/* ---------- how it works: sticky step list ---------- */
.how-layout { display: grid; gap: 18px; }
.how-nav { display: none; }
.how-steps { display: grid; gap: 18px; }
.how-cta { text-align: center; margin: 36px 0 0; }
.step { padding: 32px; }
@media (min-width: 900px) {
  .how-layout { grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
  .how-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 110px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
  .how-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 700; transition: background 0.25s ease, color 0.25s ease; }
  .how-nav a span { font: 900 1.1rem/1 var(--font-head); font-style: italic; color: var(--purple-hi); }
  .how-nav a:hover { color: #fff; }
  .how-nav a.on { color: #fff; background: rgba(122, 47, 201, 0.2); box-shadow: inset 0 0 0 1px rgba(168, 99, 245, 0.5); }
  .how-steps { gap: 28px; }
  .step { min-height: 290px; display: flex; flex-direction: column; justify-content: center; padding: 44px; }
  .step h3 { font-size: 2rem; }
  .step p { font-size: 1.15rem; max-width: 44ch; }
  .step .step-num { font-size: 4.6rem; }
}

/* ---------- faq: direction-aware tabs ---------- */
.dtabs { max-width: 820px; margin-inline: auto; }
.dp-h { font-size: 1.1rem; margin: 26px 0 12px; color: var(--purple-hi); text-transform: uppercase; letter-spacing: 0.12em; }
.dtabs.is-dt .dp-h { display: none; }
.dt-bar { position: relative; display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 22px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.dt-tab { position: relative; z-index: 1; padding: 10px 22px; border-radius: 999px; border: 0; background: none; cursor: pointer; color: var(--muted); font: 700 0.9rem/1 var(--font-body); transition: color 0.25s ease; -webkit-tap-highlight-color: transparent; }
.dt-tab[aria-selected="true"] { color: #fff; }
.dt-bubble { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: linear-gradient(180deg, #8a3ee0, #5c1fa6); box-shadow: 0 4px 18px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.35, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.35, 0.64, 1); }
.dt-stage { position: relative; overflow: hidden; transition: height 0.4s cubic-bezier(0.34, 1.2, 0.64, 1); }
.dt-stage .dpanel { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, filter 0.4s ease; }
.dt-stage .dpanel.leave { position: absolute; left: 0; right: 0; top: 0; }

/* ---------- final CTA: colour panels ---------- */
.color-panels { position: absolute; inset: -10% -5%; display: flex; justify-content: center; transform: skewX(-16deg);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 15%, transparent 72%); }
.color-panels i { flex: 1; filter: blur(16px); opacity: 0.55; transform-origin: center; will-change: transform;
  background: linear-gradient(180deg, transparent 0%, var(--c, #7a2fc9) 35%, var(--c, #7a2fc9) 65%, transparent 100%);
  animation: panel-drift 9s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0) * -1s); }
.color-panels i:nth-child(1) { --c: #4a1a85; --d: 0; }
.color-panels i:nth-child(2) { --c: #7a2fc9; --d: 2; }
.color-panels i:nth-child(3) { --c: #a863f5; --d: 4; }
.color-panels i:nth-child(4) { --c: #c026d3; --d: 6; }
.color-panels i:nth-child(5) { --c: #a863f5; --d: 3; }
.color-panels i:nth-child(6) { --c: #7a2fc9; --d: 5; }
.color-panels i:nth-child(7) { --c: #4a1a85; --d: 1; }
@keyframes panel-drift { from { transform: translateY(-8%) scaleY(0.85); } to { transform: translateY(8%) scaleY(1.1); } }

@media (prefers-reduced-motion: reduce) {
  .cosmic::before, .cosmic::after, .bg-anim::before, .metal::before, .color-panels i, .fc-tab .bar { animation: none !important; }
  .fc-tab[aria-selected="true"] .bar { transform: scaleX(1); }
  .is-fc .fc-stage > article.on { animation: none; }
  .dt-bubble, .dt-stage, .dt-stage .dpanel { transition: none; }
}
.is-fc.paused .fc-tab .bar { animation-play-state: paused; }
.step { scroll-margin-top: 100px; }

.fc-tabs::-webkit-scrollbar { display: none; }

/* =====================================================================
   3D casino props: dice, chips, cards (CSS 3D, decorative)
   ===================================================================== */
.hero { position: relative; }
.d3 { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); z-index: 1; pointer-events: none; opacity: 0;
  perspective: 700px; transform: translate3d(0, calc(var(--py, 0) * 1px), 0);
  filter: drop-shadow(0 14px 28px rgba(122, 47, 201, 0.35)); transition: opacity 1s ease; }
.d3.ready { opacity: 0.8; }
.d3.off * { animation-play-state: paused !important; }
.d3 > * { animation-delay: var(--delay); }

/* dice */
.die { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: die-spin var(--dur) linear infinite; }
.die .f { position: absolute; inset: 0; border-radius: 18%; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 15%;
  background: linear-gradient(145deg, #8a3ee0 0%, #4a1a85 60%, #2c0f56 100%);
  border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.2); backface-visibility: hidden; }
.die .p { width: 74%; height: 74%; place-self: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d9c9ff 70%); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
@keyframes die-spin { from { transform: rotate3d(1, 0.8, 0.3, 0deg); } to { transform: rotate3d(1, 0.8, 0.3, 360deg); } }

/* chips */
.chip-tilt { width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(58deg); }
.chip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: chip-flip var(--dur) ease-in-out infinite alternate; }
.chip i { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; }
.chip .side { background: repeating-conic-gradient(#f4efff 0 14deg, var(--c) 14deg 45deg); }
.chip .top { background: repeating-conic-gradient(#f4efff 0 14deg, var(--c) 14deg 45deg); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
.chip .top::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 70%); border: 2px dashed rgba(255, 255, 255, 0.7); }
.chip .top b { position: relative; font: 900 calc(var(--s) * 0.22)/1 var(--font-head); font-style: italic; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
@keyframes chip-flip { from { transform: rotateX(-18deg) rotateZ(0deg); } to { transform: rotateX(26deg) rotateZ(150deg); } }

/* playing cards */
.pcard { position: absolute; left: 14%; top: 0; width: 72%; height: 100%; transform-style: preserve-3d; animation: card-turn var(--dur) ease-in-out infinite alternate; }
.pcard .face { position: absolute; inset: 0; border-radius: 9%; backface-visibility: hidden; border: 1px solid rgba(255, 255, 255, 0.35); }
.pcard .front { background: linear-gradient(160deg, #fbf9ff, #e6dcfa); color: #4a1a85; display: grid; place-items: center; }
.pcard .front.red { color: #c026d3; }
.pcard .front svg { width: 46%; fill: currentColor; }
.pcard .rk { position: absolute; left: 11%; top: 6%; font: 900 calc(var(--s) * 0.24)/1 var(--font-head); font-style: italic; }
.pcard .back { transform: rotateY(180deg); background:
  repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 4px, transparent 4px 9px),
  linear-gradient(160deg, #6b27b5, #2c0f56); box-shadow: inset 0 0 0 5px #f4efff, inset 0 0 0 6px rgba(74, 26, 133, 0.6); }
@keyframes card-turn { from { transform: rotateY(-40deg) rotateZ(-10deg) rotateX(8deg); } to { transform: rotateY(200deg) rotateZ(8deg) rotateX(-8deg); } }

@media (max-width: 1100px) { .d3:not([data-mobile]) { display: none; } }
@media (max-width: 720px) { .d3[data-mobile] { --s: 52px !important; } .d3[data-mobile].ready { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .die, .chip, .pcard { animation: none; } .die { transform: rotate3d(1, 0.8, 0.3, 40deg); } .chip { transform: rotateX(10deg); } .pcard { transform: rotateY(20deg) rotateZ(-6deg); } }