/* ==========================================================================
   PSYCORE LAB · 心枢评测官网
   Aesthetic: Precision Dark Tech / Neuro-Diagnostic Telemetry System
   Inspired by Linear, Vercel, DJI & Medical Instrumentation UI
   ========================================================================== */

:root {
  --bg-canvas: #06080d;
  --bg-elevated: #0c1018;
  --bg-card: #101520;
  --bg-card-hover: #141b29;
  --bg-subtle: rgba(255, 255, 255, 0.035);

  --ink-primary: #f2f6fc;
  --ink-secondary: #97a5bc;
  --ink-muted: #5f6e85;

  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.14);
  --cyan-border: rgba(0, 212, 255, 0.34);
  --blue: #3b82f6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --ice: #a78bfa;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-highlight: rgba(255, 255, 255, 0.22);

  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 0 0 1px rgba(0, 212, 255, 0.28), 0 14px 40px rgba(0, 212, 255, 0.12);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container-max: 1220px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

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

button, input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

/* Precision Coordinate Grid & Ambient Radial Glow */
.bg-grid-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 35%, transparent 100%);
}

.bg-aurora-top {
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 100vw);
  height: 460px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(0, 212, 255, 0.13) 0%, rgba(59, 130, 246, 0.07) 42%, transparent 74%);
  filter: blur(28px);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 14.5px;
}

.btn-primary {
  background: linear-gradient(180deg, #1de0ff 0%, #00b8e6 100%);
  color: #041019;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.3), 0 8px 24px rgba(0, 212, 255, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #4ae7ff 0%, #0cc8f5 100%);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.55), 0 12px 30px rgba(0, 212, 255, 0.34);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink-secondary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--ink-primary);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
}

.btn-cyan-soft {
  background-color: rgba(0, 212, 255, 0.11);
  color: #6be7ff;
  border-color: rgba(0, 212, 255, 0.32);
}

.btn-cyan-soft:hover {
  background-color: rgba(0, 212, 255, 0.18);
  border-color: rgba(0, 212, 255, 0.55);
  color: #b4f3ff;
  transform: translateY(-1px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(6, 8, 13, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background-color: rgba(6, 8, 13, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.11);
}

.header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-primary);
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  font-size: 13.5px;
  color: var(--ink-secondary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

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

.nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  background-color: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.24);
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #5eead4;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 17px;
  height: 1.6px;
  background-color: var(--ink-primary);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background-color: rgba(10, 14, 22, 0.98);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  padding: 14px 20px 22px;
  gap: 6px;
}

.drawer-link {
  padding: 12px 6px;
  font-size: 14.5px;
  color: var(--ink-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-cta {
  margin-top: 12px;
  height: 42px;
}

/* ==========================================================================
   Hero Section & Live Diagnostic Console
   ========================================================================== */
.hero-section {
  padding: 58px 0 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 44px;
  align-items: center;
}

.tech-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-strong);
  margin-bottom: 22px;
}

.kicker-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background-color: rgba(0, 212, 255, 0.14);
  color: var(--cyan);
}

.kicker-text {
  font-size: 12px;
  color: var(--ink-secondary);
}

.hero-title {
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--ink-primary);
}

.title-gradient {
  background: linear-gradient(90deg, #ffffff 0%, #9beeff 55%, #55b6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-secondary);
  margin: 0 0 30px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.telemetry-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
}

.telemetry-val small {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--cyan);
  margin-left: 5px;
  letter-spacing: 0.08em;
}

.telemetry-label {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Right Hero Console */
.hero-console {
  background: linear-gradient(180deg, rgba(20, 27, 41, 0.92) 0%, rgba(12, 16, 24, 0.96) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border-subtle);
}

.console-dots {
  display: inline-flex;
  gap: 6px;
}

.console-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.16);
}

.console-dots span:first-child {
  background-color: rgba(0, 212, 255, 0.7);
}

.console-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.console-code-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  background-color: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.28);
  padding: 2px 9px;
  border-radius: 5px;
}

.console-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 210px;
  gap: 18px;
  padding: 20px;
  align-items: center;
}

