:root {
  --bg: #101219;
  --bg-2: #12141a;
  --surface: #1c2029;
  --surface-2: #262b38;
  --border: #2c323f;
  --text: #ffffff;
  --text-dim: #9aa0ae;
  --accent: #e0b15c;
  --accent-2: #f4d38a;
  --accent-soft: rgba(224, 177, 92, 0.14);
  --accent-ink: #1a1408;
  --success: #6fcf97;
  --danger: #e05a5a;
  --radius: 18px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient animated glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 12%, rgba(224, 177, 92, 0.16), transparent 70%),
    radial-gradient(34% 40% at 85% 18%, rgba(120, 160, 255, 0.12), transparent 70%),
    radial-gradient(42% 46% at 60% 92%, rgba(110, 207, 151, 0.10), transparent 72%);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.08);
  }
}

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

a:hover {
  text-decoration: underline;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 18, 25, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(16, 18, 25, 0.9);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(224, 177, 92, 0.28);
  transition: transform 0.4s var(--ease);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14.5px;
}

.nav a {
  position: relative;
  color: var(--text-dim);
  font-weight: 600;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.25s ease,
    background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 10px 28px rgba(224, 177, 92, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(224, 177, 92, 0.42);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

/* sweeping shine */
.btn:not(.btn-disabled)::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  transition: none;
}

.btn:not(.btn-disabled):hover::after {
  animation: shine 0.85s ease;
}

@keyframes shine {
  to {
    left: 140%;
  }
}

.btn-disabled {
  background: var(--surface);
  color: var(--text-dim);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-disabled:hover {
  transform: none;
  border-color: var(--border);
}

.btn .soon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 64px 0 40px;
  text-align: center;
}

.hero .wrap {
  display: grid;
  gap: 34px;
  justify-items: center;
}

.hero h1 {
  font-size: clamp(40px, 7.2vw, 68px);
  line-height: 1.02;
  margin: 0 0 16px;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 35%, #cfd3dc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .gold {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  color: var(--text-dim);
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 620px;
  margin: 0 auto 30px;
}

.hero .cta,
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.badges {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 13px;
}

/* Animated board mock-up */
.board {
  position: relative;
  width: min(76vw, 330px);
  aspect-ratio: 1;
  border-radius: 20px;
  background: linear-gradient(135deg, #e2c07a, #c39a4f);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  animation: floaty 6.5s ease-in-out infinite;
}

.board::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(224, 177, 92, 0.4),
    transparent 62%
  );
  filter: blur(6px);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

.board-lines {
  position: absolute;
  inset: 12%;
  background-image: repeating-linear-gradient(
      to right,
      rgba(60, 42, 20, 0.85) 0 1px,
      transparent 1px 12.5%
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(60, 42, 20, 0.85) 0 1px,
      transparent 1px 12.5%
    );
}

.stone {
  position: absolute;
  width: 9.8%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: place 0.5s var(--ease) forwards;
}

.stone.black {
  background: radial-gradient(circle at 34% 28%, #6a6a6a, #121212 58%, #000);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.stone.white {
  background: radial-gradient(circle at 34% 28%, #ffffff, #dcdcdc 62%, #b6b6b6);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

@keyframes place {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* floating accent dots */
.sparkle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
  animation: sparkle 3.4s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    transform: translateY(0) scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-12px) scale(1.15);
    opacity: 0.9;
  }
}

/* ── Reveal on scroll ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

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

/* ── Sections ───────────────────────────────────────────── */
section {
  padding: 48px 0;
}

.section-title {
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  margin: 0 0 24px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(38, 43, 56, 0.55), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 50% -20%,
    var(--accent-soft),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 177, 92, 0.45);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 23px;
  transition: transform 0.3s var(--ease);
}

.card:hover .icon {
  transform: translateY(-2px) rotate(-6deg) scale(1.06);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ── Level strip ────────────────────────────────────────── */
.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}

.level {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), color 0.2s ease,
    border-color 0.2s ease;
}

.level:hover {
  transform: translateY(-3px);
  color: var(--text);
  border-color: var(--accent);
}

.level:last-child {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(224, 177, 92, 0.22);
}

/* ── Download panel ─────────────────────────────────────── */
.download-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 24px;
  text-align: center;
  background: radial-gradient(
      120% 120% at 50% -30%,
      var(--accent-soft),
      transparent 60%
    ),
    var(--surface);
  overflow: hidden;
}

.download-panel .glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 160px;
  background: radial-gradient(circle, rgba(224, 177, 92, 0.5), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

/* ── Legal / content pages ──────────────────────────────── */
.page {
  padding: 48px 0 64px;
  max-width: 800px;
  margin: 0 auto;
}

.page h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 30px;
}

.page h2 {
  font-size: 21px;
  margin: 36px 0 10px;
  padding-top: 8px;
}

.page h3 {
  font-size: 16.5px;
  margin: 22px 0 8px;
}

.page p,
.page li {
  color: #cfd3dc;
  font-size: 15.5px;
}

.page ul {
  padding-left: 22px;
}

.page li {
  margin-bottom: 7px;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 22px 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ── Contact ────────────────────────────────────────────── */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  transition: border-color 0.28s ease, transform 0.28s var(--ease);
}

.contact-block:hover {
  border-color: rgba(224, 177, 92, 0.45);
  transform: translateY(-3px);
}

.contact-block .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 27px;
}

.contact-block a.email {
  font-size: 19px;
  font-weight: 700;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
}

.footer-links a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

@media (max-width: 620px) {
  .nav {
    gap: 14px;
    font-size: 13.5px;
  }
  .nav .hide-sm {
    display: none;
  }
  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
