:root {
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --panel: #1a1a1a;
  --panel-alt: #151515;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-dim: #a0a0a0;
  --text-darker: #707070;
  --accent: #8b0000;
  --accent-dark: #5a0000;
  --accent-light: #b91c1c;
  --radius: 8px;
  --container: min(1120px, 92%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
.container { width: var(--container); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: saturate(100%) blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover { opacity: 0.8; }

.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand__name {
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.nav { display: block; }
.nav__list {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
  position: relative;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav__link:hover::after { width: 100%; }

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background-image: url('../../images/dayz/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.4) contrast(1.1) grayscale(0.2);
  z-index: 0;
}

.hero__backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(10, 10, 10, 0.4) 40%,
    rgba(10, 10, 10, 0.6) 70%,
    rgba(10, 10, 10, 0.95) 100%
  );
}

.hero__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
}

.hero__copy {
  max-width: 720px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-size: clamp(32px, 6vw, 64px);
  margin: 0 0 16px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 4px 12px rgba(139, 0, 0, 0.4),
    0 0 40px rgba(139, 0, 0, 0.2);
}

.hero__subtitle {
  margin: 0 0 32px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero__pill {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--text-dim);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero__pill--clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.hero__pill--clickable:hover {
  background: rgba(26, 26, 26, 1);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(139, 0, 0, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  min-width: 160px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 15px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before { opacity: 1; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--text);
  border: 1px solid var(--accent-dark);
  box-shadow: 0 4px 16px rgba(139, 0, 0, 0.3);
}

.btn-accent:hover {
  box-shadow: 0 6px 24px rgba(139, 0, 0, 0.5);
  transform: translateY(-2px);
}

.btn-accent span {
  color: var(--text);
  position: relative;
  z-index: 1;
}

.site-main { flex: 1 0 auto; }

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.footer__inner {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  margin: 0;
  color: var(--text-darker);
  font-size: 14px;
}

.footer__socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--text-dim);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--panel-alt);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--panel);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  font-weight: 600;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

:where(a, button).btn:focus-visible,
:where(a, button).nav__link:focus-visible,
:where(.hero__pill--clickable):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .nav__list { gap: 14px; }
  .nav__link { font-size: 14px; }
  
  .hero { min-height: calc(100vh - 68px); padding: 60px 0 40px; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

@media (min-width: 1200px) {
  .hero { min-height: calc(100vh - 68px); }
}
