/* --- General Setup & Variables --- */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/Poppins-Light.woff2") format("woff2"); /* Modern Browsers */
}

/* poppins-300italic - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: italic;
  font-weight: 300;
  src: url("fonts/Poppins-LightItalic.woff2") format("woff2");
}

/* poppins-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/Poppins-Regular.woff2") format("woff2");
}

/* poppins-600 - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/Poppins-SemiBold.woff2") format("woff2");
}

/* poppins-700 - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/Poppins-Bold.woff2") format("woff2");
}

/* poppins-700italic - latin */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: italic;
  font-weight: 700;
  src: url("fonts/Poppins-BoldItalic.woff2") format("woff2");
}

:root {
  --primary-color: #00f2ea; /* Bright Cyan */
  --secondary-color: #ff00ff; /* Magenta */
  --background-color: #0b0c10;
  --surface-color: #1f2833;
  --text-color: #c5c6c7;
  --heading-color: #ffffff;
  --border-color: #45a29e;
  --font-family: "Poppins", sans-serif;
  --container-width: 1200px;
  --border-radius: 8px;
  --transition-speed: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

section {
  padding: 6rem 0;
}

.section-title {
  color: var(--heading-color);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  color: var(--text-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.cta-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-speed);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--background-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--heading-color);
  border-color: var(--heading-color);
}

.btn-secondary:hover {
  background-color: var(--heading-color);
  color: var(--background-color);
}

/* --- Animations --- */
.content-block,
.testimonial-card,
.step,
.prize-card,
.faq-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-block.is-visible,
.testimonial-card.is-visible,
.step.is-visible,
.prize-card.is-visible,
.faq-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header & Navigation --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background-color: rgba(11, 12, 16, 0.8);
  backdrop-filter: blur(10px);
  transition: var(--transition-speed);
}

.main-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-speed);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--heading-color);
  margin: 5px 0;
  transition: var(--transition-speed);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Header height */
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    transparent 40%,
    var(--background-color) 90%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-color);
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* --- Game Demo Section --- */
.game-demo-wrapper {
  max-width: 800px;
  margin: 0 auto;
}
.game-demo-container {
  background-color: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.game-screen {
  position: relative;
  width: 100%;
  height: 300px;
  background: linear-gradient(to top, #1a202c, #2d3748);
  overflow: hidden;
}
.claw-assembly {
  position: absolute;
  top: 0;
  left: 50%;
  width: 60px;
  height: 100%;
  transform: translateX(-50%);
  transition: transform 0.4s ease; /* For smooth reset */
}
.claw-arm {
  width: 6px;
  height: 0%; /* JS will control height */
  background: #9eadbf;
  margin: 0 auto;
}
.claw-hand {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
}
.claw-hand span {
  width: 8px;
  height: 30px;
  background: #c5c6c7;
  border-radius: 5px;
  margin: 0 4px;
  transition: transform 0.3s ease;
}
/* Claw animation classes */
.claw-assembly.is-dropping .claw-arm {
  animation: drop-arm 1.5s ease-in-out forwards;
}
.claw-assembly.is-grabbing .claw-hand span:nth-child(1) {
  transform: rotate(30deg) translateY(5px);
}
.claw-assembly.is-grabbing .claw-hand span:nth-child(3) {
  transform: rotate(-30deg) translateY(5px);
}
.claw-assembly.is-returning .claw-arm {
  animation: raise-arm 1.5s ease-in-out forwards;
}
@keyframes drop-arm {
  from {
    height: 0%;
  }
  to {
    height: 100%;
  }
}
@keyframes raise-arm {
  from {
    height: 100%;
  }
  to {
    height: 0%;
  }
}
.prize-zone {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
}
.prize-item {
  position: absolute;
  bottom: 10px;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
}
#prize1 {
  left: 20%;
}
#prize2 {
  left: 50%;
  background-color: gold;
}
#prize3 {
  left: 80%;
}
.prize-item.caught {
  animation: prize-wobble 0.5s infinite;
}
@keyframes prize-wobble {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}

.game-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface-color);
  padding: 1rem;
  border-radius: var(--border-radius);
}
.controls-info {
  display: flex;
  gap: 1rem;
  font-weight: bold;
}
.controls-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.game-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--surface-color);
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
}
.game-btn:hover {
  background-color: var(--border-color);
  color: var(--background-color);
}
#drop-button:disabled {
  background-color: #636363;
  cursor: not-allowed;
  border-color: #636363;
}

/* --- How to Play Section --- */
.pro-demo-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-color);
}
.how-it-works-section .steps-container {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}
.step-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--background-color);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem auto;
}

/* --- Content Blocks --- */
.content-block {
  overflow: hidden;
}
.content-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.layout-reversed .content-image {
  order: 2;
}
.content-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 242, 234, 0.1);
}
.content-text .section-title {
  text-align: left;
  font-size: 2.2rem;
}
.content-text p {
  margin-bottom: 1rem;
}

/* --- Prize Gallery --- */
.prize-gallery-section {
  background-color: var(--surface-color);
}
.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.prize-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-speed);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.prize-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 242, 234, 0.2);
}

