/* Yaarwin: light theme, blue CTAs */
:root {
  --bg-primary: #ffffff;
  --bg-muted: #f4f6f8;
  --bg-card: #ffffff;
  --bg-elevated: #f8fafc;
  --cta-primary: #2563eb;
  --cta-hover: #1d4ed8;
  --btn-on-cta: #ffffff;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --color-success: #16a34a;
  --color-danger: #e11d48;
  --color-accent: #db2777;
  --border-color: #e2e8f0;
  --font-heading: "Inter", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-height: 56px;
  --bottom-cta-height: 56px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --header-glass: rgba(255, 255, 255, 0.82);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(59, 130, 246, 0.09), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 10%, rgba(99, 102, 241, 0.07), transparent 45%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(14, 165, 233, 0.06), transparent 50%);
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {
  body.has-mobile-cta {
    padding-bottom: calc(var(--bottom-cta-height) + env(safe-area-inset-bottom));
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

a {
  color: var(--cta-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.top-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8125rem;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 0.5rem 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.top-bar a {
  color: var(--text-primary);
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--cta-primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--header-glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.logo:hover {
  text-decoration: none;
  color: var(--cta-primary);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 45%, #6366f1 100%);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--cta-primary);
  background: rgba(37, 99, 235, 0.1);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
}

.nav-mobile {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  padding: 0.75rem 1.25rem 1rem;
  gap: 0.25rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  color: var(--text-primary);
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  font-weight: 600;
}

.nav-mobile a:hover {
  background: rgba(37, 99, 235, 0.1);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: var(--btn-on-cta);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  text-decoration: none;
  color: var(--btn-on-cta);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--cta-primary);
  color: var(--cta-primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3.25rem;
}

.hero-bg {
  position: absolute;
  inset: -30%;
  background: radial-gradient(
      ellipse at 25% 20%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 30%,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 48%
    ),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(14, 165, 233, 0.06) 0%,
      transparent 45%
    );
  animation: heroPulse 15s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes heroPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.03) rotate(2deg);
  }
}

.colour-wheel {
  position: absolute;
  right: -48px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    #3b82f6,
    #6366f1,
    #38bdf8,
    #4ade80,
    #3b82f6
  );
  opacity: 0.12;
  filter: blur(3px);
  animation: wheelSpin 28s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes wheelSpin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cta-primary);
  margin: 0 0 0.6rem;
}

.hero-content h1 {
  margin-bottom: 0.65em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  padding: 1.75rem 1.25rem;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border-radius: 999px;
  border: 1px solid var(--border-color);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.trust-badge span {
  color: var(--text-muted);
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--cta-primary);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.section {
  padding: 2.75rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title p {
  max-width: 640px;
  margin: 0.5rem auto 0;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  color: var(--text-primary);
}

.games-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: #dcfce7;
  color: #15803d;
}

.tag-soon {
  background: #fce7f3;
  color: #be185d;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.winners-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .winners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.winner-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.winner-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  flex-shrink: 0;
}

.winner-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.winner-amount {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-success);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--cta-primary);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.cta-banner {
  background: linear-gradient(
    135deg,
    #eff6ff 0%,
    #eef2ff 35%,
    #ecfeff 70%,
    #f0fdf4 100%
  );
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.cta-banner.inline {
  margin: 1.5rem 0;
}

.page-header {
  padding: 2.25rem 0 1.25rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--cta-primary);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2.5rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-elevated);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

.tip-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.tip-box h3 {
  color: var(--color-success);
  margin-top: 0;
}

.mockup-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mockup-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mockup {
  aspect-ratio: 9/16;
  max-height: 220px;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

.referral-hero {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px solid rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.referral-code-display {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--cta-primary);
  letter-spacing: 0.06em;
  margin: 1rem 0;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.faq-tabs a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.faq-tabs a:hover {
  border-color: var(--cta-primary);
  color: var(--cta-primary);
  text-decoration: none;
}

.faq-category {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.site-footer {
  background: var(--bg-muted);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--cta-primary);
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  padding: 0.55rem 1rem;
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1023px) {
  .mobile-cta-bar {
    display: block;
  }

  .mobile-cta-bar .btn {
    width: 100%;
    padding: 0.85rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.version-badge {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  margin: 1rem auto;
  background: repeating-linear-gradient(
      45deg,
      var(--border-color),
      var(--border-color) 2px,
      transparent 2px,
      transparent 8px
    ),
    var(--bg-elevated);
  border-radius: 8px;
}
