:root {
  --sky: #bed8ee;
  --pine: #183329;
  --forest: #0f241d;
  --mist: rgba(240, 247, 250, 0.84);
  --card: rgba(9, 22, 20, 0.66);
  --card-border: rgba(255, 255, 255, 0.18);
  --text-main: #f4f4ef;
  --text-soft: rgba(244, 244, 239, 0.8);
  --accent: #dcbf7f;
  --accent-strong: #c89d42;
  --shadow: 0 24px 80px rgba(3, 9, 11, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #173852 0%, #0d1d23 100%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 32px 20px;
}

.backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7, 18, 25, 0.72) 12%, rgba(8, 28, 31, 0.24) 52%, rgba(7, 18, 25, 0.82) 100%),
    linear-gradient(180deg, rgba(6, 15, 20, 0.24) 0%, rgba(6, 15, 20, 0.8) 100%),
    url("/images/Mount-Shasta.webp") center center / cover no-repeat;
  transform: scale(1.04);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: auto -10% -14% -10%;
  height: 240px;
  background:
    radial-gradient(circle at 20% 30%, rgba(220, 191, 127, 0.3), transparent 34%),
    radial-gradient(circle at 70% 30%, rgba(190, 216, 238, 0.18), transparent 32%);
  filter: blur(18px);
}

.hero-card {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--card-border);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(10, 24, 24, 0.58), rgba(17, 33, 31, 0.5));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand-block,
.signup-panel {
  border-radius: 24px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px 18px;
}

.brand-mark {
  width: min(380px, 72%);
  max-width: 100%;
  margin-bottom: 10px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.95;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 600;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.75;
  color: var(--text-soft);
}

.signup-panel {
  align-self: center;
  padding: 28px;
  background: linear-gradient(180deg, rgba(248, 249, 244, 0.94), rgba(236, 242, 239, 0.88));
  color: var(--forest);
}

.signup-copy h2 {
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  line-height: 1;
}

.signup-copy p {
  margin: 12px 0 0;
  line-height: 1.6;
  color: rgba(15, 36, 29, 0.78);
}

.signup-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.signup-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.signup-form input {
  width: 100%;
  border: 1px solid rgba(24, 51, 41, 0.16);
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.82);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.signup-form input:focus {
  outline: none;
  border-color: rgba(200, 157, 66, 0.9);
  box-shadow: 0 0 0 4px rgba(220, 191, 127, 0.16);
  transform: translateY(-1px);
}

.signup-form button {
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: white;
  background: linear-gradient(135deg, var(--forest), #27513f);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  box-shadow: 0 12px 24px rgba(16, 36, 28, 0.18);
}

.signup-form button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0c1b16, #326048);
}

.signup-form button:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status[data-state="success"] {
  color: #1f6038;
}

.form-status[data-state="error"] {
  color: #8b2c2c;
}

@media (max-width: 920px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .brand-block {
    padding-bottom: 8px;
  }

  .brand-mark {
    width: min(320px, 78%);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.9rem, 13vw, 4.6rem);
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 16px;
  }

  .hero-card {
    border-radius: 24px;
  }

  .brand-block,
  .signup-panel {
    padding: 20px 18px;
  }

  .signup-panel {
    border-radius: 20px;
  }

  .lede {
    line-height: 1.65;
  }
}
