/*
 * 角色：page-9layer 页面专属样式
 * 规则：只写此页面特有的组件样式，Token 全部引用 Global.css 的变量
 * 禁止：不得定义 :root{}，不得写死颜色/间距数值
 * 文件：assets/css/page-9layer.css
 */

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   S1 — HERO
   ============================================================ */

@keyframes nineHeroBreath {
  0%   { transform: scale(1.00); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1.00); }
}

.nine-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nine-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.nine-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  position: absolute;
  inset: 0;
  animation: nineHeroBreath 12s ease-in-out infinite;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .nine-hero__bg img {
    animation: none;
  }
}

.nine-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 13, 16, 0.88) 0%,
    rgba(11, 13, 16, 0.62) 55%,
    rgba(11, 13, 16, 0.28) 100%
  );
}

.nine-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px);
  pointer-events: none;
}

.nine-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-6);
  max-width: 820px;
}

.nine-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 1em;
  background: rgba(215, 25, 32, 0.08);
  color: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(215, 25, 32, 0.40);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  width: fit-content;
}

.nine-hero__title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0;
  text-wrap: pretty;
}

.nine-hero__title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.38);
}

.nine-hero__subtitle {
  font-size: clamp(var(--text-base), 1.6vw, var(--text-md));
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  max-width: 600px;
  margin: 0;
  text-wrap: pretty;
}

/* Trust bar */
.nine-hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  width: fit-content;
}

.nine-hero__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--sp-3);
  gap: 2px;
}

.nine-hero__trust-num {
  font-family: 'DM Mono', monospace;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.nine-hero__trust-unit {
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.50);
  margin-left: 2px;
}

.nine-hero__trust-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nine-hero__trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* Custom notice — 9-extruder asymmetric */
.nine-hero__custom-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 2px solid var(--brand-mid);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  max-width: 620px;
}

.nine-hero__custom-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-mid);
  opacity: 0.85;
}

.nine-hero__custom-notice span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.65;
}

.nine-hero__custom-notice strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.nine-hero__custom-notice a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.nine-hero__custom-notice a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.60);
}

/* CTA group */
.nine-hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}

/* ============================================================
   S2 — WHAT THIS MACHINE PRODUCES
   ============================================================ */

.nine-produces {
  padding: var(--sp-7) var(--sp-5);
}

.nine-produces__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.nine-produces__card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nine-produces__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.nine-produces__card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-50);
}

.nine-produces__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nine-produces__card:hover .nine-produces__card-img img {
  transform: scale(1.04);
}

.nine-produces__card-body {
  padding: var(--sp-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.nine-produces__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-sm);
}

.nine-produces__tag--primary {
  background: var(--brand-tint);
  color: var(--brand);
}

.nine-produces__tag--secondary {
  background: var(--gray-50);
  color: var(--gray-600);
  border: 1px solid var(--gray-100);
}

.nine-produces__card-body h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.3;
}

.nine-produces__card-body p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

.nine-produces__geo {
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--gray-50);
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
}

.nine-produces__geo p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   S3 — LAYER STRUCTURE EXPLAINED
   ============================================================ */

.nine-structure {
  padding: var(--sp-7) var(--sp-5);
  position: relative;
  overflow: hidden;
}

.nine-structure::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px,
      rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px);
  pointer-events: none;
}

/* Upgrade callout box */
.nine-structure__upgrade-box {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: rgba(215, 25, 32, 0.07);
  border: 1px solid rgba(215, 25, 32, 0.22);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-6);
}

.nine-structure__upgrade-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(215, 25, 32, 0.15);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-mid);
}

.nine-structure__upgrade-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.nine-structure__upgrade-text strong {
  color: rgba(255, 255, 255, 0.90);
  font-weight: 700;
  display: block;
  margin-bottom: var(--sp-1);
}

/* ── COMPONENT A: SVG Layer Stack Table ── */

.nine-structure__svg-wrap {
  margin-bottom: var(--sp-6);
}

