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

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Background image — darkened via a gradient overlay */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
    url('/images/golf_course_background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ── Header ───────────────────────────────────────────── */
header {
  padding: 28px 40px;
  display: flex;
  align-items: center;
}

.logo {
  height: 76px;
  width: auto;
  display: block;
}

/* ── Main ─────────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 48px;
}

.card {
  max-width: 520px;
  width: 100%;
  text-align: center;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  color: #fff;
}

/* ── Feature list ─────────────────────────────────────── */
.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  text-align: left;
  display: inline-flex;
}

.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #4ade80;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

/* ── CTA label ────────────────────────────────────────── */
.cta-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

/* ── Form ─────────────────────────────────────────────── */
.input-row {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

#email-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  outline: none;
  color: #fff;
  min-width: 0;
  transition: background 0.2s;
}

#email-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

#email-input:focus {
  background: rgba(255, 255, 255, 0.12);
}

#submit-btn {
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  background: #4ade80;
  color: #000;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

#submit-btn:hover {
  background: #22c55e;
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Form message ─────────────────────────────────────── */
.form-message {
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 1.2em;
  transition: color 0.2s;
}

.form-message.success {
  color: #4ade80;
}

.form-message.error {
  color: #f87171;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  padding: 18px 24px;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
}

footer a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 480px) {
  header {
    padding: 20px 24px;
  }

  .logo {
    height: 60px;
  }

  .input-row {
    flex-direction: column;
    border-radius: 8px;
    overflow: visible;
    box-shadow: none;
    gap: 10px;
  }

  #email-input {
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  }

  #submit-btn {
    border-radius: 8px;
    width: 100%;
  }
}
