:root {
  --bg-dark: #0a110a;
  --text-main: #f4efe2;
  --text-muted: #9ab4a5;
  --accent-primary: #10b981;
  font-family: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('assets/hero-background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
  filter: blur(8px) brightness(0.5);
  transform: scale(1.05);
}

.relative-z1 {
  position: relative;
  z-index: 1;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.landing-content {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.glass-card {
  background: rgba(10, 20, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 64px 40px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero {
  max-width: 800px;
  text-align: center;
  transform: translateY(30px);
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.beta-notice {
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.beta-notice.visible {
  opacity: 1;
  transform: translateY(0);
}

.beta-notice h2 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
}

.beta-notice p {
  margin-bottom: 16px;
}

.beta-notice strong {
  color: #fff;
}

.logo {
  width: min(400px, 80vw);
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
  transform: scale(1.05) translateY(-5px);
}

h1 {
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 24px;
  background: linear-gradient(135deg, #ffffff 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--text-muted);
  font-size: clamp(18px, 4.5vw, 22px);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 600px;
}

.game-loop {
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.game-loop.visible {
  opacity: 1;
  transform: translateY(0);
}

.game-loop h2, .gallery h2 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* FAIRWAY PATH */
.fairway-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin: 60px auto;
  max-width: 800px;
}
.fairway-path::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(to bottom, rgba(16, 185, 129, 0.4) 0, rgba(16, 185, 129, 0.4) 15px, transparent 15px, transparent 30px);
  transform: translateX(-50%);
  z-index: 0;
}

.fairway-step {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 50%;
}
.fairway-step.left {
  align-self: flex-start;
  justify-content: flex-end;
  padding-right: 50px;
}
.fairway-step.right {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 50px;
}

.step-marker.dice-shape {
  position: absolute;
  width: 70px; height: 70px;
  background: #fff; color: #0a110a;
  border-radius: 16px;
  display: flex; justify-content: center; align-items: center;
  font-size: 32px; font-weight: 900;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,0.15), 0 15px 30px rgba(0,0,0,0.6);
}

.fairway-step.left .step-marker {
  right: -35px; /* Overlap center line */
  transform: rotate(-12deg);
}
.fairway-step.right .step-marker {
  left: -35px;
  transform: rotate(15deg);
}

.step-content {
  background: rgba(10, 20, 15, 0.8);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
  max-width: 340px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.fairway-step:hover .step-content {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(16, 185, 129, 0.2);
}

.step-content h3 {
  margin-top: 0;
  color: #6ee7b7;
  font-size: 26px;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 16px;
  margin: 0;
}

/* GALLERY SCATTER */
.gallery {
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin-top: 60px;
}

.gallery.visible {
  opacity: 1;
  transform: translateY(0);
}

.scatter-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.scatter-photo {
  width: 280px;
  border-radius: 8px;
  border: 10px solid #fff; /* Polaroid effect */
  border-bottom-width: 32px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: -15px; /* Overlap them slightly */
}

.tilt-left { transform: rotate(-8deg) translateY(10px); }
.tilt-right { transform: rotate(6deg) translateY(-10px); }
.tilt-left-more { transform: rotate(-15deg) translateY(5px); }
.tilt-right-more { transform: rotate(10deg) translateY(15px); }
.tilt-straight { transform: rotate(2deg) translateY(-5px); z-index: 2; }

.scatter-photo:hover {
  transform: rotate(0deg) scale(1.15) translateY(-20px);
  z-index: 10;
  box-shadow: 0 30px 60px rgba(16, 185, 129, 0.4);
}

/* VIBRANT BETA BANNER */
.vibrant-banner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.5), 0 20px 40px rgba(0,0,0,0.5);
  transform: rotate(-2deg); /* Dynamic tilt */
  margin-top: 100px;
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.vibrant-banner.visible {
  opacity: 1;
  transform: rotate(-2deg) translateY(0);
}

.golf-flag-container {
  position: absolute;
  top: -20px;
  right: 15%;
  width: 60px;
  height: 140px;
  z-index: 10;
  transform: rotate(2deg); /* Counter the banner's -2deg tilt */
  pointer-events: none;
}

.hole {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 14px;
  background: #022c22;
  border-radius: 50%;
  box-shadow: inset 0 6px 6px rgba(0,0,0,0.8), 0 2px 0 rgba(255,255,255,0.1);
}

.pole {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 120px;
  background: linear-gradient(to right, #ccc, #fff, #999);
  border-radius: 3px;
  box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
}

.flag {
  position: absolute;
  top: 15px;
  left: calc(50% + 2px);
  width: 55px;
  height: 35px;
  background: #ef4444; /* Bright red */
  border-radius: 0 4px 4px 0;
  transform-origin: left center;
  animation: waveFlag 0.8s ease-in-out infinite alternate;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.flag::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, transparent 40%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

@keyframes waveFlag {
  0% { transform: perspective(200px) rotateY(0deg) skewY(2deg); }
  100% { transform: perspective(200px) rotateY(35deg) skewY(-3deg); }
}

.banner-content {
  transform: rotate(2deg); /* Straighten text */
  max-width: 800px;
  margin: 0 auto;
}

.vibrant-banner h2 {
  color: #fff;
  font-size: clamp(36px, 6vw, 56px);
  text-shadow: 0 4px 16px rgba(0,0,0,0.4);
  margin-bottom: 24px;
  border-bottom: none;
}

.vibrant-banner p {
  color: #d1fae5;
  font-size: 22px;
  margin-bottom: 16px;
}

.vibrant-banner strong {
  color: #fff;
}

.landing-footer {
  margin-top: 40px;
  padding-top: 32px;
  width: 100%;
  text-align: center;
}

.landing-footer a {
  color: #6ee7b7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-footer a:hover {
  color: #fff;
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .fairway-path::before {
    left: 30px;
  }
  .fairway-step {
    width: 100%;
    padding-left: 80px !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
  }
  .fairway-step.left .step-marker,
  .fairway-step.right .step-marker {
    left: -5px;
    right: auto;
  }
}