.nine-structure__svg-block {
  border-radius: var(--r-lg);
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.nine-structure__svg-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: #fff;
  padding: var(--sp-3) var(--sp-3) 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.nine-structure__svg-badge {
  font-family: 'DM Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.2em 0.75em;
  letter-spacing: 0.04em;
}

.nine-structure__svg-scroll {
  overflow-x: auto;
  padding: var(--sp-3);
}

/* Layer type badges inside table */
.nine-structure__badge {
  display: inline-block;
  padding: 0.2em 0.65em;
  border-radius: var(--r-sm);
  font-family: 'DM Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nine-structure__badge--pe {
  background: rgba(96, 125, 139, 0.30);
  color: rgba(176, 210, 230, 0.95);
  border: 1px solid rgba(176, 210, 230, 0.25);
}

.nine-structure__badge--tie {
  background: rgba(180, 20, 20, 0.30);
  color: rgba(239, 100, 100, 0.95);
  border: 1px solid rgba(239, 100, 100, 0.25);
}

.nine-structure__badge--pa {
  background: rgba(37, 99, 235, 0.25);
  color: rgba(147, 197, 253, 0.95);
  border: 1px solid rgba(147, 197, 253, 0.25);
}

.nine-structure__badge--evoh {
  background: rgba(22, 101, 52, 0.40);
  color: rgba(74, 222, 128, 0.95);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

/* Per-layer function reference table */
.nine-structure__table-wrap {
  margin-bottom: var(--sp-6);
  overflow-x: auto;
  border-radius: var(--r-lg);
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.nine-structure__table-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: #fff;
  padding: var(--sp-3) var(--sp-3) 0;
  margin: 0;
}

.nine-structure__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: transparent;
  min-width: 640px;
}

.nine-structure__table thead tr {
  background: rgba(255, 255, 255, 0.06);
}

.nine-structure__table thead th {
  padding: var(--sp-1) var(--sp-2);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.nine-structure__table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}

.nine-structure__table tbody tr:last-child {
  border-bottom: none;
}

.nine-structure__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.nine-structure__table tbody td {
  padding: var(--sp-2);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  vertical-align: top;
}

/* ── COMPONENT B: CSS Cross-Section Thickness Diagram ── */

.nine-structure__cs-wrap {
  margin-bottom: var(--sp-5);
}

.nine-structure__cs-heading {
  font-size: var(--text-md);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.90);
  margin: 0 0 var(--sp-4) 0;
}

.nine-structure__cs-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.nine-structure__cs-label {
  font-family: 'DM Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.nine-structure__cs-bar-wrap {
  display: flex;
  flex-direction: column;
  height: 280px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nine-structure__cs-bar {
  display: flex;
  align-items: center;
  padding-left: var(--sp-2);
  min-height: 24px;
  transition: filter 0.2s ease;
}

.nine-structure__cs-bar:hover {
  filter: brightness(1.15);
}

.nine-structure__cs-bar--pe1 {
  background: rgba(96, 125, 139, 0.40);
  border-left: 3px solid rgba(176, 210, 230, 0.70);
}

.nine-structure__cs-bar--pe2 {
  background: rgba(45, 62, 72, 0.55);
  border-left: 3px solid rgba(100, 140, 160, 0.60);
}

.nine-structure__cs-bar--tie {
  background: rgba(180, 20, 20, 0.55);
  border-left: 3px solid rgba(239, 59, 66, 0.80);
}

.nine-structure__cs-bar--pa {
  background: rgba(37, 99, 235, 0.55);
  border-left: 3px solid rgba(147, 197, 253, 0.80);
}

.nine-structure__cs-bar--evoh {
  background: rgba(22, 101, 52, 0.60);
  border-left: 3px solid rgba(34, 197, 94, 0.80);
}

.nine-structure__cs-bar-text {
  font-family: 'DM Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Legend */
.nine-structure__cs-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.nine-structure__cs-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.60);
  white-space: nowrap;
}

