:root {
  --bg: #05060b;
  --bg-soft: #0b1020;
  --text: #f3f5ff;
  --muted: #c7cee0;
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.16);
  --radius: 24px;
  --shadow: 0 30px 90px rgba(2, 2, 8, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(60rem 60rem at 12% -10%, rgba(115, 87, 255, 0.35), transparent 48%),
    radial-gradient(60rem 60rem at 84% 8%, rgba(0, 188, 212, 0.22), transparent 46%),
    linear-gradient(140deg, #04050b 2%, var(--bg) 46%, #02050f 100%);
  overflow: hidden;
}

.landing {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 3vw, 2.5rem);
}

.panel {
  width: min(860px, 92vw);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
  padding: clamp(2rem, 6vw, 4.2rem);
  animation: reveal 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
  margin: 0 0 2rem;
  letter-spacing: 0.28em;
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.9;
}

h1 {
  margin: 0;
  font-family: "IBM Plex Serif", "Times New Roman", "Georgia", serif;
  font-size: clamp(1.95rem, 4.5vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.lead {
  margin: 1.2rem 0 2.2rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  line-height: 1.7;
}

.signup {
  margin: 0;
}

.research-body {
  overflow-x: hidden;
  overflow-y: auto;
}

.research {
  position: relative;
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.2rem, 3vw, 2.5rem);
}

.research-panel {
  width: min(720px, 100%);
  margin: 0 auto;
}

.research-panel h1 {
  max-width: 16ch;
}

.research-form {
  display: grid;
  gap: 2rem;
}

.research-form fieldset {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.research-form legend,
.research-text {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-family: "IBM Plex Serif", "Times New Roman", "Georgia", serif;
  font-size: 1.15rem;
  line-height: 1.4;
}

.research-form label:not(.research-text) {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.45;
  cursor: pointer;
}

.research-form input[type="radio"],
.research-form input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0.25rem 0 0;
  accent-color: #bfc9ff;
}

.research-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  outline: none;
}

.research-form textarea:focus {
  border-color: rgba(152, 205, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
}

.research-check {
  margin-top: -0.6rem;
}

.research-form button {
  width: fit-content;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 1.6rem;
  color: #091025;
  background: linear-gradient(120deg, #a5d8ff, #d6b3ff);
  box-shadow: 0 10px 35px rgba(151, 172, 255, 0.36);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.field input {
  width: 100%;
  min-height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0 1.2rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  font-size: 1rem;
}

.field input::placeholder {
  color: rgba(243, 245, 255, 0.56);
}

.field input:focus {
  border-color: rgba(152, 205, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
}

.field button {
  min-height: 58px;
  border-radius: 999px;
  border: 0;
  padding: 0 1.4rem;
  color: #091025;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(120deg, #a5d8ff, #d6b3ff);
  cursor: pointer;
  white-space: nowrap;
}

.field button:hover,
.field button:focus-visible {
  background: linear-gradient(120deg, #97ceff, #c6aaff);
}

.field button:active {
  transform: none;
}

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

.status.success {
  color: #8effd4;
}

.status.error {
  color: #ffafbc;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sr-only {
  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: 800px) {
  .landing {
    padding-top: 4.2rem;
    padding-bottom: 4.2rem;
  }

  .field {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .field button {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .panel,
  .field button,
  .field input {
    animation: none !important;
    transition: none !important;
  }
}
