/* ============================================
   EXODUS: Забытые Глубины — FULL REDESIGN v3
   Underground Horror / Earth / Stone / Toxic Green
   GREEN letters covered in blood & earth
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Creepster&family=UnifrakturCook:wght@700&family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Root Variables --- */
:root {
  --bg-abyss: #060504;
  --bg-earth: #0c0a07;
  --bg-cave: #1a1410;
  --bg-stone: #2a2118;
  --earth-dark: #3b2f1e;
  --earth-mid: #5a4530;
  --earth-light: #7a6040;
  --blood: #2d6a1e;
  --blood-bright: #4aaa2a;
  --blood-dark: #1a3a10;
  --moss: #2d4a1e;
  --moss-dark: #1a2e10;
  --moss-glow: #4a7a2a;
  --amber: #d4a853;
  --amber-dim: #a07830;
  --parchment: #c8b89a;
  --bone: #e8dcc8;
  --text-main: #b0a090;
  --text-dim: #706050;
  --text-bright: #e0d5c5;
  --font-horror: 'Creepster', cursive;
  --font-gothic: 'UnifrakturCook', cursive;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 4px;
  --nav-h: 65px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--earth-dark) var(--bg-abyss);
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-abyss); }
::-webkit-scrollbar-thumb { background: var(--earth-dark); }

body {
  font-family: var(--font-body);
  background: var(--bg-abyss);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='3' fill='%232d6a1e'/%3E%3Ccircle cx='10' cy='10' r='9' stroke='%232d6a1e' fill='none' stroke-width='1' opacity='0.4'/%3E%3C/svg%3E") 10 10, auto;
}

::selection { background: var(--blood); color: var(--bone); }

a { color: var(--amber); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--blood-bright); text-shadow: 0 0 8px rgba(45,106,30,0.4); }

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

/* ============================================
   FILM GRAIN + NOISE OVERLAY
   ============================================ */
.grain-overlay {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grainShift 0.5s steps(5) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0,0); }
  20% { transform: translate(-2%,3%); }
  40% { transform: translate(3%,-1%); }
  60% { transform: translate(-1%,2%); }
  80% { transform: translate(2%,-3%); }
  100% { transform: translate(0,0); }
}

/* ============================================
   EARTH TEXTURE BACKGROUND LAYERS
   ============================================ */
.earth-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(45,74,30,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(45,106,30,0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(26,20,16,0.9) 0%, rgba(6,5,4,1) 70%),
    linear-gradient(180deg, var(--bg-earth), var(--bg-abyss));
}

/* Heavy vignette */
.vignette {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 200px rgba(0,0,0,0.85), inset 0 0 80px rgba(0,0,0,0.6);
}

/* Fog */
.fog {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 90%, rgba(59,47,30,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 10%, rgba(42,33,24,0.12) 0%, transparent 50%);
  animation: fogMove 25s ease-in-out infinite alternate;
}
@keyframes fogMove {
  from { opacity: 0.7; transform: translateX(-3%) scale(1); }
  to { opacity: 1; transform: translateX(3%) scale(1.02); }
}