.nine-structure__cs-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.nine-structure__cs-dot--pe1  { background: rgba(176, 210, 230, 0.70); }
.nine-structure__cs-dot--pe2  { background: rgba(100, 140, 160, 0.60); }
.nine-structure__cs-dot--tie  { background: rgba(239, 59,  66,  0.80); }
.nine-structure__cs-dot--pa   { background: rgba(147, 197, 253, 0.80); }
.nine-structure__cs-dot--evoh { background: rgba(34,  197, 94,  0.80); }

.nine-structure__cs-note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.65;
  margin: var(--sp-1) 0 0 0;
  font-style: italic;
}

/* GEO paragraph */
.nine-structure__geo {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
}

.nine-structure__geo p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .nine-structure__upgrade-box {
    flex-direction: column;
  }
}

/* ============================================================
   S4 — TECHNICAL SPECIFICATIONS
   ============================================================ */

.nine-specs {
  padding: var(--sp-7) var(--sp-5);
}

.nine-specs__machine-img {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-5);
  aspect-ratio: 21 / 9;
  background: var(--gray-50);
}

.nine-specs__machine-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nine-specs__table-scroll {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--sp-2);
}

.nine-specs__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: #fff;
}

.nine-specs__table thead tr {
  background: var(--charcoal);
}

.nine-specs__table th {
  padding: 13px 18px;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.nine-specs__th-note {
  font-weight: 400;
  opacity: 0.60;
  font-size: 10px;
  margin-left: 4px;
}

.nine-specs__table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--gray-50);
  color: var(--gray-600);
  vertical-align: middle;
  font-family: 'DM Mono', monospace;
  font-size: var(--text-xs);
}

.nine-specs__table tr:last-child td {
  border-bottom: none;
}

.nine-specs__table tr:hover td {
  background: var(--gray-50);
}

.nine-specs__model {
  font-weight: 700;
  color: var(--gray-800);
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
}

.nine-specs__infer {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-400);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-sm);
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
}

.nine-specs__footnote {
  font-size: var(--text-xs);
  color: var(--gray-400);
  line-height: 1.65;
  margin: 0 0 var(--sp-5) 0;
}

.nine-specs__footnote a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Shared specs grid */
.nine-specs__shared {
  margin-top: var(--sp-5);
}

.nine-specs__shared h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 var(--sp-3) 0;
}

.nine-specs__shared-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}

.nine-specs__shared-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nine-specs__shared-label {
  font-size: var(--text-xs);
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nine-specs__shared-value {
  font-family: 'DM Mono', monospace;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
}

/* ============================================================
   S5 — WHO THIS IS RIGHT FOR
   ============================================================ */

.nine-who {
  padding: var(--sp-7) var(--sp-5);
}

.nine-who__profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.nine-who__card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4);
}

.nine-who__card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-2);
}

.nine-who__card--fit .nine-who__card-icon {
  background: var(--green-bg);
  color: var(--green-fg);
}

.nine-who__card--consider .nine-who__card-icon {
  background: var(--brand-tint);
  color: var(--brand);
}

.nine-who__card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 var(--sp-2) 0;
}

.nine-who__card ul {
  list-style: none;
  margin: 0 0 var(--sp-3) 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.nine-who__card ul li {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  padding-left: var(--sp-2);
  position: relative;
}

.nine-who__card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* Comparison table */
.nine-who__compare {
  margin-top: var(--sp-5);
}

.nine-who__compare h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 var(--sp-3) 0;
}

.nine-who__compare-scroll {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
}

.nine-who__compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: #fff;
}

.nine-who__compare-table thead tr {
  background: var(--charcoal);
}

.nine-who__compare-table th {
  padding: 12px 18px;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.nine-who__compare-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-50);
  color: var(--gray-600);
  vertical-align: top;
  line-height: 1.55;
}

