:root {
  --bg: #050705;
  --terminal: rgba(8, 12, 8, 0.95);
  --text: #d6c9a3;
  --accent: #8a9a5b;
  --border: #2e3323;
  --font-main: "Courier New", Courier, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body { min-height: 100vh; }

/* WARSTWY TŁA */
.bg-deep {
  position: fixed;
  inset: 0;
  background: url("bg.png") center/cover no-repeat;
  z-index: -3;
  /* START: Jasna i wyraźna fabryka */
  filter: brightness(0.8) contrast(1.1);
  transition: filter 0.7s ease-in-out;
}

.bg-dimmer {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: -2;
  /* START: Przezroczysta warstwa */
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.parallax-overlay {
  position: fixed;
  inset: -50px;
  background: radial-gradient(circle at center, rgba(138,154,91,0.07) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: drift 30s infinite alternate ease-in-out;
}

.ui-overlay {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0px, transparent 1px, rgba(255, 255, 255, 0.015) 2px, rgba(255, 255, 255, 0.015) 3px);
  pointer-events: none;
  z-index: 1000;
  opacity: 0.6;
}

@keyframes drift { from { transform: translate(0,0); } to { transform: translate(30px, 30px); } }

/* TYPOGRAFIA */
h1, h2, h3 { color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 15px; }
a { color: var(--accent); text-decoration: none; }

/* NAV */
nav {
  position: fixed;
  top: 0; width: 100%;
  background: var(--terminal);
  border-bottom: 1px solid var(--accent);
  padding: 10px;
  z-index: 1001;
  display: flex;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(5px);
}

.nav-link {
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 15px;
  font-weight: bold;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.5);
}

.nav-link:hover, .nav-link.active {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  background: rgba(138,154,91,0.1);
}

/* SNAP SCROLL LOGIC */
.snap-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  -webkit-overflow-scrolling: touch;
}

.snap-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 20px;
}

/* PANELE */
.panel {
  background: var(--terminal);
  border: 1px solid var(--border);
  padding: 30px;
  width: 100%;
  max-width: 1100px;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
}

/* Specjalny panel dla HERO - bardziej przezroczysty */
#hero .panel {
  background: rgba(8, 12, 8, 0.4);
  border-color: rgba(138, 154, 91, 0.2);
}

.status { border: 1px solid var(--border); padding: 15px; margin: 20px 0; background: rgba(0,0,0,0.4); }

.news-box {
  border: 1px dashed var(--accent);
  padding: 15px;
  background: rgba(0,0,0,0.6);
  margin-top: 20px;
  max-height: 150px;
  overflow-y: auto;
  text-align: left;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

.map-container { position: relative; border: 1px solid var(--accent); background: #000; }
.map-image { width: 100%; display: block; filter: brightness(0.6); }
.map-point {
  position: absolute; width: 16px; height: 16px;
  background: var(--accent); border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 0 15px var(--accent); transform: translate(-50%, -50%);
}

.card-btn {
  background: var(--accent); color: #000; border: none; padding: 10px;
  width: 100%; cursor: pointer; font-weight: bold; text-transform: uppercase;
  display: block; text-align: center; margin-top: 10px;
}

footer { text-align: center; padding: 20px; color: #444; font-size: 0.7rem; }