/* ==========================================================================
   明眸 ERP (glasses-saas.com) — Editorial Enterprise SaaS Design System v2
   Restrained Swiss-Grid Aesthetics · Pure Neutrals + Single Optical Accent
   ========================================================================== */

:root {
  /* Palette: 95% crisp neutral + 1 surgical accent (zero rainbow confetti) */
  --bg: #ffffff;
  --bg-paper: #f7f7f8;
  --bg-hover: #f2f3f5;
  --bg-dark: #0e0f12;
  --bg-dark-card: #16181d;

  /* Ink */
  --ink: #111113;
  --ink-2: #3f434a;
  --ink-3: #6c727f;
  --ink-4: #9aa0ab;
  --ink-inv: #f4f5f7;
  --ink-inv-2: #a1a7b3;
  --ink-inv-3: #6d7380;

  /* Single Precision Optical Brand Accent */
  --accent: #0c6b58;
  --accent-hover: #095445;
  --accent-soft: #eef7f5;
  --accent-line: #c7e5de;

  /* Hairlines */
  --line: #e6e8ec;
  --line-strong: #d3d7df;
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-dark-strong: rgba(255, 255, 255, 0.18);

  /* Minimal Shadows (only for primary focal surfaces) */
  --shadow-frame: 0 1px 2px rgba(17, 17, 19, 0.04), 0 24px 56px -24px rgba(17, 17, 19, 0.14);
  --shadow-modal: 0 24px 64px -16px rgba(17, 17, 19, 0.28);

  /* Typography — China-native crisp sans + tabular monospace */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;

  /* Layout & Motion */
  --container: 1180px;
  --gutter: 24px;
  --nav-h: 64px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Container & Vertical Rhythm */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 96px;
  position: relative;
}
.section--paper {
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark {
  background: var(--bg-dark);
  color: var(--ink-inv);
}

/* Editorial Section Headings (No pill badge spam!) */
.kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section--dark .kicker { color: #5eead4; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-head__main { max-width: 760px; }
.section-title {
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.section--dark .section-title { color: var(--ink-inv); }
.section-desc {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
.section--dark .section-desc { color: var(--ink-inv-2); }

/* Restraint Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
              color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 180ms var(--ease); }
.btn:hover .ico-ext { transform: translate(1.5px, -1.5px); }
.btn:hover .ico-arr { transform: translateX(2px); }

.btn--sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn--lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 8px; }

.btn--solid {
  background: var(--ink);
  color: #ffffff;
}
.btn--solid:hover { background: #27272a; }

.btn--outline {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--outline:hover {
  border-color: var(--ink);
  background: var(--bg-paper);
}

.btn--ghost {
  color: var(--ink-2);
  padding-inline: 12px;
}
.btn--ghost:hover {
  color: var(--ink);
  background: var(--bg-hover);
}

.btn--dark-solid {
  background: #ffffff;
  color: var(--ink);
}
.btn--dark-solid:hover { background: #e4e4e7; }

.btn--dark-outline {
  background: transparent;
  color: var(--ink-inv);
  border: 1px solid var(--line-dark-strong);
}
.btn--dark-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}

/* Tasteful Scroll Reveal (subtle, single-pass, zero bounce) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-paper); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
}
.nav-toggle svg { width: 18px; height: 18px; }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 20px var(--gutter) 32px;
  overflow-y: auto;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer__links { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.mobile-drawer__links a {
  padding: 12px 10px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-drawer__actions { display: grid; gap: 10px; }

/* ==========================================================================
   Hero — Pure Typographic Authority + Matte Product Stage
   ========================================================================== */
.hero {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-bottom: 1px solid var(--line);
}

.hero-header {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.release-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 24px;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.release-ribbon:hover { border-color: var(--ink); color: var(--ink); }
.release-ribbon__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.release-ribbon__ver {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.release-ribbon__sep { color: var(--line-strong); }
.release-ribbon__go {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(2.15rem, 4.1vw, 3.35rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-lead {
  margin: 18px auto 0;
  max-width: 610px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink-3);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-subline {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-subline button {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.hero-subline button:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* Matte Product Showcase Stage */
.stage-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.segmented-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.segmented {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  padding: 4px;
  border-radius: 10px;
  background: #eceef2;
  border: 1px solid var(--line);
}
.segmented__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(17, 17, 19, 0.08);
  transition: transform 280ms var(--ease), width 280ms var(--ease);
  pointer-events: none;
}
.segmented__btn {
  position: relative;
  z-index: 1;
  padding: 7px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  border-radius: 7px;
  transition: color 180ms var(--ease);
  white-space: nowrap;
}
.segmented__btn.is-active { color: var(--ink); }

.stage-bezel {
  padding: 10px;
  border-radius: 18px;
  background: #f1f2f5;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-frame);
}
.stage-window {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.stage-bar {
  height: 40px;
  padding: 0 16px;
  background: #fbfbfc;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stage-dots { display: flex; gap: 6px; }
.stage-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d4d7de; }
.stage-url { font-size: 12px; color: var(--ink-3); }
.stage-open {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.stage-open:hover { text-decoration: underline; }

.stage-pane {
  display: none;
  animation: paneFade 220ms var(--ease);
}
.stage-pane.is-active { display: block; }
@keyframes paneFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mockup 1: Clean Airy ERP View (Light sidebar, zero dark clutter) */
.ui-erp {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) 316px;
  min-height: 416px;
}
.ui-erp__nav {
  background: #fafafa;
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ui-erp__brand {
  padding: 4px 10px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ui-erp__env { font-size: 11px; font-weight: 500; color: var(--accent); }
.ui-erp__item {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ui-erp__item.is-on {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.05);
}
.ui-erp__item em { font-style: normal; font-size: 11px; color: var(--ink-4); }

.ui-erp__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.ui-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.ui-kpi {
  padding: 12px 14px;
  background: #ffffff;
}
.ui-kpi + .ui-kpi { border-left: 1px solid var(--line); }
.ui-kpi__label { font-size: 11.5px; color: var(--ink-3); }
.ui-kpi__val { margin-top: 3px; font-size: 18px; font-weight: 700; color: var(--ink); }

.ui-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
}
.ui-table-hint { font-size: 11.5px; font-weight: 400; color: var(--ink-4); }

.ui-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ui-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.ui-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #f0f1f4;
  color: var(--ink-2);
}
.ui-table tbody tr { cursor: pointer; transition: background-color 120ms; }
.ui-table tbody tr:hover { background: #fafafa; }
.ui-table tbody tr.is-selected { background: var(--accent-soft); }
.ui-table tbody tr.is-selected td:first-child { color: var(--accent); font-weight: 600; }

.tag-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.tag-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
}
.tag-dot--active::before { background: var(--accent); }
.tag-dot--warn::before { background: #b45309; }

.ui-erp__detail {
  border-left: 1px solid var(--line);
  padding: 18px 18px;
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-kv {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.detail-kv__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.detail-kv__row span { color: var(--ink-3); flex-shrink: 0; }
.detail-kv__row strong { color: var(--ink); font-weight: 600; text-align: right; }

.proc-list { display: flex; flex-direction: column; gap: 6px; }
.proc-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-3);
}
.proc-row.is-done { color: var(--ink); border-color: var(--accent-line); background: var(--accent-soft); }
.proc-row.is-now { color: var(--ink); border-color: var(--ink); font-weight: 600; }

/* Mockup 2: Clean POS View */
.ui-pos {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  min-height: 416px;
}
.ui-pos__left { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.ui-pos__right {
  padding: 20px;
  border-left: 1px solid var(--line);
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.pos-rx { width: 100%; border-collapse: collapse; font-size: 12px; border: 1px solid var(--line); }
.pos-rx th, .pos-rx td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.pos-rx th { background: #fafafa; color: var(--ink-3); font-weight: 600; }
.pos-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.pos-line:last-child { border-bottom: 0; }
.pos-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.pos-pay-item {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 12px;
  color: var(--ink-3);
}
.pos-pay-item.is-on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.pos-checkout {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pos-checkout__amt { font-size: 24px; font-weight: 700; color: var(--ink); }

/* Mockup 3: Processing & GSP */
.ui-wms {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: 416px;
}
.ui-wms__col { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ui-wms__col + .ui-wms__col { border-left: 1px solid var(--line); background: #fcfcfd; }
.wms-counters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.wms-counter { padding: 12px 8px; text-align: center; background: #ffffff; }
.wms-counter + .wms-counter { border-left: 1px solid var(--line); }
.wms-counter strong { display: block; font-size: 18px; color: var(--ink); }
.wms-counter span { font-size: 11px; color: var(--ink-3); }
.gsp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.gsp-row:last-child { border-bottom: 0; }

/* Bottom Hero Metrics — Clean Architectural Typographic Bar */
.metrics-bar {
  max-width: 1120px;
  margin: 44px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.metric-cell strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.metric-cell span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ==========================================================================
   Section 2: Interactive Feature Explorer (Replaces 20-card wall!)
   ========================================================================== */
.explorer {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #ffffff;
  overflow: hidden;
}

.explorer-nav {
  background: var(--bg-paper);
  border-right: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.explorer-search {
  position: relative;
}
.explorer-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--ink-4);
  pointer-events: none;
}
.explorer-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 32px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  font-size: 13px;
  outline: none;
  transition: border-color 150ms;
}
.explorer-search input:focus { border-color: var(--ink); }

.explorer-tabs { display: flex; flex-direction: column; gap: 2px; }
.explorer-tab {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.explorer-tab:hover { color: var(--ink); background: rgba(17, 17, 19, 0.04); }
.explorer-tab.is-active {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.06);
}
.explorer-tab__num { font-size: 11.5px; color: var(--ink-4); }
.explorer-tab.is-active .explorer-tab__num { color: var(--accent); }

.explorer-panel {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 496px;
  min-width: 0;
}
.explorer-panel__head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.explorer-panel__head h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.explorer-panel__head p { margin-top: 6px; font-size: 14px; color: var(--ink-3); max-width: 580px; }
.explorer-role { font-size: 12px; font-weight: 600; color: var(--accent); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
  animation: paneFade 200ms var(--ease);
}
.cap-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.cap-item p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
}
.cap-item__meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-4);
}

.explorer-foot {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}
.explorer-foot strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Section 3: Optical Lifecycle & Cloud Architecture (Single Matte Dark Band)
   ========================================================================== */
.lifecycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 56px;
}
.life-step {
  text-align: left;
  padding: 24px 18px 24px 0;
  border-right: 1px solid var(--line-dark);
  padding-left: 18px;
  transition: background-color 180ms var(--ease);
}
.life-step:first-child { padding-left: 0; }
.life-step:last-child { border-right: 0; }
.life-step:hover, .life-step.is-active { background: rgba(255, 255, 255, 0.035); }
.life-step__no {
  display: block;
  font-size: 11.5px;
  color: var(--ink-inv-3);
  margin-bottom: 10px;
}
.life-step.is-active .life-step__no { color: #5eead4; }
.life-step h3 { font-size: 14.5px; font-weight: 600; color: var(--ink-inv); margin-bottom: 6px; }
.life-step p { font-size: 12.5px; line-height: 1.55; color: var(--ink-inv-2); }
.life-step__end {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-inv-3);
}

.arch-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.arch-col h3 { font-size: 17px; font-weight: 600; color: #ffffff; margin-bottom: 8px; }
.arch-col > p { font-size: 13.5px; line-height: 1.65; color: var(--ink-inv-2); margin-bottom: 16px; }
.arch-kv {
  border-top: 1px solid var(--line-dark);
}
.arch-kv li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 12.5px;
}
.arch-kv strong { color: var(--ink-inv); font-weight: 500; }
.arch-kv span { color: var(--ink-inv-2); text-align: right; }

/* ==========================================================================
   Section 4: Multi-Terminal Ecosystem & QR Download Hub
   ========================================================================== */
.terminals-grid {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #ffffff;
  overflow: hidden;
}

.terminals-web {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.web-cell {
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.web-cell + .web-cell { border-left: 1px solid var(--line); }
.web-cell__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.web-cell__label { font-size: 12px; font-weight: 600; color: var(--accent); }
.web-cell__url { font-size: 12px; color: var(--ink-4); }
.web-cell h3 { margin-top: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.web-cell p { margin-top: 8px; font-size: 14px; color: var(--ink-3); line-height: 1.65; }
.web-cell__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.web-cell__specs { font-size: 12.5px; color: var(--ink-3); }

.terminals-qr {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.qr-cell {
  padding: 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.qr-cell + .qr-cell { border-left: 1px solid var(--line); }
.qr-cell__tag { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.qr-cell h3 { margin-top: 8px; font-size: 17px; font-weight: 700; }
.qr-cell p { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); line-height: 1.65; }
.qr-points {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--ink-2);
}
.qr-points li {
  padding-left: 14px;
  position: relative;
}
.qr-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 1px;
  background: var(--ink-3);
}

/* Refined Enterprise QR Frame (No ugly dashed borders / dev debug strings) */
.qr-dock {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--bg-paper);
  border: 1px solid var(--line);
}
.qr-frame {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.qr-dock__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.qr-dock__link:hover { text-decoration: underline; }
.qr-frame__empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--ink-4);
}
.qr-frame__empty svg { width: 34px; height: 34px; }
.qr-frame__empty span { font-size: 10px; color: var(--ink-3); }
.qr-dock__title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.qr-dock__sub { margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }

/* ==========================================================================
   Section 5: myctest Release Changelog (Linear / Vercel Editorial Timeline)
   ========================================================================== */
.changelog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.scope-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.scope-tab {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  transition: background-color 140ms, color 140ms;
}
.scope-tab:hover { color: var(--ink); background: var(--bg-hover); }
.scope-tab.is-active { background: var(--ink); color: #ffffff; font-weight: 600; }

.release-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  padding-block: 36px;
  border-bottom: 1px solid var(--line);
}
.release-entry:last-child { border-bottom: 0; padding-bottom: 0; }

.release-rail__ver {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.release-rail__date {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
}
.release-rail__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.release-rail__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.release-rail__status--past { color: var(--ink-4); }

.release-lead {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 20px;
}
.change-list {
  border-top: 1px solid var(--line);
}
.change-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f1f4;
  align-items: baseline;
}
.change-row:last-child { border-bottom: 0; }
.change-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.change-kind {
  font-weight: 600;
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
}
.change-kind--feat { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.change-scope { color: var(--ink-4); }
.change-body strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.change-body p { margin-top: 3px; font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }

/* ==========================================================================
   Section 6: Editorial FAQ (Smooth Grid-Row Accordion)
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-btn {
  width: 100%;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.faq-btn svg {
  width: 16px;
  height: 16px;
  color: var(--ink-4);
  flex-shrink: 0;
  transition: transform 240ms var(--ease), color 160ms;
}
.faq-item.is-open .faq-btn svg { transform: rotate(45deg); color: var(--ink); }
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms var(--ease);
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel__inner {
  overflow: hidden;
}
.faq-panel__inner p {
  padding-bottom: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-3);
}

/* ==========================================================================
   Closing Band & Minimal Light Footer
   ========================================================================== */
.closing-strip {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}
.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.closing-inner h2 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.closing-inner p { margin-top: 8px; font-size: 15px; color: var(--ink-3); }
.closing-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.site-footer {
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
  padding: 56px 0 36px;
  color: var(--ink-2);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.25fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 260px;
  line-height: 1.65;
}
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-col button {
  font-size: 13.5px;
  color: var(--ink-3);
  transition: color 140ms;
  text-align: left;
}
.footer-col a:hover, .footer-col button:hover { color: var(--ink); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-4);
}
.footer-legal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--ink); }

/* ==========================================================================
   Modal & Toast
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 17, 19, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.is-open { display: flex; }
.modal-dialog {
  width: 100%;
  max-width: 490px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  animation: paneFade 180ms var(--ease);
}
.modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.modal-close:hover { background: var(--bg-paper); color: var(--ink); }
.modal-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.modal-link-box {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  transition: border-color 140ms;
}
.modal-link-box:hover { border-color: var(--ink); }
.modal-link-box strong { display: block; font-size: 13.5px; color: var(--ink); }
.modal-link-box span { font-size: 11.5px; color: var(--ink-3); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Legal Pages */
.legal-main { padding: 64px 0 88px; }
.legal-doc { max-width: 740px; margin: 0 auto; }
.legal-doc h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 12px; }
.legal-doc__lead { font-size: 15.5px; color: var(--ink-3); padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.legal-doc h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.legal-doc p { color: var(--ink-2); line-height: 1.8; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .ui-erp { grid-template-columns: 168px minmax(0, 1fr); }
  .ui-erp__detail { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .lifecycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .life-step { border-bottom: 1px solid var(--line-dark); padding-left: 18px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer-nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .explorer-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .explorer-tab { width: auto; flex-shrink: 0; white-space: nowrap; }
  .explorer-panel { padding: 24px 20px; min-height: auto; }

  .terminals-web, .terminals-qr, .arch-cols, .release-entry, .faq-grid, .ui-pos, .ui-wms {
    grid-template-columns: 1fr;
  }
  .web-cell + .web-cell, .qr-cell + .qr-cell, .ui-pos__right, .ui-wms__col + .ui-wms__col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .metrics-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 58px; }
  .section { padding-block: 60px; }
  .hero { padding: 36px 0 48px; }
  .release-ribbon { flex-wrap: wrap; justify-content: center; border-radius: 12px; gap: 4px 8px; }
  .release-ribbon__sep { display: none; }
  .segmented { width: 100%; }
  .segmented__btn { padding: 7px 8px; font-size: 12.5px; }

  .ui-erp { grid-template-columns: minmax(0, 1fr); }
  .ui-erp__nav { display: none; }
  .ui-erp__body { padding: 14px 12px; }
  .ui-erp__detail { padding: 14px 12px; }
  .ui-kpi { padding: 10px 8px; }
  .ui-kpi__val { font-size: 14.5px; }
  .ui-table th:nth-child(3), .ui-table td:nth-child(3) { display: none; }
  .cap-grid, .lifecycle, .footer-top, .modal-links { grid-template-columns: minmax(0, 1fr); }
  .life-step { border-right: 0; padding-inline: 0; }
  .change-row { grid-template-columns: 1fr; gap: 6px; }
  .wms-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-url { display: none; }
  .web-cell, .qr-cell { padding: 24px 20px; }
}
