@font-face {
  font-family: 'Wormhole Sans';
  src: local('Inter'), local('Helvetica Neue');
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --ink: #070707;
  --panel: #111;
  --line: #2a2a2a;
  --muted: #a1a1a1;
  --white: #fff;
  --plum: #c1bbf6;
  --green: #4ac9a5;
  --coral: #fd8058;
  --danger: #ff6b6b;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(193, 187, 246, 0.13), transparent 28rem),
    radial-gradient(circle at 15% 40%, rgba(74, 201, 165, 0.08), transparent 24rem), var(--black);
  color: var(--white);
  font-family:
    'Wormhole Sans',
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
}
.hidden {
  display: none !important;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.brand img {
  display: block;
  width: 158px;
  height: auto;
}
.header-link {
  color: var(--muted);
  font-size: 0.87rem;
  text-decoration: none;
}
.header-link:hover {
  color: var(--white);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.hero {
  padding: 96px 0 86px;
  max-width: 970px;
}
.eyebrow,
.section-kicker {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.eyebrow span {
  width: 24px;
  height: 1px;
  background: var(--green);
}
.hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 580;
}
.hero h1 em {
  color: var(--plum);
  font-style: normal;
}
.hero > p {
  max-width: 690px;
  margin: 32px 0 0;
  color: #c4c4c4;
  font-size: 1.12rem;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.8rem;
}
.trust-row span::before {
  content: '✓';
  color: var(--green);
  margin-right: 8px;
}

.layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 55px;
  align-items: start;
  padding-bottom: 100px;
}
.journey {
  position: sticky;
  top: 28px;
}
.journey ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.journey li {
  position: relative;
  display: flex;
  gap: 16px;
  min-height: 83px;
  color: #666;
}
.journey li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 38px;
  height: 40px;
  border-left: 1px solid #292929;
}
.journey li > span {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;
  border: 1px solid #333;
  border-radius: 50%;
  font-size: 0.66rem;
}
.journey li div {
  padding-top: 2px;
}
.journey strong {
  display: block;
  color: #8d8d8d;
  font-size: 0.86rem;
}
.journey small {
  display: block;
  margin-top: 3px;
  font-size: 0.73rem;
}
.journey li.active > span,
.journey li.complete > span {
  border-color: var(--green);
  color: var(--green);
}
.journey li.active strong,
.journey li.complete strong {
  color: var(--white);
}
.journey li.complete > span {
  background: var(--green);
  color: var(--black);
}

.form-shell {
  min-width: 0;
}
.identity-card,
.form-section,
.submit-section,
.signed-in {
  border: 1px solid var(--line);
  background: rgba(13, 13, 13, 0.94);
}
.identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 42px;
  border-radius: var(--radius);
}
h2 {
  margin: 7px 0 8px;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.identity-card p,
.submit-section p {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.github-button,
.submit-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.16s,
    background 0.16s,
    border-color 0.16s;
}
.github-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--black);
  padding: 13px 20px;
  font-size: 0.86rem;
}
.github-button svg {
  width: 20px;
  height: 20px;
}
.github-button:hover,
.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.signed-in {
  margin-bottom: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
}
.researcher {
  display: flex;
  align-items: center;
  gap: 12px;
}
.researcher img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel);
}
.researcher small,
.researcher strong {
  display: block;
}
.researcher small {
  color: var(--muted);
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.researcher strong {
  font-size: 0.88rem;
}
.text-button,
.copy-button {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.76rem;
}

#reportForm {
  display: grid;
  gap: 14px;
}
.form-section {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  padding: 38px 42px 42px 0;
  border-radius: var(--radius);
}
.section-number {
  color: #555;
  text-align: center;
  padding-top: 2px;
  font:
    600 0.72rem ui-monospace,
    monospace;
}
.section-body {
  min-width: 0;
}
.section-body > h2 {
  margin-bottom: 28px;
}
.terms-intro {
  margin: 0;
  color: #bdbdbd;
  font-size: 0.84rem;
}
.terms-intro a {
  color: var(--plum);
}
.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  color: #ccc !important;
}
.check-row input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--green);
}
.check-row span {
  font-size: 0.84rem;
}
.check-row a {
  color: var(--plum);
}

