/* ═══════════════════════════════════════════════════════
   GRANDMIST GAMES — Main Stylesheet
   Theme: Deep Blue / Space / Minimalist
   Star background lives in css/stars.css
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────── */
:root {
  --bg:            #060b14;
  --bg-2:          #090f1e;
  --bg-3:          #0d1628;
  --surface:       rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.08);
  --border-blue:   rgba(59,130,246,0.25);

  --blue:          #3b82f6;
  --blue-dim:      #2563eb;
  --blue-bright:   #60a5fa;
  --blue-glow:     rgba(59,130,246,0.28);
  --cyan:          #38bdf8;

  --text:          #dde6f0;
  --text-muted:    #7a90b0;
  --text-dim:      #3a506b;

  --discord:       #5865f2;
  --discord-dark:  #4752c4;
  --steam:         #1b2838;
  --steam-hover:   #2a475e;

  --radius:        10px;
  --radius-lg:     18px;
  --nav-h:         72px;

  --font-display:  'Cinzel', serif;
  --font-body:     'Inter', sans-serif;
  --font-pill:     'Rubik', sans-serif;

  --transition:    0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Layout helpers ──────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}
.container--narrow { width: min(760px, 100% - 3rem); }

/* ── Nebula orb ──────────────────────────────────────── */
.nebula-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography helpers ──────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════
   STANDARD BUTTONS
══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn--discord {
  background: var(--discord);
  color: #fff;
}
.btn--discord:hover { background: var(--discord-dark); }

.btn--steam {
  background: var(--steam);
  color: #c7d5e0;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn--steam:hover { background: var(--steam-hover); color: #fff; }

.btn--lg { padding: 0.9rem 2rem; font-size: 0.95rem; }

/* ══════════════════════════════════════════════════════
   UIverse PILL BUTTON — Blue Theme
══════════════════════════════════════════════════════ */
.btn-pill {
  font-family: var(--font-pill);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
  font-size: 1rem;
  border-radius: 1rem;
  outline: 2px solid transparent;
  outline-offset: 6px;
  color: #f0f4ff;
  background: transparent;
  border: none;
}
.btn-pill:active,
.btn-pill:focus-visible {
  outline-color: #60a5fa;
  outline-style: dashed;
}

.btn-pill::before {
  content: "";
  position: absolute;
  z-index: 0;
  height: 200%;
  max-height: 100px;
  aspect-ratio: 1;
  margin: auto;
  background: white;
  clip-path: polygon(
    100% 50%, 91.48% 56.57%, 97.55% 65.45%, 87.42% 69.07%,
    90.45% 79.39%, 79.7% 79.7%, 79.39% 90.45%, 69.07% 87.42%,
    65.45% 97.55%, 56.57% 91.48%, 50% 100%, 43.43% 91.48%,
    34.55% 97.55%, 30.93% 87.42%, 20.61% 90.45%, 20.3% 79.7%,
    9.55% 79.39%, 12.58% 69.07%, 2.45% 65.45%, 8.52% 56.57%,
    0% 50%, 8.52% 43.43%, 2.45% 34.55%, 12.58% 30.93%,
    9.55% 20.61%, 20.3% 20.3%, 20.61% 9.55%, 30.93% 12.58%,
    34.55% 2.45%, 43.43% 8.52%, 50% 0%, 56.57% 8.52%,
    65.45% 2.45%, 69.07% 12.58%, 79.39% 9.55%, 79.7% 20.3%,
    90.45% 20.61%, 87.42% 30.93%, 97.55% 34.55%, 91.48% 43.43%
  );
  animation: star-rotate 4s linear infinite;
  opacity: 0.1;
}
.btn-pill:hover::before { opacity: 1; }

.btn-pill > div {
  padding: 2px;
  border-radius: 1rem;
  background-color: #3b82f6;
  transform: translate(-4px, -4px);
  transition: all 150ms ease;
  box-shadow:
    0.5px 0.5px 0 0 #3b82f6, 1px 1px 0 0 #3b82f6,
    1.5px 1.5px 0 0 #3b82f6, 2px 2px 0 0 #3b82f6,
    2.5px 2.5px 0 0 #3b82f6, 3px 3px 0 0 #3b82f6,
    0 0 0 2px #060b14, 0.5px 0.5px 0 2px #060b14,
    1px 1px 0 2px #060b14, 1.5px 1.5px 0 2px #060b14,
    2px 2px 0 2px #060b14, 2.5px 2.5px 0 2px #060b14,
    3px 3px 0 2px #060b14, 3.5px 3.5px 0 2px #060b14,
    4px 4px 0 2px #060b14,
    0 0 0 4px #f0f4ff, 0.5px 0.5px 0 4px #f0f4ff,
    1px 1px 0 4px #f0f4ff, 1.5px 1.5px 0 4px #f0f4ff,
    2px 2px 0 4px #f0f4ff, 2.5px 2.5px 0 4px #f0f4ff,
    3px 3px 0 4px #f0f4ff, 3.5px 3.5px 0 4px #f0f4ff,
    4px 4px 0 4px #f0f4ff;
}
.btn-pill:hover > div {
  transform: translate(0, 0);
  box-shadow:
    0 0 0 0 #3b82f6, 0 0 0 0 #3b82f6, 0 0 0 0 #3b82f6,
    0 0 0 0 #3b82f6, 0 0 0 0 #3b82f6, 0 0 0 0 #3b82f6,
    0 0 0 2px #060b14, 0 0 0 2px #060b14, 0 0 0 2px #060b14,
    0 0 0 2px #060b14, 0 0 0 2px #060b14, 0 0 0 2px #060b14,
    0 0 0 2px #060b14, 0 0 0 2px #060b14, 0 0 0 2px #060b14,
    0 0 0 4px #f0f4ff, 0 0 0 4px #f0f4ff, 0 0 0 4px #f0f4ff,
    0 0 0 4px #f0f4ff, 0 0 0 4px #f0f4ff, 0 0 0 4px #f0f4ff,
    0 0 0 4px #f0f4ff, 0 0 0 4px #f0f4ff, 0 0 0 4px #f0f4ff;
}

.btn-pill > div > div {
  position: relative;
  pointer-events: none;
  border-radius: calc(1rem - 2px);
  background-color: #060b14;
}
.btn-pill > div > div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  opacity: 0.1;
  background-image:
    radial-gradient(rgba(255,255,255,0.8) 20%, transparent 20%),
    radial-gradient(rgba(255,255,255,1) 20%, transparent 20%);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
  mix-blend-mode: hard-light;
  box-shadow: inset 0 0 0 1px #060b14;
  animation: dots 0.4s infinite linear;
}