/* Canvas for particles */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Toxic ooze drip from top */
.blood-drip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  z-index: 9997;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='60'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%232d6a1e'/%3E%3Cstop offset='1' stop-color='%232d6a1e' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0,0 L400,0 L400,5 Q390,5 385,12 Q380,20 378,35 Q376,45 375,55 Q374,60 373,60 Q372,60 371,50 Q370,35 368,20 Q365,8 350,5 Q340,4 320,5 Q315,6 312,15 Q310,25 308,40 Q306,55 305,60 Q304,60 303,55 Q300,35 298,20 Q295,8 280,5 Q260,3 240,5 Q235,7 232,18 Q228,30 225,60 Q224,60 222,35 Q220,15 215,8 Q210,4 190,5 Q175,6 170,5 Q165,6 162,14 Q158,25 155,45 Q153,58 152,60 Q151,60 150,50 Q148,30 145,15 Q140,5 120,5 Q100,4 80,5 Q75,7 72,16 Q68,28 65,48 Q63,58 62,60 Q61,60 60,45 Q58,25 55,12 Q50,4 30,5 Q15,6 10,5 Q5,8 3,15 Q1,25 0,40 L0,0 Z' fill='url(%23b)'/%3E%3C/svg%3E") repeat-x;
  background-size: 400px 60px;
  opacity: 0.7;
  animation: dripPulse 5s ease-in-out infinite alternate;
}
@keyframes dripPulse {
  from { opacity: 0.5; } to { opacity: 0.8; }
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.page-wrapper {
  position: relative;
  z-index: 5;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: rgba(6,5,4,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59,47,30,0.3);
  transition: 0.4s;
}
.nav.scrolled {
  background: rgba(6,5,4,0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.8);
  border-bottom-color: var(--blood-dark);
}
.nav-logo {
  font-family: var(--font-horror);
  font-size: 1.6rem;
  color: var(--bone);
  letter-spacing: 3px;
  display: flex; align-items: center; gap: 10px;
}
/* GREEN text covered in blood & earth */
.nav-logo .blood {
  color: var(--blood-bright);
  text-shadow:
    1px 1px 2px rgba(139,26,26,0.55),
    -1px 0 3px rgba(90,69,48,0.65),
    0 2px 4px rgba(60,40,20,0.5),
    0 0 12px rgba(74,170,42,0.25);
}
.nav-logo:hover { color: var(--blood-bright); text-shadow: 0 0 15px rgba(45,106,30,0.5); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 7px 13px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
  border-radius: var(--radius);
  transition: 0.3s;
  letter-spacing: 0.3px;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--parchment);
  background: rgba(45,106,30,0.15);
  text-shadow: none;
}
.nav-links a.active { border-bottom: 2px solid var(--blood); }

.nav-cta {
  padding: 9px 22px !important;
  background: var(--blood) !important;
  color: var(--bone) !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
  border: 1px solid rgba(74,170,42,0.3) !important;
  box-shadow: 0 0 20px rgba(45,106,30,0.2);
}
.nav-cta:hover {
  background: var(--blood-bright) !important;
  box-shadow: 0 0 30px rgba(45,106,30,0.4) !important;
  text-shadow: none !important;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--parchment); transition: 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 30px 80px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(transparent, var(--bg-abyss));
  z-index: 1;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-warning {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(45,106,30,0.2);
  border: 1px solid rgba(45,106,30,0.4);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--blood-bright);
  margin-bottom: 35px;
  animation: fadeInDown 1s ease 0.5s both;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-warning .warn-icon { animation: flickerIcon 3s infinite; }
@keyframes flickerIcon {
  0%,90%,100% { opacity: 1; }
  92% { opacity: 0.2; }
  94% { opacity: 0.8; }
  96% { opacity: 0.1; }
  98% { opacity: 0.9; }
}

