:root {
  --bunker: #0f1114;
  --bunker-2: #11181c;
  --surface: #181f24;
  --surface-2: #1e262c;
  --raise: #242d34;
  --line: #232b32;
  --line-soft: #1b232a;
  --line-bright: #2d3740;
  --text: #ededee;
  --text-muted: #a0a7b0;
  --text-dim: #6b737e;
  --text-faint: #4a525c;
  --green: #3ecf8e;
  --green-2: #5ed9a3;
  --green-deep: #248f5e;
  --green-faint: rgba(62, 207, 142, 0.06);
  --green-glow: rgba(62, 207, 142, 0.14);
  --green-strong: rgba(62, 207, 142, 0.28);
  --sky: #8ee6ff;
  --purple: #c39bff;
  --amber: #ffbd5c;
  --pink: #ff7a9a;
  --danger: #ff7a7a;
  --danger-soft: rgba(255, 122, 122, 0.12);
  --warning: #ffbd5c;
  --warning-soft: rgba(255, 189, 92, 0.12);
  --card-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  --panel-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(62, 207, 142, 0.05);
  --headline-font: "Inter", "Noto Sans SC", "Segoe UI", sans-serif;
  --body-font: "Inter", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono-font: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bunker-2);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(62, 207, 142, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 82% 22%, rgba(94, 217, 163, 0.08) 0%, transparent 36%),
    radial-gradient(circle at 68% 78%, rgba(142, 230, 255, 0.04) 0%, transparent 40%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.8;
}

body > * {
  position: relative;
  z-index: 1;
}

body.lang-zh .t-en,
body.lang-en .t-zh {
  display: none;
}

a {
  color: inherit;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(15, 17, 20, 0.8);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
}

.nav-shell {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--bunker-2);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.25), 0 0 20px rgba(62, 207, 142, 0.25);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono-font);
}

.nav-links,
.nav-actions,
.lang-switch,
.hero-actions,
.overall-topline,
.section-header,
.info-pill-row,
.signal-strip {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.nav-actions {
  gap: 14px;
}

.lang-switch {
  gap: 8px;
}

.lang-button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-button:hover {
  color: var(--text);
  border-color: var(--line-bright);
}

.lang-button.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--bunker-2);
}

.page-shell {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 72px;
  display: grid;
  gap: 28px;
}

.hero,
.status-card,
.overall-panel,
.subsection,
.footer-note {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 31, 36, 0.98), rgba(17, 24, 28, 0.98));
  box-shadow: var(--panel-shadow);
}

.hero {
  padding: 0;
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 32px 32px 0;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-pill:hover {
  color: var(--text);
  border-color: var(--line-bright);
}

.hero-pill-tag,
.eyebrow,
.risk-chip,
.priority-chip,
.info-pill,
.signal-chip,
.mono-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.hero-pill-tag {
  min-height: 28px;
  padding: 0 10px;
  background: var(--green-faint);
  color: var(--green);
  font-size: 11px;
  font-family: var(--mono-font);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.hero-pill-arrow {
  color: var(--text-dim);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 24px 32px 34px;
}

.hero-main {
  min-width: 0;
}

.eyebrow {
  min-height: 34px;
  padding: 0 12px;
  background: var(--green-faint);
  color: var(--green-2);
  font-size: 12px;
  font-family: var(--mono-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.overall-panel h2,
.section-header h2,
.status-card h2,
.footer-note strong {
  font-family: var(--headline-font);
  letter-spacing: -0.035em;
}

.hero h1 {
  margin: 18px 0 18px;
  max-width: 880px;
  font-size: clamp(44px, 6.8vw, 84px);
  line-height: 1.03;
  font-weight: 700;
}

.hero-copy,
.status-card p,
.section-header p,
.micro-note,
.hero-note li,
.summary-card p,
.deep-card p,
.group-card p,
.status-step span {
  color: var(--text-muted);
}

.hero-copy {
  max-width: 660px;
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: var(--green);
  color: var(--bunker-2);
  box-shadow: 0 0 0 1px var(--green-2), 0 0 24px var(--green-glow);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--green-2), 0 0 32px var(--green-strong);
}

.secondary-button {
  background: transparent;
  color: var(--text);
  border-color: var(--line-bright);
}

.secondary-button:hover {
  transform: translateY(-1px);
  background: var(--surface);
}

.primary-button.small {
  min-height: 46px;
  padding-inline: 18px;
}

.secondary-button.tiny {
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 12px;
}

.signal-strip {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.signal-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  font-family: var(--mono-font);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.signal-chip:hover {
  border-color: var(--green-strong);
  color: var(--green-2);
}

.hero-note {
  position: relative;
  align-self: start;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(15, 17, 20, 0.72);
  padding: 22px;
  overflow: hidden;
}

.hero-note::after,
.summary-card::after,
.deep-card::after,
.group-card::after,
.overall-panel::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 180px;
  height: 120px;
  background: radial-gradient(circle at center, var(--green-faint), transparent 72%);
  pointer-events: none;
}

.hero-note-topline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.code-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.code-dot.green {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.mono-label {
  min-height: 28px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-note h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.bullet-list li + li {
  margin-top: 10px;
}

.bullet-list.ordered {
  list-style: decimal;
}

.hero-meta-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-cell {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-faint);
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-cell strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.status-card {
  padding: 24px 26px;
  scroll-margin-top: 90px;
}

.status-card h2 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  font-weight: 600;
}

.status-card p {
  margin: 0;
  max-width: 720px;
}

.status-steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.status-step {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px;
  min-height: 118px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 38, 44, 0.95), rgba(24, 31, 36, 0.95));
}

.status-step::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-faint);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
}

