/* ========================================
   SECTIONS — Section-specific styles
   ======================================== */

/* ---- PAGE HERO (sub-pages) ---- */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-2xl);
  background: var(--color-green-deep);
  position: relative;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, var(--max-width));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.3;
}

.page-hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.page-hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-muted);
  max-width: none;
  text-transform: none;
  letter-spacing: 0;
}


/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../../assets/images/grass.png') center / cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 0, 0.85);
  z-index: 0;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-2xl);
  pointer-events: none;
}

.hero__content a,
.hero__content button {
  pointer-events: auto;
}

.hero__badge {
  margin-bottom: var(--space-xl);
}

.hero__title {
  font-size: var(--text-5xl);
  line-height: 0.95;
  margin-bottom: var(--space-lg);
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2xl);
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Decorative field lines in hero */
.hero__field-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
}

.hero__field-lines::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border: 2px solid var(--color-white);
  border-radius: 50%;
}

.hero__field-lines::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--color-white);
}


/* ---- ABOUT / MISSION ---- */
.about__quote {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: var(--space-2xl);
  position: relative;
  color: var(--color-white);
}

.about__quote::before {
  content: '\201C';
  font-size: 4em;
  color: var(--color-orange);
  opacity: 0.3;
  position: absolute;
  top: -0.3em;
  left: -0.15em;
  line-height: 1;
}

.about__text-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about__text-block p {
  font-size: var(--text-lg);
  line-height: 1.7;
}

.about__emphasis {
  font-weight: 600;
  color: var(--color-gold);
}

.about__image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image--landscape {
  aspect-ratio: auto;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image--landscape img {
  height: auto;
  object-fit: contain;
}

.about__demo-audio {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.about__demo-audio audio {
  width: 100%;
  margin-top: var(--space-md);
}

/* ---- DEMO AUDIO FEATURED ---- */
.demo-audio-featured {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow-orange);
}

.demo-audio-featured audio {
  width: 100%;
  max-width: 500px;
}


/* ---- PLATFORM ---- */
.platform__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.platform__grid .card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}


/* ---- HOW IT WORKS (contextual) ---- */
.context__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.context__item p {
  font-size: var(--text-base);
  max-width: 50ch;
}

.context__image {
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-green-mid);
  overflow: hidden;
}

.context__tagline {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-2xl);
  letter-spacing: 0.05em;
}


/* ---- EVENT DETECTION ---- */
.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl) var(--space-xl);
}

.event-item {
  text-align: center;
}

.event-item .circle-frame {
  width: clamp(120px, 15vw, 180px);
  height: clamp(120px, 15vw, 180px);
  margin-bottom: var(--space-md);
}

.event-item__label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange);
  background: rgba(255, 107, 0, 0.1);
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-sm);
}


/* ---- ANALYTICS ---- */
.analytics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.analytics__item {
  position: relative;
}

.analytics__item .img-placeholder {
  aspect-ratio: 16 / 10;
}

.analytics__item .tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
}


/* ---- VIDEO SAMPLES ---- */
.samples__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.sample-item {
  text-align: center;
}

.sample-item .circle-frame {
  width: clamp(150px, 18vw, 220px);
  height: clamp(150px, 18vw, 220px);
  margin-bottom: var(--space-md);
}


/* ---- SPATIO-TEMPORAL ---- */
.spatial__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.spatial__item .img-placeholder {
  aspect-ratio: 4 / 3;
  margin-bottom: var(--space-sm);
}

.spatial__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.spatial__text p {
  font-size: var(--text-lg);
}

.spatial__board {
  aspect-ratio: 1;
  max-width: 350px;
  margin: 0 auto;
}


/* ---- HISTORICAL CONTEXT ---- */
.history__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.history__item {
  padding-left: var(--space-lg);
  border-left: 2px solid var(--color-green-mid);
  transition: border-color var(--duration-base) var(--ease-out);
}

.history__item:hover {
  border-color: var(--color-orange);
}

.history__image {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
}


/* ---- COMMENTARY ---- */
.commentary__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.commentary__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.commentary__feature::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 50%;
  margin-top: 0.6em;
  flex-shrink: 0;
}

.commentary__audio {
  margin-top: var(--space-xl);
}

.commentary__audio-cta {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-orange);
}

/* Commentary page grid layout */
.commentary__features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.commentary__features-grid .commentary__feature {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: border-color var(--duration-base) var(--ease-out);
}

.commentary__features-grid .commentary__feature:hover {
  border-color: var(--border-accent);
}

@media (max-width: 768px) {
  .commentary__features-grid {
    grid-template-columns: 1fr;
  }
}


/* ---- COST ---- */
.cost-compare {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(var(--space-xl), 6vw, var(--space-3xl));
  max-width: 900px;
  margin: 0 auto;
}

.cost-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 320px;
}