.nine-who__compare-table tr:last-child td {
  border-bottom: none;
}

.nine-who__compare-table td:first-child {
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
}

.nine-who__compare-table tr:hover td {
  background: var(--gray-50);
}

.nine-who__compare-note {
  font-size: var(--text-xs);
  color: var(--gray-400);
  line-height: 1.65;
  margin: var(--sp-2) 0 0 0;
  font-style: italic;
}

/* ============================================================
   S6 — RUNNING THIS LINE
   ============================================================ */

.nine-running {
  padding: var(--sp-7) var(--sp-5);
}

.nine-running__hero-img {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-5);
  aspect-ratio: 21 / 9;
  background: var(--gray-50);
}

.nine-running__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nine-running__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.nine-running__block {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4);
}

.nine-running__block-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-tint);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: var(--sp-2);
}

.nine-running__block h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 var(--sp-2) 0;
}

.nine-running__block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nine-running__block ul li {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  padding-left: var(--sp-2);
  position: relative;
}

.nine-running__block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}

/* ============================================================
   S7 — BUILD STANDARD (section-dark)
   ============================================================ */

.nine-build {
  padding: var(--sp-7) var(--sp-5);
}

/* Hardware cards grid — dark surface components */
.nine-build__cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.nine-build__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nine-build__card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 25, 32, 0.40);
  background: rgba(255, 255, 255, 0.09);
}

.nine-build__part-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.nine-build__part-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nine-build__card:hover .nine-build__part-img img {
  transform: scale(1.05);
}

.nine-build__card-icon {
  width: 36px;
  height: 36px;
  background: rgba(215, 25, 32, 0.15);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-mid);
  margin: var(--sp-2) var(--sp-2) 0 var(--sp-2);
}

.nine-build__card-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
  padding: var(--sp-1) var(--sp-2) 0 var(--sp-2);
}

.nine-build__card-value {
  font-family: 'DM Mono', monospace;
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  padding: 4px var(--sp-2) 0 var(--sp-2);
  line-height: 1.3;
}

.nine-build__card-desc {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  padding: var(--sp-1) var(--sp-2) var(--sp-2) var(--sp-2);
  margin: 0;
  flex: 1;
}

/* FAT block */
.nine-build__fat {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-5);
  align-items: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.nine-build__fat-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.nine-build__fat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nine-build__fat-content {
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 0;
}

.nine-build__fat-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  margin: 0 0 var(--sp-2) 0;
}

.nine-build__fat-content p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
  margin: 0 0 var(--sp-3) 0;
}

/* Credentials — dark surface (NOT .cred-item) */
.nine-build__fat-creds {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.nine-build__cred {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}

.nine-build__cred-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-mid);
  flex-shrink: 0;
}

.nine-build__cred-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.nine-build__cred-desc {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.5;
  margin-top: 2px;
}

/* ============================================================
   S8 — AFTER-SALES
   ============================================================ */

.nine-aftersales {
  padding: var(--sp-7) var(--sp-5);
}

.nine-aftersales__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.nine-aftersales__item {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nine-aftersales__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.nine-aftersales__item-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-tint);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: var(--sp-2);
}

.nine-aftersales__item h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 var(--sp-1) 0;
}

.nine-aftersales__item p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.70;
  margin: 0;
}

.nine-aftersales__cta {
  margin-top: var(--sp-5);
  text-align: center;
}

/* ============================================================
   S9 — RELATED CONFIGURATIONS
   ============================================================ */

.nine-related {
  padding: var(--sp-7) var(--sp-5);
}

.nine-related__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.nine-related__card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nine-related__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.nine-related__card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--gray-50);
  margin-bottom: var(--sp-1);
}

.nine-related__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nine-related__card:hover .nine-related__card-img img {
  transform: scale(1.04);
}

.nine-related__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  background: var(--brand-tint);
  color: var(--brand);
  width: fit-content;
}