.status-step strong {
  font-size: 1rem;
}

.status-step.active {
  border-color: rgba(62, 207, 142, 0.35);
  box-shadow: inset 0 0 0 1px rgba(62, 207, 142, 0.08), 0 0 28px rgba(62, 207, 142, 0.08);
}

.status-step.active::before,
.status-step.done::before {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.status-step.done {
  background: linear-gradient(180deg, rgba(30, 38, 44, 0.88), rgba(24, 31, 36, 0.88));
}

.hidden {
  display: none !important;
}

.result-shell {
  display: grid;
  gap: 22px;
}

.overall-panel,
.subsection,
.footer-note {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.overall-topline,
.info-pill-row {
  gap: 10px;
  flex-wrap: wrap;
}

.overall-panel h2 {
  margin: 18px 0 14px;
  max-width: 980px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.05;
  font-weight: 700;
}

.overall-panel > p {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  color: var(--text-muted);
}

.info-pill,
.priority-chip {
  min-height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
}

.risk-chip {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-family: var(--mono-font);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.risk-chip.low {
  background: var(--green-faint);
  color: var(--green);
}

.risk-chip.medium {
  background: var(--warning-soft);
  color: var(--warning);
}

.risk-chip.high {
  background: var(--danger-soft);
  color: var(--danger);
}

.risk-chip.unknown {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.micro-stack {
  margin-top: 22px;
  max-width: 720px;
}

.micro-stack h3,
.deep-card h3,
.summary-card h3,
.group-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-family: var(--mono-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
}

.section-header p {
  margin: 8px 0 0;
  max-width: 720px;
}

.summary-grid,
.deep-summary-grid,
.deep-groups,
.unlock-preview-list {
  display: grid;
  gap: 16px;
}

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

.summary-card,
.deep-card,
.group-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 38, 44, 0.96), rgba(24, 31, 36, 0.96));
}

.summary-card {
  min-height: 172px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.summary-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.summary-card h3 {
  color: var(--text-faint);
}

.unlock-shell {
  padding-top: 22px;
}

.unlock-preview-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.unlock-preview-list strong,
.unlock-preview-list .bullet-list {
  grid-column: 1 / -1;
}

.unlock-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.unlock-form.compact {
  grid-template-columns: minmax(0, 360px) auto;
  align-items: center;
  justify-content: start;
}

.unlock-form input {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.unlock-form input::placeholder {
  color: var(--text-dim);
}

.unlock-shell .primary-button.small {
  min-width: 152px;
  border-radius: 999px;
}

.micro-note {
  margin: 10px 0 0;
  font-size: 13px;
}

.dev-reset-shell {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 14px;
}

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

.deep-card {
  min-height: 200px;
  padding: 20px;
}

.group-section + .group-section {
  margin-top: 18px;
}

.group-section h2 {
  margin: 0;
  font-size: 13px;
  font-family: var(--mono-font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.group-card {
  padding: 20px;
}

.group-card p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.group-card details {
  margin-top: 12px;
}

.group-card summary {
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-note {
  color: var(--text-muted);
  line-height: 1.75;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .hero-grid,
  .status-steps,
  .summary-grid,
  .deep-summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-note {
    max-width: none;
  }
}

@media (max-width: 960px) {
  .nav-shell,
  .page-shell {
    width: min(100% - 24px, 1240px);
  }

  .nav-links {
    display: none;
  }

  .hero-pill {
    margin: 22px 20px 0;
  }

  .hero-grid {
    padding: 20px 20px 24px;
  }

  .status-card,
  .overall-panel,
  .subsection,
  .footer-note {
    padding: 20px;
  }

  .unlock-preview-list,
  .unlock-form.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-top: 22px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .overall-panel h2 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-meta-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip,
  .hero-actions,
  .overall-topline,
  .info-pill-row {
    align-items: stretch;
  }

  .signal-chip,
  .hero-actions > *,
  .lang-button {
    justify-content: center;
  }
}