.section-body > label,
.field-grid > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 21px;
  color: #dedede;
  font-size: 0.8rem;
  font-weight: 650;
}
label > span,
legend > span {
  color: var(--coral);
}
label small {
  color: #777;
  font-weight: 400;
  font-size: 0.7rem;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #333;
  border-radius: 9px;
  outline: none;
  background: #080808;
  color: var(--white);
  padding: 12px 13px;
  font-size: 0.88rem;
}
input::placeholder,
textarea::placeholder {
  color: #595959;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #080808 inset;
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
}
label small.counter {
  align-self: flex-end;
  color: #5f5f5f;
  font-variant-numeric: tabular-nums;
}
.field-status:empty {
  display: none;
}
.field-status.valid {
  color: var(--green);
}
.field-status.invalid {
  color: var(--coral);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(193, 187, 246, 0.12);
}
textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}
.code-input,
code,
pre {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
.field-grid {
  display: grid;
  gap: 16px;
}
.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field-grid > label {
  margin-top: 21px;
}
fieldset {
  min-width: 0;
  margin: 21px 0 0;
  padding: 0;
  border: 0;
}
legend {
  margin-bottom: 8px;
  color: #dedede;
  font-size: 0.8rem;
  font-weight: 650;
}
.severity {
  display: flex;
  border: 1px solid #333;
  border-radius: 9px;
  background: #080808;
  overflow: hidden;
}
.severity > span {
  display: flex;
  flex: 1 0 0;
}
.severity > span + span {
  border-left: 1px solid #262626;
}
.severity input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.severity label {
  flex: 1;
  padding: 11px 6px;
  color: var(--sev);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease;
}
.severity label:hover {
  background: rgba(255, 255, 255, 0.04);
}
.severity input:checked + label {
  background: color-mix(in srgb, var(--sev) 16%, transparent);
  box-shadow: inset 0 0 0 1px var(--sev);
}
.severity input:focus-visible + label {
  outline: 2px solid var(--plum);
  outline-offset: -3px;
}
.sev-low {
  --sev: #53b365;
}
.sev-medium {
  --sev: #ffd60a;
}
.sev-high {
  --sev: #ff801f;
}
.sev-critical {
  --sev: #ec5d5e;
}
.severity-hint {
  display: none;
  margin-top: 10px;
  padding: 10px 13px;
  border-left: 3px solid var(--sev);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #c9c9c9;
  font-size: 0.76rem;
  line-height: 1.5;
}
.severity-hint.visible {
  display: block;
}
.severity-hint strong {
  color: var(--sev);
}
.severity-hint a {
  color: var(--plum);
}

.deposit-section {
  background: linear-gradient(145deg, rgba(193, 187, 246, 0.07), rgba(13, 13, 13, 0.96) 48%);
}
.warning {
  margin-bottom: 23px;
  padding: 15px 17px;
  border: 1px solid rgba(253, 128, 88, 0.4);
  border-radius: 10px;
  background: rgba(253, 128, 88, 0.07);
}
.warning strong {
  color: var(--coral);
  font-size: 0.82rem;
}
.warning p {
  margin: 4px 0 0;
  color: #bababa;
  font-size: 0.76rem;
}
.deposit-facts {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.deposit-facts > div {
  position: relative;
  padding: 12px 75px 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #080808;
  overflow: hidden;
}
.deposit-facts small {
  display: block;
  margin-bottom: 3px;
  color: #777;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.deposit-facts code {
  display: block;
  overflow-wrap: anywhere;
  color: #d0d0d0;
  font-size: 0.73rem;
}
.deposit-facts .copy-button {
  position: absolute;
  top: 18px;
  right: 13px;
}
details {
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080808;
}
summary {
  padding: 13px 15px;
  cursor: pointer;
  color: #c9c9c9;
  font-size: 0.78rem;
  font-weight: 650;
}
.instructions {
  padding: 0 15px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}
.instructions pre {
  overflow-x: auto;
  margin: 12px 0;
  padding: 12px;
  border-radius: 7px;
  background: #000;
  color: var(--plum);
  white-space: pre-wrap;
  word-break: break-all;
}
.secondary-button {
  padding: 10px 15px;
  border: 1px solid #3a3a3a;
  background: #191919;
  color: var(--white);
  font-size: 0.75rem;
}
.secondary-button:hover {
  border-color: var(--plum);
}
.verify-button {
  margin-top: 18px;
}
.deposit-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.78rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}
.deposit-status.checking .status-dot {
  background: var(--plum);
  animation: pulse 1s infinite;
}
.deposit-status.verified {
  color: var(--green);
}
.deposit-status.verified .status-dot {
  background: var(--green);
}
.deposit-status.error {
  color: var(--coral);
}
.deposit-status.error .status-dot {
  background: var(--coral);
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.submit-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 42px;
  border-radius: var(--radius);
}
.submit-button {
  flex: 0 0 auto;
  padding: 14px 22px;
  background: var(--green);
  color: #001b13;
}
.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}
.draft-note {
  margin: 10px 0 0;
  color: #777;
  font-size: 0.74rem;
}
.draft-note .text-button {
  padding: 0;
  margin-left: 4px;
  font-size: inherit;
}
.confirm-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--white);
}
.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.confirm-dialog h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.confirm-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.confirm-actions .submit-button {
  padding: 10px 16px;
}
.result {
  padding: 17px;
  border: 1px solid var(--green);
  border-radius: 12px;
  background: rgba(74, 201, 165, 0.08);
  color: var(--green);
  font-size: 0.85rem;
}
.result.error {
  border-color: var(--coral);
  background: rgba(253, 128, 88, 0.08);
  color: var(--coral);
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
  color: #6f6f6f;
  font-size: 0.75rem;
}
footer img {
  width: 24px;
  height: 24px;
}

