html {
  scroll-behavior: smooth;
}

:root {
  /* --- ОСНОВНІ ФОНОВІ КОЛЬОРИ --- */
  /* Глибокий темно-сірий/оливковий для основного фону. Замість фіолетового градієнта. */
  --bg-main: #1a1c17;
  /* Трохи світліший тон для виділення секцій */
  --bg-secondary: #252822;

  /* --- АКЦЕНТНІ КОЛЬОРИ (ВАЖЛИВО!) --- */
  /* Вогняний помаранчевий. Для головних кнопок (Download) та важливих заголовків.
     Взято з вибухів на ваших артах. */
  --accent-fire: #ff6600;
  --accent-fire-hover: #ff8533; /* Колір при наведенні */

  /* Золотий/Латунний. Для іконок, рамок або другорядних акцентів.
     Взято з монет та куль. */
  --accent-gold: #e6b800;

  /* --- ТЕКСТ --- */
  --text-white: #f0f0f0; /* Не чистий білий, а трохи приглушений "бетонний" */
  --text-dim: rgba(240, 240, 240, 0.7); /* Для описів */

  /* --- ЕЛЕМЕНТИ ІНТЕРФЕЙСУ (ЗАМІСТЬ СКЛА) --- */
  /* Темні, "металеві" або "тактичні" плашки для контенту */
  --panel-bg: rgba(40, 44, 35, 0.95);
  --panel-border: #4a5240; /* Оливкова рамка */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background:
    linear-gradient(
      180deg,
      rgba(26, 28, 23, 0.95) 0%,
      rgba(26, 28, 23, 0.88) 50%,
      rgba(26, 28, 23, 0.82) 100%
    ),
    url(images/commado-bg.webp) center center / cover no-repeat fixed;
  background-color: var(--bg-main);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Black Ops One", sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1.2px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphism Utility */
.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Armor plate / tactical panel style for About & Features */
.about-content.glass.armor-panel,
.feature-card {
  border-radius: 4px;
  border: 2px solid var(--panel-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.navbar__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-fire);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 60px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero__text {
  animation: slideUp 0.8s ease-out;
}

.hero__headline {
  font-family: "Black Ops One", sans-serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-white);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 4px 8px rgba(0, 0, 0, 0.3),
    2px 2px 0 rgba(230, 184, 0, 0.15),
    -1px -1px 0 rgba(255, 255, 255, 0.1);
}

.hero__subheadline {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-dim);
  max-width: 90%;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent-fire);
  color: var(--text-white);
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid var(--accent-fire);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 102, 0, 0.4);
  background: var(--accent-fire-hover);
}

.app-store-btn svg {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  fill: var(--text-white);
}

.app-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-store-text span:first-child {
  font-size: 0.7rem;
  font-weight: 300;
}

.app-store-text span:last-child {
  font-size: 1.2rem;
  font-weight: 600;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;

  @media (min-width: 1024px) {
    animation: float 6s ease-in-out infinite;
  }
}

.game-icon-placeholder {
  width: 300px;
  height: 300px;
  background: var(--panel-bg);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--panel-border);
  overflow: hidden;
}

.game-icon-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
section {
  padding: 30px 0;
  scroll-margin-top: 80px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 60px;
  text-align: center;
  position: relative;
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-title::after {
  content: "";
  display: block;
  width: 140px;
  height: 6px;
  margin: 20px auto 0;
  background: var(--accent-fire);
  transform: skewX(-12deg);
  box-shadow:
    0 0 20px rgba(255, 102, 0, 0.7),
    0 2px 6px rgba(0, 0, 0, 0.5);
}

/* About */

.about {
  padding-top: 0;
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  padding: 40px;
}

.developer-info {
  margin-top: 20px;
  font-weight: 600;
  opacity: 0.9;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 40px 30px;
  text-align: left;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background: var(--panel-bg);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-gold);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  max-width: 120px;
  aspect-ratio: 1/1;
  margin-bottom: 24px;

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-white);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Screenshots */
.gallery-swiper {
  padding-bottom: 50px !important;
}

.gallery-grid {
  display: flex;
  gap: 0;
  padding: 0;
}

.screenshot-item {
  height: auto;
  aspect-ratio: 9/16;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 2px solid var(--panel-border);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .screenshot-item {
    height: 780px;
  }
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Swiper Pagination Styles */
.swiper-pagination-bullet {
  background: var(--text-dim) !important;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--accent-fire) !important;
  opacity: 1;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

@media (max-width: 1024px) {
  .screenshot-item {
    border-radius: 12px;
  }
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: rgba(37, 40, 34, 0.8);
  border: none;
  border-left: 4px solid transparent;
  color: var(--text-white);
  font-family: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 102, 0, 0.12);
}

.faq-item.active .faq-question {
  background: rgba(255, 102, 0, 0.18);
  border-left-color: var(--accent-fire);
  color: var(--accent-fire-hover);
  box-shadow: inset 0 0 20px rgba(255, 102, 0, 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
  background: transparent;
  color: var(--text-dim);
  opacity: 0;
}

.faq-answer p {
  padding: 20px;
  line-height: 1.4;
}

.faq-item.active .faq-answer {
  /* max-height is handled via JS */
  opacity: 1;
}

.chevron {
  transition: transform 0.3s ease;
  color: var(--accent-gold);
}

.faq-item.active .chevron {
  transform: rotate(180deg);
  color: var(--accent-fire);
}

/* Footer */
.footer {
  padding: 30px 0;
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid var(--panel-border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--accent-gold);
}

.copyright {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero__headline {
    font-size: 2rem;
  }

  .hero__subheadline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__visual {
    margin-top: 30px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    padding-top: 100px;
    text-align: center;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition:
      opacity 0.4s ease,
      transform 0.4s ease,
      visibility 0.4s;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-toggle {
    display: block;
  }
}
