:root {
  --navy: #04202d;
  --lime: #b8f00f;
  --lime-hover: #cdfb3c;
  --white: #f4fbff;
  --error: #ffd9d4;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--white);
  font: 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Shown until the water starts, and in place of it where WebGL isn't available. */
  background: radial-gradient(120% 90% at 50% 62%, #127a98 0%, #0a4f66 48%, #04202d 100%) var(--navy);
}
#water {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0; /* Stays hidden until the first frame is drawn, so it never flashes black. */
  transition: opacity .5s;
}
#water.ready { opacity: 1; }
main {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}
h1 { margin: 0; line-height: 0; font-size: 0; }
.logo {
  width: min(820px, 100%);
  max-height: 56svh;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(2, 16, 24, .55));
  animation: float 7s ease-in-out infinite;
}
h1 { display: flex; justify-content: center; width: 100%; }
@keyframes float {
  50% { transform: translateY(-9px) rotate(-.4deg); }
}
.soon {
  margin: 18px 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .28em;
  text-indent: .28em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(2, 16, 24, .9);
}
form {
  display: flex;
  width: min(620px, 100%);
  padding: 6px;
  background: rgba(4, 32, 45, .78);
  border: 1px solid rgba(190, 235, 255, .28);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(2, 16, 24, .45);
}
input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 14px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--white);
  font: inherit;
  font-size: 17px;
}
input[type="email"]::placeholder { color: #a9c9d8; opacity: 1; }
input[type="email"]:focus { outline: none; background: rgba(190, 235, 255, .1); }
button {
  flex: none;
  padding: 13px 20px;
  background: var(--lime);
  border: 0;
  border-radius: 9px;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s;
}
button:hover { background: var(--lime-hover); }
button:disabled { opacity: .65; cursor: progress; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.message {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-weight: 650;
  text-align: center;
  text-shadow: 0 1px 10px rgba(2, 16, 24, .95);
}
.message.bad { color: var(--error); }
.sr-only, .trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 560px) {
  form { flex-direction: column; gap: 6px; }
  input[type="email"] { text-align: center; }
  button { width: 100%; }
  .soon { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo { animation: none; }
  button { transition: none; }
}
