:root {
  color-scheme: dark;
  --bg: #090b12;
  --bg-soft: #101522;
  --card: rgba(18, 24, 38, 0.82);
  --card-strong: rgba(24, 32, 51, 0.94);
  --ink: #edf2ff;
  --text: #d9e2f2;
  --muted: #9aa8bf;
  --line: rgba(163, 177, 204, 0.18);
  --accent: #7c5cff;
  --accent-2: #2dd4bf;
  --accent-3: #ff8bd1;
  --danger: #fb7185;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 92, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.18), transparent 24rem),
    linear-gradient(180deg, #090b12 0%, #0c1020 48%, #090b12 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero {
  padding: clamp(24px, 7vw, 72px) 18px 24px;
}

.hero__content,
main,
footer {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.hero__content {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(24px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(45, 212, 191, 0.09)),
    rgba(18, 24, 38, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__content::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 139, 209, 0.32), transparent 68%);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
legend {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(2.35rem, 10vw, 5rem);
}

h2,
legend {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 4.8vw, 2rem);
}

p,
ul {
  margin-top: 0;
}

main {
  display: grid;
  gap: 18px;
  padding-bottom: 44px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.pill-list li {
  border: 1px solid rgba(45, 212, 191, 0.26);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(45, 212, 191, 0.09);
  color: #dffcf7;
  font-size: 0.94rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: #ffffff;
  background: rgba(124, 92, 255, 0.2);
  font-weight: 800;
}

td:first-child {
  color: #ffffff;
  font-weight: 800;
}

.note {
  border-left: 4px solid var(--accent-2);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(18, 24, 38, 0.86));
}

.muted {
  color: var(--muted);
}

.form-card {
  display: grid;
  gap: 20px;
  background: var(--card-strong);
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
}

legend {
  padding: 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
}

label {
  cursor: pointer;
}

fieldset label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.field {
  display: grid;
  gap: 8px;
  cursor: default;
}

.field span {
  color: var(--ink);
  font-weight: 800;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  background: rgba(8, 12, 22, 0.78);
  color: var(--ink);
  font: inherit;
  outline: none;
}

input[type="text"]:focus,
textarea:focus {
  border-color: rgba(45, 212, 191, 0.7);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.11);
}

textarea {
  resize: vertical;
}

input[type="radio"],
input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
  margin: 0;
  accent-color: var(--accent-2);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(45, 212, 191, 0.18);
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(124, 92, 255, 0.24);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

#form-status {
  margin: 0;
  font-weight: 800;
}

#form-status.success {
  color: var(--success);
}

#form-status.error {
  color: var(--danger);
}

footer {
  padding: 0 0 42px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 780px) {
  body {
    font-size: 16px;
    line-height: 1.58;
  }

  .hero__content,
  main,
  footer {
    width: min(100% - 24px, 1060px);
  }

  .grid-two,
  .class-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 14px;
  }

  .hero__content,
  .card {
    border-radius: 22px;
  }

  fieldset {
    padding: 16px;
  }

  .actions,
  button {
    width: 100%;
  }
}
