:root {
  --color-primary: #007bff;
  --color-secondary: #00bcd4;
  --color-text: #e0e0e0;
  --color-background: #121212;
  --color-card-bg: #1e1e1e;
  --color-accent-red: #ff3b30;
  --font-family-main: "Arial", sans-serif;
  --spacing-lg: 4rem;
  --spacing-md: 2rem;
  --spacing-sm: 1rem;
  --border-radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-main);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--color-secondary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

h1,
h2,
h3,
h4 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.section {
  padding: var(--spacing-lg) 0;
}

.header {
  background-color: rgba(18, 18, 18, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logo-link {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}

.logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.main-nav {
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
}

.nav-item {
  margin-left: var(--spacing-md);
}

.nav-link {
  color: var(--color-text);
  font-size: 1rem;
  padding: 5px 10px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.hero-section {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--color-background) 0%,
    rgba(0, 50, 100, 0.8) 100%
  );
  padding: 6rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 10px var(--color-secondary);
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
}

.hero-meta {
  margin-top: var(--spacing-sm);
  color: var(--color-text);
  font-size: 0.9rem;
  opacity: 0.7;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.store-badge {
  width: 180px;
  height: auto;
  transition: transform 0.3s ease;
}

.store-badge:hover {
  transform: translateY(-5px);
}

.hero-image-container {
  margin-top: var(--spacing-lg);
  perspective: 1000px;
  padding: 0 var(--spacing-md);
}

.hero-image {
  width: 100%;
  max-width: 900px;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  transform: rotateX(5deg) scale(1.05);
  transform-origin: bottom;
  transition: transform 0.5s ease;
  border: 3px solid var(--color-primary);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--color-primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
}

.description-section {
  background-color: var(--color-card-bg);
  border-top: 1px solid #333;
}

.description-text {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto var(--spacing-md);
  text-align: justify;
}

.description-feature-list {
  max-width: 900px;
  margin: var(--spacing-lg) auto 0;
  padding: var(--spacing-md);
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-primary);
}

.feature-list-title {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
  text-align: center;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-item {
  padding: 10px 0;
  border-bottom: 1px dashed #333;
  position: relative;
  padding-left: 25px;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.gallery-section {
  background-color: var(--color-background);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.screenshot-item {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.screenshot-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.how-to-play-section {
  background-color: var(--color-card-bg);
  border-bottom: 1px solid #333;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

.step-card {
  background-color: var(--color-background);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border-left: 5px solid var(--color-primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
  transition: background-color 0.3s ease;
}

.step-card:hover {
  background-color: #262626;
}

.step-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-secondary);
  margin-right: 15px;
  flex-shrink: 0;
  border-right: 2px solid var(--color-secondary);
  padding-right: 15px;
}

.step-text {
  font-size: 1rem;
}

.cta-section {
  background: linear-gradient(90deg, #001f40, var(--color-primary), #001f40);
  text-align: center;
  padding: 4rem 0;
}

.cta-title {
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 0 0 8px #000;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
}

.cta-buttons {
  margin-top: var(--spacing-lg);
}

.cta-note {
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
}

.footer {
  background-color: #0d0d0d;
  color: #aaaaaa;
  padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid #333;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-link {
  color: #aaaaaa;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--color-secondary);
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-badge-small {
  width: 150px;
  height: auto;
}

.contact-info {
  margin-bottom: 8px;
  font-style: normal;
  font-size: 0.95rem;
}

.developer-email {
  color: var(--color-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
}

.copyright {
  font-size: 0.85rem;
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .main-nav {
    margin-top: var(--spacing-sm);
  }

  .nav-list {
    flex-direction: column;
    gap: 10px;
  }

  .nav-item {
    margin-left: 0;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-badges {
    align-items: center;
  }

  .step-card {
    border-left: none;
    border-top: 5px solid var(--color-primary);
  }

  .step-number {
    border-right: none;
    border-bottom: 2px solid var(--color-secondary);
    padding-right: 0;
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .download-buttons {
    flex-direction: column;
    gap: 15px;
  }
}
