/* ============================================================
   NunX-Tec · 5RT landing — design system 2026-11
   Language: engineering catalog — hairline rules, mono labels,
   warm paper, deep forest ink, one acid-green signal color.
   ============================================================ */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-extrabold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #132119;
  --deep: #0a2318;
  --deep-2: #0e2f21;
  --forest: #14503a;
  --signal: #2fe673;
  --signal-soft: #b9f5c9;
  --signal-pale: #e6f7e4;
  --paper: #f5f4ee;
  --paper-2: #edeee4;
  --white: #ffffff;
  --line: #dbdbd0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --muted: #57665c;
  --muted-dark: #9fb0a4;
  --blue: #1a4a8a;
  --blue-pale: #eef4fb;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --font: "Manrope", "Noto Sans", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Thai", "Noto Sans Arabic", system-ui, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sticky-h: 72px;
  --fs-body: 17px;
  --fs-small: 13.5px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--deep); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--sticky-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--forest); }
button, input, select { font: inherit; }
em { font-style: normal; font-weight: 700; }

.page { overflow: clip; background: var(--paper); }
.shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--forest);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--signal);
}
.eyebrow.light { color: var(--signal-soft); }

.section-title {
  max-width: 860px;
  margin: 16px 0 0;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.section-title .muted { color: #86927f; }
.section-lead {
  max-width: 44ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.65;
}
.section-lead a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footnote {
  margin: 16px 0 0;
  max-width: 78ch;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.section { padding: 104px 0; }
.section.band { background: var(--paper-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--signal);
  color: var(--deep);
  box-shadow: 0 10px 26px rgba(47, 230, 115, 0.25);
}
.btn-primary:hover { background: #52f08d; color: var(--deep); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- topbar ---------- */
.topbar {
  position: absolute;
  z-index: 30;
  inset-inline: 0;
  top: 0;
  color: var(--white);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
/* desktop: sticky topbar so the WhatsApp quote button is always one click away */
@media (min-width: 641px) {
  html { scroll-padding-top: 76px; }
  .topbar {
    position: fixed;
    z-index: 40;
    transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }
  .topbar-inner { transition: padding 0.25s var(--ease); }
  .topbar.is-scrolled {
    background: rgba(10, 35, 24, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  }
  .topbar.is-scrolled .topbar-inner { padding: 9px 0; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-inline-end: auto; }
.brand img { height: 34px; width: auto; border-radius: 7px; }
.brand-name { color: var(--white); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 118px 0 56px;
  background:
    linear-gradient(rgba(47, 230, 115, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 230, 115, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse 70% 55% at 78% 12%, rgba(47, 230, 115, 0.14), transparent 60%),
    linear-gradient(168deg, #0a2318 0%, #0e3524 52%, #071710 100%);
  background-size: 56px 56px, 56px 56px, auto, auto;
  color: var(--white);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  color: var(--signal);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(47, 230, 115, 0.8);
}
.hero-title {
  margin: 22px 0 0;
  max-width: 15ch;
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
}
.hero-title .accent { color: var(--signal); }
.hero-lead {
  max-width: 46ch;
  margin: 22px 0 0;
  color: var(--muted-dark);
  font-size: var(--fs-body);
  line-height: 1.65;
}
.hero-lead em, .hero-lead strong { color: var(--white); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-condition {
  margin: 20px 0 0;
  color: var(--signal-soft);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.hero-condition strong { color: var(--white); font-weight: 700; }
.hero-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  line-height: 1.7;
}
.hero-figure {
  margin: 0;
  padding: 14px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
}
.hero-figure picture, .hero-figure .hero-photo { display: block; width: 100%; }
.hero-figure .hero-photo {
  aspect-ratio: 4 / 5;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--r-md);
}
.hero-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 0 4px 2px;
  color: var(--muted-dark);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
}
.hero-fig-tag {
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(47, 230, 115, 0.14);
  border: 1px solid rgba(47, 230, 115, 0.35);
  color: var(--signal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* claim bars */
.claim-viz { margin: 30px 0 4px; max-width: 520px; display: grid; gap: 14px; }
.claim-row { display: grid; grid-template-columns: 92px 1fr; grid-template-areas: "num track" "num label"; column-gap: 16px; align-items: center; }
.claim-num { grid-area: num; font-size: 52px; font-weight: 800; line-height: 1; color: var(--white); letter-spacing: -0.04em; }
.claim-num small, .claim-chip small { font-size: 0.38em; font-weight: 700; margin-inline-start: 4px; letter-spacing: 0; opacity: 0.75; }
.claim-num.accent { color: var(--signal); }
.claim-track { grid-area: track; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.claim-bar { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.2s var(--ease); }
.claim-bar.energy { background: #8ba296; }
.claim-bar.dehum { background: linear-gradient(90deg, var(--signal), var(--signal-soft)); transition-delay: 0.25s; }
.claim-viz.is-in .claim-bar { width: var(--w); }
.claim-label { grid-area: label; color: var(--muted-dark); font-size: var(--fs-small); margin-top: 6px; }
.claim-chip { justify-self: start; margin-top: 4px; padding: 9px 18px; border-radius: 8px; background: var(--signal); color: var(--deep); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
@media (prefers-reduced-motion: reduce) { .claim-bar { transition: none; width: var(--w); } }

/* hero stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat-chip {
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-inline-end: 1px solid var(--line-dark);
}
.stat-chip:last-child { border-inline-end: 0; }
.stat-chip.highlight { background: rgba(47, 230, 115, 0.1); }
.stat-chip strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--signal-soft);
}
.stat-chip span {
  display: block;
  margin-top: 8px;
  color: var(--muted-dark);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* proof strip */
.proof-strip { background: var(--deep); padding: 0 0 72px; margin-top: -1px; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proof-grid figure { margin: 0; padding: 0; background: none; border: 0; }
.proof-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); display: block; }
.proof-grid figcaption { margin-top: 10px; color: var(--muted-dark); font-size: var(--fs-small); }

/* ---------- value ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
}
.value-card {
  padding: 30px 28px 34px;
  border-inline-end: 1px solid var(--line);
}
.value-card:last-child { border-inline-end: 0; }
.value-num {
  display: block;
  font-size: clamp(38px, 3.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--forest);
}
.value-card h3 {
  margin: 18px 0 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.value-card p strong, .value-card p em { color: var(--ink); }

/* ---------- cards (generic) ---------- */
.card {
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.card.dark {
  background: var(--deep);
  color: var(--white);
  border-color: transparent;
}
.card.dark p, .card.dark li { color: var(--muted-dark); }
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(47, 230, 115, 0.14);
  border: 1px solid rgba(47, 230, 115, 0.3);
  color: var(--signal-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- pain ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.pain-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.pain-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pain-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--signal-pale);
  color: var(--forest);
}
.pain-line { margin: 0; font-size: var(--fs-body); font-weight: 700; line-height: 1.45; color: var(--ink); }
.pain-result { margin: 0; font-size: 15px; line-height: 1.55; color: var(--forest); }
.pain-result::before { content: "→ "; color: var(--signal); font-weight: 800; }
[dir="rtl"] .pain-result::before { content: "← "; }
.pain-num {
  margin: auto 0 0;
  padding-top: 10px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pain-details summary {
  cursor: pointer;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--forest);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.pain-details[open] summary { margin-bottom: 12px; }
.pain-details .solve-card { display: block; padding: 0; border: 0; background: none; box-shadow: none; }
.pain-details .solve-card .solve-tag { display: none; }
.pain-details .solve-card h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 14px 0 5px;
  color: var(--forest);
}
.pain-details .solve-card p { font-size: 14.5px; line-height: 1.65; margin: 0; color: var(--muted); }
.pain-details .solve-arrow { display: none; }
.solve-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--forest);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- how / diagram ---------- */
.diag {
  margin: 44px 0 0;
  padding: 34px 28px 22px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(rgba(47, 230, 115, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 230, 115, 0.05) 1px, transparent 1px),
    var(--deep);
  background-size: 40px 40px, 40px 40px, auto;
  border: 1px solid #143b2b;
}
.diag svg { display: block; width: 100%; height: auto; }
.diag .footnote { color: var(--muted-dark); margin-top: 10px; }
.diag-air { stroke: #7d9084; stroke-width: 2.5; color: #7d9084; }
.diag-node rect {
  fill: var(--deep-2);
  stroke: #2a6b4c;
  stroke-width: 1.5;
  rx: 14px;
}
.diag-t { fill: var(--white); font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: 0.08em; }
.diag-s { fill: var(--signal-soft); font-family: var(--mono); font-size: 12.5px; }
.diag-hp, .diag-hp2 {
  fill: none;
  stroke: var(--signal);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1 9;
}
.diag-hp-label {
  fill: var(--signal);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.diag-state { fill: var(--white); font-family: var(--mono); font-size: 15px; font-weight: 700; }
.diag-state-out { fill: var(--signal); }
.diag-cap { fill: #7d9084; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.mode-list { margin: 0; padding-inline-start: 18px; color: var(--muted-dark); font-size: 14px; line-height: 1.6; }
.mode-list li { margin: 6px 0; }
.mode-list strong { color: var(--white); }

/* ---------- comparison ---------- */
.diff-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 6px; }
.diff-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 15px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--forest);
}
.diff-badge small { font-size: 11px; font-weight: 600; color: var(--muted); }
.diff-badge.up { background: var(--signal-pale); border-color: #bfe3c6; }
.diff-badge.down { background: var(--blue-pale); border-color: #cfdeef; color: var(--blue); }
.diff-badge.cool { background: var(--deep); color: var(--signal-soft); border-color: transparent; }
.diff-badge.cool small { color: var(--muted-dark); }

.table-caption {
  margin: 30px 0 10px;
  color: var(--forest);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.table-wrap {
  margin-top: 8px;
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--white);
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  background: var(--deep);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: 0; }
.compare-table.compact td, .compare-table.compact th { padding: 12px 14px; }
.compare-table.wide { min-width: 980px; font-size: 13.5px; }
.compare-table.wide th, .compare-table.wide td { padding: 12px; }
.compare-table thead th.ours { background: var(--forest); color: var(--signal-soft); }
.compare-table thead th.diff-col { background: #122f23; color: #d9f2c8; }
.compare-table td.ours { background: rgba(47, 230, 115, 0.07); }
.compare-table .diff-col { background: rgba(230, 247, 228, 0.5); font-weight: 600; }
.compare-table .muted-cell { color: var(--muted); font-weight: 500; }
.compare-table .th-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-soft);
  opacity: 0.85;
}
.compare-table tbody th[scope="row"] {
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 12.5px;
  min-width: 160px;
  border-bottom: 1px solid var(--line);
}
.compare-table .cfz { color: #8a958d; background: #f4f4ee; }
.compare-table thead th.cfz { color: #b9c2bb; background: #233129; }
.compare-table tr.row-key th[scope="row"], .compare-table tr.row-key td { font-weight: 800; }
.compare-table tr.row-key td.ours { background: rgba(47, 230, 115, 0.16); color: var(--ink); }
.compare-table tr.row-key th[scope="row"] { box-shadow: inset 3px 0 0 var(--signal); }
[dir="rtl"] .compare-table tr.row-key th[scope="row"] { box-shadow: inset -3px 0 0 var(--signal); }
.compare-table .row-highlight td { background: var(--signal-pale); font-weight: 600; }

.delta {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.delta.up { background: var(--signal); color: var(--deep); }
.delta.down { background: var(--blue); color: #fff; }
.delta.cool { background: var(--deep); color: var(--signal-soft); }
.delta-note { display: inline-block; margin-inline-start: 5px; color: var(--muted); font-size: 11px; font-weight: 500; }

.table-wrap.sticky-first { position: relative; }
.table-wrap.sticky-first table tbody th[scope="row"],
.table-wrap.sticky-first table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(19, 33, 25, 0.07);
}
.table-wrap.sticky-first table thead th:first-child { z-index: 3; background: var(--deep); }

/* mobile stacked compare cards */
.compare-cards { display: none; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.compare-card { padding: 16px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); }
.compare-card.highlight { background: var(--deep); color: var(--white); border-color: transparent; }
.compare-card.highlight .was { color: var(--muted-dark); }
.compare-card.highlight .now { color: var(--signal-soft); }
.compare-card h3 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
}
.compare-card.highlight h3 { color: var(--signal-soft); }
.compare-card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.compare-card .was { text-decoration: line-through; opacity: 0.7; }
.compare-card .now { color: var(--forest); font-weight: 800; }
.card-delta { margin-top: 8px !important; font-family: var(--mono); font-weight: 700; font-size: 14px !important; }
.card-delta.up { color: #127a42; }
.card-delta.down { color: var(--blue); }
.card-delta.cool { color: var(--signal-soft); }

.compare-mobile { display: none; }

/* ---------- case study ---------- */
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.metric { padding: 26px 24px; background: var(--white); border-inline-end: 1px solid var(--line); }
.metric:last-child { border-inline-end: 0; }
.metric.accent { background: var(--deep); color: var(--white); border-color: transparent; }
.metric.accent span { color: var(--muted-dark); }
.metric strong { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.04em; color: var(--forest); }
.metric.accent strong { color: var(--signal); }
.metric span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.photo-grid figure { margin: 0; overflow: hidden; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); }
.photo-grid img { width: 100%; height: 180px; object-fit: cover; }
.photo-grid figcaption { padding: 10px 12px; color: var(--muted); font-size: 12px; }

/* ---------- lab case ---------- */
.lab-case { background: var(--paper-2); }
.lab-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 36px 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.lab-stat { min-width: 0; padding: 28px 26px; background: var(--white); border-inline-end: 1px solid var(--line); }
.lab-stat:last-child { border-inline-end: 0; }
.lab-stat > strong { display: block; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; color: var(--forest); overflow-wrap: anywhere; }
.lab-stat small { display: block; font-size: 20px; margin-top: 6px; }
.lab-stat p { margin: 14px 0 0; color: var(--muted); overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.6; }
.lab-stat-accent { background: var(--deep); }
.lab-stat-accent > strong, .lab-stat-accent .lab-saving { color: var(--signal); }
.lab-stat-accent p { color: var(--muted-dark); }
.lab-saving { font-weight: 800; }
.lab-power-bars { display: grid; gap: 8px; margin-top: 16px; direction: ltr; }
.lab-power-bars span { width: var(--bar); height: 10px; min-width: 8px; background: var(--signal); border-radius: 6px; }
.lab-power-bars span + span { background: #3a564a; }
.lab-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lab-photos figure { min-width: 0; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.lab-photos picture { display: block; background: #e4e6dd; }
.lab-photos img { display: block; width: 100%; height: 490px; object-fit: contain; }
.lab-photos figcaption { padding: 16px 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }

/* ---------- cases grid ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  color: inherit;
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease);
}
.case-card:hover { transform: translateY(-3px); border-color: var(--forest); color: inherit; }
.case-thumb { aspect-ratio: 16 / 10; background: #e6e7de; overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.case-cat { color: var(--forest); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.case-body h3 { margin: 0; font-size: 16.5px; letter-spacing: -0.02em; line-height: 1.35; }
.case-body p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; flex: 1; }
.case-cta { margin-top: 8px; color: var(--forest); font-size: 13px; font-weight: 700; }
.cases-actions { display: flex; justify-content: center; margin-top: 32px; }
.cases-actions .btn-primary { min-width: min(320px, 100%); }

/* ---------- models ---------- */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.model .model-tag {
  margin: 0 0 14px;
  padding: 6px 10px;
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--forest);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.model ul { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px; }

/* ---------- applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 36px; }
.app-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14.5px;
}
.app-item span:first-child { font-size: 19px; }

/* ---------- quote form ---------- */
.quote { background: var(--paper-2); }
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.quote-points { margin: 26px 0 0; padding-inline-start: 18px; color: var(--muted); line-height: 1.8; }
.quote-points a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--forest); }
.form input, .form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.form input:focus, .form select:focus {
  outline: 2px solid rgba(47, 230, 115, 0.4);
  border-color: var(--signal);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-note code { font-family: var(--mono); font-size: 11px; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- faq ---------- */
.faq-list { margin-top: 32px; display: grid; gap: 10px; }
.faq-list details { border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); padding: 2px 20px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--forest); font-weight: 800; }
[dir="rtl"] .faq-list summary::after { float: left; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 90ch; }

/* ---------- footer ---------- */
.footer { padding: 56px 0 110px; background: var(--deep); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 32px; }
.footer-logo { border-radius: 8px; width: 46px; height: auto; margin-bottom: 14px; }
.footer-name { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.footer-address, .footer p { margin: 0 0 8px; color: var(--muted-dark); font-size: 13px; line-height: 1.6; }
.footer a { color: var(--signal-soft); }
.footer-fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.footer-fine p { margin: 0; color: var(--muted-dark); font-size: 12px; line-height: 1.6; }

/* ---------- sticky cta ---------- */
.sticky-cta {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 35, 24, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-dark);
}
.sticky-cta .btn { width: 100%; }

/* ---------- lang switch / i18n ---------- */
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; white-space: nowrap; }
.lang-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 6px 28px 6px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  max-width: 11rem;
  cursor: pointer;
}
.lang-select:focus { outline: 2px solid var(--signal); outline-offset: 2px; }

html[dir="rtl"] body, body[data-dir="rtl"] { direction: rtl; text-align: right; }
html[dir="rtl"] .lang-select { background-position: 14px 55%, 9px 55%; padding: 6px 12px 6px 28px; }
html[dir="rtl"] .diff-badge, html[dir="rtl"] .btn, html[dir="rtl"] .case-cta, html[dir="rtl"] .eyebrow { letter-spacing: 0; }
html[dir="rtl"] .compare-table th, html[dir="rtl"] .compare-table td { text-align: right; }
html[dir="rtl"] .table-wrap.sticky-first table tbody th[scope="row"],
html[dir="rtl"] .table-wrap.sticky-first table thead th:first-child { left: auto; right: 0; box-shadow: -4px 0 12px rgba(19,33,25,0.07); }

/* CJK / Arabic optical tweaks */
html[lang^="zh"] body, html[lang^="ja"] body, html[lang^="ko"] body, html[lang^="th"] body, html[lang="ar"] body {
  font-family: "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", "Noto Sans Thai", "Noto Sans Arabic", "Manrope", system-ui, sans-serif;
  line-height: 1.65;
}
html[lang="zh-Hans"] body { font-family: "Noto Sans SC", "Manrope", system-ui, sans-serif; }
html[lang="zh-Hant"] body { font-family: "Noto Sans TC", "Manrope", system-ui, sans-serif; }
html[lang="ja"] body { font-family: "Noto Sans JP", "Manrope", system-ui, sans-serif; }
html[lang="ko"] body { font-family: "Noto Sans KR", "Manrope", system-ui, sans-serif; }
html[lang="th"] body { font-family: "Noto Sans Thai", "Manrope", system-ui, sans-serif; }
html[lang="ar"] body { font-family: "Noto Sans Arabic", "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif; }
html[lang^="zh"] .hero-title, html[lang^="zh"] .section-title,
html[lang^="ja"] .hero-title, html[lang^="ja"] .section-title,
html[lang^="ko"] .hero-title, html[lang^="ko"] .section-title { letter-spacing: -0.01em; line-height: 1.18; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .quote-grid, .footer-grid, .how-grid, .model-grid, .value-grid { grid-template-columns: 1fr; }
  .value-card, .metric, .lab-stat { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .value-card:last-child, .metric:last-child, .lab-stat:last-child { border-bottom: 0; }
  .case-metrics, .lab-stats { grid-template-columns: 1fr; }
  .pain-grid, .cases-grid { grid-template-columns: 1fr 1fr; }
  .app-grid, .photo-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-chip:nth-child(2n) { border-inline-end: 0; }
  .stat-chip:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .hero { padding-top: 100px; }
  .hero-title { max-width: 20ch; }
  .section { padding: 72px 0; }
  .proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .compare-cards { display: grid; }
  .compare-table.wide { min-width: 860px; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1200px); }
  .pain-grid, .cases-grid, .app-grid, .photo-grid, .form-row, .stats-row { grid-template-columns: 1fr; }
  .stat-chip { border-inline-end: 0; border-bottom: 1px solid var(--line-dark); }
  .stat-chip:last-child { border-bottom: 0; }
  .photo-grid img { height: 220px; }
  .btn-secondary { width: 100%; }
  .sticky-cta { display: block; }
  .topbar .btn-ghost { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .claim-num { font-size: 40px; }
  .claim-row { grid-template-columns: 72px 1fr; }
  .claim-chip { font-size: 21px; }
  .hero-figure .hero-photo { aspect-ratio: 4 / 4.6; }
  .diag { padding: 20px 12px 14px; margin-inline: -6px; }
  .lab-photos { grid-template-columns: 1fr; }
  .lab-photos img { height: auto; max-height: 620px; }
  .section { padding: 60px 0; }
  .proof-strip { padding-bottom: 56px; }
}

/* JS-generated mobile compare (compareMobile) */
@media (max-width: 640px) {
  #compareTable1 { display: none; }
  .compare-mobile:not([hidden]) { display: grid; gap: 16px; margin-top: 16px; }
  .cm-card { border-radius: var(--r-md); padding: 20px; border: 1px solid var(--line); }
  .cm-card.cfz { background: #f4f4ee; color: #6c7771; }
  .cm-card.ours { background: var(--white); border: 2px solid var(--signal); }
  .cm-card h3 { margin: 0 0 12px; font-size: var(--fs-body); }
  .cm-card.ours h3 { color: var(--forest); }
  .cm-card dl { margin: 0; display: grid; gap: 10px; }
  .cm-card .cm-item { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .cm-card .cm-item:last-child { border-bottom: 0; }
  .cm-card dt { font-size: var(--fs-small); color: var(--muted); }
  .cm-card dd { margin: 0; font-size: var(--fs-body); }
  .cm-card .cm-item.key dd { font-weight: 800; }
  .cm-card.ours .cm-item.key { background: rgba(47, 230, 115, 0.12); margin: 0 -10px; padding: 8px 10px; border-radius: 8px; border: 0; }
  .cm-card .cm-diff { font-size: var(--fs-small); }
}