.hero-title {
  font-family: var(--font-horror);
  font-size: clamp(4rem, 12vw, 9rem);
  color: var(--bone);
  line-height: 0.95;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(45,106,30,0.3), 0 4px 20px rgba(0,0,0,0.8);
  animation: titleReveal 1.5s ease 0.2s both;
  letter-spacing: 5px;
}
@keyframes titleReveal {
  0% { opacity: 0; transform: scale(1.2) translateY(-20px); filter: blur(10px); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* GREEN letters covered in blood & earth — hero title accent */
.hero-title .blood-text {
  color: var(--blood-bright);
  text-shadow:
    2px 3px 4px rgba(139,26,26,0.5),
    -2px 1px 3px rgba(90,69,48,0.6),
    0 3px 6px rgba(60,40,20,0.5),
    0 0 40px rgba(74,170,42,0.35),
    0 0 80px rgba(45,106,30,0.2);
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: var(--earth-light);
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 1s ease 1s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 1.2s both;
}

.hero-stats {
  display: flex;
  gap: 50px;
  justify-content: center;
  margin-top: 60px;
  animation: fadeInUp 1s ease 1.5s both;
}
.hero-stat-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--amber);
  text-shadow: 0 0 15px rgba(212,168,83,0.2);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-blood {
  background: linear-gradient(135deg, var(--blood), var(--blood-dark));
  color: var(--bone);
  border: 1px solid rgba(74,170,42,0.3);
  box-shadow: 0 4px 25px rgba(45,106,30,0.3);
}
.btn-blood:hover {
  background: linear-gradient(135deg, var(--blood-bright), var(--blood));
  box-shadow: 0 6px 35px rgba(45,106,30,0.5);
  transform: translateY(-2px);
  color: #fff;
  text-shadow: none;
}
.btn-earth {
  background: rgba(59,47,30,0.4);
  color: var(--parchment);
  border: 1px solid rgba(90,69,48,0.5);
  backdrop-filter: blur(5px);
}
.btn-earth:hover {
  background: rgba(59,47,30,0.7);
  border-color: var(--amber-dim);
  color: var(--amber);
  transform: translateY(-2px);
  text-shadow: none;
}
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 100px 30px; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }

.section-cave {
  background: linear-gradient(180deg, var(--bg-abyss), var(--bg-cave) 30%, var(--bg-cave) 70%, var(--bg-abyss));
}
.section-earth {
  background: linear-gradient(180deg, var(--bg-abyss), var(--bg-earth) 30%, var(--bg-earth) 70%, var(--bg-abyss));
}
.section-blood {
  background: linear-gradient(180deg, var(--bg-abyss), rgba(26,58,16,0.15) 50%, var(--bg-abyss));
}

/* Crack separator */
.crack-sep {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blood-dark), var(--blood), var(--blood-dark), transparent);
  box-shadow: 0 0 10px rgba(45,106,30,0.3);
  margin: 0 auto;
  max-width: 200px;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  font-family: var(--font-horror);
  font-size: 0.9rem;
  color: var(--blood);
  text-transform: uppercase;
  letter-spacing: 4px;
  display: block;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(45,106,30,0.2);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--bone);
  margin-bottom: 15px;
  line-height: 1.15;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}
.section-desc {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 550px;
  margin: 0 auto;
}

/* ============================================
   STONE CARDS
   ============================================ */
.stone-card {
  background: linear-gradient(145deg, rgba(42,33,24,0.7), rgba(26,20,16,0.9));
  border: 1px solid rgba(59,47,30,0.4);
  border-radius: var(--radius);
  padding: 35px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(90,69,48,0.15);
}
.stone-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blood-dark), transparent);
  opacity: 0;
  transition: 0.4s;
}
.stone-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45,106,30,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 20px rgba(45,106,30,0.05);
}
.stone-card:hover::before { opacity: 1; }

/* ============================================
   FEATURE GRID
   ============================================ */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 25px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 25px; }

.feat-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  background: rgba(45,106,30,0.1);
  border: 1px solid rgba(45,106,30,0.2);
  border-radius: var(--radius);
  margin-bottom: 18px;
  transition: 0.4s;
}
.stone-card:hover .feat-icon {
  background: rgba(45,106,30,0.2);
  box-shadow: 0 0 20px rgba(45,106,30,0.15);
}

.feat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--bone);
  margin-bottom: 10px;
  font-weight: 700;
}

/* ============================================
   TWO-COLUMN LAYOUT
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-text h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--bone);
  margin-bottom: 15px;
}
.split-text p { color: var(--text-main); margin-bottom: 12px; }
.split-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-cave), var(--bg-stone));
  border: 1px solid rgba(59,47,30,0.4);
  border-radius: var(--radius);
  display: flex;
  align-items: center; justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.split-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* ============================================
   CHARACTER CARDS
   ============================================ */