.console-radar-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#psychRadarCanvas {
  width: 100%;
  max-width: 270px;
  height: auto;
}

.radar-meta {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.radar-meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.radar-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.radar-meta p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-secondary);
}

/* Optical QR Scanner Box */
.console-qr-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background-color: rgba(6, 8, 13, 0.65);
  border: 1px solid var(--border-subtle);
}

.optical-qr-box {
  position: relative;
  width: 168px;
  height: 168px;
  padding: 12px;
  background-color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.16);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.optical-qr-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 36px rgba(0, 212, 255, 0.28);
}

.optical-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--cyan);
  border-style: solid;
  pointer-events: none;
}

.corner.tl { top: 4px; left: 4px; border-width: 2px 0 0 2px; }
.corner.tr { top: 4px; right: 4px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 4px; left: 4px; border-width: 0 0 2px 2px; }
.corner.br { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; }

.scan-beam {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.85), transparent);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
  top: 10px;
  opacity: 0.7;
  animation: scanSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanSweep {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(144px); opacity: 0.8; }
}

.optical-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
}

.console-qr-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-btn {
  height: 31px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--ink-primary);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mini-btn:hover {
  background-color: rgba(255, 255, 255, 0.11);
}

.mini-btn-cyan {
  background-color: rgba(0, 212, 255, 0.14);
  border-color: rgba(0, 212, 255, 0.36);
  color: #7eeaff;
}

.mini-btn-cyan:hover {
  background-color: rgba(0, 212, 255, 0.24);
  color: #ffffff;
}

/* Console Bottom Switcher */
.console-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-subtle);
  background-color: rgba(6, 8, 13, 0.5);
}

.console-tab {
  border: none;
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  padding: 12px 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background-color 0.2s ease;
  position: relative;
}

.console-tab:last-child {
  border-right: none;
}

.console-tab:hover {
  background-color: rgba(255, 255, 255, 0.035);
}

.console-tab.is-active {
  background-color: rgba(0, 212, 255, 0.08);
}

.console-tab.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--cyan);
}

.ct-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
}

.console-tab.is-active .ct-code {
  color: var(--cyan);
}

.ct-name {
  font-size: 12px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-tab.is-active .ct-name {
  color: var(--ink-primary);
  font-weight: 500;
}

/* ==========================================================================
   Shared Section Header
   ========================================================================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 2.7vw, 32px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-primary);
}

.section-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  max-width: 440px;
}

/* ==========================================================================
   Diagnostic Router Section
   ========================================================================== */
.finder-section {
  padding: 58px 0 64px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(14, 19, 30, 0.55) 0%, rgba(6, 8, 13, 0) 100%);
}

.intent-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.intent-tab {
  text-align: left;
  padding: 16px 16px 15px;
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease-out);
}

.intent-tab:hover {
  border-color: var(--border-highlight);
  background-color: var(--bg-card);
  transform: translateY(-2px);
}

.intent-tab.is-active {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.11) 0%, rgba(16, 21, 32, 0.96) 100%);
  border-color: var(--cyan-border);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.16);
}

.intent-tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.intent-tab-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.intent-tab.is-active .intent-tab-code {
  color: var(--cyan);
}

.intent-tab-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.intent-tab.is-active .intent-tab-tag {
  color: #8cecff;
}

.intent-tab-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.4;
}

.intent-tab-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.intent-results {
  background-color: rgba(12, 16, 24, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.intent-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.intent-results-head strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

.intent-results-head span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.intent-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mini-rec-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out), background-color 0.2s ease;
}

.mini-rec-card:hover {
  border-color: var(--cyan-border);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

.mini-rec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-rec-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
}

.mini-rec-title {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-primary);
}

