/* Landing draft v3 (landing-v3.html), after alphadojo.net: near-black and
 * monochrome, a frame of fine lines, light only as spotlights and beams.
 * Fuse cyan is the accent, gold only in the Rewards part. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.v3 {
  --v3-bg: #0e0f11;
  --v3-panel: #141518;
  --v3-panel-2: #1a1b1f;
  --v3-line: rgba(255, 255, 255, 0.07);
  --v3-line-strong: rgba(255, 255, 255, 0.12);
  --v3-dim: rgba(255, 255, 255, 0.55);
  --v3-accent: 236 238 241;
  --v3-gold: 245 176 82;
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--v3-bg);
  color: #f4f5f6;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Fine grain over everything, like a photo. */
.v3::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  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>");
}

/* Side padding only: the sections set their own vertical padding (py-*). */
.v3-container { position: relative; width: 100%; max-width: 1160px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 768px) { .v3-container { padding-left: 40px; padding-right: 40px; } }
.v3-hline { height: 1px; background: var(--v3-line); }

/* The page backdrop: fixed behind every section, so nothing starts or ends
 * as a block. Two slow teal light fields drifting about, and grain. */
.v3-backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.v3-backdrop-field {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgb(var(--v3-accent) / 0.045), transparent 100%);
  will-change: transform;
}
.v3-backdrop-field-a { left: -20vmax; top: -25vmax; animation: v3-field-a 38s ease-in-out infinite alternate; }
.v3-backdrop-field-b { right: -25vmax; bottom: -30vmax; animation: v3-field-b 46s ease-in-out infinite alternate; }
@keyframes v3-field-a { to { transform: translate(28vw, 30vh) scale(1.15); } }
@keyframes v3-field-b { to { transform: translate(-30vw, -26vh) scale(0.9); } }

.v3-label { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.01em; }
.v3-dim { color: var(--v3-dim); }
.v3-heading-dim { color: rgba(255, 255, 255, 0.42); }

