:root {
  --bg: #050414;
  --panel: rgba(13, 11, 39, .8);
  --white: #f8f7ff;
  --muted: #aba8c5;
  --purple: #a94cff;
  --violet: #6c35ff;
  --blue: #38bdf8;
  --gold: #ffc84a;
  --line: rgba(255, 255, 255, .1);
  --display: "Orbitron", sans-serif;
  --body: "Exo 2", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--white);
  background: var(--bg);
  font-family: var(--body);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(rgba(3, 3, 17, .68), rgba(4, 3, 18, .9)), url("assets/space-background.png") center top / cover fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.star-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px), radial-gradient(#a855f7 1px, transparent 1px);
  background-size: 73px 73px, 113px 113px;
  background-position: 0 0, 30px 40px;
  opacity: .25;
}
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 5vw, 78px);
  border-bottom: 1px solid transparent;
  transition: .3s ease;
}
.site-header.scrolled {
  height: 70px;
  background: rgba(5, 4, 20, .88);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 900; letter-spacing: .03em; }
.brand img { width: 43px; height: 43px; border-radius: 11px; box-shadow: 0 0 20px rgba(56, 189, 248, .25); }
.brand > span > span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); color: #dedcf0; font-size: .92rem; font-weight: 700; }
.site-nav a { transition: color .2s; }
.site-nav a:hover { color: var(--gold); }
.nav-download { border: 1px solid rgba(255, 200, 74, .55); border-radius: 8px; padding: 10px 18px; color: var(--gold); }
.menu-button { display: none; background: none; border: 0; padding: 8px; }
.menu-button span { display: block; width: 25px; height: 2px; margin: 5px; background: white; }

.hero {
  position: relative;
  min-height: 100vh;
  max-width: 1500px;
  margin: auto;
  padding: 145px clamp(24px, 7vw, 110px) 90px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}
