/* ============================================================
   7 DAYS TO DIE — Fan Survival Guide
   Aesthetic: post-apocalyptic, gritty, blood-rust, tactical
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Special+Elite&family=Roboto+Condensed:wght@300;400;700&display=swap');

:root {
  --bg: #0a0807;
  --bg-2: #14100d;
  --bg-3: #1c1611;
  --rust: #8b3a1f;
  --rust-bright: #c4541d;
  --blood: #6b1a0e;
  --blood-bright: #a8281a;
  --bone: #d4c4a8;
  --bone-dim: #a89878;
  --ash: #5c5247;
  --steel: #8a8378;
  --warning: #e8a317;
  --acid: #9ab83a;
  --text: #c9bfae;
  --text-dim: #8a8378;
  --border: rgba(139, 58, 31, 0.35);
  --border-bright: rgba(196, 84, 29, 0.6);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 8, 7, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s;
}
.nav.scrolled { padding: 10px 40px; background: rgba(10,8,7,0.97); }

.nav-logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .blood7 {
  color: var(--rust-bright);
  font-size: 26px;
  text-shadow: 0 0 12px rgba(196,84,29,0.5);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--bone-dim);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0;
  height: 2px;
  background: var(--rust-bright);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { width: 100%; }

.menu-toggle { display: none; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero-landscape.png') center / cover no-repeat;
  filter: brightness(0.45) contrast(1.15) saturate(0.8) sepia(0.2);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,7,0.5) 0%, rgba(10,8,7,0.3) 40%, rgba(10,8,7,0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 30px;
  animation: heroIn 1.4s cubic-bezier(0.2,0.8,0.2,1) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  font-family: 'Special Elite', cursive;
  font-size: 15px;
  letter-spacing: 6px;
  color: var(--rust-bright);
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.9;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--bone);
  text-shadow: 0 4px 30px rgba(0,0,0,0.8), 0 0 60px rgba(139,58,31,0.3);
  margin-bottom: 24px;
}
.hero h1 .die {
  display: block;
  color: var(--rust-bright);
  font-style: italic;
  text-shadow: 0 0 40px rgba(196,84,29,0.6), 0 4px 30px rgba(0,0,0,0.8);
}

.hero-sub {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 300;
  color: var(--bone-dim);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px;
  background: linear-gradient(135deg, var(--blood), var(--rust));
  color: var(--bone);
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--rust-bright);
  position: relative;
  transition: all 0.3s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.hero-cta:hover {
  background: linear-gradient(135deg, var(--rust), var(--rust-bright));
  box-shadow: 0 0 40px rgba(196,84,29,0.5);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--steel);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Day counter badge */
.day-counter {
  position: absolute;
  top: 100px;
  right: 40px;
  z-index: 3;
  background: rgba(10,8,7,0.85);
  border: 1px solid var(--rust-bright);
  padding: 16px 24px;
  text-align: center;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.day-counter .label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--steel);
  text-transform: uppercase;
}
.day-counter .num {
  font-family: 'Oswald', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--warning);
  line-height: 1;
  text-shadow: 0 0 20px rgba(232,163,23,0.4);
}
.day-counter .sub {
  font-size: 10px;
  color: var(--blood-bright);
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ===================== SECTION COMMON ===================== */
.section {
  position: relative;
  padding: 100px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Special Elite', cursive;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--rust-bright);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before, .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  max-width: 60px;
}
.section-label::before { max-width: 40px; }

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  color: var(--bone);
  margin-bottom: 24px;
  letter-spacing: 1px;
}
.section-title em {
  color: var(--rust-bright);
  font-style: italic;
  font-weight: 500;
}

.section-intro {
  font-size: 19px;
  color: var(--bone-dim);
  max-width: 720px;
  margin-bottom: 60px;
  font-weight: 300;
  line-height: 1.6;
}

/* ===================== ABOUT ===================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--text);
  line-height: 1.75;
}
.about-text .highlight {
  color: var(--rust-bright);
  font-weight: 700;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  display: block;
  filter: contrast(1.1) saturate(0.85) sepia(0.15);
  border: 1px solid var(--border);
}
.about-image .tape {
  position: absolute;
  top: -14px; left: 30px;
  background: rgba(232,163,23,0.85);
  color: #1a1410;
  font-family: 'Special Elite', cursive;
  font-size: 12px;
  padding: 4px 16px;
  letter-spacing: 2px;
  transform: rotate(-3deg);
  text-transform: uppercase;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat {
  text-align: center;
  padding: 20px 10px;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.stat .num {
  font-family: 'Oswald', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--rust-bright);
  line-height: 1;
}
.stat .lbl {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--steel);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ===================== GAMEPLAY PILLARS ===================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 50px;
}
.pillar {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 36px 28px;
  position: relative;
  transition: all 0.4s;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--rust);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s;
}
.pillar:hover {
  border-color: var(--border-bright);
  background: var(--bg-3);
  transform: translateY(-4px);
}
.pillar:hover::before { transform: scaleY(1); }

.pillar-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  color: var(--rust-bright);
}
.pillar h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--bone);
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.pillar p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===================== HORDE NIGHT ===================== */
.horde {
  position: relative;
  padding: 120px 40px;
  background: var(--bg-2);
  overflow: hidden;
}
.horde-bg {
  position: absolute;
  inset: 0;
  background: url('images/horde-night.png') center / cover no-repeat;
  filter: brightness(0.3) contrast(1.2) saturate(0.7);
  z-index: 0;
}
.horde-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,8,7,0.95) 0%, rgba(10,8,7,0.7) 50%, rgba(10,8,7,0.95) 100%);
}
.horde-content {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
}
.horde .section-label { justify-content: flex-start; }
.horde .section-label::after { display: none; }

