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

:root {
  --gold: #f2b705;
  --gold-dark: #c98a00;
  --bg-dark: #14110f;
  --panel: #1d1a17;
  --text: #f4efe6;
  --muted: #b9b2a6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pixelify Sans", system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  /* keep pixel art crisp wherever it scales */
  image-rendering: pixelated;
}

/* Pixelify Sans on absolutely everything */
* {
  font-family: "Pixelify Sans", system-ui, sans-serif;
}

img {
  image-rendering: pixelated;
}

/* ---------- Top panel ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  background: rgba(20, 17, 15, 0.92);
  border-bottom: 3px solid var(--gold-dark);
  backdrop-filter: blur(4px);
}

.topbar-title {
  height: 42px;
  width: auto;
}

.topbar-nav {
  display: flex;
  gap: 26px;
}

.topbar-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: color 0.15s ease;
}

.topbar-nav a:hover {
  color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  height: 100vh;
  background: url("assets/pixelrift_bg.png") center / cover no-repeat;
  image-rendering: pixelated;
  display: flex;
  /* Stack the content just below the logo painted into the bg image.
     The logo sits near the vertical centre, so push our content below it
     with flex alignment + top padding. */
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 70vh;
}

.hero-content {
  max-width: 720px;
  padding: 0 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: #1a1408;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 30px;
  border: 3px solid var(--gold-dark);
  border-radius: 4px;
  transition: transform 0.12s ease, background 0.15s ease;
}

.hero-cta:hover {
  background: #ffd23f;
  transform: translateY(-2px);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.section-alt {
  max-width: none;
  background: var(--panel);
  border-top: 3px solid var(--gold-dark);
  border-bottom: 3px solid var(--gold-dark);
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 22px;
}

.section-text {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.feature-card {
  background: var(--bg-dark);
  border: 2px solid var(--gold-dark);
  border-radius: 6px;
  padding: 26px 22px;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.feature-card h3 {
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  border-radius: 4px;
  border: 3px solid rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.btn-icon {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.btn-yt {
  background: #ff0000;
}

.btn-discord {
  background: #5865f2;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 3px solid var(--gold-dark);
  color: var(--muted);
}

.footer-logo {
  height: 56px;
  margin-bottom: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .topbar {
    padding: 8px 16px;
  }
  .topbar-title {
    height: 32px;
  }
  .topbar-nav {
    gap: 16px;
  }
}