/* --- Skill vs Luck --- */
.comparison-table {
  display: flex;
  gap: 2rem;
  background-color: var(--surface-color);
  padding: 2rem;
  border-radius: var(--border-radius);
}
.table-column {
  flex: 1;
  padding: 1.5rem;
}
.column-header {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid;
}
.header-skillgrab {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.header-traditional {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}
.table-column ul {
  list-style: none;
}
.table-column li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}
.table-column li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
}
.table-column:first-child li::before {
  color: var(--primary-color);
}
.table-column:last-child li::before {
  content: "✗";
  color: var(--secondary-color);
}

/* --- Testimonials --- */
.testimonials-section {
  background-color: var(--surface-color);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background-color: var(--background-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
}
.testimonial-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border-color);
}
.testimonial-card blockquote {
  font-style: italic;
  margin-bottom: 1.5rem;
  border: none;
  flex-grow: 1;
}
.testimonial-card cite {
  font-weight: 600;
  color: var(--heading-color);
}

/* --- CTA & Contact Form Sections are mostly unchanged --- */
.cta-section {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--background-color);
  text-align: center;
}
.cta-section .section-title {
  color: var(--background-color);
}
.cta-section .section-subtitle {
  color: rgba(11, 12, 16, 0.9);
}
.subscription-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 1rem auto;
}
.subscription-form input {
  flex-grow: 1;
  padding: 14px;
  border-radius: var(--border-radius);
  border: none;
  font-family: var(--font-family);
  background-color: rgba(255, 255, 255, 0.9);
}
.subscription-form .cta-btn {
  flex-shrink: 0;
  color: var(--heading-color);
  background-color: var(--background-color);
  border: 2px solid var(--background-color);
}
.subscription-form .cta-btn:hover {
  background-color: transparent;
  color: var(--background-color);
}
.cta-disclaimer {
  font-size: 0.9rem;
  opacity: 0.8;
}
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--surface-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
}
.form-group {
  margin-bottom: 1.5rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--heading-color);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  font-family: var(--font-family);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 242, 234, 0.3);
}
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}
.checkbox-label {
  display: flex;
  alignitems: center;
  gap: 0.75rem;
  font-weight: normal;
  color: var(--text-color);
}
.checkbox-label input[type="checkbox"] {
  width: auto;
}
.checkbox-label a {
  color: var(--primary-color);
  text-decoration: none;
}
.checkbox-label a:hover {
  text-decoration: underline;
}
.contact-form .cta-btn {
  width: 100%;
}

/* --- FAQ & Footer are mostly unchanged --- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background-color: var(--surface-color);
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading-color);
  text-align: left;
  cursor: pointer;
  position: relative;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform var(--transition-speed);
}
.faq-question[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}
.faq-answer p {
  padding: 0 1.5rem 1.5rem 1.5rem;
}
.main-footer-section {
  background-color: #0b0c10;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  alignitems: center;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
}
.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 0.5rem;
}
.footer-links a:hover {
  color: var(--primary-color);
}
.footer-contact a {
  color: var(--primary-color);
  text-decoration: none;
}
.footer-copyright {
  text-align: center;
  opacity: 0.7;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .layout-reversed .content-image {
    order: 0; /* Stack image on top */
  }
  .content-text .section-title {
    text-align: center;
  }
  .hero-title {
    font-size: 3rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--surface-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }
  .main-nav.is-active {
    right: 0;
  }
  .nav-links {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
    margin-top: 140px;
  }
  .nav-links a {
    font-size: 1.2rem;
  }
  .burger-menu {
    display: block;
  }
  .burger-menu.is-active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .burger-menu.is-active .burger-line:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.is-active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  .comparison-table,
  .hero-cta-group,
  .subscription-form,
  .how-it-works-section .steps-container {
    flex-direction: column;
  }
  .footer-content {
    flex-direction: column;
  }
  .game-controls {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- Styles for Static Legal & Thanks Pages --- */

.static-page-section {
  padding-top: 120px; /* Space for fixed header */
  padding-bottom: 6rem;
  min-height: 80vh;
}

.static-page-section .container {
  max-width: 800px; /* Narrower container for readability */
}

.static-page-section h1 {
  font-size: 3rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.static-page-section .last-updated {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
  font-style: italic;
}

.static-page-section h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.static-page-section p,
.static-page-section li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.static-page-section p {
  margin-bottom: 1rem;
}

.static-page-section ul {
  list-style-position: inside;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.static-page-section li {
  margin-bottom: 0.5rem;
}

.static-page-section a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.static-page-section a:hover {
  text-decoration: underline;
}

/* --- Thank You Page Specific Styles --- */
.thanks-page-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90vh;
  padding-top: 80px; /* Header height */
}

.thanks-content {
  background: var(--surface-color);
  padding: 3rem 4rem;
  border-radius: var(--border-radius);
  max-width: 600px;
}

.thanks-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--background-color);
  font-size: 3rem;
  font-weight: bold;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem auto;
}

.thanks-content h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.thanks-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.thanks-cta {
  margin-top: 1.5rem;
}

.nuvisible {
  display: none;
}
