.landing-hero {
  position: relative;
  min-height: 86vh;
  background-image: url("../images/mtgscout-hero.1f5f53bf7f79.webp");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-color: #0b1a27;
  color: #fff;
  padding: 40px 56px 72px;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 20, 32, 0.55) 0%,
    rgba(6, 20, 32, 0.25) 35%,
    rgba(6, 20, 32, 0) 65%
  );
  pointer-events: none;
}

.landing-copy {
  position: relative;
  z-index: 1;
}

.landing-copy-top .landing-brand {
  margin-bottom: 48px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  text-decoration: none;
}

.landing-mark {
  width: 120px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.45));
}

.landing-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  text-transform: uppercase;
  padding-top: 22px;
}

.landing-wordmark .wordmark-top {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.landing-wordmark .wordmark-bottom {
  font-size: 56px;
  font-weight: 800;
}

.landing-newsletter {
  margin: 24px auto 0;
  max-width: 720px;
  background: rgba(7, 18, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(2px);
}

.landing-copy h1 {
  font-size: 52px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.landing-sub {
  margin-top: 20px;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.landing-newsletter h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.landing-newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  align-items: center;
}

/* Cloudflare injects a fixed 300px iframe: let the email field take the
   full row, and keep the widget hugged to its intrinsic width — a
   stretched container reads as whitespace next to the field. */
.landing-newsletter input[type="email"] {
  flex: 1;
  min-width: 160px;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  font-size: 1rem;
}

.landing-newsletter .cf-turnstile {
  flex: 0 0 auto;
  max-width: 300px;
}

.landing-newsletter .cf-turnstile iframe {
  max-width: 100%;
  display: block;
}

.landing-newsletter button[type="submit"] {
  margin-top: 0;
  padding: 0.6rem 1.2rem;
  background: #ff6a00;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.landing-newsletter button[type="submit"]:hover {
  background: #e55e00;
}

.newsletter-account {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-note {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.newsletter-error {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #ffb4a8;
}

.newsletter-done {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.landing-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1rem;
  font-size: 0.95rem;
}

.landing-links a {
  color: #0b1a27;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 800px) {
  .landing-hero {
    padding: 28px 22px 56px;
    background-position: 65% 30%;
  }

  .landing-mark {
    width: 84px;
  }

  .landing-wordmark {
    padding-top: 14px;
  }

  .landing-wordmark .wordmark-top {
    font-size: 32px;
  }

  .landing-wordmark .wordmark-bottom {
    font-size: 37px;
  }

  .landing-copy {
    margin-top: 16px;
  }

  .landing-copy h1 {
    font-size: 34px;
  }

  .landing-sub {
    font-size: 18px;
  }

  .landing-newsletter form {
    flex-direction: column;
  }
}
