:root {
  color-scheme: light;
  --ink: #102c37;
  --ink-soft: #3b5660;
  --paper: #f4f1e8;
  --paper-strong: #fffdf7;
  --lime: #c8f46a;
  --lime-deep: #8fbe32;
  --coral: #ff7b64;
  --sky: #a8dbea;
  --line: rgba(16, 44, 55, 0.14);
  --shadow: 0 24px 60px rgba(16, 44, 55, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

html[data-lang="en"] .lang-zh,
html[data-lang="zh-TW"] .lang-en {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(200, 244, 106, 0.34), transparent 25rem),
    radial-gradient(circle at 92% 20%, rgba(168, 219, 234, 0.34), transparent 28rem),
    var(--paper);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(16, 44, 55, 0.08);
  background: rgba(244, 241, 232, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner,
.section,
.hero,
.trust-strip,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

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

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.language-switch button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-switch button[aria-pressed="true"] {
  color: white;
  background: var(--ink);
}

.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(44px, 7vw, 94px);
  padding-block: 86px 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: var(--coral);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.accent-word {
  position: relative;
  white-space: nowrap;
}

.hero h1 .lang-zh .accent-word {
  display: inline-block;
}

.accent-word::after {
  position: absolute;
  z-index: -1;
  right: -0.05em;
  bottom: 0.03em;
  left: -0.03em;
  height: 0.22em;
  border-radius: 999px;
  background: var(--lime);
  content: "";
  transform: rotate(-1.6deg);
}

.hero-copy {
  max-width: 670px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.27rem);
  line-height: 1.68;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 24px rgba(16, 44, 55, 0.18);
}

.button-primary:hover {
  background: #1b4553;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.5);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.hero-metrics strong {
  display: block;
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}

.hero-metrics span {
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 700;
}

.report-preview {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.report-preview::before {
  position: absolute;
  z-index: -1;
  inset: 22px -18px -22px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--lime);
  content: "";
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px 16px;
}

.preview-label {
  color: rgba(255, 255, 255, 0.66);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
}

.preview-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
  box-shadow: 0 0 0 4px rgba(200, 244, 106, 0.12);
}

.preview-body {
  padding: 22px;
  border-radius: 19px;
  color: var(--ink);
  background: var(--paper-strong);
}

.preview-body h2 {
  margin-bottom: 8px;
  font-size: 1.55rem;
  letter-spacing: -0.045em;
}

.preview-summary {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.asset-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.asset-result strong,
.asset-result small {
  display: block;
}

.asset-result strong {
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.asset-result small {
  overflow: hidden;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.severity {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
}

.severity-critical {
  color: #7d1f16;
  background: #ffd9d2;
}

.severity-high {
  color: #744a00;
  background: #ffe8a8;
}

.severity-clear {
  color: #2e5800;
  background: #e1f6bc;
}

.preview-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 20px;
  border-block: 1px solid var(--line);
}

.trust-item {
  padding: 28px 22px;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.trust-item span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.section {
  padding-block: 108px;
}

.section-dark {
  width: 100%;
  color: white;
  background: var(--ink);
}

.section-dark .section {
  padding-block: 104px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.45fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-heading p {
  margin-bottom: 4px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.flow-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.flow-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 44px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 850;
}

.flow-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.flow-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.65;
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr 54px 1.1fr 54px 1fr;
  align-items: stretch;
  margin-top: 50px;
}

.pipeline-stage {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.pipeline-stage:last-child {
  border-color: var(--lime);
  color: var(--ink);
  background: var(--lime);
}

.pipeline-stage small {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pipeline-stage:last-child small {
  color: rgba(16, 44, 55, 0.66);
}

.pipeline-stage strong {
  font-size: 1.04rem;
  line-height: 1.4;
}

.pipeline-arrow {
  display: grid;
  place-items: center;
  color: var(--lime);
  font-size: 1.5rem;
}

.tool-group + .tool-group {
  margin-top: 64px;
}

.tool-group-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.tool-group-heading h3 {
  margin: 0;
  font-size: 1.24rem;
  letter-spacing: -0.035em;
}

.group-count {
  min-width: 29px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(16, 44, 55, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.69rem;
  font-weight: 800;
  text-align: center;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 247, 0.72);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.tool-card:hover {
  border-color: rgba(16, 44, 55, 0.3);
  box-shadow: 0 16px 34px rgba(16, 44, 55, 0.08);
  transform: translateY(-4px);
}

.tool-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.tool-name {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.stars {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #6c5416;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.stars::before {
  color: #e3a90b;
  content: "★";
}

.tool-kind {
  align-self: flex-start;
  margin: 17px 0 14px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(168, 219, 234, 0.31);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-kind-observation {
  background: rgba(255, 196, 100, 0.28);
}

.tool-kind-inventory {
  background: rgba(200, 244, 106, 0.31);
}

.tool-card p {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.62;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.tool-link::after {
  content: "↗";
}

.tool-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.snapshot-note,
.honesty-note {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.6;
}

.snapshot-note {
  margin: 26px 0 0;
}

.honesty-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  margin: 48px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(168, 219, 234, 0.18);
}

.honesty-note strong {
  color: var(--ink);
}

.rule-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.rule-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px dashed rgba(16, 44, 55, 0.26);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.34);
}

.rule-source a {
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.rule-source a:hover {
  text-decoration: underline;
}

.report-features {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.report-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.report-copy > p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.55;
}

.feature-list li::before {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  content: "✓";
  font-size: 0.68rem;
  font-weight: 900;
}

.report-stack {
  display: grid;
  gap: 12px;
}

.report-layer {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.report-layer:first-child {
  border-color: var(--lime);
  color: var(--ink);
  background: var(--lime);
}

.report-layer small {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.report-layer:first-child small {
  color: rgba(16, 44, 55, 0.62);
}

.report-layer strong {
  font-size: 1rem;
  line-height: 1.45;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 76px);
  border-radius: var(--radius-lg);
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.cta-panel::after {
  position: absolute;
  top: -110px;
  right: -80px;
  width: 320px;
  height: 320px;
  border: 58px solid var(--lime);
  border-radius: 50%;
  content: "";
  opacity: 0.17;
}

.cta-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.cta-panel p {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.cta-panel .button-row {
  position: relative;
  z-index: 1;
}

.cta-panel .button-primary {
  border-color: var(--lime);
  color: var(--ink);
  background: var(--lime);
}

.cta-panel .button-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  background: transparent;
}

.site-footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 35px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-weight: 750;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .nav-wide {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav a:not(.nav-github) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 70px 92px;
  }

  .hero-content {
    max-width: 800px;
  }

  .report-preview {
    width: min(620px, calc(100% - 12px));
    justify-self: center;
  }

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

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

@media (max-width: 720px) {
  .header-inner,
  .section,
  .hero,
  .trust-strip,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .nav {
    margin-left: auto;
  }

  .nav-github {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 13.5vw, 4.25rem);
    letter-spacing: -0.055em;
    line-height: 0.98;
  }

  .accent-word {
    white-space: normal;
  }

  .hero {
    gap: 62px;
    padding-top: 58px;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .report-preview {
    transform: none;
  }

  .report-preview::before {
    inset: 12px -10px -13px 10px;
  }

  .trust-strip,
  .flow-grid,
  .section-heading,
  .tool-grid,
  .rule-sources {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding-inline: 8px;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section,
  .section-dark .section {
    padding-block: 78px;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 36px;
  }

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

  .pipeline-arrow {
    min-height: 45px;
    transform: rotate(90deg);
  }

  .tool-card {
    min-height: 200px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .button-row,
  .language-switch {
    display: none;
  }

  body {
    background: white;
  }

  .section-dark {
    color: var(--ink);
    background: white;
  }

  .section-dark p,
  .section-dark .section-heading p,
  .flow-card p,
  .report-copy > p,
  .feature-list li {
    color: var(--ink-soft);
  }
}

.fd {
  --fd-surface: var(--paper-strong);
  --fd-edge: var(--line);
  --fd-text: var(--ink);
  --fd-faint: var(--ink-soft);
  --fd-accent: var(--lime-deep);
  --fd-accent-ink: color-mix(in srgb, var(--lime-deep) 50%, var(--ink));
  --fd-warn: var(--coral);
  --fd-info: color-mix(in srgb, var(--sky) 35%, var(--ink));
  --fd-font: inherit;
  --fd-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
