:root {
  --bg: #000000;
  --ink: #f5f5f0;
  --muted: #9a9a92;
  --accent: #6fc9cc;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.coming-soon {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.coming-soon-inner {
  width: min(100%, 420px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  margin-bottom: 0.5rem;
}

.logo-mark img {
  display: block;
  filter: drop-shadow(0 0 24px rgba(111, 201, 204, 0.35));
}

.wordmark {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0 0 1.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.notify-form {
  width: 100%;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.glass-field {
  position: relative;
  isolation: isolate;
  flex: 1 1 220px;
  min-width: 0;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

/* Real refraction: fully see-through, no blur. The SVG filter derives a
   displacement map from the pill's own alpha shape (blur = height field,
   Sobel derivative = edge slope) and additionally flips colour in a thin
   feathered ring at the border, so only the rim bends + inverts — the
   flat centre stays a clean, undistorted window. Chromium only. */
@supports (backdrop-filter: url(#liquid-pill)) {
  .glass-field {
    backdrop-filter: url(#liquid-pill);
    -webkit-backdrop-filter: url(#liquid-pill);
  }
}

.glass-field:focus-within {
  border-color: rgba(111, 201, 204, 0.55);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px rgba(255, 255, 255, 0.3),
    inset 1px 0 1px rgba(255, 255, 255, 0.2),
    inset -1px 0 1px rgba(255, 255, 255, 0.2),
    0 0 0 3px rgba(111, 201, 204, 0.18);
}

.notify-form input {
  display: block;
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
}

.notify-form input:focus {
  outline: none;
}

.notify-form input::placeholder {
  color: var(--muted);
}

.notify-form button {
  flex: 0 0 auto;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #05201f;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.notify-form button:hover {
  background: #58b7bb;
  transform: translateY(-1px);
}

.notify-status {
  min-height: 1.2em;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 420px) {
  .notify-form {
    flex-direction: column;
  }

  .notify-form button {
    width: 100%;
  }
}