.horde-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}
.horde-text p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}
.horde-warning {
  background: rgba(168,40,26,0.15);
  border-left: 4px solid var(--blood-bright);
  padding: 20px 24px;
  margin: 30px 0;
  font-family: 'Special Elite', cursive;
  font-size: 15px;
  color: var(--bone);
  letter-spacing: 1px;
}
.horde-warning strong { color: var(--blood-bright); }

.horde-days {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.day-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ash);
  transition: all 0.3s;
}
.day-item.danger { border-left-color: var(--blood-bright); }
.day-item.critical { border-left-color: var(--warning); background: rgba(232,163,23,0.08); }
.day-item:hover { transform: translateX(8px); border-color: var(--border-bright); }
.day-item .d {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--rust-bright);
  min-width: 70px;
}
.day-item.critical .d { color: var(--warning); }
.day-item .desc { font-size: 15px; color: var(--text-dim); }
.day-item .desc strong { color: var(--bone); }

/* ===================== CRAFTING ===================== */
.crafting-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.crafting-image img {
  width: 100%;
  display: block;
  filter: contrast(1.1) saturate(0.8) sepia(0.1);
  border: 1px solid var(--border);
}
.crafting-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}
.crafting-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}
.crafting-list .ic {
  flex-shrink: 0;
  width: 40px; height: 40px;
  color: var(--rust-bright);
}
.crafting-list h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  color: var(--bone);
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.crafting-list p { font-size: 14px; color: var(--text-dim); }

/* ===================== ZOMBIES ===================== */
.zombies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 50px;
}
.zombie-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s;
}
.zombie-card:hover {
  border-color: var(--blood-bright);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.zombie-card .threat {
  position: absolute;
  top: 14px; right: 16px;
  display: flex;
  gap: 3px;
}
.zombie-card .threat span {
  width: 8px; height: 14px;
  background: var(--ash);
  border-radius: 1px;
}
.zombie-card .threat span.on { background: var(--blood-bright); }

.zombie-card h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  color: var(--bone);
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.zombie-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.zombie-card .tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid;
  font-family: 'Oswald', sans-serif;
}
.tag.normal { color: var(--steel); border-color: var(--steel); }
.tag.feral { color: var(--warning); border-color: var(--warning); }
.tag.rad { color: var(--acid); border-color: var(--acid); }
.tag.boss { color: var(--blood-bright); border-color: var(--blood-bright); }

/* ===================== TIPS ===================== */
.tips-section {
  background: var(--bg-2);
  padding: 100px 40px;
}
.tips-inner { max-width: 1300px; margin: 0 auto; }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 50px;
}
.tip {
  padding: 28px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-top: 3px solid var(--rust);
  position: relative;
}
.tip .num {
  position: absolute;
  top: -18px; left: 20px;
  background: var(--bg);
  border: 1px solid var(--rust-bright);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--rust-bright);
  font-size: 16px;
}
.tip h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  color: var(--bone);
  margin: 8px 0 12px;
  letter-spacing: 1px;
}
.tip p { font-size: 15px; color: var(--text-dim); line-height: 1.65; }

/* ===================== SERVERS ===================== */
.servers-section { padding: 100px 40px; max-width: 1300px; margin: 0 auto; }
.server-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  transition: all 0.3s;
}
.server-card:hover { border-color: var(--border-bright); background: var(--bg-3); }
.server-info h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  color: var(--bone);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.server-info p { font-size: 14px; color: var(--text-dim); }
.server-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
}
.server-meta .players { color: var(--acid); }
.server-meta .ping { color: var(--steel); }
.server-status {
  padding: 5px 14px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--acid);
  color: var(--acid);
}

/* ===================== FAQ ===================== */
.faq-section { padding: 100px 40px; max-width: 900px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  margin-bottom: 12px;
  background: var(--bg-2);
  overflow: hidden;
}
.faq-q {
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  color: var(--bone);
  letter-spacing: 1px;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg-3); }
.faq-q .arrow {
  color: var(--rust-bright);
  transition: transform 0.3s;
  font-size: 22px;
}
.faq-item.open .faq-q .arrow { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 28px 24px;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
  text-align: center;
}
.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--bone);
  margin-bottom: 16px;
}
.footer-logo .die { color: var(--rust-bright); font-style: italic; }
.footer p { font-size: 14px; color: var(--steel); margin-bottom: 24px; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--rust-bright); }
.footer-copy {
  font-size: 12px;
  color: var(--ash);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
  letter-spacing: 1px;
}

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none; border: none;
  }
  .menu-toggle span {
    width: 26px; height: 2px; background: var(--bone);
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-2);
    padding: 20px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .day-counter { top: 80px; right: 20px; padding: 12px 18px; }
  .day-counter .num { font-size: 32px; }
  .section { padding: 70px 20px; }
  .about, .horde-grid, .crafting-section { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat .num { font-size: 28px; }
  .horde { padding: 80px 20px; }
  .tips-section, .servers-section, .faq-section { padding: 70px 20px; }
  .server-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .server-meta { width: 100%; justify-content: space-between; }
}
