:root {
  --bg-deep: #1b358e;
  --bg-mid: #325cbf;
  --bg-glow: #436ecd;
  --bg-footer: #0f1b47;
  --accent-lime: #ddec5a;
  --accent-lime-hover: #e7f470;
  --brand-blue: #2346d6;
  --brand-blue-hover: #1b38b5;
  --text-white: #ffffff;
  --text-soft: #dce5fb;
  --text-footer: #c8d2ec;
  --text-muted: #6e7ca8;
  --card-bg: #ffffff;
  --card-ink: #0f1b47;
  --card-step: #7c8499;
  --card-placeholder: #8b92a5;
  --card-border: #b8becb;
  --error-red: #c22727;
  --font-display: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-white);
  background-color: var(--bg-footer);
  line-height: 1.5;
}

.cobalt-canvas {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(65% 42% at 62% 18%, rgba(89, 134, 240, 0.45) 0%, rgba(50, 92, 191, 0) 72%),
    radial-gradient(60% 35% at 50% 52%, rgba(72, 103, 178, 0.35) 0%, rgba(27, 53, 142, 0) 70%),
    linear-gradient(135deg, #1b358e 0%, #2a4fb3 48%, #213a92 100%);
}

.hero-planes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 900px;
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1020px;
  margin-inline: auto;
  padding-inline: 32px;
}

/* Wordmark */
.wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-white);
  text-decoration: none;
  line-height: 1;
}

.wordmark sup {
  font-size: 0.48em;
  font-weight: 600;
  vertical-align: super;
  margin-left: 1px;
  letter-spacing: 0;
}

.site-header {
  padding-top: 72px;
}

/* Hero Section */
.hero {
  padding-top: 132px;
  padding-bottom: 136px;
}

.hero-title {
  margin: 0;
  max-width: 780px;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  font-size: clamp(2.45rem, 5.2vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text-white);
}

.hero-lower {
  margin-top: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.hero-copy {
  max-width: 470px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.hero-copy p {
  margin: 0;
}

.hero-copy p + p {
  margin-top: 20px;
}

.cta-card {
  flex-shrink: 0;
  width: 248px;
  height: 152px;
  padding: 22px 24px;
  border-radius: 6px;
  background-color: var(--accent-lime);
  color: var(--bg-footer);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(10, 22, 70, 0.25);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.cta-card:hover,
.cta-card:focus-visible {
  background-color: var(--accent-lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(10, 22, 70, 0.32);
  outline: none;
}

.cta-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.75), 0 22px 46px rgba(10, 22, 70, 0.32);
}

.cta-card-label {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.cta-card-arrow {
  align-self: flex-end;
  display: inline-flex;
  transition: transform 180ms ease;
}

.cta-card:hover .cta-card-arrow {
  transform: translateY(3px);
}

/* Signup Section */
.signup-section {
  padding-top: 40px;
  padding-bottom: 132px;
  scroll-margin-top: 32px;
}

.signup-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.signup-title {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.signup-subtitle {
  margin: 14px 0 0;
  max-width: 600px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.signup-card {
  margin-top: 42px;
  width: 100%;
  max-width: 576px;
  min-height: 292px;
  padding: 64px 52px;
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--card-ink);
  text-align: left;
  box-shadow: 0 24px 64px rgba(9, 20, 62, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-question {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--card-ink);
  letter-spacing: -0.01em;
}

.step-num {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--card-step);
  white-space: nowrap;
}

.email-input {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1.5px solid var(--card-border);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--card-ink);
  transition: border-color 160ms ease;
}

.email-input::placeholder {
  color: var(--card-placeholder);
}

.email-input:focus {
  outline: none;
  border-bottom-color: var(--brand-blue);
}

.email-input[aria-invalid="true"] {
  border-bottom-color: var(--error-red);
}

.form-feedback {
  margin: 12px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error-red);
}

.form-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 0;
  border-radius: 4px;
  background-color: var(--brand-blue);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 160ms ease, transform 120ms ease, opacity 160ms ease;
}

.btn-ok:hover:not(:disabled) {
  background-color: var(--brand-blue-hover);
}

.btn-ok:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-ok:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.btn-ok:disabled {
  opacity: 0.72;
  cursor: progress;
}

.enter-hint {
  font-size: 0.75rem;
  color: #6b7280;
}

.enter-hint strong {
  font-weight: 600;
  color: #4b5563;
}

.signup-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.signup-success[hidden],
.signup-form[hidden],
.form-feedback[hidden] {
  display: none;
}

.success-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-lime);
  color: var(--bg-footer);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.success-heading {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 115;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--card-ink);
}

