*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption,
blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:root {
  --ink: #0A1F1A;
  --ink-2: #102E26;
  --panel: #1C3B32;
  --line: #2D5247;
  --lime: #C9FF45;
  --amber: #FFA33C;
  --mist: #EAF4ED;
  --muted: #9CB7AA;
  --glow: #E6FF9E;
  --coral: #FF7868;
  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-data: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shell-max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 0.32s;
  --radius: 14px;
}

body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(45, 82, 71, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 82, 71, 0.22) 1px, transparent 1px),
    radial-gradient(1100px 560px at 88% -8%, rgba(201, 255, 69, 0.07), transparent 62%),
    radial-gradient(820px 480px at 0% 100%, rgba(255, 163, 60, 0.05), transparent 66%);
  background-size: 72px 72px, 72px 72px, auto, auto;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.5vw + 14px, 17px);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--mist);
}

h1 { font-size: clamp(34px, 5vw, 64px); }
h2 { font-size: clamp(24px, 2.6vw, 36px); }
h3 { font-size: clamp(19px, 1.6vw, 24px); }

p { text-wrap: pretty; }

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

.shell {
  width: 100%;
  max-width: calc(var(--shell-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: #08170F;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(10, 31, 26, 0.98), rgba(10, 31, 26, 0.92));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 11px;
}

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

.brand-pulse {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(201, 255, 69, 0.55);
  animation: brandPulse 2.8s var(--ease) infinite;
}

@keyframes brandPulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 255, 69, 0.5); }
  70% { box-shadow: 0 0 0 13px rgba(201, 255, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 255, 69, 0); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 20px);
  letter-spacing: 0.02em;
  color: var(--mist);
  white-space: nowrap;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(28, 59, 50, 0.55);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.status-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 9px rgba(255, 163, 60, 0.9);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn--primary {
  background: var(--lime);
  color: #08170F;
}

.btn--primary:hover {
  background: var(--glow);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(28, 59, 50, 0.45);
  border-color: var(--line);
  color: var(--mist);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ---------- nav ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--lime);
  transition: background-color 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.22s var(--ease), top 0.22s var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  border-top: 1px solid var(--line);
  background: rgba(16, 46, 38, 0.55);
}

.nav-index {
  counter-reset: navi;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  max-width: calc(var(--shell-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-index li {
  flex: 0 1 auto;
  min-width: 0;
}

.nav-index a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-index a::before {
  counter-increment: navi;
  content: counter(navi, decimal-leading-zero);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(156, 183, 170, 0.5);
  transition: color var(--dur) var(--ease);
}

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

.nav-index a:hover::before {
  color: var(--amber);
}

.nav-index a[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.nav-index a[aria-current="page"]::before {
  color: var(--lime);
}

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 3;
  pointer-events: none;
}

.read-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--glow));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

/* ---------- floating result capsule ---------- */
.result-capsule {
  position: fixed;
  right: 0;
  top: 52%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 172px;
  padding: 13px 16px 13px 18px;
  background: linear-gradient(150deg, var(--panel), var(--ink-2) 72%);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.capsule__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--glow);
}

.capsule__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: brandPulse 2s var(--ease) infinite;
}

.capsule__score {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.capsule__score em {
  font-style: normal;
  color: var(--line);
  margin: 0 3px;
}

.capsule__note {
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  background: linear-gradient(180deg, var(--ink-2), #0B241D 88%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 10px);
  opacity: 0.65;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 72px);
}

.footer-brand__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.footer-brand__sub {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--lime);
}

.footer-brand__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 30ch;
}

.footer-col__title {
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  opacity: 0.86;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.footer-col a:hover {
  color: var(--lime);
  opacity: 1;
  border-bottom-color: rgba(201, 255, 69, 0.5);
}

.footer-contact p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  word-break: break-word;
}

.footer-contact p + p {
  margin-top: 8px;
}

.footer-contact__k {
  display: inline-block;
  min-width: 3.4em;
  margin-right: 8px;
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.legal-links a {
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.legal-links a:hover {
  color: var(--lime);
  border-bottom-color: rgba(201, 255, 69, 0.5);
}

.footer-icp {
  font-family: var(--font-data);
  font-size: 12px;
}

.footer-copy {
  font-size: 12px;
}

/* ---------- shared building blocks ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  padding-bottom: 14px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.card {
  position: relative;
  padding: clamp(18px, 2vw, 26px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.card:hover {
  border-color: rgba(201, 255, 69, 0.45);
}

.card--cut {
  border-radius: var(--radius) 0 0 var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.data-num {
  font-family: var(--font-data);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(28, 59, 50, 0.65);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1.6;
}

.tag--live {
  color: var(--lime);
  border-color: rgba(201, 255, 69, 0.5);
  background: rgba(201, 255, 69, 0.1);
}

.tag--warn {
  color: var(--amber);
  border-color: rgba(255, 163, 60, 0.5);
  background: rgba(255, 163, 60, 0.1);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: clamp(16px, 2.6vw, 26px);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumb a {
  transition: color var(--dur) var(--ease);
}

.breadcrumb a:hover {
  color: var(--lime);
}

.breadcrumb [aria-current="page"] {
  color: var(--mist);
}

.prose {
  max-width: 72ch;
}

.prose p + p {
  margin-top: 1em;
}

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) var(--radius) 0;
  background:
    linear-gradient(135deg, rgba(45, 82, 71, 0.6), rgba(16, 46, 38, 0.92)),
    var(--ink-2);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 31, 26, 0) 42%, rgba(10, 31, 26, 0.78));
}

.media-frame__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--glow);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-capsule {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px var(--gutter);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
  }

  .capsule__score {
    font-size: 18px;
  }

  .capsule__note {
    margin-left: auto;
    text-align: right;
  }

  body {
    padding-bottom: 58px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .status-chip {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 80vh;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--ink-2);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease);
  }

  .site-nav[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-index {
    flex-direction: column;
    padding-inline: 0;
    max-width: none;
    gap: 0;
  }

  .nav-index li {
    width: 100%;
    flex: none;
  }

  .nav-index a {
    padding: 16px var(--gutter);
    font-size: 15px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    white-space: normal;
  }

  .nav-index a[aria-current="page"] {
    border-bottom-color: var(--line);
    border-left-color: var(--lime);
    background: rgba(28, 59, 50, 0.55);
  }

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

  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-12 {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 560px) {
  .brand-sub {
    display: none;
  }

  .btn--primary {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav-toggle {
    min-height: 36px;
    padding: 0 12px;
  }

  .nav-toggle__text {
    display: none;
  }

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

  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-12 {
    grid-column: span 1;
  }
}

html.is-nav-open {
  overflow: hidden;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .read-progress__bar {
    transition: none !important;
  }
}