.char-avatar {
  width: 100px; height: 100px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-stone), var(--bg-cave));
  border: 3px solid var(--earth-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  transition: 0.4s;
}
.stone-card:hover .char-avatar { border-color: var(--blood); box-shadow: 0 0 25px rgba(45,106,30,0.2); }
.char-role {
  font-family: var(--font-horror);
  font-size: 0.8rem;
  color: var(--blood);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* Stat bars */
.sbar { margin-bottom: 8px; }
.sbar-head { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.sbar-track { height: 4px; background: rgba(255,255,255,0.04); border-radius: 2px; overflow: hidden; }
.sbar-fill { height: 100%; border-radius: 2px; transition: width 1.2s ease; }
.sbar-fill.blood { background: linear-gradient(90deg, var(--blood-dark), var(--blood-bright)); box-shadow: 0 0 8px rgba(45,106,30,0.3); }
.sbar-fill.amber { background: linear-gradient(90deg, var(--amber-dim), var(--amber)); box-shadow: 0 0 8px rgba(212,168,83,0.2); }
.sbar-fill.moss { background: linear-gradient(90deg, var(--moss-dark), var(--moss-glow)); box-shadow: 0 0 8px rgba(74,122,42,0.2); }

/* ============================================
   GALLERY
   ============================================ */
.gal-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-cave), var(--bg-stone));
  border: 1px solid rgba(59,47,30,0.3);
  cursor: pointer;
  transition: 0.4s;
}
.gal-item:hover { transform: scale(1.02); border-color: var(--blood); }
.gal-item:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 30px rgba(45,106,30,0.15);
}
.gal-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; opacity: 0.25; }
.gal-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px;
  background: linear-gradient(transparent, rgba(6,5,4,0.9));
  transform: translateY(100%);
  transition: 0.4s;
}
.gal-item:hover .gal-cap { transform: translateY(0); }
.gal-cap h4 { color: var(--bone); font-size: 0.95rem; }
.gal-cap p { color: var(--text-dim); font-size: 0.8rem; }

/* ============================================
   REVIEWS
   ============================================ */
.rev-stars { color: var(--amber); font-size: 0.95rem; margin-bottom: 12px; letter-spacing: 3px; }
.rev-text { font-style: italic; color: var(--parchment); line-height: 1.8; margin-bottom: 18px; font-size: 0.95rem; }
.rev-author { display: flex; align-items: center; gap: 12px; }
.rev-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-stone); border: 2px solid var(--earth-dark); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.rev-name { color: var(--bone); font-size: 0.9rem; font-weight: 600; }
.rev-info { color: var(--text-dim); font-size: 0.75rem; }

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid rgba(59,47,30,0.3);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(26,20,16,0.6);
  transition: 0.3s;
}
.faq-item.active { border-color: rgba(45,106,30,0.3); }
.faq-q {
  width: 100%; padding: 18px 22px;
  background: none; border: none;
  color: var(--parchment); font-size: 1rem; font-weight: 600;
  text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body);
  transition: 0.2s;
}
.faq-q:hover { color: var(--amber); }
.faq-icon { color: var(--blood); font-size: 1.2rem; transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.active .faq-a { max-height: 300px; padding: 0 22px 18px; }
.faq-a p { color: var(--text-main); font-size: 0.92rem; line-height: 1.8; }

/* ============================================
   DOWNLOAD
   ============================================ */
.dl-box { max-width: 700px; margin: 0 auto; text-align: center; padding: 50px 35px; }
.dl-icon { font-size: 4rem; margin-bottom: 18px; animation: dlFloat 4s ease-in-out infinite; }
@keyframes dlFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-3deg); } }
.dl-ver { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 30px; }
.dl-platforms { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dl-trust { display: flex; gap: 30px; justify-content: center; margin-top: 30px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-dim); }