.nine-related__badge--down2 {
  background: var(--gray-50);
  color: var(--gray-600);
  border: 1px solid var(--gray-100);
}

.nine-related__badge--hub {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.70);
}

.nine-related__layers {
  font-family: 'DM Mono', monospace;
  font-size: 36px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.nine-related__card h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
}

.nine-related__card p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ============================================================
   S10 — FAQ
   ============================================================ */

.nine-faq {
  padding: var(--sp-7) var(--sp-5);
}

.nine-faq__list {
  margin-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  max-width: 860px;
}

.nine-faq__item {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.nine-faq__item[open] {
  border-color: rgba(215, 25, 32, 0.25);
}

/* Remove native marker */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }

.nine-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
}

.nine-faq__q:hover {
  background: var(--gray-50);
  color: var(--brand);
}

.nine-faq__item[open] .nine-faq__q {
  color: var(--brand);
  background: var(--brand-subtle);
  border-bottom: 1px solid rgba(215, 25, 32, 0.10);
}

.nine-faq__q:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nine-faq__chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.25s ease;
}

.nine-faq__item[open] .nine-faq__chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.nine-faq__a {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--gray-50);
}

.nine-faq__a p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.75;
  margin: 0 0 var(--sp-2) 0;
}

.nine-faq__a p:last-child {
  margin-bottom: 0;
}

.nine-faq__a ul {
  margin: var(--sp-1) 0 var(--sp-2) 0;
  padding-left: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nine-faq__a ul li {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
}

.nine-faq__a strong {
  color: var(--gray-800);
  font-weight: 600;
}

/* ============================================================
   S11 — FINAL CTA (section-dark)
   ============================================================ */

.nine-cta {
  padding: var(--sp-8) var(--sp-5);
}

.nine-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}

.nine-cta__content .section-title {
  display: block;
  margin-bottom: var(--sp-2);
}

.nine-cta__content h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 var(--sp-3) 0;
}

.nine-cta__content h2 em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.38);
}

.nine-cta__content p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
  margin: 0 0 var(--sp-2) 0;
}

.nine-cta__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

.nine-cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-start;
}

.nine-cta__contact {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.40);
  margin-top: var(--sp-1);
}

.nine-cta__contact a {
  color: var(--brand-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.nine-cta__contact a:hover {
  color: #fff;
}

/* ============================================================
   RESPONSIVE — 960px
   ============================================================ */

@media (max-width: 960px) {

  .nine-hero__trust {
    width: 100%;
    justify-content: space-around;
  }

  .nine-hero__custom-notice {
    max-width: 100%;
  }

  .nine-produces__grid {
    grid-template-columns: 1fr;
  }

  .nine-structure__svg-scroll {
    overflow-x: auto;
  }

  .nine-specs__shared-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nine-who__profiles {
    grid-template-columns: 1fr;
  }

  .nine-running__grid {
    grid-template-columns: 1fr;
  }

  .nine-build__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .nine-build__fat {
    grid-template-columns: 1fr;
  }

  .nine-build__fat-content {
    padding: var(--sp-4);
  }

  .nine-aftersales__grid {
    grid-template-columns: 1fr;
  }

  .nine-related__cards {
    grid-template-columns: 1fr;
  }

  .nine-cta__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .nine-faq__list {
    max-width: 100%;
  }
}

/* ============================================================
   RESPONSIVE — 600px
   ============================================================ */

@media (max-width: 600px) {

  .nine-hero__trust {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
    padding: var(--sp-3);
  }

  .nine-hero__trust-divider {
    display: none;
  }

  .nine-hero__trust-item {
    flex-direction: row;
    align-items: baseline;
    gap: var(--sp-1);
    padding: 0;
  }

  .nine-hero__cta-group {
    flex-direction: column;
    width: 100%;
  }

  .nine-hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .nine-specs__shared-grid {
    grid-template-columns: 1fr;
  }

  .nine-build__cards {
    grid-template-columns: 1fr;
  }

  .nine-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
