:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0b0f16;
  --surface: #111722;
  --surface-2: #151c29;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-strong: rgba(255, 255, 255, 0.16);
  --fg: #eef1f6;
  --muted: #a2acbc;
  --subtle: #7e8798;
  --primary: #1fce90;
  --primary-strong: #4ee7b0;
  --primary-contrast: #04130d;
  --positive: #2ed195;

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-nav: 40;
  --z-menu: 50;
  --z-skip: 60;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open {
  overflow: hidden;
}

/* Fixed grain: one cheap layer, never on scrolling content */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  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='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 32rem at 78% -8%, rgba(31, 206, 144, 0.1), transparent 70%),
    radial-gradient(44rem 28rem at 4% 8%, rgba(120, 140, 170, 0.07), transparent 70%);
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
p {
  margin: 0;
  text-wrap: pretty;
}

.shell {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: fixed;
  left: -999px;
  top: 8px;
  z-index: var(--z-skip);
  padding: 8px 14px;
  background: var(--primary);
  color: var(--primary-contrast);
  border-radius: 999px;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 2px solid var(--primary-strong);
  outline-offset: 3px;
}

/* Type */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}
h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
em {
  font-style: normal;
  color: var(--fg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(31, 206, 144, 0.5);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(31, 206, 144, 0);
  }
}
.muted-p {
  color: var(--muted);
  max-width: 54ch;
}
.fine {
  font-size: 0.875rem;
  color: var(--subtle);
}

/* Buttons: pill with nested icon island */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 24px;
  min-height: 52px;
  border-radius: 999px;
  background: var(--fg);
  color: #0a0d12;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}
.btn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-contrast);
  transition: transform 0.5s var(--ease);
}
.btn:hover {
  background: #fff;
}
.btn:hover .btn-icon {
  transform: translate(2px, -1px) scale(1.06);
}
.btn:active {
  transform: scale(0.98);
}
.btn-sm {
  min-height: 42px;
  padding: 4px 4px 4px 18px;
  gap: 10px;
  font-size: 0.875rem;
}
.btn-sm .btn-icon {
  width: 32px;
  height: 32px;
}
.link {
  color: var(--muted);
  text-underline-offset: 5px;
  text-decoration-color: var(--hair-strong);
  transition: color 0.4s var(--ease);
}
.link:hover {
  color: var(--fg);
}

/* Double bezel */
.bezel {
  padding: 6px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hair);
}
.bezel-xl {
  padding: 8px;
  border-radius: 36px;
}
.core {
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 28px 60px -34px rgba(0, 0, 0, 0.8);
}
.bezel-xl > .core {
  border-radius: 29px;
}

