:root {
  --bg: #0a0a0c;
  --surface: #14141a;
  --surface-2: #1c1c24;
  --border: #28282f;
  --border-strong: #3a3a45;
  --text: #f5f5f7;
  --subtext: #9a9aa2;
  --accent: #c8102e;
  --accent-hover: #e51538;
  --accent-soft: #c8102e22;
  --accent-glow: #c8102e44;
  --font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============ Header ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5vw;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: white;
  border-radius: 0.4rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px -4px var(--accent-glow);
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--subtext);
  transition: color 0.15s;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--text);
  outline: none;
}

.header-cta {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}

.header-cta:hover,
.header-cta:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  outline: none;
}

/* ============ Hero ============ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(2rem, 4vw, 3rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 5vw clamp(3rem, 6vw, 5rem);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 20% 0;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 65%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 50rem;
}

.eyebrow {
  display: inline-block;
  font-size: clamp(0.65rem, 1.6vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.hero h1 {
  font-size: clamp(1.55rem, 5.8vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  max-width: 100%;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero-accent {
  color: var(--accent);
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--subtext);
  max-width: 34rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--subtext);
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  font-weight: 700;
  padding: 1rem 1.85rem;
  border-radius: 999px;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  transition:
    transform 0.15s ease,
    background 0.15s,
    box-shadow 0.2s;
  box-shadow:
    0 12px 32px -10px var(--accent-glow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.cta-primary::after {
  content: "→";
  transition: transform 0.15s ease;
}

.cta-primary:hover,
.cta-primary:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px -10px var(--accent-glow),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  outline: none;
}

.cta-primary:hover::after,
.cta-primary:focus-visible::after {
  transform: translateX(3px);
}

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

.cta-large {
  font-size: 1.2rem;
  padding: 1.2rem 2.4rem;
}

.cta-hero {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  padding: clamp(1.15rem, 1.8vw, 1.4rem) clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.005em;
  box-shadow:
    0 18px 48px -12px var(--accent-glow),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  animation: cta-pulse 2.4s ease-in-out infinite;
}

.cta-hero::after {
  font-size: 1.15em;
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow:
      0 18px 48px -12px var(--accent-glow),
      0 0 0 0 var(--accent-glow),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  }
  50% {
    box-shadow:
      0 22px 56px -10px var(--accent-glow),
      0 0 0 14px transparent,
      0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-hero {
    animation: none;
  }
}

/* ============ Hero board ============ */
.board-showcase {
  display: flex;
  justify-content: center;
  padding: 0 5vw clamp(2rem, 5vw, 4rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-board {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 22rem;
  margin: 0 auto;
  width: 100%;
  opacity: 0.95;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0.6rem;
  width: 100%;
  height: 100%;
}

.board-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  font-weight: 700;
  font-size: clamp(1.25rem, 3.2vw, 2.1rem);
  color: var(--subtext);
  transition:
    transform 0.3s ease,
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.board-grid span.path {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: white;
  box-shadow: 0 10px 28px -10px var(--accent-glow);
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.path-1 {
  animation-delay: 0.2s;
}
.path-2 {
  animation-delay: 0.4s;
}
.path-3 {
  animation-delay: 0.6s;
}
.path-4 {
  animation-delay: 0.8s;
}

@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

/* ============ Features ============ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  padding: clamp(3rem, 6vw, 5rem) 5vw;
  max-width: var(--max-w);
  margin: 0 auto;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition:
    border-color 0.15s,
    transform 0.15s,
    background 0.15s;
}

.feature:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.feature p {
  color: var(--subtext);
  font-size: 0.95rem;
}

/* ============ Rules ============ */
.rules {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 5vw;
}

.rules h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 2.25rem;
  text-align: center;
}

.rules ol {
  list-style: none;
  counter-reset: rule;
  display: grid;
  gap: 1rem;
}

.rules li {
  counter-increment: rule;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1.15rem 1.5rem 1.15rem 4rem;
  position: relative;
  color: var(--subtext);
}

.rules li::before {
  content: counter(rule);
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px -4px var(--accent-glow);
}

.rules strong {
  font-weight: 700;
  color: var(--text);
}

/* ============ FAQ ============ */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 5vw;
}

.faq h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 2.25rem;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1.15rem 1.5rem;
}

.faq-item dt {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.faq-item dd {
  color: var(--subtext);
  font-size: 0.95rem;
  margin: 0;
}

/* ============ Final CTA ============ */
.cta-block {
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 5vw clamp(3rem, 6vw, 5rem);
  background: radial-gradient(ellipse at center top, var(--accent-soft), transparent 60%);
  border-top: 1px solid var(--border);
}

.cta-block h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 2.25rem;
}

/* ============ Legal pages ============ */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 5vw clamp(3rem, 6vw, 5rem);
}

.legal h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--subtext);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2.25rem 0 0.75rem;
}

.legal p,
.legal li {
  color: var(--subtext);
}

.legal p {
  margin-bottom: 0.85rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--accent);
}

.legal a:hover {
  color: var(--accent-hover);
}

.back-link {
  display: inline-block;
  margin-top: 2.75rem;
  font-size: 0.9rem;
  color: var(--subtext);
}

.back-link:hover {
  color: var(--accent);
}

/* ============ Footer ============ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem 5vw;
  border-top: 1px solid var(--border);
  color: var(--subtext);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ============ Mobile ============ */
@media (max-width: 820px) {
  .hero {
    padding: 2rem 5vw 3rem;
    gap: 2rem;
  }
  .hero-board {
    max-width: 17rem;
  }
  .site-header {
    padding: 1rem 5vw;
  }
  .header-cta {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .site-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