.mini-rec-tagline {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.mini-rec-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.mini-rec-foot span:last-child {
  color: var(--cyan);
  font-family: var(--font-sans);
  font-weight: 500;
}

/* ==========================================================================
   Full Catalog Matrix (All 25 Assessments)
   ========================================================================== */
.catalog-section {
  padding: 64px 0 84px;
  border-top: 1px solid var(--border-subtle);
}

.command-toolbar {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pill {
  height: 35px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: rgba(255, 255, 255, 0.025);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.cat-pill:hover {
  color: var(--ink-primary);
  border-color: var(--border-strong);
  background-color: rgba(255, 255, 255, 0.055);
}

.cat-pill.is-active {
  background-color: rgba(0, 212, 255, 0.13);
  border-color: var(--cyan-border);
  color: #a8f2ff;
}

.cat-pill-count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.8;
}

.toolbar-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.search-box {
  flex: 1;
  max-width: 480px;
  height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--cyan-border);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.09);
  color: var(--cyan);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--ink-primary);
  min-width: 0;
}

.search-box input::placeholder {
  color: var(--ink-muted);
}

.search-kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  border: 1px solid var(--border-subtle);
  background-color: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 5px;
}

.search-clear {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: none;
  background-color: rgba(255, 255, 255, 0.09);
  color: var(--ink-primary);
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-clear[hidden] {
  display: none;
}

.view-switcher {
  display: inline-flex;
  padding: 3px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  gap: 3px;
}

.view-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.view-btn.is-active {
  background-color: rgba(0, 212, 255, 0.14);
  color: #8cecff;
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.25);
}

.catalog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 0 2px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.result-counter {
  font-family: var(--font-mono);
  color: var(--ink-secondary);
}

/* Category Color Tags */
.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 23px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid transparent;
}

.cat-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: currentColor;
}

.cat-tag[data-cat="emotion"] {
  background-color: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.22);
  color: #5ee6ff;
}

.cat-tag[data-cat="clinical"] {
  background-color: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #7eb6ff;
}

.cat-tag[data-cat="personality"] {
  background-color: rgba(16, 185, 129, 0.11);
  border-color: rgba(16, 185, 129, 0.26);
  color: #5ce6b8;
}

.cat-tag[data-cat="love"] {
  background-color: rgba(244, 63, 94, 0.11);
  border-color: rgba(244, 63, 94, 0.26);
  color: #ff859d;
}

.cat-tag[data-cat="social"] {
  background-color: rgba(167, 139, 250, 0.11);
  border-color: rgba(167, 139, 250, 0.26);
  color: #c4b5fd;
}

/* Assessment Grid — Tech Detail Cards with Mouse Spotlight */
.assessment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.assessment-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  transition: transform 0.24s var(--ease-out), border-color 0.22s ease, box-shadow 0.24s ease;
}

.assessment-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 212, 255, 0.1), transparent 72%);
  transition: opacity 0.25s ease;
}

.assessment-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.34);
  box-shadow: var(--shadow-card);
}

.assessment-card:hover::before {
  opacity: 1;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.card-code-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.card-code-meta strong {
  color: var(--ink-secondary);
  font-weight: 600;
}

.card-body-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 14px;
  align-items: start;
}

.card-title {
  margin: 0 0 5px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-primary);
}

.card-tagline {
  margin: 0 0 8px;
  font-size: 12px;
  color: #6ce5ff;
  font-weight: 500;
}

.card-summary {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-qr-thumb {
  position: relative;
  width: 78px;
  height: 78px;
  padding: 6px;
  background-color: #ffffff;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease;
}

.card-qr-thumb:hover {
  transform: scale(1.07);
  box-shadow: 0 0 0 2px var(--cyan), 0 8px 20px rgba(0, 212, 255, 0.25);
}

.card-qr-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.card-duration {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.card-btn-qr {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--ink-secondary);
}

.card-btn-qr:hover {
  color: var(--ink-primary);
  border-color: var(--cyan-border);
  background-color: rgba(0, 212, 255, 0.1);
}

.card-btn-go {
  background-color: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.34);
  color: #8cecff;
}

.card-btn-go:hover {
  background-color: var(--cyan);
  border-color: var(--cyan);
  color: #041019;
  font-weight: 600;
}

/* Assessment Grid — 5x5 Direct Optical QR Matrix Wall */
.assessment-grid.is-qr-wall {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.qr-wall-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.22s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s ease;
}

.qr-wall-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.qr-wall-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.qr-wall-img-wrap {
  position: relative;
  width: 100%;
  max-width: 164px;
  aspect-ratio: 1 / 1;
  padding: 8px;
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 11px;
  cursor: pointer;
}

