:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #0f1014;
  --panel-2: #13151b;
  --line: #25262d;
  --line-strong: #3a3b44;
  --text: #fafafa;
  --soft: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --cyan: #67e8f9;
  --green: #22c55e;
  --yellow: #facc15;
  --red: #fb7185;
  --purple: #a78bfa;
  --blue: #60a5fa;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34rem),
    #09090b;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1160px, calc(100vw - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0c0f;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
}

.brand strong {
  display: block;
  line-height: 1;
  font-size: 15px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  color: rgba(250, 250, 250, 0.76);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}

.nav a:hover {
  color: #ffffff;
}

.nav-icon {
  width: 32px;
  border-radius: 999px;
}

.nav-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.nav-x span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #09090b;
  background: rgba(250, 250, 250, 0.84);
  font-size: 12px;
  font-weight: 900;
}

.main {
  flex: 1;
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 70px;
}

.home {
  display: grid;
  gap: 72px;
}

.hero {
  min-height: calc(100vh - 148px);
  display: grid;
  align-content: center;
  gap: 34px;
  padding: 18px 0 44px;
}

.wordmark {
  margin: 0;
  color: var(--text);
  font-size: clamp(72px, 17vw, 210px);
  line-height: 0.78;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 830px;
  display: grid;
  gap: 16px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--soft);
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: 0;
}

.hero-copy h1 span {
  color: #ffffff;
}

.hero-copy p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.terminal {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0c0f;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.terminal-top {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.terminal-dot:nth-child(1) {
  background: #ff6159;
}

.terminal-dot:nth-child(2) {
  background: #ffbd2e;
}

.terminal-dot:nth-child(3) {
  background: #28c941;
}

.terminal-top small {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.scan-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.scan-shell label {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #09090b;
  padding: 0 14px;
}

.prompt {
  color: var(--cyan);
  font-family: var(--mono);
}

.scan-shell input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
  font-family: var(--mono);
  font-size: 15px;
}

.primary-btn,
.ghost-btn,
.chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--text);
  background: #13151b;
  text-decoration: none;
  font-weight: 700;
}

.primary-btn {
  border-color: #f4f4f5;
  color: #09090b;
  background: #f4f4f5;
}

.primary-btn:hover {
  color: #f4f4f5;
  background: transparent;
}

.ghost-btn:hover,
.chip:hover {
  border-color: var(--line-strong);
  background: #181920;
}

.sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.chip {
  min-height: 34px;
  color: var(--soft);
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
}

.console {
  min-height: 326px;
  border-right: 1px solid var(--line);
  padding: 20px;
  font-family: var(--mono);
  color: #c9d1d9;
  font-size: 14px;
  line-height: 1.78;
}

.console p {
  margin: 0;
}

.console em {
  color: #8b949e;
  font-style: normal;
}

.console b {
  color: var(--cyan);
  font-weight: 500;
}

.console i {
  color: var(--purple);
  font-style: normal;
}

.risk-panel {
  min-width: 0;
  padding: 20px;
}

.risk-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.risk-head span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.risk-head strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.score {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--score-color);
  background:
    conic-gradient(var(--score-color) calc(var(--score) * 1%), #27272a 0),
    #0c0c0f;
  font-family: var(--mono);
  font-weight: 800;
  position: relative;
}

.score::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #0c0c0f;
}

.score span {
  position: relative;
}

.score.low {
  --score-color: var(--green);
}

.score.mid {
  --score-color: var(--yellow);
}

.score.high {
  --score-color: var(--red);
}

.metric-list {
  display: grid;
  gap: 9px;
}

.metric {
  min-height: 42px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  color: var(--soft);
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.sections {
  display: grid;
  gap: 56px;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 60px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.split h2,
.docs h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: 0;
}

.split p,
.docs p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.flow {
  border: 1px solid var(--line);
  background: #0c0c0f;
}

.flow-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  min-height: 104px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}

.flow-step:first-child {
  border-top: 0;
}

.flow-step code {
  color: var(--purple);
  font-family: var(--mono);
}

.flow-index {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
}

.flow-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.flow-step span:last-child {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

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

.signal {
  min-height: 150px;
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}

.signal strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.signal span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.report-page,
.docs {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding-top: 24px;
}

.report-card,
.doc-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0c0f;
  overflow: hidden;
}

.report-card-head,
.doc-card h2 {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px;
}

.report-card-body,
.doc-card div {
  padding: 20px;
}

.finding-list {
  display: grid;
  gap: 12px;
}

.finding {
  border-left: 3px solid var(--tone);
  padding-left: 12px;
  color: var(--soft);
  line-height: 1.55;
}

.footer {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--faint);
  font-size: 13px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

.mono {
  font-family: var(--mono);
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .report-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .console {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .nav a {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0c0c0f;
  }

  .scan-shell {
    grid-template-columns: 1fr;
  }

  .wordmark {
    font-size: clamp(56px, 19vw, 96px);
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .console,
  .risk-panel,
  .flow-step,
  .report-card-head,
  .report-card-body,
  .doc-card h2,
  .doc-card div {
    padding: 16px;
  }

  .flow-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

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