/* Floating island nav */
.island-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}
.island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 7px 8px 7px 16px;
  border-radius: 999px;
  background: rgba(14, 19, 29, 0.72);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.island-links {
  display: flex;
  gap: 4px;
}
.island-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}
.island-links a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}
.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform 0.6s var(--ease);
}
.burger span:first-child {
  top: 17px;
}
.burger span:last-child {
  top: 24px;
}
body.menu-open .burger span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
body.menu-open .burger span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: rgba(7, 9, 13, 0.9);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
  display: grid;
  align-content: center;
  padding: 96px 28px 40px;
}
body.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0s;
}
body.menu-open .island-wrap {
  z-index: calc(var(--z-menu) + 1);
}
.menu-inner {
  display: grid;
  gap: 4px;
}
.menu-inner a {
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-decoration: none;
  padding: 8px 0;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
  transition-delay: 0s;
}
body.menu-open .menu-inner a {
  transform: none;
  opacity: 1;
  transition-delay: calc(80ms + var(--i) * 70ms);
}
.menu-inner .menu-cta {
  margin-top: 20px;
  color: var(--primary);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  min-height: 100dvh;
  padding-block: 150px 96px;
}
.hero-copy {
  display: grid;
  gap: 28px;
  justify-items: start;
}
.lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}
.actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Demo */
.demo {
  margin: 0;
  padding: 22px;
  display: grid;
  gap: 18px;
}
.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair);
}
.tabs button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.tabs button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.11);
  color: var(--fg);
}
.tabs button:hover {
  color: var(--fg);
}
.tag {
  padding: 4px 10px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.demo-body {
  display: grid;
  gap: 8px;
}
.demo-body.swap > * {
  animation: swap 0.7s var(--ease) both;
}
.demo-body.swap > :nth-child(2) { animation-delay: 40ms; }
.demo-body.swap > :nth-child(3) { animation-delay: 80ms; }
.demo-body.swap > :nth-child(4) { animation-delay: 120ms; }
.demo-body.swap > :nth-child(5) { animation-delay: 160ms; }
@keyframes swap {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.demo-league {
  font-size: 0.8125rem;
  color: var(--subtle);
}
.demo-fixture {
  font-size: 1.0625rem;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.demo-pick {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.demo-pick span {
  color: var(--subtle);
  font-weight: 400;
}
.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-block: 10px;
  padding-block: 16px;
  border-block: 1px solid var(--hair);
}
.label {
  display: block;
  font-size: 0.75rem;
  color: var(--subtle);
  margin-bottom: 2px;
}
.num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.num.dim {
  color: var(--muted);
}
.num.pos {
  color: var(--positive);
}
.why {
  display: grid;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.why strong {
  color: var(--fg);
  font-weight: 500;
}
.why-title {
  font-size: 0.8125rem;
  color: var(--subtle);
}
.dots {
  display: flex;
  gap: 6px;
}
.d {
  flex: 1;
  max-width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--hair-strong);
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  animation: dot 0.7s var(--ease) both;
  animation-delay: calc(var(--i) * 55ms);
}
.d.on {
  background: rgba(31, 206, 144, 0.13);
  border-color: rgba(31, 206, 144, 0.5);
  color: var(--primary-strong);
}
@keyframes dot {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
}
figcaption {
  font-size: 0.75rem;
  color: var(--subtle);
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hair);
  padding-block: 22px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee ul {
  display: flex;
  gap: 56px;
  margin: 0;
  padding: 0 28px;
  list-style: none;
}
.marquee li {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--subtle);
  white-space: nowrap;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* Sections */
.section {
  padding-block: clamp(80px, 11vw, 160px);
}
.section-head {
  display: grid;
  gap: 22px;
  justify-items: start;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  max-width: 17ch;
}
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 7vw, 104px);
  align-items: start;
}
.split .section-head {
  margin-bottom: 0;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bento-a {
  grid-column: span 7;
}
.bento-b {
  grid-column: span 5;
}
.bento-c {
  grid-column: span 5;
}
.bento-d {
  grid-column: span 7;
}
.bento article,
.bento .bezel,
.bento .core {
  height: 100%;
}
.card {
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  align-content: start;
  gap: 14px;
}
.card p {
  color: var(--muted);
  max-width: 46ch;
}
.step {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--subtle);
  letter-spacing: 0.04em;
}

/* Fair price scale */
.scale {
  margin-top: 22px;
}
.scale-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  margin-block: 44px 26px;
}
.scale-gap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16%;
  right: 24%;
  border-radius: 999px;
  background: var(--primary);
  transform-origin: left;
}
.js .scale-gap {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease) 0.3s;
}
.js .in .scale-gap {
  transform: scaleX(1);
}
.mark {
  position: absolute;
  top: 50%;
}
.mark i {
  position: absolute;
  top: -6px;
  left: -1px;
  width: 2px;
  height: 18px;
  background: var(--fg);
  border-radius: 2px;
}
.mark b {
  position: absolute;
  bottom: 22px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}
.mark.fair {
  left: 16%;
}
.mark.fair b {
  color: var(--muted);
}
.mark.price {
  right: 24%;
}
.mark.price b {
  color: var(--positive);
  transform: translateX(50%);
  right: 0;
}
.scale-note {
  font-size: 0.875rem;
  color: var(--subtle) !important;
}