/* ============================================
   FORM
   ============================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 700px; margin: 0 auto; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.fw { grid-column: 1 / -1; }
.form-label { font-size: 0.8rem; color: var(--parchment); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input, .form-textarea, .form-select {
  padding: 13px 16px;
  background: rgba(26,20,16,0.8);
  border: 1px solid rgba(59,47,30,0.4);
  border-radius: var(--radius);
  color: var(--bone);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: 0.3s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--blood);
  box-shadow: 0 0 15px rgba(45,106,30,0.1);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select { cursor: pointer; appearance: none; }

/* ============================================
   NEWS
   ============================================ */
.news-card { padding: 0; overflow: hidden; }
.news-img { height: 180px; background: linear-gradient(135deg, var(--bg-cave), var(--bg-stone)); display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: 0.4; position: relative; }
.news-img::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: linear-gradient(transparent, rgba(26,20,16,0.9)); }
.news-body { padding: 22px; }
.news-date { font-size: 0.75rem; color: var(--blood); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.news-body h3 { color: var(--bone); font-size: 1.1rem; margin-bottom: 8px; font-weight: 700; line-height: 1.4; }
.news-body p { color: var(--text-dim); font-size: 0.88rem; }
.read-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 0.85rem; color: var(--amber); font-weight: 600; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 30px 25px;
  background: linear-gradient(180deg, var(--bg-abyss), #030302);
  border-top: 1px solid rgba(59,47,30,0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(59,47,30,0.15);
}
.footer-brand h3 { font-family: var(--font-horror); font-size: 1.3rem; color: var(--bone); margin-bottom: 10px; letter-spacing: 2px; }
/* Footer logo — green covered in blood & earth */
.footer-brand h3 .blood {
  color: var(--blood-bright);
  text-shadow:
    1px 1px 2px rgba(139,26,26,0.5),
    -1px 0 2px rgba(90,69,48,0.6),
    0 0 8px rgba(74,170,42,0.2);
}
.footer-brand p { color: var(--text-dim); font-size: 0.85rem; max-width: 280px; margin-bottom: 15px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: rgba(42,33,24,0.5);
  border: 1px solid rgba(59,47,30,0.3);
  color: var(--text-dim);
  font-size: 0.8rem;
  transition: 0.3s;
}
.footer-social a:hover { background: rgba(45,106,30,0.2); border-color: var(--blood); color: var(--blood-bright); text-shadow: none; }
.footer-col h4 { color: var(--parchment); font-size: 0.85rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-dim); font-size: 0.85rem; }
.footer-col a:hover { color: var(--amber); text-shadow: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 20px auto 0;
  font-size: 0.75rem; color: var(--text-dim);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  padding: 130px 30px 50px;
  text-align: center;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(45,106,30,0.04) 0%, transparent 50%);
  z-index: -1;
}
.page-header h1 {
  font-family: var(--font-horror);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--bone);
  margin-bottom: 12px;
  letter-spacing: 3px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.page-header p { font-size: 1rem; color: var(--text-dim); max-width: 550px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; font-size: 0.8rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb .sep { color: var(--blood-dark); }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  text-align: center;
  padding: 70px 35px;
  background: linear-gradient(135deg, rgba(45,106,30,0.08), rgba(26,58,16,0.15));
  border: 1px solid rgba(45,106,30,0.2);
  border-radius: var(--radius);
}
.cta-banner h2 { font-family: var(--font-horror); font-size: 2.4rem; color: var(--bone); margin-bottom: 12px; letter-spacing: 2px; }
.cta-banner p { color: var(--text-dim); font-size: 1rem; margin-bottom: 25px; max-width: 450px; margin-left: auto; margin-right: auto; }

/* ============================================
   TIMELINE
   ============================================ */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blood), var(--blood-dark), transparent);
  transform: translateX(-50%);
}
.tl-item { display: flex; justify-content: flex-end; padding-right: calc(50% + 30px); position: relative; margin-bottom: 35px; }
.tl-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: calc(50% + 30px); }
.tl-item::before {
  content: ''; position: absolute; left: 50%; top: 18px;
  width: 12px; height: 12px;
  background: var(--blood);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--blood);
}
.tl-content { max-width: 380px; }

