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

:root {
  /* Neutrals — tinted toward brand hue (cool blue-green) */
  --bg: #0c0d10;
  --sf: #161820;
  --bd: #232530;
  --tx: #e4e6eb;
  --dm: #7d818a;

  /* Brand */
  --green: #22C55E;
  --red: #EF4444;
  --cyan: #06B6D4;
  --grad: linear-gradient(135deg, #22C55E, #06B6D4);

  /* Category accents */
  --c-crypto: #F59E0B;
  --c-sports: #3B82F6;
  --c-politics: #8B5CF6;
  --c-culture: #EC4899;
  --c-tech: #06B6D4;

  --r: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

[id] {
  scroll-margin-top: 24px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ──────────────────────────── Skip link ── */

.skip {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 10px 20px;
  background: var(--green);
  color: #fff;
  font: 600 .875rem var(--font);
  border-radius: 8px;
  text-decoration: none;
  z-index: 200;
}

.skip:focus-visible {
  top: 16px;
}


/* ─────────────────────────────────── Hero ── */

.hero {
  padding: 96px 0 80px;
  background: radial-gradient(ellipse at 35% 0%, rgba(34, 197, 94, .06), transparent 50%);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: center;
}

.hero-layout > * { min-width: 0; }

.logo {
  height: 36px;
  width: auto;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 9vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--green);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--dm);
  margin: 16px 0 28px;
  line-height: 1.5;
}


/* ─────────────────────────────────── CTA ── */

.cta {
  display: inline-block;
  padding: 14px 28px;
  min-height: 44px;
  background: linear-gradient(135deg, #15803d, #0e7490);
  color: #fff;
  font: 600 .9375rem/1 var(--font);
  text-decoration: none;
  border-radius: var(--r);
  transition: transform .15s var(--ease-out-expo), box-shadow .15s var(--ease-out-expo);
}

@media (hover: hover) {
  .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(21, 128, 61, .3);
  }
}

.cta:active { transform: translateY(0); }

.cta:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-alt {
  display: inline-block;
  padding: 14px 28px;
  min-height: 44px;
  background: transparent;
  color: var(--green);
  font: 600 .9375rem/1 var(--font);
  text-decoration: none;
  border-radius: var(--r);
  border: 1.5px solid var(--green);
  transition: background .15s var(--ease-out-expo), transform .15s var(--ease-out-expo);
}

@media (hover: hover) {
  .cta-alt:hover {
    background: rgba(34, 197, 94, .1);
    transform: translateY(-2px);
  }
}

.cta-alt:active { transform: translateY(0); }

.cta-alt:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}


/* ─────────────────────────── Demo bet card ── */

.demo-card {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 20px;
  contain: layout style paint;
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--dm);
  margin-bottom: 12px;
}

.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-crypto);
  flex-shrink: 0;
}

.demo-time {
  margin-inline-start: auto;
  font-variant-numeric: tabular-nums;
}

.demo-q {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 16px;
  overflow-wrap: break-word;
}

.demo-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--red);
  overflow: hidden;
  margin-bottom: 8px;
}

.demo-fill {
  height: 100%;
  width: 65%;
  border-radius: 3px;
  background: var(--green);
  transform-origin: left;
  will-change: transform;
  animation: odds-shift 6s ease-in-out infinite;
}

@keyframes odds-shift {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(1.046); }
}

.demo-odds {
  display: flex;
  justify-content: space-between;
  font-size: .8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.clr-yes { color: var(--green); }
.clr-no  { color: var(--red); }

.demo-pool {
  font-size: .75rem;
  color: var(--dm);
  padding-top: 12px;
  border-top: 1px solid var(--bd);
}


/* ────────────────────────────── Sections ── */

section {
  padding: 72px 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 32px;
}


/* ────────────────────────────────── Steps ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  list-style: none;
}

.step {
  background: var(--sf);
  padding: 24px;
  min-width: 0;
}

.num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.step h3 { font-size: 1.0625rem; font-weight: 600; margin: 6px 0 4px; }
.step p   { font-size: .8125rem; color: var(--dm); line-height: 1.5; }


/* ────────────────────────── Category pills ── */

.pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  transition: border-color .2s var(--ease-out-expo);
}

.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}

[data-cat="crypto"] i   { background: var(--c-crypto); }
[data-cat="sports"] i   { background: var(--c-sports); }
[data-cat="politics"] i { background: var(--c-politics); }
[data-cat="culture"] i  { background: var(--c-culture); }
[data-cat="tech"] i     { background: var(--c-tech); }

@media (hover: hover) {
  [data-cat="crypto"]:hover   { border-color: rgba(245, 158, 11, .4); }
  [data-cat="sports"]:hover   { border-color: rgba(59, 130, 246, .4); }
  [data-cat="politics"]:hover { border-color: rgba(139, 92, 246, .4); }
  [data-cat="culture"]:hover  { border-color: rgba(236, 72, 153, .4); }
  [data-cat="tech"]:hover     { border-color: rgba(6, 182, 212, .4); }
}


/* ────────────────────────── Region flags ── */

.regions-sub {
  text-align: center;
  color: var(--dm);
  font-size: .875rem;
  margin: -20px 0 28px;
}

.flags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.flag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  transition: border-color .2s var(--ease-out-expo);
}

@media (hover: hover) {
  .flag-item:hover {
    border-color: rgba(34, 197, 94, .3);
  }
}

.flag-icon {
  font-size: 1.125rem;
  line-height: 1;
}


/* ──────────────────────────────── Features ── */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--bd);
  border-radius: var(--r);
  overflow: hidden;
}

