:root {
  --green: #8BD44A;
  --green-bright: #A6E058;
  --green-dark: #7BC832;
  --bg: #111a09;
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --font-head: 'Nunito', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Hero ── */
.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 35%, transparent 55%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 20px;
  padding-top: max(16px, env(safe-area-inset-top));
}

.hero__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.3rem, 5.2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero__tags {
  display: flex;
  gap: 6px;
}

.tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--green);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 212, 74, 0.25);
  border-radius: 60px;
  padding: 4px 12px;
  letter-spacing: 0.2px;
}

.green { color: var(--green); }

/* ── Form section (pinned to bottom) ── */
.form-section {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  gap: 12px;
}

.form-section__heading {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.3;
  text-align: center;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  position: relative;
}

.field input {
  width: 100%;
  padding: 16px 16px 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 60px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.12);
}

.field label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 10px;
  transform: translateY(0);
  font-size: 0.65rem;
  color: var(--green);
}

.field__error {
  display: none;
  font-size: 0.72rem;
  color: #f87171;
  padding: 3px 20px 0;
}

.field.has-error input {
  border-color: #f87171;
}

.field.has-error .field__error {
  display: block;
}

.cta {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #0d1f04;
  padding: 14px;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--green-bright) 0%, var(--green-dark) 100%);
  box-shadow: 0 4px 20px rgba(123, 200, 50, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(123, 200, 50, 0.3); }
  50% { box-shadow: 0 4px 28px rgba(123, 200, 50, 0.55), 0 0 0 6px rgba(123, 200, 50, 0.1); }
}

.cta:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(123, 200, 50, 0.25);
}

.cta:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Thank you ── */
.thankyou[hidden] { display: none; }

.thankyou {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px;
}

.thankyou__card {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  max-width: 340px;
  width: 100%;
}

.thankyou__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-bright), var(--green-dark));
  font-size: 1.6rem;
  color: #0d1f04;
  margin-bottom: 16px;
}

.thankyou__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.thankyou__text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 481px) {
  .page { max-width: 420px; }
}