.cost-side__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.cost-side__img {
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.cost-side .cost-side__img {
  width: clamp(220px, 26vw, 320px);
}

.cost-side--liat .cost-side__img {
  width: clamp(100px, 12vw, 140px);
}

/* Subtle platform / surface beneath the images */
.cost-side__platform {
  width: 110%;
  height: 6px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  border-radius: 50%;
  margin-top: -3px;
  filter: blur(2px);
}

.cost-compare__vs {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-bottom: 100px;
  flex-shrink: 0;
}

.cost-side__price {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
  color: var(--color-cream);
}

.cost-side--liat .cost-side__price {
  color: var(--color-orange);
}

.cost-side__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.cost-side__note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .cost-compare {
    gap: var(--space-lg);
  }

  .cost-side .cost-side__img {
    width: 200px;
  }

  .cost-side--liat .cost-side__img {
    width: 90px;
  }

  .cost-compare__vs {
    font-size: var(--text-lg);
    padding-bottom: 70px;
  }

  .cost-side__price {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 480px) {
  .cost-side .cost-side__img {
    width: 160px;
  }

  .cost-side--liat .cost-side__img {
    width: 70px;
  }

  .cost-compare__vs {
    padding-bottom: 50px;
  }
}


/* ---- CHECKLIST (For Best Results) ---- */
.checklist__group-title {
  font-size: var(--text-lg);
  color: var(--color-gold);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-lg);
  margin-top: var(--space-2xl);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}

.checklist__card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: rgba(0, 40, 2, 0.6);
  border: 1px solid rgba(192, 184, 122, 0.2);
  border-left: 3px solid var(--color-orange);
  border-radius: var(--radius-md);
  transition: background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.checklist__card:hover {
  background: rgba(0, 50, 2, 0.8);
  border-color: rgba(255, 107, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.checklist__num {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1;
  flex-shrink: 0;
  width: 2ch;
  opacity: 0.3;
}

.checklist__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.checklist__desc {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 60ch;
}

@media (max-width: 768px) {
  .checklist {
    grid-template-columns: 1fr;
  }

  .checklist__card {
    padding: var(--space-lg);
    gap: var(--space-md);
  }

  .checklist__num {
    font-size: var(--text-2xl);
  }
}


/* ---- MULTILINGUAL ---- */
.multilingual__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}


/* ---- FEATURE VIDEO ---- */
.feature-video {
  padding: var(--space-3xl) 0;
}

.feature-video .video-frame {
  max-width: 960px;
  margin: 0 auto;
}


/* ---- CUSTOMISE ---- */
.customise__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.customise__grid .card {
  padding: var(--space-2xl);
}


/* ---- EXPANDED APPS ---- */
.apps__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.apps__column {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
}

.apps__column h3 {
  margin-bottom: var(--space-lg);
}

.apps__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.apps__list li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.apps__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-orange);
  border-radius: 50%;
}


/* ---- REQUIREMENTS ---- */
.requirements__layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.requirements__circle {
  width: clamp(200px, 25vw, 320px);
  height: clamp(200px, 25vw, 320px);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.requirements__circle h3 {
  font-size: var(--text-2xl);
  line-height: 1.1;
}

.requirements__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.requirements__item {
  font-size: var(--text-sm);
}

.requirements__item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-orange);
  margin-bottom: 2px;
}


/* ---- PARTNERSHIP ---- */
.partnership__content {
  max-width: 800px;
}

.partnership__intro {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xl);
}

.partnership__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.partnership__benefit {
  padding-left: var(--space-lg);
  border-left: 3px solid var(--color-orange);
}

.partnership__benefit p {
  font-size: var(--text-base);
}

.partnership__image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}


/* ---- FOOTER / CONTACT ---- */
.footer {
  background: var(--color-green-deep);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-green-dark),
    var(--color-orange),
    var(--color-green-dark)
  );
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xl);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-base);
  color: var(--text-primary);
}

.footer__contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--color-gold);
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}


/* ---- GAME SECTION (demo page) ---- */
.game-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--color-green-deep);
}

.game-section--active {
}

.game-section__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Top content — centered vertically by default, slides to top when playing */
.game-section__content {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  padding: var(--space-2xl);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              gap 0.4s ease;
}

.game-section__content a,
.game-section__content button {
  pointer-events: auto;
}

.game-section__title {
  font-size: var(--text-4xl);
  color: var(--color-white);
  transition: font-size 0.4s ease;
}

.game-section__play-btn {
  font-size: var(--text-lg);
  padding: 0.7em 2.5em;
  transition: font-size 0.3s ease, padding 0.3s ease;
}

/* Playing state — slide to top */
.game-section__content--playing {
  top: 0;
  transform: translateY(0);
  padding-top: calc(var(--nav-height) + var(--space-sm));
  gap: var(--space-sm);
}

.game-section__content--playing .game-section__title {
  font-size: var(--text-2xl);
}

.game-section__content--playing .game-section__play-btn {
  font-size: var(--text-sm);
  padding: 0.4em 1.5em;
}

/* Center instruction — hidden by default, appears when playing */
.game-section__instruction {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  max-width: 20ch;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.game-section__instruction--visible {
  opacity: 1;
}

/* Score display — bottom center, above scroll */
.game-section__score {
  position: absolute;
  z-index: 3;
  bottom: calc(var(--space-3xl) + 40px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.game-section__score--visible {
  opacity: 1;
}

.game-section__score-side {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.game-section__score-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

.game-section__score-num {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-white);
  min-width: 1.2em;
  text-align: center;
}

.game-section__score-divider {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.25);
}

/* Scroll indicator */
.game-section__scroll {
  position: absolute;
  z-index: 3;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  animation: game-scroll-fade 2.5s ease-in-out infinite;
}

.game-section__scroll span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
}

.game-section__scroll-arrow {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.35);
  animation: game-scroll-bounce 2s ease-in-out infinite;
}

.game-section__scroll-arrow svg {
  width: 100%;
  height: 100%;
}

@keyframes game-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes game-scroll-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
