:root {
  color-scheme: dark;
  --bg: #050508;
  --surface: rgba(24, 14, 6, 0.95);
  --surface-strong: rgba(16, 10, 5, 0.96);
  --text: #f7f3ef;
  --muted: #c9b49a;
  --accent: #FFC857; /* warm gold */
  --accent-soft: #FFD9A6;
  --accent-strong: #FFB703;
  --accent-darker: #E6A83B; /* slightly darker for buttons */
  --topbar-bg: rgba(255, 200, 87, 0.16);
  --border: rgba(255, 200, 87, 0.12);
  --shadow: 0 35px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, rgba(211, 155, 112, 0.08), transparent 35%),
              radial-gradient(circle at 70% 15%, rgba(134, 77, 34, 0.12), transparent 30%),
              var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: relative;
  overflow: hidden;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 2vw, 2rem);
  gap: 1rem;
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.logo img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  padding: 0.35rem;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 0;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.24);
}

.icon-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

/* Arma 3 logo is rectangular — allow taller height while preserving aspect ratio */
.icon-link.icon-arma img {
  height: 36px;
  width: auto;
}

.icon-link:focus {
  outline: 3px solid rgba(255, 190, 141, 0.12);
  outline-offset: 3px;
}

.site-nav,
.nav-toggle {
  display: none;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: none;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  margin: -8rem 0 -4rem;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(12, 6, 0, 0.4), rgba(12, 6, 0, 0.75));
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.hero-copy {
  width: 100%;
  max-width: 720px;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide[data-slide="1"] {
  background: linear-gradient(180deg, rgba(12, 6, 0, 0.4), rgba(12, 6, 0, 0.75)),
              url('resources/Minigame.png') center/cover no-repeat;
  background-blend-mode: overlay;
}

.hero-slide[data-slide="2"] {
  background: linear-gradient(180deg, rgba(12, 6, 0, 0.55), rgba(12, 6, 0, 0.85)),
              url('resources/banner.jpg') center/cover no-repeat;
}

.hero-slide[data-slide="3"] {
  background: linear-gradient(180deg, rgba(12, 6, 0, 0.35), rgba(4, 2, 0, 0.55)),
              url('resources/MainScreen.jpg') center/cover no-repeat;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.02), transparent 35%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.hero-small-text {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.85rem;
  z-index: 2;
}

.hero-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 190, 141, 0.35);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.hero-dot.active,
.hero-dot:hover,
.hero-dot:focus-visible {
  background: rgba(255, 190, 141, 0.9);
  border-color: rgba(255, 190, 141, 0.9);
  transform: scale(1.1);
}

.hero-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 1.5rem;
  z-index: 2;
}

.hero-arrow {
  pointer-events: auto;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0.75;
  transition: opacity 200ms ease, transform 200ms ease, background 200ms ease;
  cursor: pointer;
}

.hero-arrow-left,
.hero-arrow-right {
  position: relative;
  top: 0;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}


.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.hero-copy p {
  margin: 1.5rem auto 0;
  max-width: 40rem;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-darker), var(--accent-strong));
  color: #fff;
}

.btn-secondary {
  border: 1px solid rgba(255, 190, 141, 0.2);
  color: var(--text);
  background: rgba(255, 190, 141, 0.12);
}

.section {
  padding: 5rem clamp(1.5rem, 4vw, 5rem);
}

.section-header {
  max-width: 45rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-top: 1rem;
}

.about-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255, 190, 141, 0.16);
}

.info-panels {
  display: grid;
  gap: 2rem;
}

.info-panel {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: calc(-50vw + 2rem);
  margin-right: calc(-50vw + 2rem);
  width: calc(100vw - 4rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
  padding: 2.5rem clamp(2rem, 6vw, 4rem);
  background: linear-gradient(180deg, rgba(24, 14, 6, 0.95), rgba(35, 18, 7, 0.95));
  border: 1px solid rgba(255, 190, 141, 0.12);
  border-radius: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
}

.info-panel:nth-of-type(even) {
  grid-template-areas: 'image copy';
}

.info-panel:nth-of-type(odd) {
  grid-template-areas: 'copy image';
}

.panel-copy {
  grid-area: copy;
}

.panel-image {
  grid-area: image;
}

.panel-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 190, 141, 0.16);
}

.about-grid,
.operations-grid,
.themes-grid,
.gallery-grid {
  display: grid;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-grid article,
.operation-card,
.theme-card,
.join-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.about-grid article h3,
.operation-card h3,
.theme-card h3 {
  margin-bottom: 1rem;
  color: #fff;
}

.about-grid article p,
.operation-card p,
.theme-card p {
  color: var(--muted);
  line-height: 1.75;
}

.operations-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.themes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}

.join-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 2rem;
}

.join-panel h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.join-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer {
  padding: 2.5rem clamp(1.5rem, 4vw, 5rem);
  border-top: 1px solid rgba(255, 190, 141, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(19, 11, 6, 0.94);
}

.site-footer p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 1040px) {
  .about-grid,
  .operations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .themes-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0;
  }

  .hero {
    padding-top: 7rem;
  }

  .about-hero,
  .info-panel,
  .join-panel {
    grid-template-columns: 1fr;
  }

  .info-panel {
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
    width: auto;
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 3rem 1rem;
  }

  .hero-copy p,
  .section-header h2 {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }
}
