/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:    #f5a623;
  --orange:  #e07b1a;
  --red:     #ce3b10;
  --green:   #5d9e2f;
  --green-dark: #3d6e1f;
  --brown:   #7a4f2e;
  --sky:     #0d1f35;
  --sky-mid: #112840;
  --sky-deep:#071422;
  --cream:   #fef4da;
  --muted:   #9fb3c8;
  --white:   #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'VT323', monospace;
  font-size: 20px;
  background-color: var(--sky-deep);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Pixel star particles ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particles span {
  position: absolute;
  display: block;
  width: 3px;
  height: 3px;
  background: var(--gold);
  image-rendering: pixelated;
  opacity: 0;
  animation: twinkle 4s infinite;
}

.particles span:nth-child(1)  { top:  5%; left: 10%; animation-delay: 0.0s; }
.particles span:nth-child(2)  { top: 12%; left: 80%; animation-delay: 0.6s; }
.particles span:nth-child(3)  { top: 20%; left: 45%; animation-delay: 1.2s; }
.particles span:nth-child(4)  { top:  8%; left: 60%; animation-delay: 1.8s; }
.particles span:nth-child(5)  { top: 30%; left: 25%; animation-delay: 0.3s; }
.particles span:nth-child(6)  { top: 18%; left: 92%; animation-delay: 2.1s; }
.particles span:nth-child(7)  { top: 35%; left: 70%; animation-delay: 0.9s; }
.particles span:nth-child(8)  { top:  3%; left: 35%; animation-delay: 1.5s; }
.particles span:nth-child(9)  { top: 42%; left: 55%; animation-delay: 2.7s; }
.particles span:nth-child(10) { top: 25%; left:  5%; animation-delay: 3.3s; }
.particles span:nth-child(11) { top:  7%; left: 50%; animation-delay: 0.4s; width:2px; height:2px; }
.particles span:nth-child(12) { top: 15%; left: 15%; animation-delay: 1.0s; width:2px; height:2px; }
.particles span:nth-child(13) { top: 28%; left: 88%; animation-delay: 2.4s; width:2px; height:2px; }
.particles span:nth-child(14) { top: 40%; left: 32%; animation-delay: 0.7s; width:4px; height:4px; opacity: 0; }
.particles span:nth-child(15) { top: 10%; left: 72%; animation-delay: 3.0s; width:4px; height:4px; opacity: 0; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: 0.8; transform: scale(1.4); }
}

/* ── Main layout ── */
main {
  position: relative;
  z-index: 1;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 80px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, #1a3a5c 0%, transparent 70%),
    linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 60%, #0f2a1e 100%);
  position: relative;
  overflow: hidden;
}

/* Grass strip at the bottom of hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--green)      0px,  var(--green)      31px,
      var(--green-dark) 31px, var(--green-dark)  32px
    );
  image-rendering: pixelated;
}

.hero-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.logo {
  width: clamp(160px, 30vw, 260px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(245, 166, 35, 0.55));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--gold);
  text-shadow:
    4px  4px 0 var(--red),
   -2px -2px 0 #000,
    0 0 32px rgba(245,166,35,0.4);
  line-height: 1.4;
  letter-spacing: 1px;
}

.subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--cream);
  line-height: 1.6;
  max-width: 540px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.highlight {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(245,166,35,0.6);
}

.cta-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 36px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--sky-deep);
  background: var(--gold);
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  /* Pixelated border */
  box-shadow:
     4px  0   0 var(--orange),
    -4px  0   0 var(--orange),
     0    4px 0 var(--orange),
     0   -4px 0 var(--orange),
     4px  4px 0 #000,
    -4px  4px 0 #000,
     4px -4px 0 #000,
    -4px -4px 0 #000;
  transition: transform 0.1s, box-shadow 0.1s;
}

.cta-btn:hover {
  background: #ffc237;
  transform: translateY(-2px);
}

.cta-btn:active {
  transform: translateY(2px);
  box-shadow:
     4px  0   0 var(--orange),
    -4px  0   0 var(--orange),
     0    2px 0 var(--orange),
     0   -2px 0 var(--orange),
     2px  2px 0 #000,
    -2px  2px 0 #000,
     2px -2px 0 #000,
    -2px -2px 0 #000;
}

