:root,
html[data-theme="dark"] {
  --bg: #070a12;
  --bg-elevated: #0c111d;
  --surface: #111827;
  --surface-2: #162033;
  --surface-3: #1e293b;
  --border: #1f2d46;
  --border-strong: #33486b;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8b9bb4;
  --accent: #0ea5e9;
  --accent-hover: #38bdf8;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --up: #10b981;
  --up-soft: rgba(16, 185, 129, 0.13);
  --down: #f43f5e;
  --down-soft: rgba(244, 63, 94, 0.13);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.13);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(7, 10, 18, 0.9);
  --code-bg: #090d16;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f1f6ff;
  --surface-3: #e2e8f0;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-soft: rgba(2, 132, 199, 0.09);
  --up: #059669;
  --up-soft: rgba(5, 150, 105, 0.1);
  --down: #e11d48;
  --down-soft: rgba(225, 29, 72, 0.09);
  --warn: #d97706;
  --warn-soft: rgba(217, 119, 6, 0.1);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow: 0 18px 38px -12px rgba(15, 23, 42, 0.1);
  --header-bg: rgba(255, 255, 255, 0.92);
  --code-bg: #f1f5f9;
  color-scheme: light;
}

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

html {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  padding-bottom: 68px;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

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

code,
pre,
.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.val-up {
  color: var(--up);
  font-weight: 700;
}

.val-down {
  color: var(--down);
  font-weight: 700;
}

.val-warn {
  color: var(--warn);
  font-weight: 700;
}

/* Enterprise Sticky Header — Never Wraps */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  white-space: nowrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-mark-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.35));
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

@media (min-width: 1120px) {
  .primary-nav {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.locale-bar {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.locale-pill {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-muted);
  transition: all 0.15s;
}

.locale-pill:hover {
  color: var(--text);
}

.locale-pill.active {
  background: var(--accent);
  color: #ffffff;
}

.cmd-btn,
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}

.theme-btn {
  width: 36px;
  padding: 0;
}

.cmd-btn:hover,
.theme-btn:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.cmd-kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Mega-Menu Drawer (4-Column Full View of All 20 Sections — Zero Horizontal Scroll) */
.mega-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.mega-menu-btn:hover,
.mega-menu-btn[aria-expanded="true"] {
  background: var(--accent);
  color: #ffffff;
}

.mega-drawer {
  display: none;
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 24px 0;
}

.mega-drawer.open {
  display: block;
}

.mega-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.mega-col-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.mega-links-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mega-item-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.14s, color 0.14s;
}

.mega-item-link:hover,
.mega-item-link.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.mega-item-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 20px;
}

/* Breadcrumbs Bar */
.breadcrumbs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumbs-bar a {
  color: var(--accent);
  font-weight: 600;
}

.breadcrumbs-bar a:hover {
  text-decoration: underline;
}

/* Interactive Tool Tabs on Homepage */
.tool-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.tool-tab-trigger {
  flex: 1 1 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.25;
  white-space: normal;
  transition: all 0.15s;
}

.tool-tab-trigger:hover {
  color: var(--text);
  background: var(--surface);
}

.tool-tab-trigger.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.tool-tab-pane {
  display: none;
}

.tool-tab-pane.active {
  display: block;
}

/* Hero Section */
.hero-section {
  padding: 44px 0 38px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 82% 14%, var(--accent-soft), transparent 45%),
    radial-gradient(circle at 12% 85%, var(--up-soft), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.hero-title em {
  font-style: normal;
  color: var(--up);
  text-decoration: underline;
  text-decoration-color: rgba(16, 185, 129, 0.35);
  text-underline-offset: 6px;
}

.hero-sub {
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: var(--text-secondary);
  max-width: 64ch;
  margin: 0 0 22px;
}

.hero-search-form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-bottom: 20px;
}

.hero-search-input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

.hero-search-input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-up {
  background: var(--up);
  color: #ffffff;
  border-color: var(--up);
}

.btn-up:hover {
  filter: brightness(1.08);
  color: #ffffff;
}

/* Hero Right Panel: Lead Investigation Card */
.forensic-spotlight {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-dot,
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 8px var(--up);
  display: inline-block;
  flex-shrink: 0;
}

.pulse-stream-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pulse-stream-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
}

@media (max-width: 720px) {
  .pulse-stream-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.pulse-stream-item:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.pulse-time-col {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--up);
  white-space: nowrap;
}

