:root {
  --bg: #f8faff;
  --mid-blue: #6d9eeb;
  --mid-blue-dark: #2563eb;
  --border: rgba(148, 163, 184, 0.28);
  --text: #111827;
  --subtext: #4b5563;
  --field: #d1d5db;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --error-text: #b91c1c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

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

.motion-columns,
.pulse-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.motion-columns {
  display: flex;
  z-index: 0;
}

.motion-column {
  flex: 1 1 0;
  position: relative;
}

.motion-column::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent calc(var(--divider) - var(--spread)),
    color-mix(in srgb, var(--mid-blue) 55%, transparent) var(--divider),
    transparent calc(var(--divider) + var(--spread))
  );
}

.pulse-canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.card-stack {
  width: 100%;
  max-width: 420px;
}

.hero-copy {
  text-align: center;
  margin-bottom: 28px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mid-blue-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.01em;
}

.hero-copy h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
}

.hero-copy p {
  margin: 10px 0 0;
  color: var(--subtext);
  font-size: 16px;
  line-height: 1.5;
}

.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 32px 24px;
  backdrop-filter: blur(10px);
}

.inline-error {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--error-border);
  background: var(--error-bg);
  color: var(--error-text);
  font-size: 14px;
  line-height: 1.4;
}

.hidden {
  display: none;
}

.panel-title {
  margin-bottom: 24px;
  text-align: center;
  color: var(--text);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
}

.waitlist-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.field input {
  width: 100%;
  border: 1px solid var(--field);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.field input:focus {
  border-color: var(--mid-blue-dark);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.field input:disabled,
button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--mid-blue-dark);
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  padding: 14px 16px;
  transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}

button:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.toast-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.toast {
  min-width: 260px;
  max-width: min(360px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.72);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.success::before,
.toast.error::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.toast.success::before {
  background: #16a34a;
}

.toast.error::before {
  background: #dc2626;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 24px 16px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .panel {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .panel-title {
    font-size: 26px;
  }

  .toast-root {
    right: 12px;
    left: 12px;
    bottom: 12px;
    align-items: stretch;
  }

  .toast {
    max-width: none;
    min-width: 0;
  }
}
