:root {
  color-scheme: dark;
  --bg: #000000;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.28);
  --field: rgba(0, 0, 0, 0.28);
  --accent: #ffffff;
  --danger: #ffb2a3;
  --success: #d7ffd9;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

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

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

.site-shell::after {
  position: absolute;
  inset: auto 0 0;
  height: 42svh;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.64));
  content: "";
  pointer-events: none;
}

button,
input {
  font: inherit;
}

.hero-media,
.hero-image {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.signup-panel {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 4vw, 56px);
  bottom: max(22px, env(safe-area-inset-bottom));
  left: auto;
  width: min(420px, calc(100vw - 36px));
  pointer-events: none;
}

.signup-form {
  width: 100%;
  display: grid;
  gap: 10px;
  pointer-events: auto;
}

.signup-label {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 520;
  line-height: 1.25;
  text-align: left;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.82);
}

.signup-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.email-input,
.submit-button {
  min-height: 46px;
  border-radius: var(--radius);
}

.email-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  backdrop-filter: blur(14px);
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.submit-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000000;
  padding: 0 18px;
  font-weight: 620;
  cursor: pointer;
  transition:
    transform 140ms ease,
    filter 140ms ease,
    opacity 140ms ease;
}

.submit-button:hover {
  filter: brightness(0.94);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--danger);
}

@media (max-width: 640px) {
  .signup-panel {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
    width: auto;
  }

  .signup-form {
    gap: 9px;
  }

  .signup-label {
    font-size: 0.92rem;
    text-align: center;
  }

  .signup-controls {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .email-input,
  .submit-button {
    min-height: 48px;
  }

  .submit-button {
    width: 100%;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .signup-panel {
    right: 18px;
    bottom: 18px;
    left: auto;
    width: min(420px, calc(100vw - 36px));
  }
}