.checks {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.checks svg {
  color: var(--primary);
  flex: none;
}

.card-wide {
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.card-wide-copy {
  display: grid;
  gap: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips span {
  padding: 7px 13px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Results */
.results {
  background: var(--bg-2);
  border-block: 1px solid var(--hair);
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--hair-strong);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 24px;
  padding-block: 22px;
}
.timeline h3 {
  margin-bottom: 4px;
}
.timeline p {
  color: var(--muted);
  max-width: 44ch;
}
.t-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1.5px solid var(--hair-strong);
}
.t-live {
  border-color: var(--primary);
  background: var(--primary);
  animation: pulse 2.4s var(--ease-out) infinite;
}
.section-fine {
  margin-top: clamp(32px, 5vw, 56px);
}

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 820px;
}
.mini-steps {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  display: grid;
  gap: 14px;
  color: var(--muted);
}
.mini-steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
}
.mini-steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hair-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg);
}
.mini-steps strong {
  color: var(--fg);
  font-weight: 500;
}

/* Price */
.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: clamp(32px, 6vw, 72px);
}
.price-card > div {
  display: grid;
  gap: 20px;
  justify-items: start;
  max-width: 54ch;
}

/* FAQ */
.faq-list {
  display: grid;
}
details {
  border-top: 1px solid var(--hair);
}
details:last-child {
  border-bottom: 1px solid var(--hair);
}
summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  list-style: none;
  transition: color 0.4s var(--ease);
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--hair-strong);
  background:
    linear-gradient(var(--fg), var(--fg)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--fg), var(--fg)) center / 1.5px 10px no-repeat;
  transition: transform 0.6s var(--ease);
}
details[open] summary::after {
  transform: rotate(135deg);
}
summary:hover {
  color: #fff;
}
.ans {
  padding-bottom: 22px;
  color: var(--muted);
  max-width: 58ch;
}

/* Footer */
.foot {
  border-top: 1px solid var(--hair);
  padding-block: 56px;
}
.foot-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 7vw, 104px);
  align-items: start;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.foot-text {
  font-size: 0.875rem;
  color: var(--subtle);
  max-width: 68ch;
}
.foot-text strong {
  color: var(--muted);
  font-weight: 500;
}
.foot-text a {
  text-underline-offset: 3px;
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition:
    opacity 1s var(--ease) var(--d, 0ms),
    transform 1s var(--ease) var(--d, 0ms),
    filter 1s var(--ease) var(--d, 0ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .marquee-track,
  .live-dot,
  .t-live {
    animation: none;
  }
  .scale-gap {
    transform: scaleX(1);
    transition: none;
  }
  .d,
  .demo-body.swap > * {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero,
  .split,
  .foot-row {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-block: 120px 72px;
  }
  .island {
    gap: 14px;
  }
  .island-links {
    display: none;
  }
  .island-cta {
    display: none;
  }
  .burger {
    display: block;
  }
  .island {
    width: min(100%, 420px);
    justify-content: space-between;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-a,
  .bento-b,
  .bento-c,
  .bento-d {
    grid-column: auto;
  }
  .card-wide {
    grid-template-columns: 1fr;
  }
  .install-grid {
    grid-template-columns: 1fr;
  }
  .section-head h2 {
    max-width: none;
  }
}
@media (max-width: 480px) {
  .figures {
    gap: 8px;
  }
  .tabs button {
    padding: 7px 10px;
  }
  .demo {
    padding: 16px;
  }
}

/* ===== v2: app window, calculator, trust ===== */
.hero {
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 5vw, 72px);
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.02;
}
h1 .soft {
  color: var(--subtle);
}
.brand img,
.foot-brand img {
  width: auto;
  height: 32px;
}
.foot-brand img {
  height: 28px;
}
.proof {
  list-style: none;
  margin: 8px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--hair);
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}
.proof li {
  display: grid;
  gap: 2px;
}
.proof b {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.proof span {
  font-size: 0.8125rem;
  color: var(--subtle);
}

/* App window */
.app {
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: block;
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair);
}
.app-tabs {
  display: flex;
  gap: 4px;
  font-size: 0.8125rem;
}
.app-tabs span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--subtle);
}
.app-tabs .on {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}
.app-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
}
.feed {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid var(--hair);
  background: rgba(0, 0, 0, 0.14);
}
.feed button {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "lg main" "lg odds";
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.feed button:hover {
  background: rgba(255, 255, 255, 0.04);
}
.feed button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--hair-strong);
}
.lg {
  grid-area: lg;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}