.hero::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 76, 255, .8), transparent);
}
.hero-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  right: -100px;
  top: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 32, 180, .28), transparent 68%);
  filter: blur(10px);
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; font-weight: 800; }
.eyebrow > span { width: 34px; height: 1px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.centered { justify-content: center; }
.hero h1, h2 {
  font-family: var(--display);
  line-height: .97;
  letter-spacing: -.04em;
  margin: 24px 0;
}
.hero h1 { font-size: clamp(3.6rem, 7vw, 7rem); text-shadow: 0 8px 40px rgba(0, 0, 0, .4); }
.hero h1 strong, h2 em { color: var(--gold); font-style: normal; text-shadow: 0 0 28px rgba(255, 200, 74, .27); }
.hero-text { max-width: 590px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  min-height: 54px;
  padding: 0 25px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .82rem;
  font-weight: 900;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: #171005; background: linear-gradient(135deg, #ffdf75, #ffb823); box-shadow: 0 10px 35px rgba(255, 184, 35, .22); }
.button-primary:hover { box-shadow: 0 13px 45px rgba(255, 184, 35, .4); }
.button-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.button-ghost span { color: var(--purple); font-size: 1.3rem; }
.hero-facts { display: flex; gap: 35px; margin-top: 48px; }
.hero-facts div { display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 9px; }
.hero-facts strong { grid-row: span 2; color: var(--gold); font-family: var(--display); font-size: 1.45rem; }
.hero-facts span { max-width: 62px; color: #8885a5; font-size: .68rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .08em; }
.hero-visual { position: relative; min-height: 570px; display: grid; place-items: center; }
.app-icon-wrap { position: relative; width: min(360px, 75%); z-index: 2; animation: hover 5s ease-in-out infinite; }
.app-icon-wrap img { position: relative; border-radius: 28%; filter: drop-shadow(0 25px 40px rgba(0, 0, 0, .5)); }
.icon-aura { position: absolute; inset: 9%; border-radius: 50%; background: var(--purple); filter: blur(75px); opacity: .45; }
.orbit { position: absolute; border: 1px solid rgba(124, 76, 255, .25); border-radius: 50%; transform: rotate(-18deg); }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.orbit-one { width: 520px; height: 330px; }
.orbit-one::before { top: 45px; left: 65px; }.orbit-one::after { right: 45px; bottom: 75px; }
.orbit-two { width: 430px; height: 530px; transform: rotate(35deg); border-color: rgba(56, 189, 248, .18); }
.orbit-two::before { top: 130px; right: 8px; background: var(--blue); }.orbit-two::after { left: 35px; bottom: 100px; background: var(--purple); }
.floating-card { position: absolute; z-index: 3; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(10, 8, 36, .7); backdrop-filter: blur(15px); box-shadow: 0 15px 50px rgba(0, 0, 0, .35); }
.floating-card span, .floating-card small { display: block; color: var(--muted); font-size: .62rem; letter-spacing: .12em; }
.floating-card strong { display: block; font-family: var(--display); font-size: 1.4rem; margin: 4px 0; }
.rank-card { top: 13%; right: 0; }
.rank-card strong, .rank-card small { color: var(--gold); }
.players-card { bottom: 15%; left: 1%; display: flex; align-items: center; gap: 12px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #61ff9b; box-shadow: 0 0 12px #61ff9b; animation: pulse 1.6s infinite; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 28px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; }
.scroll-cue span { position: absolute; top: 8px; left: 11px; width: 4px; height: 8px; border-radius: 3px; background: var(--gold); animation: scroll 1.7s infinite; }

.section { max-width: 1400px; margin: auto; padding: 125px clamp(24px, 7vw, 110px); }
.section-heading { max-width: 800px; margin: 0 auto 55px; text-align: center; }
.section-heading h2, .rules-copy h2, .download-inner h2 { font-size: clamp(2.25rem, 4.5vw, 4.3rem); }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 285px; padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(20, 16, 55, .78), rgba(8, 7, 27, .75)); overflow: hidden; transition: .3s ease; }
.feature-card::after { content: ""; position: absolute; inset: auto -30% -70% 10%; height: 200px; background: var(--purple); filter: blur(90px); opacity: .12; }
.feature-card:hover { transform: translateY(-7px); border-color: rgba(169, 76, 255, .55); }
.feature-card > span { position: absolute; right: 25px; top: 25px; color: #555171; font-family: var(--display); }
.feature-icon { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid rgba(169, 76, 255, .4); border-radius: 14px; color: var(--gold); background: rgba(169, 76, 255, .1); font-size: 1.8rem; box-shadow: inset 0 0 20px rgba(169, 76, 255, .1); }
.feature-card h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; margin-top: 34px; }
.feature-card p { color: var(--muted); line-height: 1.65; }

.rules { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 8vw, 120px); }
.rules-visual { position: relative; }
.board { position: relative; padding: 7%; border-radius: 50%; background: radial-gradient(circle, rgba(43, 25, 112, .6), rgba(7, 6, 25, .3) 68%); filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.board svg { position: relative; z-index: 2; overflow: visible; }
.board-lines { fill: none; stroke: url("#none"); stroke: #7b5cff; stroke-width: 3; filter: drop-shadow(0 0 5px #6d36ff); opacity: .75; }
.nodes circle { fill: #31baff; filter: drop-shadow(0 0 8px #31baff); }
.pieces circle { stroke-width: 3; }
.pieces.white circle { fill: url("#none"); fill: #f7ebc5; stroke: #fff; filter: drop-shadow(0 7px 8px #000) drop-shadow(0 0 10px #ffc84a); }
.pieces.black circle { fill: #191522; stroke: #985dff; filter: drop-shadow(0 7px 8px #000) drop-shadow(0 0 9px #934cff); }
.board-pulse { position: absolute; inset: 28%; border: 1px solid var(--purple); border-radius: 50%; animation: boardPulse 2.5s infinite; }
.rule-list { display: grid; gap: 11px; margin-top: 35px; }
.rule-list > div { display: flex; gap: 18px; align-items: center; padding: 17px; border: 1px solid transparent; border-radius: 12px; transition: .25s; }
.rule-list > div:hover { border-color: var(--line); background: rgba(255,255,255,.025); transform: translateX(5px); }
.rule-list b { flex: 0 0 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,200,74,.45); border-radius: 50%; color: var(--gold); font-family: var(--display); }
.rule-list p { margin: 0; }
.rule-list strong, .rule-list span { display: block; }
.rule-list strong { text-transform: uppercase; font-family: var(--display); font-size: .9rem; margin-bottom: 5px; }
.rule-list span { color: var(--muted); }

.modes { max-width: 1500px; }
.mode-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 17px; }
.mode-card { position: relative; min-height: 470px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #09071d; transition: .35s; }
.mode-card:hover { transform: translateY(-7px); border-color: rgba(255,200,74,.55); }
.mode-card img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.mode-card:hover img { transform: scale(1.045); }
.mode-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,4,20,.98) 3%, rgba(5,4,20,.15) 70%); }
.mode-content { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 30px; }
.mode-content > span { color: var(--gold); font-weight: 800; font-size: .68rem; letter-spacing: .2em; }
.mode-content h3 { margin: 9px 0; font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; }
.mode-content p { margin: 0; color: var(--muted); line-height: 1.5; }
.local-art { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 18px; background: radial-gradient(circle at 50% 35%, #5625a0, transparent 55%), linear-gradient(135deg,#07122a,#120825); }
.local-art span { width: 95px; height: 95px; display: grid; place-items: center; border-radius: 50%; font-size: 4rem; color: #f5e8be; background: radial-gradient(circle at 35% 25%, white, #b99844 35%, #332208 70%); box-shadow: 0 10px 30px #000, 0 0 30px rgba(255,200,74,.4); }
.local-art span:last-child { color: #160d23; background: radial-gradient(circle at 35% 25%, #786484, #25142d 40%, #050307 75%); box-shadow: 0 10px 30px #000, 0 0 30px rgba(169,76,255,.5); }
.local-art i { font-family: var(--display); color: var(--gold); font-weight: 900; }

.download-section { position: relative; min-height: 660px; display: grid; place-items: center; padding: 100px 24px; overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(rgba(5,4,20,.55), rgba(5,4,20,.9)); }
.download-glow { position: absolute; width: 650px; height: 650px; border-radius: 50%; background: radial-gradient(circle, rgba(109,46,218,.36), transparent 68%); }
.download-inner { position: relative; z-index: 2; text-align: center; }
.download-inner > img { width: 115px; margin: 0 auto 30px; border-radius: 25%; box-shadow: 0 15px 45px #000, 0 0 50px rgba(56,189,248,.18); }
.download-inner > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.download-button { margin: 20px auto 14px; }
.download-inner small { display: block; color: #77738f; }
footer { min-height: 110px; padding: 25px clamp(24px, 7vw, 110px); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #77738f; background: #03030e; font-size: .82rem; }
.footer-brand { color: white; }
.footer-brand img { width: 35px; height: 35px; }
footer > div { display: flex; gap: 20px; }
footer a:hover { color: var(--gold); }
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes hover { 50% { transform: translateY(-13px) rotate(1deg); } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(17px); } }
@keyframes boardPulse { from { transform: scale(.65); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 145px; }
  .hero-copy { z-index: 2; }
  .hero-text { margin-inline: auto; }
  .hero-actions, .hero-facts, .hero .eyebrow { justify-content: center; }
  .hero-visual { min-height: 460px; }
  .app-icon-wrap { width: 290px; }
  .rules { grid-template-columns: 1fr; }
  .rules-visual { max-width: 600px; margin: auto; }
  .rules-copy { max-width: 680px; margin: auto; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .mode-online { grid-column: span 2; }
  .mode-card { min-height: 430px; }
}
@media (max-width: 760px) {
  .site-header { height: 70px; padding-inline: 18px; }
  .menu-button { display: block; z-index: 2; }
  .site-nav { position: absolute; top: 70px; left: 14px; right: 14px; padding: 20px; display: none; align-items: stretch; flex-direction: column; gap: 7px; border: 1px solid var(--line); border-radius: 14px; background: rgba(6,5,23,.97); backdrop-filter: blur(20px); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .hero { min-height: auto; padding: 115px 20px 75px; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
  .hero-facts { gap: 18px; }
  .hero-visual { min-height: 410px; }
  .app-icon-wrap { width: 235px; }
  .orbit-one { width: 360px; height: 250px; }
  .orbit-two { width: 300px; height: 370px; }
  .floating-card { transform: scale(.85); }
  .rank-card { right: -9px; }
  .players-card { left: -12px; }
  .scroll-cue { display: none; }
  .section { padding: 90px 20px; }
  .feature-grid, .mode-grid { grid-template-columns: 1fr; }
  .mode-online { grid-column: auto; }
  .mode-card { min-height: 430px; }
  footer { flex-direction: column; text-align: center; padding-block: 35px; }
}
@media (max-width: 430px) {
  .brand > span { font-size: .9rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-facts { justify-content: space-between; gap: 5px; }
  .hero-facts div { display: block; flex: 1; min-width: 0; }
  .hero-facts span { display: block; max-width: none; margin-top: 5px; font-size: .57rem; }
  .hero-visual { min-height: 350px; }
  .app-icon-wrap { width: 190px; }
  .orbit-one { width: 300px; height: 210px; }
  .orbit-two { width: 245px; height: 310px; }
  .floating-card { transform: scale(.72); }
  .rank-card { top: 7%; right: -20px; }
  .players-card { bottom: 8%; left: -25px; }
  .mode-card { min-height: 390px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