/* Panels and cells. */
.v3-panel {
  position: relative;
  background: linear-gradient(180deg, var(--v3-panel-2), var(--v3-panel));
  border: 1px solid var(--v3-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.v3-inset {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--v3-line);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}
.v3-cell { position: relative; border: 1px solid var(--v3-line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 60%); }
/* Illustrations run out into the dark at the bottom. */
.v3-fade-b {
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.v3-fade-x {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.v3-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--v3-line-strong);
}
.v3-dot { width: 6px; height: 6px; border-radius: 999px; background: rgb(var(--v3-accent)); box-shadow: 0 0 0 3px rgb(var(--v3-accent) / 0.18); }

/* Big numbers: white fading to grey. */
.v3-grad {
  background: linear-gradient(180deg, #ffffff 15%, #8b8f96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.v3-grad-gold {
  background: linear-gradient(180deg, #fff3dc 10%, rgb(var(--v3-gold)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The same fade for rolling numbers: NumberFlow draws its digits in a
 * shadow root, where background-clip text does not reach, so the fade is a
 * mask over solid colour instead. */
.v3-grad-mask, .v3-grad-gold-mask {
  -webkit-mask-image: linear-gradient(180deg, #000 25%, rgba(0, 0, 0, 0.5) 100%);
  mask-image: linear-gradient(180deg, #000 25%, rgba(0, 0, 0, 0.5) 100%);
}
.v3-grad-mask { color: #fff; }
.v3-grad-gold-mask { color: rgb(var(--v3-gold)); }

/* A cone of light falling from the top. */
.v3-spotlight {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(900px, 120vw);
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  /* The blur sits on the parent, so it softens the cut edges of the cone. */
  filter: blur(34px);
  animation: v3-breathe 7s ease-in-out infinite alternate;
}
.v3-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.17) 10%, rgba(255, 255, 255, 0.035) 55%, transparent 85%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}
@keyframes v3-breathe { from { opacity: 0.75; } to { opacity: 1; } }

/* Light running along a beam path (pathLength 100 on the path). */
.v3-beam-run { stroke-dasharray: 14 100; animation: v3-beam 3.2s cubic-bezier(0.45, 0, 0.35, 1) infinite; }
@keyframes v3-beam { from { stroke-dashoffset: 114; } to { stroke-dashoffset: 0; } }

/* Rows that run sideways; hover pauses them. */
@keyframes v3-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.v3-marquee { display: flex; width: -moz-max-content; width: max-content; animation: v3-marquee var(--v3-speed, 60s) linear infinite; }
.v3-marquee.is-reverse { animation-direction: reverse; }
.v3-marquee-wrap:hover .v3-marquee { animation-play-state: paused; }

/* Buttons. */
.v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.v3-btn:active { transform: scale(0.97); }
.v3-btn-primary { background: #f4f5f6; color: #0e0f11; box-shadow: 0 8px 24px -10px rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.v3-btn-primary:hover { background: #fff; }
.v3-btn-ghost { background: rgba(255, 255, 255, 0.05); color: #f4f5f6; border: 1px solid var(--v3-line-strong); }
.v3-btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.2); }
.v3 a:focus-visible, .v3 button:focus-visible { outline: 2px solid rgb(var(--v3-accent) / 0.8); outline-offset: 2px; }

/* Grid cells may shrink below their content, so long lines wrap on phones. */
.v3 .grid > * { min-width: 0; }

/* Grain for a single picture or panel (the page grain sits on .v3::before). */
.v3-grain {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Cards (image cells, stat cards, the price card): dark panel lit from
 * above, a fine top edge. */
.v3-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 38%),
    #111214;
  border: 1px solid var(--v3-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}

/* The edge lights up where the pointer is (set by pointerLight in kit). */
.v3-glint { --mx: 50%; --my: -200px; }
.v3-glint::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgb(var(--tone, var(--v3-accent)) / 0.75), rgba(255, 255, 255, 0.18) 35%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.v3-glint:hover::after { opacity: 1; }

/* The FAQ terminal (Faq.tsx): the demo card's breathing light from below
 * (index.css .glass-card-live), here in white, not teal: the closing banner
 * right after it is teal already. A sheen rising from the bottom edge and a
 * fine line on the edge, at their own paces. Still for less motion. */
.v3-faq-shine { background: radial-gradient(110% var(--live-h) at 50% 115%, rgb(236 238 241 / calc(var(--live-a) * 0.5)) 0%, transparent 65%); animation: card-breathe 9s ease-in-out infinite alternate; }
.v3-faq-line { background: linear-gradient(90deg, transparent, rgb(236 238 241 / 0.55), transparent); transform-origin: 50% 50%; animation: card-line-breathe 6.5s ease-in-out infinite alternate; }

/* The terminal's glitch every 30 s (Faq.tsx): the screen jumps with a red
 * and blue colour split for a moment. */
.v3-faq-glitch { animation: faq-rgb 0.55s steps(1, end); }
@keyframes faq-rgb {
  0% { transform: none; text-shadow: none; }
  10% { transform: translate(-3px, 1px); text-shadow: -2px 0 rgba(255, 70, 100, 0.75), 2px 0 rgba(70, 210, 255, 0.75); }
  22% { transform: translate(3px, -1px); }
  34% { transform: translate(-1px, 2px); text-shadow: 2px 0 rgba(255, 70, 100, 0.75), -2px 0 rgba(70, 210, 255, 0.75); }
  48% { transform: translate(2px, 0); }
  62% { transform: none; text-shadow: none; }
  74% { transform: translate(-2px, 0); text-shadow: -3px 0 rgba(255, 70, 100, 0.6), 3px 0 rgba(70, 210, 255, 0.6); }
  86%, 100% { transform: none; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-faq-shine, .v3-faq-line, .v3-faq-glitch { animation: none; }
}


/* The Rewards activity feed (Rewards.tsx): rows run upward without end and
 * hold still under the pointer. */
@keyframes v3-feed { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
.v3-feed { animation: v3-feed var(--v3-feed-s, 40s) linear infinite; }
.v3-feed-wrap:hover .v3-feed { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .v3-feed { animation: none; } }

/* Lift on hover, the same everywhere. */
.v3-lift { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.5s ease; }
.v3-lift:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 70px -34px rgba(0, 0, 0, 0.95); }

/* The picture inside a cell zooms a little on hover. */
.v3-zoom { transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); transform-origin: 50% 60%; }
.group:hover .v3-zoom { transform: scale(1.04); }

/* Stronger fade for the giant price number, so the card can sit on it. */
.v3-grad-deep {
  color: #fff;
  -webkit-mask-image: linear-gradient(180deg, #000 18%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.06) 92%);
  mask-image: linear-gradient(180deg, #000 18%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.06) 92%);
}

/* A meteor crossing a picture (Rewards streak cell). */
@keyframes v3-meteor {
  0% { transform: translate(0, 0) rotate(-32deg); opacity: 0; }
  8% { opacity: 1; }
  45% { opacity: 1; }
  60%, 100% { transform: translate(-340px, 210px) rotate(-32deg); opacity: 0; }
}
.v3-meteor { animation: v3-meteor 5.5s cubic-bezier(0.45, 0, 0.6, 1) infinite; }

/* Rolling digits (art/RollingNumber): each digit slides on its own strip.
 * The step is rounded to whole pixels: at 1.15em of 10.5 or 12.5 px the
 * strips stopped at fractions (6 at -72.45 px, 9 at -108.675 px), so digits
 * sat half a pixel higher or lower than their neighbours (2026-10-27). */
.v3-roll { --v3-roll-h: 1.15em; display: inline-flex; align-items: flex-start; font-variant-numeric: tabular-nums; line-height: var(--v3-roll-h); height: var(--v3-roll-h); white-space: nowrap; }
@supports (height: round(1.5px, 1px)) {
  .v3-roll { --v3-roll-h: round(1.15em, 1px); }
}
.v3-roll-col { display: inline-block; height: var(--v3-roll-h); overflow: hidden; }
.v3-roll-strip { display: flex; flex-direction: column; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.v3-roll-strip > span { height: var(--v3-roll-h); }

/* Running lists (Rewards points and invites): every item sits in a slot and
 * glides to the next one with a transform; a new item grows in, the oldest
 * fades out. Nothing changes layout, so nothing jumps. */
.v3-slot { position: absolute; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease; }
@keyframes v3-bar-in { from { transform: scaleY(0); } }
.v3-bar-in { transform-origin: 50% 100%; animation: v3-bar-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes v3-row-in { from { opacity: 0; transform: translateY(-10px); } }
.v3-row-in { animation: v3-row-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }


/* Edge fade for running rows. */
.v3-fade-x-wide {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* Closing banner: a short glitch every 7 s (a few px of shift and a little
   hue), quiet the rest of the time. */
/* A rare, soft glitch on the landing's pictures (2026-10-23): a short eased
 * colour flicker every 16 s, nothing moves (the old stepped jolt shook the
 * picture and looked laggy). */
.v3-glitch { animation: v3-glitch 16s ease-in-out infinite; }
@keyframes v3-glitch {
  0%, 92%, 100% { filter: none; }
  93.5% { filter: hue-rotate(-12deg) saturate(1.25) contrast(1.06); }
  95% { filter: hue-rotate(9deg) brightness(1.1); }
  96.5% { filter: none; }
}

/* Typewriter caret of the hero claim. */
.v3-caret { animation: v3-caret 1s steps(1, end) infinite; }
@keyframes v3-caret { 50% { opacity: 0; } }

/* Powered by: the line that fills over the partner in focus. */
.v3-progress { transform: scaleX(0); animation: v3-progress linear forwards; }
@keyframes v3-progress { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .v3-spotlight, .v3-beam-run, .v3-marquee, .v3-meteor, .v3-backdrop-field, .v3-glitch { animation: none; }
  .v3-lift, .v3-zoom, .v3-roll-strip, .v3-slot { transition: none; }
  .v3-bar-in, .v3-row-in { animation: none; }
  .v3-lift:hover, .group:hover .v3-zoom { transform: none; }
}