.rw-main {
  grid-area: main;
  display: grid;
  min-width: 0;
}
.rw-main b {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rw-main i {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rw-odds,
.rw-ev {
  grid-area: odds;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.rw-odds {
  justify-self: start;
  color: var(--fg);
}
.rw-ev {
  justify-self: end;
  color: var(--positive);
}
.detail {
  padding: 22px;
}
.detail-body {
  display: grid;
  gap: 6px;
}
.detail-body.swap > * {
  animation: swap 0.7s var(--ease) both;
}
.detail-body.swap > :nth-child(2) { animation-delay: 40ms; }
.detail-body.swap > :nth-child(3) { animation-delay: 80ms; }
.detail-body.swap > :nth-child(4) { animation-delay: 120ms; }
.detail-body.swap > :nth-child(5) { animation-delay: 160ms; }
.app figcaption {
  padding: 12px 18px;
  border-top: 1px solid var(--hair);
}
.why-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--subtle);
}
.why-title span:first-child {
  color: var(--fg);
  font-weight: 500;
}
.demo-pick {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}
.demo-fixture {
  font-size: 0.9375rem;
}
.num {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

/* Section helpers */
.section.tight {
  padding-block: clamp(64px, 9vw, 128px);
}
.tight-top {
  padding-top: 0;
}
.explain {
  display: grid;
  gap: 14px;
  color: var(--muted);
  max-width: 52ch;
}
.explain strong {
  color: var(--fg);
  font-weight: 500;
}
#value .section-head h2 {
  max-width: 14ch;
}

/* Calculator */
.calc {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 24px;
}
.calc-title {
  font-size: 0.8125rem;
  color: var(--subtle);
  letter-spacing: 0.02em;
}
.field {
  display: grid;
  gap: 12px;
}
.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.field output {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--fg);
  border: 0;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.4s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fg);
  border: 0;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 8px rgba(31, 206, 144, 0.22);
}
.meter-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.meter-be,
.meter-p {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 999px;
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.meter-be {
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.28);
}
.meter-p {
  top: 3px;
  height: 4px;
  background: var(--primary);
}
.meter-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--subtle);
}
.results-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-block: 1px solid var(--hair);
}
.results-grid dt {
  font-size: 0.75rem;
  color: var(--subtle);
  margin-bottom: 2px;
}
.results-grid dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pos {
  color: var(--positive);
}
.neg {
  color: #f0866b;
}
.verdict {
  font-weight: 500;
  letter-spacing: -0.01em;
}
.calc-note {
  font-size: 0.8125rem;
  color: var(--subtle);
}

/* Bento extras */
.mini-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.mini-split div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.mini-split b {
  font-weight: 500;
  font-size: 0.9375rem;
}
.mini-split span {
  font-size: 0.8125rem;
  color: var(--subtle);
}

/* Do / don't */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  color: var(--muted);
}
.list li {
  position: relative;
  padding-left: 30px;
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--hair-strong);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.list-yes li::before {
  border-color: rgba(31, 206, 144, 0.5);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fce90' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 4.5 4.5L19 7'/></svg>");
}
.list-no li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237e8798' stroke-width='2.4' stroke-linecap='round'><path d='M6 6l12 12M18 6 6 18'/></svg>");
}

@media (max-width: 1000px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .feed {
    border-right: 0;
    border-bottom: 1px solid var(--hair);
  }
}
@media (max-width: 900px) {
  .two {
    grid-template-columns: 1fr;
  }
  #value .section-head h2 {
    max-width: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .results-grid {
    gap: 10px;
  }
  .detail {
    padding: 16px;
  }
}

.app-tabs span { white-space: nowrap; }
@media (max-width: 480px) {
  .app-tabs span:not(.on) { display: none; }
}

