/* ===== Fonts ===== */
@font-face {
  font-family: "Aero";
  src: url("../fonts/Aero.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #05060c;
  --bg-alt: #0a0d1a;
  --panel: rgba(255,255,255,0.04);
  --panel-border: rgba(255,255,255,0.09);
  --text: #eef0fa;
  --text-dim: #9aa0c0;
  --gold: #ffcf40;
  --violet: #7c5cff;
  --cyan: #4fd8ff;
}

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

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3, .brand, .letter, .tagline, .feature-letter{
  font-family: "Aero", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.03em;
}

#bg-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #000;
  background-image: url("../images/bk_website.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

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

/* ===== Hero ===== */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
  overflow: hidden;
}

.hero-glow{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  max-width: 140vw;
  max-height: 140vw;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,207,64,0.20) 0%, rgba(124,92,255,0.14) 35%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.topnav{
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 32px;
  background: rgba(5,6,12,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
  z-index: 10;
}

.topnav .brand{
  font-size: 1.4rem;
  color: var(--gold);
  margin-right: auto;
  text-shadow: 0 0 18px rgba(255,207,64,0.6);
}

.topnav a{
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s ease;
}
.topnav a:hover{ color: var(--text); }

.acronym{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1.5vw, 14px);
  margin-top: 60px;
}

.acronym-row{
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 4vw, 48px);
  opacity: 0;
  transform: translateX(-24px);
  animation: reveal-row .7s ease forwards;
  animation-delay: calc(var(--i) * 0.18s + 0.2s);
}

@keyframes reveal-row{
  to{ opacity: 1; transform: translateX(0); }
}

.letter{
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  line-height: 1;
  color: var(--text);
  text-shadow:
    0 0 12px rgba(255,207,64,0.55),
    0 0 42px rgba(124,92,255,0.45);
}

.word{
  font-size: clamp(0.9rem, 2.4vw, 1.6rem);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--text-dim);
  white-space: nowrap;
}

.tagline{
  position: relative;
  z-index: 1;
  margin-top: 56px;
  width: 100%;
  max-width: 640px;
  padding: 0 16px;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  text-align: center;
  color: var(--text-dim);
}
.tagline span{
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,207,64,0.5);
}

.scroll-cue{
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.7;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob{
  0%,100%{ transform: translate(-50%, 0); }
  50%{ transform: translate(-50%, 8px); }
}

/* ===== Sections ===== */
.section{
  position: relative;
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section.alt{ max-width: none; background: var(--bg-alt); }
.section.alt > *{ max-width: 1100px; margin-left: auto; margin-right: auto; }

.section h2{
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub{
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 48px;
}

/* how to play */
.how-grid{
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.how-card{
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 32px 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.how-icon{
  color: var(--cyan);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 10px rgba(79,216,255,0.5));
}

.how-card h3{ margin-bottom: 10px; font-size: 1.15rem; }
.how-card p{ color: var(--text-dim); font-size: 0.95rem; }

/* features */
.feature-grid{
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card{
  position: relative;
  padding: 34px 24px 28px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(124,92,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid var(--panel-border);
  overflow: hidden;
}

.feature-letter{
  display: block;
  font-size: 3.4rem;
  color: var(--gold);
  opacity: 0.9;
  text-shadow: 0 0 24px rgba(255,207,64,0.45);
  margin-bottom: 6px;
}

.feature-card h3{ margin-bottom: 10px; font-size: 1.1rem; }
.feature-card p{ color: var(--text-dim); font-size: 0.92rem; }

/* screenshots */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.gallery img{
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  display: block;
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery img:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124,92,255,0.25);
}

.gallery .empty{
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-dim);
  padding: 40px;
  border: 1px dashed var(--panel-border);
  border-radius: 14px;
}

/* lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(3,4,8,0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox img{
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox[hidden]{ display: none; }

/* ===== Responsive ===== */
@media (max-width: 640px){
  .topnav{
    gap: 12px;
    padding: 14px 16px;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .topnav a{ font-size: 0.7rem; }

  .acronym{ max-width: 92vw; }
  .acronym-row{ gap: clamp(10px, 5vw, 20px); }
}

/* footer */
.site-footer{
  text-align: center;
  padding: 60px 20px 40px;
  color: var(--text-dim);
}
.site-footer .brand.small{
  font-size: 1.1rem;
  color: var(--gold);
}