.pulse-main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pulse-main-col strong {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-main-col span {
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.risk-CRITICAL_ALERT,
.risk-HIGH_RISK_AVOID,
.risk-MATHEMATICAL_TRAP {
  background: var(--down-soft);
  color: var(--down);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.risk-POSITIVE_EV,
.risk-VERIFIED_FAIR {
  background: var(--up-soft);
  color: var(--up);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.risk-ELEVATED_TRAP,
.risk-CAUTION_TRAPS,
.risk-FAIR_PLAYTHROUGH {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.quant-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.quant-kpi-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.quant-kpi-box b {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 3px;
}

.quant-kpi-box span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Section Blocks */
.section-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: clamp(23px, 2.8vw, 32px);
  font-weight: 900;
  letter-spacing: -0.025em;
  margin: 4px 0 6px;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 68ch;
  font-size: 15px;
}

/* 14 Sections Grid */
.hubs-grid-14 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

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

.hub-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.hub-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hub-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.3;
}

.hub-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.hub-intent {
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Interactive Simulator Workbench & Tabs */
.sim-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sim-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.sim-tab-btn.active,
.sim-tab-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.sim-workbench {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.sim-workbench > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 980px) {
  .sim-workbench {
    grid-template-columns: 5fr 7fr;
  }
}

.sim-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-control,
select.input-control {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.svg-chart-box {
  width: 100%;
  background: #070b14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  overflow: hidden;
}

.svg-chart-box svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Enterprise Data Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.quant-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.quant-table th,
.quant-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.quant-table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  white-space: nowrap;
}

.quant-table tr:hover td {
  background: var(--surface-2);
}

.quant-table tr:last-child td {
  border-bottom: none;
}

/* Article & Glance Boxes */
.glance-box {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 22px;
  margin: 22px 0;
}

.remark-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--up);
  border-radius: 12px;
  padding: 22px;
  margin: 22px 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.article-card-body {
  padding: 22px;
}

.article-card h3 {
  font-size: 19px;
  line-height: 1.32;
  margin: 10px 0;
}

.article-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

/* 9:16 Vertical Smartphone Studio Frame */
.phone-studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.phone-studio-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 960px) {
  .phone-studio-grid {
    grid-template-columns: 330px minmax(0, 1fr);
  }
}

/* Slot Cover Cards & Interactive Demo Arena */
.slot-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 18px;
}

.slot-visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.slot-visual-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.slot-thumb-wrap {
  position: relative;
  height: 168px;
  background: #060911;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.slot-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.slot-visual-card:hover .slot-thumb-img {
  transform: scale(1.05);
}

.slot-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.88) 0%, rgba(7, 10, 18, 0.15) 55%, rgba(7, 10, 18, 0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
}

.demo-arena-frame {
  width: 100%;
  height: 540px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  background: #04070e;
  overflow: hidden;
  position: relative;
}

.demo-arena-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-recipe-card {
  cursor: pointer;
}

.video-recipe-card.active-recipe {
  border-color: var(--up);
  box-shadow: 0 0 0 2px var(--up-soft);
}

.universes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 7px;
}

.universe-dot {
  height: 36px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s;
}

.universe-dot:hover {
  transform: scale(1.1);
}

.phone-frame {
  width: 340px;
  height: 604px;
  margin: 0 auto;
  border-radius: 34px;
  border: 6px solid var(--border-strong);
  background: #050811;
  color: #f8fafc;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 18px;
}

/* Command Palette Modal */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.76);
  backdrop-filter: blur(6px);
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
}

.cmd-backdrop.open {
  display: flex;
}