/* ===== v3: real app screenshots in phone frames ===== */
.phone {
  position: relative;
  width: min(100%, 260px);
  padding: 8px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1b2230, #0c1018 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 50px 80px -40px rgba(0, 0, 0, 0.9),
    0 18px 40px -22px rgba(0, 0, 0, 0.8);
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 50%;
  width: 27%;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #020305;
}
.phone-screen {
  overflow: hidden;
  border-radius: 38px;
  background: var(--bg);
  aspect-ratio: 780 / 1688;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Hero cascade */
.hero-phones {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}
.hero-phones .phone {
  position: absolute;
  transition: transform 0.9s var(--ease);
}
.phone-back {
  left: 6%;
  top: 70px;
  width: min(46%, 250px);
  transform: rotate(-5deg);
  opacity: 0.96;
}
.phone-front {
  right: 4%;
  top: 8px;
  width: min(50%, 272px);
  transform: rotate(3deg);
  z-index: 1;
}
.hero-phones:hover .phone-back {
  transform: rotate(-7deg) translate(-8px, 6px);
}
.hero-phones:hover .phone-front {
  transform: rotate(4deg) translate(6px, -6px);
}
.float {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border-radius: 18px;
  background: rgba(14, 19, 29, 0.78);
  border: 1px solid var(--hair-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 24px 40px -20px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
  animation: floaty 7s var(--ease) infinite alternate;
}
.float b {
  color: var(--fg);
  font-weight: 500;
}
.float-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(31, 206, 144, 0.5);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes floaty {
  to {
    transform: translateY(-10px);
  }
}

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.show {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 28px;
}
.show:nth-child(2) {
  margin-top: 64px;
}
.show .phone {
  width: min(100%, 290px);
}
.show figcaption {
  display: grid;
  gap: 4px;
  max-width: 28ch;
  text-align: left;
  font-size: 0.9375rem;
  color: var(--muted);
}
.show figcaption b {
  color: var(--fg);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

/* Install */
.install2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 7vw, 104px);
  align-items: center;
}
.install2-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair);
}
.seg button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 9px 22px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.seg button[aria-selected="true"] {
  background: var(--fg);
  color: #0a0d12;
}
.how {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  width: 100%;
}
.how li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
}
.how li:first-child {
  border-top: 0;
}
.how-ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair);
  color: var(--primary-strong);
}
.how li div {
  display: grid;
  gap: 2px;
}
.how b {
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.how span:not(.how-ic) {
  font-size: 0.875rem;
  color: var(--subtle);
}
.how.swap li {
  animation: swap 0.7s var(--ease) both;
}
.how.swap li:nth-child(2) { animation-delay: 70ms; }
.how.swap li:nth-child(3) { animation-delay: 140ms; }

.install2-visual {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
}
.phone-install {
  width: min(100%, 270px);
  margin-left: auto;
  margin-right: 8%;
}
.sheet {
  position: absolute;
  left: 0;
  bottom: 64px;
  width: min(62%, 280px);
  padding: 6px;
  border-radius: 22px;
  background: rgba(20, 26, 38, 0.86);
  border: 1px solid var(--hair-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 50px -22px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 2;
}
.sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.sheet-row i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--hair-strong);
}
.sheet-row.on {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}
.sheet-row.on svg {
  color: var(--primary-strong);
}
.appicon {
  position: absolute;
  z-index: 3;
  left: 4%;
  top: 56px;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  animation: floaty 6s var(--ease) infinite alternate;
}
.appicon img {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  box-shadow: 0 0 0 1px var(--hair-strong), 0 0 0 7px rgba(31, 206, 144, 0.14), 0 22px 30px -14px rgba(0, 0, 0, 0.9);
}

