:root {
  --bg: #080615;
  --card: rgba(20, 14, 40, 0.82);
  --panel: rgba(255, 255, 255, 0.08);
  --text: #f6f4ff;
  --muted: #c3bfe2;
  --accent: #b14fff;
  --accent-2: #3de1ff;
  --accent-3: #ff7ae7;
  --green: #3be286;
  --blue: #5ba7ff;
  --purple: #b14fff;
  --gray: #7b7b90;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(177, 79, 255, 0.2), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(61, 225, 255, 0.2), transparent 26%),
    var(--bg);
  color: var(--text);
}

@keyframes aurora {
  0% {
    background-position: 0% 50%, 50% 0%;
  }
  50% {
    background-position: 60% 40%, 20% 10%;
  }
  100% {
    background-position: 0% 50%, 50% 0%;
  }
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
}

.nav-logo {
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hero {
  background: linear-gradient(135deg, rgba(177, 79, 255, 0.16), rgba(61, 225, 255, 0.1));
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero__badge {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 14px;
  margin-bottom: 12px;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.hero h1 {
  font-size: 46px;
  margin: 8px 0 12px;
  letter-spacing: -1px;
}

.hero .lede {
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.hero__art {
  position: relative;
  min-height: 280px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.neon-grid {
  position: absolute;
  inset: 20px;
  background: linear-gradient(135deg, rgba(177, 79, 255, 0.3), rgba(61, 225, 255, 0.3));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), black);
  border-radius: 20px;
  filter: blur(1px) saturate(130%);
}

@keyframes shimmer {
  0% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(8px);
  }
  100% {
    transform: translateX(-8px);
  }
}

.neon-head {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 122, 231, 0.35), transparent 50%),
    radial-gradient(circle at 60% 70%, rgba(61, 225, 255, 0.45), transparent 45%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50% 50% 46% 54% / 60% 55% 45% 50%;
  box-shadow: 0 0 60px rgba(177, 79, 255, 0.3);
}

.neon-eye {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(61, 225, 255, 0.5);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6), transparent 60%);
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

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

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

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}

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

.fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.legend {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-2);
}

.field-row {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 1.1fr) minmax(200px, 0.9fr);
  align-items: start;
}

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

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

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

input,
select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  color: var(--text);
  font-size: 15px;
}

.styled-select {
  appearance: none;
  position: relative;
  padding-right: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.styled-select:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.styled-select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(61, 225, 255, 0.2);
}

.styled-select option {
  background: #0f0c1d;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.mt-8 {
  margin-top: 8px;
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 99px;
  padding: 8px 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.chip.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(177, 79, 255, 0.24), rgba(61, 225, 255, 0.2));
  box-shadow: 0 8px 30px rgba(177, 79, 255, 0.2);
}

.primary,
.ghost {
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  color: #0a0816;
  transition: 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #0b0a13;
}

.ghost {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.ghost.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(177, 79, 255, 0.18), rgba(61, 225, 255, 0.16));
  color: var(--text);
  box-shadow: 0 8px 30px rgba(61, 225, 255, 0.2);
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(177, 79, 255, 0.15), 0 0 0 0 rgba(61, 225, 255, 0.18);
  }
  50% {
    box-shadow: 0 16px 44px rgba(177, 79, 255, 0.28), 0 0 0 10px rgba(61, 225, 255, 0.08);
  }
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.primary:hover,
.ghost:hover,
.chip:hover {
  transform: translateY(-1px);
}

.table {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.table__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.table__row:nth-child(every) {
  background: rgba(255, 255, 255, 0.03);
}

.table__title {
  font-weight: 700;
  margin: 0 0 6px;
}

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

.table__controls {
  display: grid;
  gap: 8px;
  align-content: start;
}

.table__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.table__options button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

.option--indifferent {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.26));
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.7);
}

.option--valued {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.32));
  color: #ecfdf3;
  border-color: rgba(74, 222, 128, 0.8);
}

.option--highly {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.32));
  color: #e0f5ff;
  border-color: rgba(56, 189, 248, 0.8);
}

.option--critical {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.2), rgba(192, 132, 252, 0.34));
  color: #f6edff;
  border-color: rgba(192, 132, 252, 0.82);
}

.option--selected {
  box-shadow: 0 12px 36px rgba(177, 79, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.progress {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin: 12px 0;
}

.progress__bar {
  height: 10px;
  width: 0%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  transition: width 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.progress__label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.pagination .primary {
  color: #0b0a13;
}

.step-hidden {
  display: none;
}

.collapsed {
  display: none !important;
}

.code {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--accent-2);
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
}

.report {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  line-height: 1.6;
  color: var(--text);
  min-height: 160px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: linear-gradient(135deg, rgba(177, 79, 255, 0.3), rgba(61, 225, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  min-width: 260px;
  backdrop-filter: blur(10px);
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 225, 255, 0.24);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(61, 225, 255, 0.05);
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 21, 0.8);
  display: grid;
  place-items: center;
  z-index: 99;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.loading-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.loader {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent-2);
  box-shadow: 0 0 30px rgba(61, 225, 255, 0.3);
}

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

.loading-copy {
  text-align: center;
  margin-top: 12px;
  color: var(--text);
}

.loading-copy p {
  margin: 4px 0;
}

.synopsis {
  color: var(--muted);
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.results__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.footer {
  margin-top: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(177, 79, 255, 0.05));
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}

.footer__brand {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px;
}

.footer__title {
  font-size: 26px;
  margin: 0;
}

.footer__lede {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer__cta .primary {
  text-decoration: none;
}

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

.footer__heading {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.footer__links a {
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 12px;
  display: inline-block;
  transition: 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
  }

  .results__grid {
    grid-template-columns: 1fr;
  }
}

/* Report page */
.report-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.report-hero h1 {
  margin: 0;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.pill-heading {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.report-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.tag {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}

.list {
  padding-left: 16px;
  color: var(--muted);
}

.list li {
  margin-bottom: 6px;
}

.report-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
}

.quote {
  font-style: italic;
  color: var(--muted);
}

.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.link-row a {
  color: var(--accent-2);
}

/* About page */
.about-layout {
  display: grid;
  gap: 16px;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.about-table th,
.about-table td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
}

.about-table th {
  background: rgba(255, 255, 255, 0.05);
}