/* ── PERKS ── */
.perks {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, #0f2a1e 0%, var(--sky-mid) 100%);
  position: relative;
}

.perks::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background:
    repeating-linear-gradient(
      90deg,
      #6b4226  0px, #6b4226  31px,
      #4a2e17  31px,#4a2e17  32px
    );
}

.section-heading {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--red), 0 0 20px rgba(245,166,35,0.3);
  margin-bottom: 16px;
  padding-top: 20px;
}

.section-sub {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.perk-card {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(245,166,35,0.2);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

/* Pixel corner accents */
.perk-card::before,
.perk-card::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
}
.perk-card::before { top: -2px; left: -2px; }
.perk-card::after  { bottom: -2px; right: -2px; }

.perk-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,166,35,0.6);
  background: rgba(245,166,35,0.06);
}

.perk-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(245,166,35,0.5));
}

.perk-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1.6;
}

.perk-card p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ── WAITLIST FORM ── */
.waitlist {
  padding: 80px 24px 100px;
  background: linear-gradient(180deg, var(--sky-mid) 0%, var(--sky-deep) 100%);
  text-align: center;
}

.form-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.form-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--red);
  margin-bottom: 16px;
  line-height: 1.5;
}

.form-desc {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 40px;
  line-height: 1.5;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.field-group label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.field-group input {
  width: 100%;
  padding: 14px 16px;
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--cream);
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(245,166,35,0.25);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  /* Pixelated feel */
  box-shadow:
    inset 2px 2px 0 rgba(0,0,0,0.3),
    inset -1px -1px 0 rgba(255,255,255,0.05);
}

.field-group input::placeholder {
  color: rgba(159, 179, 200, 0.4);
}

.field-group input:focus {
  border-color: var(--gold);
  background: rgba(245,166,35,0.06);
  box-shadow:
    inset 2px 2px 0 rgba(0,0,0,0.3),
    0 0 0 1px var(--orange),
    0 0 16px rgba(245,166,35,0.15);
}

.field-group input:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}

.submit-btn {
  margin-top: 8px;
  padding: 16px 32px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--sky-deep);
  background: var(--gold);
  border: none;
  cursor: pointer;
  width: 100%;
  box-shadow:
     4px  0   0 var(--orange),
    -4px  0   0 var(--orange),
     0    4px 0 var(--orange),
     0   -4px 0 var(--orange),
     4px  4px 0 #000,
    -4px  4px 0 #000,
     4px -4px 0 #000,
    -4px -4px 0 #000;
  transition: transform 0.1s, background 0.1s;
  line-height: 1.6;
}

.submit-btn:hover {
  background: #ffc237;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(2px);
  box-shadow:
     4px  0   0 var(--orange),
    -4px  0   0 var(--orange),
     0    2px 0 var(--orange),
     0   -2px 0 var(--orange),
     2px  2px 0 #000,
    -2px  2px 0 #000,
     2px -2px 0 #000,
    -2px -2px 0 #000;
}

/* ── Success state ── */
.success-message {
  padding: 48px 32px;
  border: 2px solid rgba(93,158,47,0.4);
  background: rgba(93,158,47,0.07);
  position: relative;
}

.success-message::before,
.success-message::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--green);
}
.success-message::before { top: -2px; left: -2px; }
.success-message::after  { bottom: -2px; right: -2px; }

.success-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1);   opacity: 1; }
}

.success-message h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  color: var(--green);
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 var(--green-dark);
  line-height: 1.6;
}

.success-message p {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  background: var(--sky-deep);
  border-top: 4px solid rgba(245,166,35,0.15);
  padding: 28px 24px;
  text-align: center;
  color: rgba(159,179,200,0.5);
  font-size: 1rem;
}

/* ── Responsive tweaks ── */
@media (max-width: 480px) {
  .perks-grid {
    grid-template-columns: 1fr;
  }

  .cta-btn, .submit-btn {
    font-size: 0.6rem;
    padding: 12px 24px;
  }

  .form-title {
    font-size: 0.8rem;
  }
}
