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

:root {
  --bg:              #080404;
  --surface:         #110808;
  --surface2:        #1c0e0e;
  --border:          #3a1010;
  --red:             #8B0000;
  --red-bright:      #cc1111;
  --red-glow:        rgba(200, 0, 0, 0.35);
  --text:            #f0e0e0;
  --text-dim:        #9a7070;
  --card-bg:         rgba(17, 8, 8, 0.85);
  --card-border:     rgba(180, 30, 30, 0.35);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Cinzel Decorative', serif;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); }

a { color: var(--red-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

p { color: var(--text-dim); }
p + p { margin-top: 0.9em; }

/* ── Atmospheric Background ─────────────────────────────────────────────── */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(90, 0, 0, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(60, 0, 0, 0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 0%,  rgba(50, 0, 0, 0.22) 0%, transparent 60%),
    var(--bg);
}

/* Animated mist layers */
.mist {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.mist::before,
.mist::after {
  content: '';
  position: absolute;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center,
    rgba(80, 0, 0, 0.07) 0%,
    transparent 60%
  );
  animation: mistDrift 18s ease-in-out infinite alternate;
}
.mist::after {
  width: 180%; height: 180%;
  animation: mistDrift 26s ease-in-out infinite alternate-reverse;
  background: radial-gradient(ellipse at center,
    rgba(40, 0, 0, 0.05) 0%,
    transparent 55%
  );
}
@keyframes mistDrift {
  0%   { transform: translate(-15%, -10%) scale(1); }
  100% { transform: translate(5%, 8%) scale(1.08); }
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  background: rgba(4, 0, 0, 0.88);
  border-bottom: 1px solid rgba(58, 16, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo {
  width: 34px; height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(200, 0, 0, 0.55));
  transition: filter 0.3s;
}
.nav-brand:hover .nav-logo { filter: drop-shadow(0 0 14px rgba(200, 0, 0, 0.85)); }
.nav-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.05rem;
  color: var(--red-bright);
  text-shadow: 0 0 16px rgba(200, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--red-bright); }

/* ── Hero Section ───────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-logo {
  width: clamp(90px, 15vw, 140px);
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 30px rgba(200, 0, 0, 0.6));
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(200, 0, 0, 0.45)); transform: scale(1); }
  50%       { filter: drop-shadow(0 0 40px rgba(200, 0, 0, 0.75)); transform: scale(1.04); }
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.hero h1 {
  color: var(--red-bright);
  text-shadow: 0 0 40px rgba(200, 0, 0, 0.4), 0 2px 8px rgba(0,0,0,0.9);
  margin-bottom: 1.2rem;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: rgba(240, 224, 224, 0.72);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  letter-spacing: 0.02em;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2.8rem;
}
.badge-pill {
  padding: 5px 14px;
  border: 1px solid rgba(139, 0, 0, 0.5);
  background: rgba(20, 4, 4, 0.55);
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-radius: 0;
}

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

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--red);
  border-color: var(--red-bright);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.35);
}
.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 0 30px rgba(200, 0, 0, 0.5);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: rgba(139, 0, 0, 0.5);
  color: var(--text-dim);
}
.btn-ghost:hover {
  border-color: var(--red-bright);
  color: var(--text);
  background: rgba(139, 0, 0, 0.1);
}

/* ── Section Layout ─────────────────────────────────────────────────────── */
section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1140px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.section-heading {
  color: var(--text);
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 3.5rem;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(139, 0, 0, 0.5), transparent);
  margin: 0 auto;
}

/* ── Feature Cards ──────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
  border: 1.5px solid rgba(58, 16, 16, 0.6);
}

.feature-card {
  background: var(--card-bg);
  border: none;
  padding: 2.2rem 2rem;
  position: relative;
  transition: background 0.25s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.25s;
}
.feature-card:hover { background: rgba(28, 10, 10, 0.95); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(200, 0, 0, 0.4));
}

.feature-card h3 {
  color: var(--text);
  margin-bottom: 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ── How to Play ─────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: steps;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  padding-left: 0;
}

.step-num {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.5rem;
  color: rgba(139, 0, 0, 0.3);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.step h3 {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Tech Stack / AI Section ─────────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  border: 1px solid rgba(58, 16, 16, 0.5);
}

.tech-item {
  padding: 1.5rem 1.8rem;
  background: rgba(10, 2, 2, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tech-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.tech-value {
  font-size: 1rem;
  color: var(--text);
}

/* ── Discord CTA Banner ──────────────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  background: rgba(10, 2, 2, 0.55);
  border-top: 1px solid rgba(58, 16, 16, 0.5);
  border-bottom: 1px solid rgba(58, 16, 16, 0.5);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(80, 0, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  color: var(--text);
  margin-bottom: 1rem;
  position: relative;
}
.cta-banner p {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  position: relative;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(58, 16, 16, 0.6);
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  background: rgba(4, 0, 0, 0.7);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  width: 26px; height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(200, 0, 0, 0.5));
  opacity: 0.8;
}
.footer-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.83rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--red-bright); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(154, 112, 112, 0.5);
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(58, 16, 16, 0.3);
  padding-top: 1.2rem;
}

/* ── Legal Pages ─────────────────────────────────────────────────────────── */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3rem);
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(58, 16, 16, 0.5);
}

.legal-header .section-eyebrow { margin-bottom: 0.6rem; }
.legal-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--red-bright);
  text-shadow: 0 0 24px rgba(200, 0, 0, 0.3);
  margin-bottom: 0.8rem;
}
.legal-date {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.legal-body h2 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 2.5rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(58, 16, 16, 0.4);
  letter-spacing: 0.04em;
}

.legal-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(240, 224, 224, 0.75);
  margin-bottom: 0.8rem;
}

.legal-body ul {
  list-style: none;
  margin: 0.6rem 0 1rem;
}

.legal-body ul li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  color: rgba(240, 224, 224, 0.75);
  font-size: 1rem;
  line-height: 1.7;
}
.legal-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red-bright);
  opacity: 0.7;
}

.legal-body a {
  color: var(--red-bright);
  border-bottom: 1px solid rgba(204, 17, 17, 0.3);
  transition: border-color 0.2s;
}
.legal-body a:hover { border-color: var(--red-bright); color: var(--red-bright); }

.legal-note {
  margin-top: 2.5rem;
  padding: 1.2rem 1.5rem;
  background: rgba(20, 4, 4, 0.6);
  border-left: 2px solid var(--red-bright);
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .nav-title { display: none; }
  .hero-cta { flex-direction: column; align-items: center; }
  .steps { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 1.2rem; }
}
