:root {
  --sonic-blue: #007bff;
  --ring-gold: #ffcc00;
  --shadow-black: rgba(0, 0, 0, 0.7);
  --light-gray: #f4f4f4;
  --dark-blue: #0056b3;
  --text-color: #333;
  --font-primary: "Arial", sans-serif;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-gray);
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-header {
  background: var(--sonic-blue);
  color: white;
  padding: 15px 0;
  box-shadow: 0 4px 15px var(--shadow-black);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px solid white;
}

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

.main-nav .nav-item {
  text-decoration: none;
  color: white;
  font-weight: bold;
  margin-left: 25px;
  padding: 5px 0;
  transition: color 0.3s, border-bottom 0.3s;
  position: relative;
}

.main-nav .nav-item::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--ring-gold);
  transition: width 0.3s;
}

.main-nav .nav-item:hover::after {
  width: 100%;
}

.hero-section {
  background: linear-gradient(
    135deg,
    var(--sonic-blue) 0%,
    var(--dark-blue) 100%
  );
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: pulse 5s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1) rotate(45deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.2) rotate(45deg);
    opacity: 1;
  }
}

.hero-title {
  font-size: 3.5em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 4px 4px var(--shadow-black);
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.8em;
  font-weight: 300;
  margin-bottom: 30px;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1em;
  font-weight: 500;
}

.download-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.download-badge img {
  height: 60px;
  transition: transform 0.3s, filter 0.3s;
}

.download-badge img:hover {
  transform: translateY(-5px) scale(1.05);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
}

.price-info {
  font-size: 0.9em;
  font-style: italic;
  opacity: 0.8;
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section:nth-child(even) {
  background-color: white;
}

.section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: var(--dark-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid var(--ring-gold);
  display: inline-block;
  padding-bottom: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.description-section {
  background: linear-gradient(to bottom, var(--light-gray) 0%, white 100%);
}

.description-text p {
  margin-bottom: 20px;
  text-align: justify;
  font-size: 1.1em;
}

.subsection-title {
  font-size: 1.8em;
  color: var(--sonic-blue);
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid var(--ring-gold);
  padding-left: 15px;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-list li {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  border-top: 4px solid var(--sonic-blue);
}

.feature-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
}

.float-right {
  float: right;
  margin-left: 20px;
  max-width: 40%;
}

.description-text::after {
  content: "";
  display: table;
  clear: both;
}

.screenshots-section {
  background-color: var(--dark-blue);
}

.screenshots-section .section-title {
  color: white;
  border-bottom-color: var(--ring-gold);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 16 / 9;
}

.screenshot-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 204, 0, 0.5);
}

.how-to-play-section {
  background-color: white;
}

.instruction-list {
  list-style: none;
  padding: 0;
  counter-reset: instruction-counter;
}

.instruction-list li {
  counter-increment: instruction-counter;
  font-size: 1.2em;
  padding: 15px 0 15px 60px;
  margin-bottom: 20px;
  background-color: var(--light-gray);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.instruction-list li::before {
  content: counter(instruction-counter);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background-color: var(--ring-gold);
  color: var(--dark-blue);
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
}

.centered-image {
  display: block;
  margin: 40px auto;
  max-width: 600px;
}

.call-to-action-section {
  background: linear-gradient(90deg, #1b00ff 0%, var(--sonic-blue) 100%);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.cta-container {
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
}

.cta-container .section-title {
  color: white;
  border-bottom-color: var(--ring-gold);
}

.cta-text {
  font-size: 1.5em;
  margin-bottom: 30px;
  font-weight: 300;
}

.cta-download img {
  height: 70px;
}

.main-footer {
  background-color: var(--shadow-black);
  color: var(--light-gray);
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-heading {
  font-size: 1.2em;
  color: var(--ring-gold);
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.footer-link {
  color: var(--light-gray);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s;
}

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

.contact-info {
  line-height: 1.8;
}

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

.footer-badge img {
  width: 150px;
  height: auto;
  transition: opacity 0.3s;
}

.footer-badge img:hover {
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
  .main-nav .nav-list {
    display: none;
  }

  .header-content {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2.5em;
  }

  .hero-subtitle {
    font-size: 1.5em;
  }

  .download-links {
    flex-direction: column;
    gap: 10px;
  }

  .download-badge img {
    height: 50px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .float-right {
    float: none;
    max-width: 100%;
    margin: 20px 0;
  }

  .screenshot-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .instruction-list li {
    font-size: 1.1em;
    padding-left: 50px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2em;
  }

  .hero-subtitle {
    font-size: 1.2em;
  }

  .cta-text {
    font-size: 1.2em;
  }

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

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