.qr-wall-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-wall-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-primary);
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-wall-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}

.qr-wall-actions .card-btn {
  padding: 0 6px;
  font-size: 11.5px;
  height: 29px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 58px 24px;
  background-color: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.empty-state[hidden] {
  display: none;
}

.empty-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--cyan);
  margin: 0 0 8px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.empty-desc {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin: 0 0 20px;
}

/* ==========================================================================
   Specification & Boundary Grid
   ========================================================================== */
.trust-section {
  padding: 64px 0 78px;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(14, 19, 30, 0.45) 0%, rgba(6, 8, 13, 0.9) 100%);
}

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

.spec-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.spec-card-notice {
  border-color: rgba(0, 212, 255, 0.26);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06) 0%, rgba(12, 16, 24, 0.96) 100%);
}

.spec-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.spec-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-primary);
}

.spec-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.spec-card strong {
  color: #8cecff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: #05070b;
  padding: 28px 0 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-copy {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-links a,
.footer-link-btn {
  font-size: 12.5px;
  color: var(--ink-secondary);
  background: none;
  border: none;
  padding: 0;
  transition: color 0.18s ease;
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--cyan);
}

/* ==========================================================================
   Optical QR Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(3, 5, 9, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop.is-visible {
  opacity: 1;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(0, 212, 255, 0.15);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.24s var(--ease-out);
}

.modal-backdrop.is-visible .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 295px minmax(0, 1fr);
}

.modal-qr-panel {
  background: radial-gradient(circle at 50% 40%, rgba(0, 212, 255, 0.1), rgba(6, 8, 13, 0.92));
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.modal-qr-frame {
  position: relative;
  width: 218px;
  height: 218px;
  padding: 14px;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 0 36px rgba(0, 212, 255, 0.18);
  margin-bottom: 16px;
}

.modal-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-scan-hint {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #7eeaff;
}

.modal-url-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: 7px;
  word-break: break-all;
}

.modal-info-panel {
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
}

.modal-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-right: 36px;
}

.modal-index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.modal-code-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  background-color: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.26);
  padding: 2px 8px;
  border-radius: 5px;
}

.modal-duration {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.modal-title {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 7px;
  color: var(--ink-primary);
}

.modal-tagline {
  margin: 0 0 12px;
  font-size: 13px;
  color: #7eeaff;
}

.modal-summary {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.modal-audience-wrap {
  margin-bottom: 22px;
}

.modal-section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.modal-audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.audience-tag {
  font-size: 12px;
  color: var(--ink-secondary);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: 6px;
}

.modal-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-btn-full {
  width: 100%;
  height: 44px;
  font-size: 14px;
}

.modal-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-actions-row .btn {
  height: 40px;
  font-size: 13px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background-color: #131c2b;
  border: 1px solid var(--cyan-border);
  color: #e6f9ff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .intent-tabs,
  .intent-cards,
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .assessment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .assessment-grid.is-qr-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .main-nav,
  .status-pill,
  #openQrWallBtn {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .toolbar-right {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: none;
  }
  .view-switcher {
    align-self: flex-start;
  }
  .catalog-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .assessment-grid.is-qr-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
  .modal-qr-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 26px 20px 20px;
  }
  .modal-qr-frame {
    width: 190px;
    height: 190px;
  }
  .modal-info-panel {
    padding: 22px 20px 24px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .header-inner {
    height: 60px;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .hero-section {
    padding: 34px 0 48px;
  }
  .tech-kicker {
    max-width: 100%;
    flex-wrap: wrap;
    border-radius: 12px;
  }
  .hero-cta-group {
    flex-direction: column;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .hero-telemetry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .telemetry-val {
    font-size: 17px;
  }
  .console-main {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .console-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .console-tab {
    border-bottom: 1px solid var(--border-subtle);
  }
  .intent-tabs,
  .intent-cards,
  .spec-grid,
  .assessment-grid {
    grid-template-columns: 1fr;
  }
  .assessment-grid.is-qr-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .modal-actions-row {
    grid-template-columns: 1fr;
  }
}