.cmd-modal {
  width: 100%;
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.cmd-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.cmd-item:hover {
  background: var(--surface-2);
  color: var(--accent);
}

/* Mobile Bottom Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 70;
}

@media (min-width: 900px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Clean Enterprise Footer */
.site-footer {
  padding: 48px 0 36px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a:hover {
  color: var(--accent);
}

/* Semantic Utilities (Replaces Repeated Inline Styles) */
.container-narrow { max-width: 1080px; }
.hero-title-sm { font-size: clamp(26px, 3.5vw, 42px); }
.section-subblock { margin-bottom: 34px; }
.section-h2 { font-size: 23px; margin: 0 0 14px; }
.body-prose { font-size: 15.5px; line-height: 1.72; color: var(--text-secondary); margin: 0 0 14px; }
.clean-list { padding-left: 20px; font-size: 14.5px; line-height: 1.7; margin: 8px 0; color: var(--text-secondary); }
.pill-wrap-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flex-between-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.tool-h3 { font-size: 20px; margin: 4px 0 0; }
.tool-card-accent { margin-bottom: 28px; border-color: var(--accent); }
.tool-card-up { margin-bottom: 28px; border-color: var(--up); }
.tool-card-danger { margin-bottom: 28px; border-color: var(--down); }
.tool-card-warn { margin-bottom: 28px; border-color: var(--warn); }
.glance-danger { margin: 0; border-left-color: var(--down); }
.eyebrow-up { color: var(--up); margin-bottom: 6px; }
.eyebrow-danger { color: var(--down); margin-bottom: 6px; }
.eyebrow-warn { color: var(--warn); margin-bottom: 6px; }
.code-box { background: var(--code-bg); padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border-strong); white-space: pre-wrap; overflow-x: auto; font-size: 12.5px; color: var(--text); margin: 0 0 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-sm { min-height: 36px; height: auto; padding: 6px 12px; font-size: 12.5px; }
.btn-full { width: 100%; }
.link-accent { color: var(--accent); }
.link-accent-bold { color: var(--accent); font-weight: 700; }
.cell-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.val-accent { color: var(--accent); font-weight: 700; }
.val-warn-text { font-size: 13px; color: var(--warn); margin: 0; }
.val-down-sub { font-size: 13px; color: var(--down); }
.thumb-xs { width: 44px; height: 30px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.hunt-slot-cell { display: flex; align-items: center; gap: 10px; }
.slot-thumb-sm { height: 152px; }
.thumb-bg-fade { opacity: 0.42; }
.badge-dark-bg { background: rgba(7, 10, 18, 0.88); font-size: 12px; }
.brand-emblem-svg { flex-shrink: 0; border-radius: 14px; }
.breadcrumbs-bar a { display: inline-flex; align-items: center; min-height: 36px; padding: 2px 4px; }
.badge-cyan-pill { font-size: 12px; font-weight: 800; color: #fff; background: rgba(14, 165, 233, 0.88); padding: 3px 8px; border-radius: 6px; }
.thumb-row-between { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.thumb-row-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.slot-thumb-title { color: #fff; font-weight: 800; font-size: 14px; text-shadow: 0 2px 6px #000; }
.slot-card-footer { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.filter-bar { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.filter-search-input { max-width: 460px; height: 42px; }
.pagination-bar { margin-top: 20px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.cross-mesh-nav { margin-top: 34px; padding: 20px 24px; }
.cross-mesh-rows { display: flex; flex-direction: column; gap: 12px; }
.cross-mesh-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mesh-label { font-size: 12.5px; color: var(--text-muted); min-width: 110px; }
.faq-stack { display: grid; gap: 14px; margin-top: 18px; }
.faq-q { margin: 0 0 6px; font-size: 16px; }
.faq-a { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.quant-kpi-4 { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.form-grid-search { grid-template-columns: 1fr auto; align-items: end; }
.clause-raw-wrap { font-family: monospace; font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
.clause-impact-title { font-size: 14.5px; font-weight: 700; color: var(--down); margin-bottom: 6px; }
.clause-impact-text { margin: 0; font-size: 14.5px; color: var(--text); }
.speakable-summary { font-size: 15.5px; font-weight: 600; margin: 0 0 12px; color: var(--text); }
.geo-answer-box { border-left: 4px solid var(--up); margin: 20px 0; }
.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: all 0.15s;
}
.hub-chip:hover, .hub-chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.demo-cover-backdrop { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; position: absolute; inset: 0; }
.demo-cover-fg { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.demo-cover-card-img { width: 210px; height: 132px; object-fit: cover; border-radius: 12px; border: 2px solid var(--up); margin-bottom: 14px; }
.mega-hub-strip { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-bottom-bar { border-top: 1px solid var(--border); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.header-left-group { display: flex; align-items: center; gap: 12px; }
.article-card-footer { padding: 13px 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }

@media (max-width: 720px) {
  .container { padding: 0 12px; }
  .header-row { gap: 6px; }
  .header-left-group { gap: 6px; min-width: 0; }
  .brand-logo { font-size: 15px; gap: 6px; min-height: 36px; }
  .brand-mark-svg, .brand-mark-svg svg { width: 26px; height: 26px; }
  .mega-menu-btn { height: 36px; padding: 0 10px; font-size: 12px; gap: 5px; }
  .cmd-btn { padding: 0 10px; height: 36px; min-width: 36px; }
  .theme-btn { width: 36px; height: 36px; }
  .btn, .btn-sm, .hub-chip { min-height: 36px; }
  .quant-kpi-grid { grid-template-columns: 1fr; }
  .form-grid-search { grid-template-columns: 1fr; }
  .quant-table th, .quant-table td { padding: 10px 10px; font-size: 12.5px; }
  .passport-table tbody, .passport-table tr, .passport-table td { display: block; width: 100%; }
  .passport-table tr { padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .passport-table td { padding: 3px 0; border-bottom: none; }
  .locale-bar { display: none; }
  .cmd-btn .cmd-kbd, .cmd-btn span:not(.cmd-kbd) { display: none; }
}