.success-message {
  margin: 0;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.5;
}

.reset-link {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Follow Us Section */
.follow-section {
  padding-bottom: 120px;
}

.follow-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding: 40px 64px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #16316e;
  background-image:
    linear-gradient(180deg, rgba(16, 41, 96, 0.08) 0%, rgba(12, 27, 68, 0.34) 100%),
    url("/assets/follow-us-water.jpg");
  background-size: cover;
  background-position: center top;
  box-shadow: 0 28px 72px rgba(7, 16, 48, 0.35);
}

.follow-frame-outer {
  padding: 36px 56px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 44, 102, 0.14) 0%, rgba(10, 24, 62, 0.36) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 36px rgba(6, 16, 46, 0.24);
}

.follow-frame-inner {
  min-height: 292px;
  padding: 48px 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 41, 96, 0.16) 0%, rgba(8, 20, 56, 0.45) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 36px rgba(6, 16, 46, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.follow-title {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 1.625rem;
  letter-spacing: -0.015em;
  color: var(--text-white);
}

.follow-subtitle {
  margin: 10px 0 0;
  max-width: 360px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(236, 243, 255, 0.9);
}

.social-placeholders {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.social-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.social-circle:hover {
  border-color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.social-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}

/* Footer */
.site-footer {
  background-color: var(--bg-footer);
  color: var(--text-white);
}

.footer-inner {
  padding-top: 76px;
  padding-bottom: 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 40px;
  align-items: start;
}

.footer-copy {
  margin: 0;
  max-width: 410px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-footer);
}

.footer-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-white);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.footer-cta-text {
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--accent-lime);
}

.footer-cta:hover {
  opacity: 0.88;
}

.footer-cta:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-statement-row {
  margin-top: 68px;
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 40px;
}

.footer-tagline {
  grid-column: 2;
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 122;
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-white);
}

.footer-legal {
  margin: 76px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .site-header {
    padding-top: 48px;
  }

  .hero {
    padding-top: 84px;
    padding-bottom: 96px;
  }

  .hero-lower {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .cta-card {
    width: 100%;
    max-width: 280px;
    height: 132px;
  }

  .follow-card {
    padding: 28px 32px;
  }

  .follow-frame-outer {
    padding: 24px 28px;
  }

  .footer-top,
  .footer-statement-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-tagline {
    grid-column: 1;
  }

  .footer-statement-row {
    margin-top: 48px;
  }

  .footer-legal {
    margin-top: 48px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 20px;
  }

  .signup-section {
    padding-bottom: 88px;
  }

  .signup-card {
    padding: 40px 24px;
    min-height: 250px;
  }

  .form-question {
    font-size: 1rem;
  }

  .email-input {
    font-size: 1.0625rem;
  }

  .follow-section {
    padding-bottom: 84px;
  }

  .follow-card {
    padding: 18px;
  }

  .follow-frame-outer {
    padding: 16px;
  }

  .follow-frame-inner {
    min-height: 240px;
    padding: 36px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta-card,
  .cta-card-arrow,
  .btn-ok,
  .social-circle,
  .footer-cta {
    transition: none;
  }
}
