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

html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  background: #1B3440;
  color: #BFD0D5;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #1B3440;
}

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

/* Nav */
.nav {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #F4F1EA;
}

.brand svg { flex: none; }
.brand { text-decoration: none; }
.brand .accent { color: #F2A56B; }

/* Main */
.main {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F2A56B;
  background: rgba(242, 165, 107, 0.14);
  border-radius: 999px;
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F2A56B;
}

h1 {
  margin: 0 0 24px;
  max-width: 820px;
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #F4F1EA;
}

.lede {
  margin: 0 0 32px;
  max-width: 580px;
  font-size: 19px;
  line-height: 1.6;
  color: #BFD0D5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 10px 18px;
  font-size: 15px;
  color: #CFDCE0;
  border: 1px solid #3E6070;
  border-radius: 999px;
}

/* Form */
.signup {
  width: 100%;
  max-width: 520px;
}

.form-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: rgba(244, 241, 234, 0.96);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(5, 15, 20, 0.35);
}

.form-panel input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: #12242B;
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.form-panel input[type="email"]::placeholder { color: #5A6E75; }

.form-panel input[type="email"]:focus-visible,
.form-panel button:focus-visible {
  outline: 3px solid #1B3440;
  outline-offset: 2px;
}

.form-panel button {
  flex: 1 1 auto;
  min-height: 52px;
  padding: 0 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #1A1208;
  background: #F2A56B;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.form-panel button:hover { background: #FFC596; }
.form-panel button:disabled { opacity: 0.7; cursor: default; }

.form-error {
  margin: 10px 0 0;
  font-size: 14px;
  color: #FFC596;
}

.success {
  padding: 20px 24px;
  font-size: 17px;
  line-height: 1.5;
  color: #12242B;
  background: rgba(244, 241, 234, 0.96);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(5, 15, 20, 0.35);
}

.note {
  margin: 16px 0 0;
  font-size: 14px;
  color: #9FB4BA;
}

[hidden] { display: none !important; }

/* Mountains */
.mountains {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 360px;
}

/* Footer */
.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 16px 16px;
  text-align: center;
  font-size: 14px;
  color: #8FA5AB;
}

@media (max-width: 480px) {
  .nav { padding: 20px 20px; }
  .main { padding: 32px 20px 320px; }
  .lede { font-size: 18px; }
}
