/* ============================================================
   GOAT SURVIVAL 2.0 — Styles principaux
   Dark Survival + RPG + Exploration
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #080A0B;
  --bg-dark: #0D1011;
  --bg-card: #141819;
  --bg-elevated: #1A1F20;
  --green-700: #536B3C;
  --green-500: #6F8F4A;
  --green-400: #8FAF5A;
  --gold-600: #C89B3C;
  --gold-400: #E0B85A;
  --text-primary: #F0EEE7;
  --text-secondary: #B7B7AE;
  --text-muted: #777870;
  --border-subtle: rgba(255,255,255,0.05);
  --border-card: rgba(255,255,255,0.08);
  --glow-green: rgba(111, 143, 74, 0.15);
  --glow-gold: rgba(200, 155, 60, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--green-400), var(--gold-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-gold { color: var(--gold-400); }
.accent-green { color: var(--green-400); }

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(8, 10, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-subtle);
  padding: 0.7rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand .brand-icon { font-size: 1.5rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold-600);
  color: #0D1011 !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--gold-400) !important;
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(83, 107, 60, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 50% 80%, rgba(200, 155, 60, 0.08) 0%, transparent 60%),
              var(--bg-deep);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, transparent 0%, rgba(8,10,11,0.4) 60%, var(--bg-deep) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-bg-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  background-image: 
    radial-gradient(1px 1px at 20% 30%, rgba(143, 175, 90, 0.4), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(200, 155, 60, 0.3), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(143, 175, 90, 0.3), transparent),
    radial-gradient(1px 1px at 80% 60%, rgba(200, 155, 60, 0.4), transparent),
    radial-gradient(2px 2px at 30% 50%, rgba(111, 143, 74, 0.3), transparent),
    radial-gradient(2px 2px at 70% 40%, rgba(224, 184, 90, 0.25), transparent);
}

.hero-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  z-index: 0;
  opacity: 0.15;
  background: 
    linear-gradient(175deg, transparent 30%, #141819 60%, transparent 80%),
    repeating-linear-gradient(85deg, transparent, transparent 40px, rgba(83,107,60,0.1) 40px, rgba(83,107,60,0.1) 42px),
    repeating-linear-gradient(95deg, transparent, transparent 60px, rgba(83,107,60,0.08) 60px, rgba(83,107,60,0.08) 62px);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(200, 155, 60, 0.12);
  border: 1px solid rgba(200, 155, 60, 0.25);
  color: var(--gold-400);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.1s both;
  color: var(--text-primary);
}

.hero-version {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.3s both;
  font-style: italic;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gold-600);
  color: #0D1011;
  box-shadow: 0 4px 20px rgba(200, 155, 60, 0.2);
}

.btn-primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 155, 60, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  transform: translateY(-2px);
}

.btn-wiki {
  background: rgba(111, 143, 74, 0.15);
  color: var(--green-400);
  border: 1px solid rgba(111, 143, 74, 0.3);
}

.btn-wiki:hover {
  background: rgba(111, 143, 74, 0.25);
  border-color: var(--green-400);
  transform: translateY(-2px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  opacity: 0.5;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

/* --- SECTIONS --- */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-dark { background: var(--bg-deep); }
.section-darker { background: #060809; }
.section-elevated { background: var(--bg-dark); }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- CARDS GRID --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cards-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.cards-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(111,143,74,0.1);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-gold {
  border-color: rgba(200, 155, 60, 0.15);
}

.card-gold::before {
  background: linear-gradient(90deg, transparent, var(--gold-600), transparent);
}

.card-gold:hover {
  border-color: rgba(200, 155, 60, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(200,155,60,0.1);
}

/* --- GOAT 2.0 SECTION --- */
.goat20-section {
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(200, 155, 60, 0.06) 0%, transparent 70%),
              var(--bg-dark);
  border-top: 1px solid rgba(200, 155, 60, 0.1);
  border-bottom: 1px solid rgba(200, 155, 60, 0.1);
}

.goat20-badge {
  display: inline-block;
  background: rgba(200, 155, 60, 0.1);
  border: 1px solid rgba(200, 155, 60, 0.3);
  color: var(--gold-400);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

/* --- ROADMAP --- */
.roadmap {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
}

.roadmap::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-600), var(--gold-600), transparent);
  opacity: 0.3;
  z-index: 0;
}

.roadmap-step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

.roadmap-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--gold-600);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.roadmap-step:last-child .roadmap-num {
  background: var(--gold-600);
  color: #0D1011;
  border-color: var(--gold-400);
  box-shadow: 0 0 30px rgba(200, 155, 60, 0.3);
}

.roadmap-step h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.roadmap-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- WIKI SECTION --- */
.wiki-section {
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(111, 143, 74, 0.06) 0%, transparent 70%),
              var(--bg-deep);
  border-top: 1px solid rgba(111, 143, 74, 0.1);
  border-bottom: 1px solid rgba(111, 143, 74, 0.1);
  text-align: center;
}

.wiki-section .btn-wiki {
  margin-top: 2rem;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
}

/* --- COMMUNITY --- */
.community-section {
  text-align: center;
}

.discord-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem 2.5rem;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.discord-placeholder .discord-icon {
  font-size: 1.8rem;
  opacity: 0.5;
}

/* --- CTA FINAL --- */
.cta-section {
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(200, 155, 60, 0.08) 0%, transparent 60%),
              var(--bg-deep);
  padding: 8rem 2rem;
}

.cta-section .hero-buttons {
  margin-top: 2rem;
}

/* --- FOOTER --- */
.footer {
  background: #060809;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold-400); }

.footer-bottom {
  color: var(--text-muted);
  font-size: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p { margin-bottom: 0.3rem; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .cards-grid.cols-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 0.8rem 1.2rem; }
  .navbar.scrolled { padding: 0.6rem 1.2rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(8, 10, 11, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    border-left: 1px solid var(--border-subtle);
  }

  .nav-links.active { right: 0; }

  .nav-links a { font-size: 1rem; }

  .hamburger { display: flex; }

  .hero { padding: 5rem 1.2rem 3rem; min-height: 100vh; }

  .section { padding: 4rem 1.2rem; }

  .cards-grid { grid-template-columns: 1fr; }

  .roadmap { flex-direction: column; align-items: center; gap: 1.5rem; }
  .roadmap::before { display: none; }
  .roadmap-step { max-width: 100%; }

  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 320px; }

  .footer-links { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-version { font-size: 1rem; }
  .section-title { font-size: 1.6rem; }
}
