:root {
  --bg: #05060a;
  --card: #0d111a;
  --border: rgba(255, 255, 255, 0.08);
  --muted: rgba(255, 255, 255, 0.64);
  --text: #f5f7fb;
  --accent: #5ae3ff;
  --accent-2: #ff7ee2;
  --accent-3: #5f89ff;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(90, 227, 255, 0.2), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(255, 126, 226, 0.12), transparent 35%),
    radial-gradient(circle at 60% 80%, rgba(95, 137, 255, 0.15), transparent 45%),
    var(--bg);
  color: var(--text);
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 30%, rgba(90, 227, 255, 0.15), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(255, 126, 226, 0.12), transparent 40%);
  filter: blur(40px);
  opacity: 0.8;
  z-index: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.hero__text h1 {
  margin: 8px 0 12px;
  font-size: 36px;
  letter-spacing: -0.02em;
}

.hero__text .lede {
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 12px;
}

.hero__badge {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(90, 227, 255, 0.14), rgba(95, 137, 255, 0.08));
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.hero__badge .badge-title {
  font-weight: 700;
  font-size: 18px;
}

.hero__badge .badge-sub {
  color: var(--muted);
}

.badge-shape {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 126, 226, 0.35), transparent 55%);
  filter: blur(30px);
  bottom: -60px;
  right: -40px;
  opacity: 0.8;
}

.eyebrow,
.panel__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

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

.pill-list li {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
}

.layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 20px;
}

.panel {
  background: rgba(13, 17, 26, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel--aside {
  position: sticky;
  top: 24px;
  align-self: start;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel__header h2 {
  margin: 4px 0;
}

.panel__hint {
  margin: 0;
  color: var(--muted);
}

.progress-chip {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(90, 227, 255, 0.12);
  color: var(--accent);
  font-weight: 700;
  border: 1px solid rgba(90, 227, 255, 0.3);
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-group.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
}

input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: rgba(90, 227, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(90, 227, 255, 0.12);
}

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.divider {
  height: 1px;
  background: var(--border);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.form-note {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

button[type="submit"] {
  position: relative;
  border: none;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #05060a;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(95, 137, 255, 0.4);
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(90, 227, 255, 0.4);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.button-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(5, 6, 10, 0.3);
  border-top-color: #05060a;
  display: inline-block;
  margin-left: 10px;
  animation: spin 1s linear infinite;
  opacity: 0;
  transform: translateY(2px);
}

button.loading .button-spinner {
  opacity: 1;
}

button.loading .button-label {
  opacity: 0.6;
}

.form-feedback {
  min-height: 24px;
  margin-top: 10px;
  font-weight: 600;
}

.form-feedback.success {
  color: #8af7c2;
}

.form-feedback.error {
  color: #ffb4c3;
}

.summary h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.summary p {
  margin: 0 0 8px;
  color: var(--muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.summary-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 2px;
}

.summary-value {
  margin: 0;
  font-weight: 700;
}

.summary-sub {
  margin: 0;
  color: var(--muted);
}

.summary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.summary-title {
  margin: 4px 0 0;
  font-size: 18px;
}

.status-dot {
  padding: 6px 10px;
  background: rgba(138, 247, 194, 0.14);
  color: #8af7c2;
  border: 1px solid rgba(138, 247, 194, 0.4);
  border-radius: 999px;
  font-weight: 700;
}

.panel--aside {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(13, 17, 26, 0.95));
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .hero, .layout {
    grid-template-columns: 1fr;
  }

  .panel--aside {
    position: relative;
    top: 0;
  }

  .page-shell {
    padding: 32px 20px 64px;
  }
}

@media (max-width: 640px) {
  .hero__text h1 {
    font-size: 28px;
  }

  button[type="submit"] {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    text-align: center;
  }

  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
