:root {
  color-scheme: light;
  --hero-blue: #61B4FD;
  --hero-background: url('../images/image.png');
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);
  --input-bg: rgba(255, 255, 255, 0.83);
  --input-border: rgba(13, 52, 94, 0.28);
  --input-text: #0d345e;
  --accent: rgba(255, 255, 255, 0.94);
  --accent-hover: #ffffff;
  --success: #ffffff;
  --text-success: rgba(13, 52, 94, 0.75);
  --text-error: #ffe1e7;
}

html {
  min-height: 100%;
  overflow: hidden;
  background-color: var(--hero-blue);
  background-image: var(--hero-background);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@font-face {
  font-family: 'PP Formula';
  src: url('../fonts/PPFormula-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Pangram Sans';
  src: url('../fonts/PPPangramSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'PP Formula', 'PP Pangram Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--hero-blue);
  background-image: var(--hero-background);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, 0, 0);
}

main.hero {
  width: 100%;
}

.hero-inner {
  width: min(520px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}
.hero-logo {
  width: 250px;
  height: auto;
  display: block;
}

.hero-tagline,
.hero-announcement {
  margin: 0;
  font-size: 1.5rem; /* 24px */
  color: var(--text-primary);
}

.hero-tagline {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hero-announcement {
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.mailchimp-form {
  width: 100%;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.mailchimp-field {
  position: relative;
  width: 100%;
  max-width: 360px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mailchimp-field:focus-within {
  transform: translateY(-1px);
}

.mailchimp-form input[type='email'] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  padding: 0.95rem 3.3rem 0.95rem 1.2rem;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: 0 16px 32px rgba(7, 32, 58, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mailchimp-form input[type='email']::placeholder {
  color: rgba(13, 52, 94, 0.55);
}

.mailchimp-form input[type='email']:focus {
  outline: none;
  border-color: rgba(10, 90, 223, 0.9);
  background: #f4f8ff;
  box-shadow: 0 22px 48px rgba(7, 32, 58, 0.26);
}

.mailchimp-submit {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--input-border);
  background: var(--accent);
  color: var(--input-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 14px 34px rgba(7, 32, 58, 0.24);
}

.mailchimp-submit:hover:not(.is-loading) {
  transform: translateY(-50%) scale(1.05);
  background: var(--accent-hover);
  border-color: rgba(10, 90, 223, 0.55);
}

.mailchimp-field.is-success input[type='email'] {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 38px rgba(8, 35, 59, 0.4);
}

.mailchimp-field.is-success .mailchimp-submit {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
}

.mailchimp-status {
  position: absolute;
  top: 50%;
  right: 52px;
  transform: translateY(-50%) scale(0.6);
  color: var(--text-primary);
  opacity: 0;
  font-size: 1rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mailchimp-status.is-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.mailchimp-message {
  min-height: 1.25rem;
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--text-success);
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mailchimp-message.is-visible {
  opacity: 1;
}

.mailchimp-message.is-error {
  color: var(--text-error);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mailchimp-arrow,
.mailchimp-spinner {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mailchimp-arrow {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
}

.mailchimp-arrow::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #5a6776;
}

.mailchimp-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(192, 202, 214, 0.95);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mailchimp-submit.is-loading {
  cursor: wait;
}

.mailchimp-submit.is-loading .mailchimp-arrow {
  opacity: 0;
  transform: scale(0.65);
}

.mailchimp-submit.is-loading .mailchimp-spinner {
  opacity: 1;
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 600px) {
  body {
    padding: clamp(1rem, 6vw, 2rem);
  }

  .hero-inner {
    width: min(90vw, 360px);
    gap: 1rem;
  }

  .mailchimp-form input[type='email'] {
    padding-right: 3rem;
  }

  .mailchimp-submit {
    width: 36px;
    height: 36px;
  }
}