.feat { background: var(--sf); padding: 24px; min-width: 0; }
.feat dt { font-size: .9375rem; font-weight: 600; margin-bottom: 2px; }
.feat dd { font-size: .8125rem; color: var(--dm); line-height: 1.5; margin: 0; }


/* ──────────────────────────────────── FAQ ── */

.faq-list {
  display: grid;
  gap: 1px;
  background: var(--bd);
  border-radius: var(--r);
  overflow: hidden;
}

.faq-item {
  background: var(--sf);
  padding: 20px 24px;
  min-width: 0;
}

.faq-item dt {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.faq-item dd {
  font-size: .8125rem;
  color: var(--dm);
  line-height: 1.6;
  margin: 0;
}


/* ───────────────────────────── Final CTA ── */

.final-cta {
  text-align: center;
  padding: 80px 0;
}

.final-cta h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.final-cta p {
  color: var(--dm);
  margin-bottom: 28px;
}

.final-cta .cta-row {
  justify-content: center;
}


/* ──────────────────────────────── Footer ── */

footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--bd);
  color: var(--dm);
  font-size: .75rem;
}


/* ───────────────────────── Scroll reveals ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children within revealed sections */
.reveal .step,
.reveal .pill,
.reveal .flag-item,
.reveal .feat,
.reveal .faq-item { opacity: 0; }

.reveal.visible .step,
.reveal.visible .pill,
.reveal.visible .flag-item,
.reveal.visible .feat,
.reveal.visible .faq-item {
  animation: fade-up .45s var(--ease-out-expo) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Scoped stagger delays — only target animated children */
.reveal.visible .step:nth-child(1),
.reveal.visible .pill:nth-child(1),
.reveal.visible .flag-item:nth-child(1),
.reveal.visible .feat:nth-child(1),
.reveal.visible .faq-item:nth-child(1) { animation-delay: 0ms; }

.reveal.visible .step:nth-child(2),
.reveal.visible .pill:nth-child(2),
.reveal.visible .flag-item:nth-child(2),
.reveal.visible .feat:nth-child(2),
.reveal.visible .faq-item:nth-child(2) { animation-delay: 60ms; }

.reveal.visible .step:nth-child(3),
.reveal.visible .pill:nth-child(3),
.reveal.visible .flag-item:nth-child(3),
.reveal.visible .feat:nth-child(3),
.reveal.visible .faq-item:nth-child(3) { animation-delay: 120ms; }

.reveal.visible .pill:nth-child(4),
.reveal.visible .flag-item:nth-child(4),
.reveal.visible .feat:nth-child(4),
.reveal.visible .faq-item:nth-child(4) { animation-delay: 180ms; }

.reveal.visible .pill:nth-child(5),
.reveal.visible .flag-item:nth-child(5),
.reveal.visible .faq-item:nth-child(5) { animation-delay: 240ms; }

.reveal.visible .flag-item:nth-child(6) { animation-delay: 300ms; }


/* ──────────────────────────── Responsive ── */

@media (max-width: 640px) {
  .hero { padding: 64px 0 48px; }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .logo {
    display: block;
    margin-inline: auto;
  }
  .cta-row {
    flex-direction: column;
  }
  .cta-row .cta,
  .cta-row .cta-alt {
    display: block;
    text-align: center;
  }
.demo-card { max-width: 280px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

@media (max-width: 375px) {
  .wrap { padding: 0 16px; }
}

/* Short viewports — landscape phones */
@media (max-height: 500px) {
  .hero { padding: 40px 0 32px; }
  .hero-layout { gap: 24px; }
  section { padding: 40px 0; }
  .final-cta { padding: 48px 0; }
}


/* ──────────────── Windows High Contrast ── */

@media (forced-colors: active) {
  .cta,
  .cta-alt {
    border: 2px solid ButtonText;
  }
  .demo-card,
  .step,
  .feat,
  .faq-item {
    border: 1px solid CanvasText;
  }
  .pill,
  .flag-item {
    border: 1px solid CanvasText;
  }
  .demo-fill {
    background: Highlight;
  }
  .demo-bar {
    background: CanvasText;
  }
  .pill i,
  .demo-dot {
    background: CanvasText;
  }
  .hero h1 {
    -webkit-text-fill-color: unset;
    color: LinkText;
  }
}


/* ────────────────────── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal .step,
  .reveal .pill,
  .reveal .flag-item,
  .reveal .feat,
  .reveal .faq-item {
    opacity: 1;
    animation: none;
  }
  .demo-fill { animation: none; will-change: auto; }
  html { scroll-behavior: auto; }
}


/* ─────────────────────────────── Print ── */

@media print {
  body {
    background: #fff;
    color: #111;
  }
  .hero {
    background: none;
    padding: 32px 0;
  }
  .hero h1 {
    -webkit-text-fill-color: unset;
    color: #111;
  }
  .demo,
  .skip { display: none; }
  .cta,
  .cta-alt {
    background: none;
    color: #111;
    border: 1px solid #111;
    box-shadow: none;
  }
  .cta::after,
  .cta-alt::after {
    content: " (" attr(href) ")";
    font-weight: 400;
    font-size: .75rem;
  }
  .steps,
  .features,
  .faq-list { background: #ddd; }
  .step,
  .feat,
  .faq-item { background: #fff; }
  .demo-card { border-color: #ccc; }
  footer { border-color: #ccc; color: #666; }
  .reveal,
  .reveal .step,
  .reveal .pill,
  .reveal .flag-item,
  .reveal .feat,
  .reveal .faq-item {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