.terms-page main {
  width: min(780px, calc(100% - 40px));
  padding: 80px 0 100px;
}
.terms-page h1 {
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  letter-spacing: -0.05em;
}
.terms-page .lead {
  color: var(--muted);
}
.terms-document {
  margin-top: 40px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: #c7c7c7;
  font-size: 0.92rem;
  line-height: 1.7;
}
.terms-document > :first-child {
  margin-top: 0;
}
.terms-document h2 {
  margin: 32px 0 10px;
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.terms-document h3,
.terms-document h4 {
  margin: 24px 0 8px;
  color: var(--white);
  font-size: 1rem;
}
.terms-document p {
  margin: 0 0 14px;
}
.terms-document ul,
.terms-document ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.terms-document li + li {
  margin-top: 6px;
}
.terms-document a {
  color: var(--plum);
  overflow-wrap: anywhere;
}
.terms-document code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #000;
  font-size: 0.85em;
}

@media (max-width: 850px) {
  .hero {
    padding: 70px 0 60px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .journey {
    position: static;
  }
  .journey ol {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .journey li {
    min-height: 0;
    display: block;
  }
  .journey li::after,
  .journey small {
    display: none;
  }
  .journey li > span {
    margin-bottom: 7px;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }
  .site-header {
    height: 74px;
  }
  .brand img {
    width: 135px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }
  .trust-row {
    gap: 10px 18px;
  }
  .identity-card,
  .submit-section {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
  }
  .github-button,
  .submit-button {
    justify-content: center;
    text-align: center;
  }
  .form-section {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 28px 20px 32px 0;
  }
  .field-grid.two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .journey strong {
    font-size: 0.72rem;
  }
  .terms-document {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
  }
}
