:root {
  --teal: #0f6e6b;
  --teal-dark: #0b4f4d;
  --mint: #b7e3d5;
  --glass: rgba(255, 255, 255, 0.82);
  --text: #143a38;
  --muted: #3d5f5c;
  --shadow: 0 18px 50px rgba(11, 79, 77, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  color: var(--text);
  background: #d7efe8;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background: url("/images/hero-bg.jpg") center / cover no-repeat;
  z-index: 0;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 46, 45, 0.18) 0%, rgba(10, 46, 45, 0.08) 38%, rgba(8, 36, 35, 0.55) 100%);
}

.topbar,
.hero,
.site-footer {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0;
}

.topbar-cta {
  flex-shrink: 0;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(11, 79, 77, 0.18);
}

.topbar-cta:hover,
.topbar-cta:focus-visible {
  background: #fff;
  color: var(--teal);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark circle {
  fill: rgba(15, 110, 107, 0.55);
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
}

.hero {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.25rem 5.5rem;
}

.hero-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.intro-card,
.signup-card {
  padding: 1.35rem 1.25rem 1.2rem;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.signup-card h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--teal-dark);
}

.signup-lead {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.signup-form {
  display: grid;
  gap: 0.7rem;
}

.signup-row {
  display: grid;
  gap: 0.7rem;
}

.signup-field label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.signup-field input,
.signup-field textarea {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(15, 110, 107, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.signup-field textarea {
  resize: vertical;
  min-height: 4.6rem;
}

.signup-field input:focus,
.signup-field textarea:focus {
  outline: 2px solid rgba(15, 110, 107, 0.35);
  border-color: var(--teal);
}

.signup-field .field-validation-error,
.signup-errors li {
  display: block;
  margin-top: 0.28rem;
  color: #9b2c2c;
  font-size: 0.75rem;
}

.signup-errors {
  margin: 0;
  padding: 0;
  list-style: none;
}

.signup-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 0.15rem;
  border: 0;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.signup-submit:hover,
.signup-submit:focus-visible {
  background: var(--teal-dark);
}

.signup-success {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #e7f6f1;
  color: var(--teal-dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-card h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4.5vw, 2.55rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--teal-dark);
}

.tagline {
  margin: 0.4rem 0 0.85rem;
  font-size: clamp(0.98rem, 2.4vw, 1.2rem);
  font-weight: 600;
  color: var(--teal);
}

.lead {
  margin: 0 0 1.15rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.features {
  margin: 0;
}

.feature {
  height: 100%;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  border: 1px solid rgba(15, 110, 107, 0.08);
}

.feature-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  margin-bottom: 0.45rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e7f6f1;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--teal);
}

.feature h2 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
}

.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.55rem 0.9rem 0.55rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 110, 107, 0.35);
  cursor: pointer;
}

.music-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.music-toggle .icon-pause,
.music-toggle.is-playing .icon-play {
  display: none;
}

.music-toggle.is-playing .icon-pause {
  display: block;
}

.music-label {
  font-size: 0.82rem;
  font-weight: 600;
}

.music-toggle:not(.is-playing) {
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (max-width: 575.98px) {
  .intro-card {
    padding: 1.1rem 1rem 1rem;
    border-radius: 18px;
  }

  .hero {
    align-items: flex-end;
    padding-bottom: 5.75rem;
  }

  .bg-layer {
    background-position: 62% center;
  }

  .music-label {
    display: none;
  }

  .music-toggle {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .topbar,
  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .intro-card {
    padding: 1.7rem 1.7rem 1.4rem;
  }

  .hero {
    padding-bottom: 3.2rem;
  }

  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1200px) {
  .intro-card {
    max-width: 1080px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle {
    animation: none;
  }
}
