:root {
  --bg: #05101e;
  --gold: #c09050;
  --gold-light: #d4aa72;
  --cream: #ddd6cc;
  --cream-dim: rgba(221, 214, 204, 0.45);
  --cream-faint: rgba(221, 214, 204, 0.12);
}

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

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(13, 74, 110, 0.5) 0%, transparent 70%);
  top: -200px;
  left: -250px;
  animation: orbFade 1.5s ease forwards 0.3s, drift1 22s ease-in-out 1.8s infinite;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(9, 42, 68, 0.6) 0%, transparent 70%);
  bottom: -180px;
  right: -200px;
  animation: orbFade 1.5s ease forwards 0.6s, drift2 28s ease-in-out 2.1s infinite;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192, 144, 80, 0.07) 0%, transparent 70%);
  top: calc(50% - 250px);
  left: calc(50% - 250px);
  animation: orbFade 1.5s ease forwards 0.9s, drift3 18s ease-in-out 2.4s infinite;
}

@keyframes orbFade {
  to { opacity: 1; }
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(25px, -18px); }
  66% { transform: translate(-12px, 22px); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-20px, 15px); }
  70% { transform: translate(18px, -12px); }
}

@keyframes drift3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -15px); }
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 580px;
  width: 100%;
}

.brand {
  font-family: 'Cormorant', serif;
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.brand-prop { color: var(--cream); }
.brand-sea { color: var(--gold); }

.divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 1.5rem;
  animation: lineExpand 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

@keyframes lineExpand {
  to { width: 180px; }
}

.tagline {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--cream-dim);
  letter-spacing: 0.03em;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.signup-form {
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
}

.form-row {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid rgba(192, 144, 80, 0.25);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.form-row:focus-within {
  border-color: var(--gold);
}

.form-row input[type="email"] {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  outline: none;
  padding: 0.875rem 1.1rem;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.form-row input[type="email"]::placeholder {
  color: var(--cream-faint);
}

.form-row button {
  background: var(--gold);
  border: none;
  color: var(--bg);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 0.875rem 1.3rem;
  text-transform: uppercase;
  transition: background-color 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
}

.form-row button:hover {
  background: var(--gold-light);
}

.form-row button:active {
  transform: scale(0.97);
}

.form-row button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-message {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  min-height: 1.1em;
}

.launch-note {
  font-size: 0.7rem;
  color: var(--cream-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 460px) {
  .form-row {
    flex-direction: column;
    border-radius: 3px;
  }

  .form-row button {
    padding: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .brand, .tagline, .signup-form, .launch-note {
    opacity: 1;
    transform: none;
  }

  .divider {
    width: 180px;
  }

  .orb {
    opacity: 1;
  }
}