.btn-pill > div > div > div {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  gap: 0.25rem;
  filter: drop-shadow(0 -1px 0 #060b14);
}
.btn-pill > div > div > div:hover {
  filter: drop-shadow(0 -1px 0 rgba(255,255,255,0.1));
}
.btn-pill > div > div > div:active { transform: translateY(2px); }

@keyframes star-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes dots {
  0%   { background-position: 0 0, 4px 4px; }
  100% { background-position: 8px 0, 12px 4px; }
}

/* ══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,11,20,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
  transition: color var(--transition);
}
.nav-logo:hover .nav-logo-text { color: var(--blue-bright); }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-cta { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--nav-h) 1.5rem 4rem;
}

/* Blue/cyan radial atmospheric glow */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse at center,
    rgba(59,130,246,0.15) 0%,
    rgba(56,189,248,0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-nebula {
  position: absolute;
  bottom: -5%;
  left: 10%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(96,165,250,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
  background: linear-gradient(135deg, #fff 25%, var(--blue-bright) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}

/* Scroll indicator */
.hero::after {
  content: '';
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--blue), transparent);
  animation: pulse 2.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════
   GAME SHOWCASE
══════════════════════════════════════════════════════ */
.game {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
  background: linear-gradient(to bottom, transparent, rgba(9,15,30,0.6), transparent);
}

.game .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.game-placeholder {
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.game-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(59,130,246,0.08), transparent 50%, rgba(56,189,248,0.05)
  );
}

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}
.placeholder-icon  { font-size: 2.5rem; color: var(--blue); opacity: 0.5; }
.placeholder-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.game-media { position: relative; }
.game-media::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse, rgba(59,130,246,0.14) 0%, transparent 65%);
  z-index: -1;
}

.game-info { padding-left: 1rem; }

.game-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.game-tagline {
  font-size: 1rem;
  color: var(--blue-bright);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.game-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.game-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════ */
.about {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
  text-align: center;
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 4rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.value-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-blue);
  transform: translateY(-4px);
}

.value-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--blue-bright);
  margin-bottom: 1rem;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═════════════════ COMMUNITY ══════════════════════════ */
.community {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
  overflow: hidden;
}

.community-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.community-orb {
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.community-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.community-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═════════════════ FOOTER ═════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.85rem; color: var(--text-dim); transition: color var(--transition); }
.footer-nav a:hover { color: var(--text-muted); }
.footer-copy { font-size: 0.78rem; color: var(--text-dim); }

/* ═════════════════ ANIMATIONS ═════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═════════════════ RESPONSIVE ═════════════════════════ */
@media (max-width: 900px) {
  .game .container { grid-template-columns: 1fr; gap: 3rem; }
  .game-info { padding-left: 0; text-align: center; }
  .game-ctas { justify-content: center; }
  .about-values { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav { padding: 0 1.25rem; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .community-links { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; justify-content: center; max-width: 320px; }
}