@media (max-width: 1000px) {
  .showcase {
    gap: 14px;
  }
  .show figcaption {
    font-size: 0.8125rem;
  }
}
@media (max-width: 900px) {
  .hero-phones {
    min-height: 440px;
    margin-top: 12px;
  }
  .phone-back {
    left: 0;
    top: 52px;
    width: 48%;
  }
  .phone-front {
    right: 0;
    top: 0;
    width: 54%;
  }
  .float {
    left: 4px;
    bottom: 4px;
  }
  .showcase {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 20px 24px;
    margin-inline: -20px;
    scrollbar-width: none;
  }
  .showcase::-webkit-scrollbar {
    display: none;
  }
  .show {
    flex: 0 0 min(78%, 300px);
    scroll-snap-align: center;
  }
  .show:nth-child(2) {
    margin-top: 0;
  }
  .install2 {
    grid-template-columns: 1fr;
  }
  .install2-visual {
    min-height: 560px;
  }
  .phone-install {
    margin: 0 auto;
  }
  .sheet {
    left: 0;
    bottom: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .float,
  .appicon,
  .float-dot {
    animation: none;
  }
  .hero-phones .phone {
    transition: none;
  }
}

/* Phone refinements */
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand {
  min-height: 44px;
}
@media (max-width: 900px) {
  .install2-visual {
    min-height: 500px;
    display: block;
  }
  .phone-install {
    width: min(62%, 240px);
    margin: 0 0 0 auto;
  }
  .appicon {
    left: 4px;
    top: 20px;
  }
  .sheet {
    left: 0;
    bottom: 24px;
    width: min(66%, 250px);
  }
}

/* ===== Legal pages ===== */
.island-simple {
  gap: 22px;
}
.legal {
  width: min(740px, 100% - 40px);
  margin: 0 auto;
  padding: 150px 0 96px;
  color: var(--muted);
}
.legal .eyebrow {
  margin-bottom: 22px;
}
.legal h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  color: var(--fg);
}
.legal .updated {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--subtle);
}
.legal .intro {
  margin-top: 28px;
  font-size: 1.125rem;
  color: var(--muted);
}
.legal h2 {
  margin: 52px 0 14px;
  font-size: 1.35rem;
  color: var(--fg);
  letter-spacing: -0.025em;
}
.legal p,
.legal ul {
  margin: 0 0 14px;
}
.legal ul {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.legal li::marker {
  color: var(--subtle);
}
.legal strong {
  color: var(--fg);
  font-weight: 500;
}
.legal a {
  color: var(--fg);
  text-underline-offset: 4px;
  text-decoration-color: var(--hair-strong);
}
.legal a:hover {
  text-decoration-color: var(--primary);
}
.legal .facts {
  list-style: none;
  padding: 0;
  gap: 0;
  border: 1px solid var(--hair);
  border-radius: 16px;
  overflow: hidden;
}
.legal .facts li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--hair);
}
.legal .facts li:first-child {
  border-top: 0;
}
.legal .facts span {
  color: var(--subtle);
  font-size: 0.875rem;
}
.legal .fill {
  font-weight: 400;
  color: #f0c36b;
}
.foot-links {
  display: flex;
  gap: 22px;
  margin-top: 14px;
  font-size: 0.875rem;
}
.foot-links a {
  color: var(--muted);
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.foot-links a:hover,
.foot-links a[aria-current="page"] {
  color: var(--fg);
}
@media (max-width: 600px) {
  .legal {
    padding-top: 120px;
  }
  .legal .facts li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ===== Journey: from the site to the app ===== */
.island-login {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.4s var(--ease), background 0.4s var(--ease);
}
.island-login:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}
.phone-sm {
  width: min(100%, 230px);
  padding: 7px;
  border-radius: 38px;
}
.phone-sm::before {
  top: 14px;
  height: 17px;
}
.phone-sm .phone-screen {
  border-radius: 31px;
}
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
}
.journey li {
  display: grid;
  align-content: start;
  gap: 12px;
}
.journey h3 {
  margin-top: 14px;
}
.journey p {
  color: var(--muted);
  max-width: 30ch;
}
.j-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.j-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--hair-strong);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}
.j-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--hair-strong), transparent);
}
.journey-cta {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.inline-link {
  color: var(--fg);
  text-underline-offset: 4px;
  text-decoration-color: var(--hair-strong);
}
@media (max-width: 900px) {
  .island-login {
    display: none;
  }
  .journey {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .journey li {
    grid-template-columns: 150px 1fr;
    grid-template-areas: "top top" "phone title" "phone text";
    grid-template-rows: auto auto 1fr;
    column-gap: 20px;
    row-gap: 4px;
    align-items: start;
  }
  .journey .j-top { grid-area: top; margin-bottom: 4px; }
  .journey .phone-sm { grid-area: phone; width: 100%; }
  .journey h3 { grid-area: title; margin-top: 8px; }
  .journey p { grid-area: text; align-self: start; }
}

/* ===== v4: the wow layer ===== */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes grow {
  to {
    transform: scaleX(1);
  }
}

/* Hero atmosphere: slow aurora + faint grid */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% 0 -20%;
  z-index: -1;
  background:
    radial-gradient(38rem 24rem at 72% 38%, rgba(31, 206, 144, 0.14), transparent 70%),
    radial-gradient(30rem 22rem at 30% 70%, rgba(112, 140, 190, 0.1), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 60% at 60% 45%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 60% 45%, #000, transparent 75%);
}
@keyframes aurora {
  to {
    transform: translate3d(3%, -4%, 0) scale(1.08);
  }
}

/* Buttons: glow, shine, magnetic pull */
.btn {
  position: relative;
  overflow: hidden;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
}
.btn:active {
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.97);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn:hover::after {
  transform: translateX(120%);
  transition: transform 0.9s var(--ease);
}
.btn-glow {
  box-shadow: 0 14px 40px -14px rgba(31, 206, 144, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.btn-glow:hover {
  box-shadow: 0 18px 54px -14px rgba(31, 206, 144, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}
.btn-glow .btn-icon {
  box-shadow: 0 0 0 0 rgba(31, 206, 144, 0.5);
  animation: ring 2.8s var(--ease-out) infinite;
}
@keyframes ring {
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(31, 206, 144, 0);
  }
}

/* Headline word reveal */
.js h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(8px);
  animation: word 0.9s var(--ease) forwards;
  animation-delay: calc(var(--wi) * 70ms + 120ms);
}
@keyframes word {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.js h1.reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Spotlight that follows the cursor on cards */
.core {
  position: relative;
}
.core::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.075), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.bezel:hover > .core::before {
  opacity: 1;
}

/* 3D tilt on the hero phones */
.hero-demo {
  perspective: 1400px;
}
.hero-phones {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out);
  transform-style: preserve-3d;
}

/* Example bets ticker */
.ticker {
  padding-block: 26px;
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
}
.ticker-label {
  width: min(1180px, 100% - 40px);
  margin: 0 auto 14px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 52s linear infinite reverse;
}
.ticker-track:hover {
  animation-play-state: paused;
}
.ticker ul {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 7px;
  list-style: none;
}
.ticker li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.tk-lg {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}
.tk-t {
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
.tk-o {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--fg);
}
.tk-ev {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--positive);
}

/* Footer wordmark */
.foot {
  position: relative;
  overflow: hidden;
}
.foot::after {
  content: "VFM";
  position: absolute;
  left: 50%;
  bottom: -0.32em;
  transform: translateX(-50%);
  font-size: clamp(7rem, 24vw, 20rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  white-space: nowrap;
}
.foot .shell {
  position: relative;
  z-index: 1;
}
.foot {
  padding-bottom: clamp(120px, 16vw, 220px);
}

/* Sticky create-account bar, phones only */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  background: rgba(14, 19, 29, 0.82);
  border: 1px solid var(--hair-strong);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: translate(-50%, 140%);
  transition: transform 0.7s var(--ease);
}
.sticky-cta.on {
  transform: translate(-50%, 0);
}
.sticky-login {
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}
@media (max-width: 900px) {
  .sticky-cta {
    display: flex;
  }
  .foot {
    padding-bottom: 150px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .ticker-track,
  .btn-glow .btn-icon {
    animation: none;
  }
  .js h1 .w {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
  .hero-phones {
    transform: none;
  }
}

/* Nothing may widen the page */
html {
  overflow-x: clip;
}
.hero::before {
  inset: -10% -6% 0 -6%;
}

.btn,
.sticky-login,
.island-login {
  white-space: nowrap;
}