/* Tags */
.tag { display: inline-block; padding: 3px 10px; font-size: 0.7rem; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.tag-blood { background: rgba(45,106,30,0.2); color: var(--blood-bright); border: 1px solid rgba(45,106,30,0.3); }
.tag-amber { background: rgba(212,168,83,0.1); color: var(--amber); border: 1px solid rgba(212,168,83,0.2); }
.tag-moss { background: rgba(45,74,30,0.15); color: var(--moss-glow); border: 1px solid rgba(45,74,30,0.3); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }
.reveal-l { opacity: 0; transform: translateX(-35px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal-l.vis { opacity: 1; transform: translateX(0); }
.reveal-r { opacity: 0; transform: translateX(35px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal-r.vis { opacity: 1; transform: translateX(0); }
.stagger > * { opacity: 0; transform: translateY(25px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.vis > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger.vis > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger.vis > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger.vis > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: none; }
.stagger.vis > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: none; }
.stagger.vis > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: none; }
.stagger.vis > *:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: none; }
.stagger.vis > *:nth-child(8) { transition-delay: 0.8s; opacity: 1; transform: none; }

/* Glitch */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; }
.glitch:hover::before { animation: g1 0.25s infinite; color: var(--blood-bright); z-index: -1; opacity: 0.8; }
.glitch:hover::after { animation: g2 0.25s infinite; color: var(--amber); z-index: -2; opacity: 0.6; }
@keyframes g1 {
  0% { clip-path: inset(20% 0 60% 0); transform: translate(-4px,2px); }
  25% { clip-path: inset(60% 0 10% 0); transform: translate(4px,-2px); }
  50% { clip-path: inset(40% 0 30% 0); transform: translate(-3px,1px); }
  75% { clip-path: inset(80% 0 5% 0); transform: translate(2px,-3px); }
  100% { clip-path: inset(10% 0 70% 0); transform: translate(-2px,2px); }
}
@keyframes g2 {
  0% { clip-path: inset(70% 0 10% 0); transform: translate(3px,-2px); }
  25% { clip-path: inset(10% 0 70% 0); transform: translate(-3px,2px); }
  50% { clip-path: inset(50% 0 20% 0); transform: translate(2px,-1px); }
  75% { clip-path: inset(30% 0 50% 0); transform: translate(-1px,3px); }
  100% { clip-path: inset(60% 0 20% 0); transform: translate(1px,-2px); }
}

/* Flicker */
.flicker { animation: flk 6s infinite; }
@keyframes flk { 0%,92%,100% { opacity: 1; } 93% { opacity: 0.3; } 95% { opacity: 0.9; } 96% { opacity: 0.2; } 98% { opacity: 0.85; } }

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

/* Typing cursor */
.tcursor { display: inline-block; width: 2px; height: 1em; background: var(--blood); margin-left: 3px; animation: curBlink 0.8s infinite; vertical-align: text-bottom; }
@keyframes curBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Counter */
.counter { font-variant-numeric: tabular-nums; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { left: 20px; }
  .tl-item, .tl-item:nth-child(even) { padding-left: 50px; padding-right: 0; justify-content: flex-start; }
  .tl-item::before { left: 20px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 15px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; width: 100%;
    flex-direction: column;
    background: rgba(6,5,4,0.98);
    padding: 15px;
    gap: 3px;
    transform: translateY(-120%);
    transition: transform 0.4s;
    border-bottom: 1px solid var(--earth-dark);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 12px 15px; }
  .nav-toggle { display: flex; }
  .section { padding: 60px 15px; }
  .hero { padding: 90px 15px 50px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-header { padding: 110px 15px 35px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .dl-platforms { flex-direction: column; align-items: center; }
}
