/* ============================================================
   We The People Gaming — landing page styles
   ============================================================ */

:root {
  --bg-dark: #14150f;
  --charcoal: #1c1d16;
  --charcoal-2: #23241d;
  --olive-1: #333c26;
  --olive-2: #4a5738;
  --blue-1: #1f2f45;
  --blue-2: #2c4770;
  --red-1: #3a1f1c;
  --red-2: #7a2e28;
  --gold: #c9a227;
  --cream: #ece6d3;
  --cream-dim: #b9b3a0;

  --slice-cut: 8vw;
  /* diagonal depth of each slice */
  --slice-overlap: 8vw;
  /* how much each slice overlaps the previous */

  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Oswald', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  color: var(--cream);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

p {
  color: var(--cream-dim);
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35);
}

.btn-large {
  font-size: 1.05rem;
  padding: 1.1rem 2.4rem;
}

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(20, 21, 15, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  color: var(--gold);
  font-size: 1.4rem;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-text-sub {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  color: var(--cream-dim);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--cream);
}

.nav-discord {
  background: var(--gold);
  color: var(--charcoal) !important;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  font-weight: 600;
}

/* ============================================================
   Diagonal-slice layered background stack
   ------------------------------------------------------------
   Each .slice is a full-width band clipped into a parallelogram
   so the top/bottom edges run diagonally. Stacking z-index +
   negative margins makes each new slice overlap the diagonal
   edge of the one before it, creating the "layered images" look
   as you scroll.

   PLACEHOLDER BACKGROUNDS: each .slice-N below uses CSS
   gradients + patterns as a stand-in "image". To swap in a real
   photo later, just replace the `background:` rule with e.g.
     background: url('../images/bg-1.jpg') center/cover fixed;
   (keep the ::before overlay rule for text legibility).
   ============================================================ */

.slice-stack {
  position: relative;
  padding-top: 100vh;
  /* offset for slice-1 which sits behind the header */
  margin-top: -100vh;
}

.slice {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  clip-path: polygon(0 var(--slice-cut), 100% 0, 100% calc(100% - var(--slice-cut)), 0 100%);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.slice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.55) 100%);
}

.slice-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: calc(var(--slice-cut) + 2rem) 1.5rem;
}

.slice-content p {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.slice-1 {
  min-height: 100vh;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201, 162, 39, 0.10), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 40px),
    linear-gradient(160deg, var(--charcoal-2) 0%, var(--olive-1) 55%, var(--charcoal) 100%);
}

.slice-2 {
  z-index: 2;
  margin-top: calc(var(--slice-overlap) * -1);
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0 18px, transparent 18px 36px),
    linear-gradient(200deg, var(--olive-2) 0%, var(--olive-1) 60%, var(--charcoal-2) 100%);
}

.slice-3 {
  z-index: 3;
  margin-top: calc(var(--slice-overlap) * -1);
  background:
    repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 26px),
    linear-gradient(200deg, var(--blue-2) 0%, var(--blue-1) 55%, var(--charcoal-2) 100%);
}

.slice-4 {
  z-index: 4;
  margin-top: calc(var(--slice-overlap) * -1);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.10) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0 1px, transparent 1px 48px),
    linear-gradient(200deg, var(--red-2) 0%, var(--red-1) 55%, var(--charcoal-2) 100%);
}

.slice-5 {
  z-index: 5;
  margin-top: calc(var(--slice-overlap) * -1);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(200deg, var(--olive-1) 0%, var(--charcoal-2) 60%, var(--bg-dark) 100%);
}

.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 1.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- About / Features ---------------- */

.about {
  position: relative;
  z-index: 6;
  background: var(--bg-dark);
  text-align: center;
}

.about .section-inner {
  max-width: 760px;
}

.features {
  background: var(--charcoal);
  position: relative;
  z-index: 6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--charcoal-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 2rem 1.5rem;
}

.feature-icon {
  display: inline-block;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ---------------- CTA banner ---------------- */

.cta-banner {
  position: relative;
  z-index: 6;
  background: linear-gradient(160deg, var(--olive-1), var(--charcoal-2));
  text-align: center;
}

.cta-inner p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- Footer ---------------- */

.site-footer {
  position: relative;
  z-index: 6;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

.footer-fine {
  font-size: 0.8rem;
  color: var(--cream-dim);
  margin-top: 0.5rem;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 700px) {
  :root {
    --slice-cut: 12vw;
    --slice-overlap: 12vw;
  }

  .site-nav a:not(.nav-discord) {
    display: none;
  }

  .slice {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}