/* ==========================================================================
   Heybreez Innovation (innovation.heybreez.ai)
   Dark Acoustic Wave Hero + Top Layer Selector + Live Signal Visualizers
   ========================================================================== */

:root {
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Satoshi", "DM Sans", sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-technical: "Geist Mono", "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-arabic: "IBM Plex Sans Arabic", "DM Sans", sans-serif;

  --orange: #e63b18;
  --orange-light: #ff6b4a;
  --orange-soft: #fff5f2;
  --orange-100: #f9d7d0;

  --dark: #20001e;
  --dark-2: #2d062a;
  --plum-header: #21001f;
  --ink-2: #4c344b;
  --muted: #726071;
  --faint: #9e8f9d;

  --white: #fefefe;
  --paper: #f8f7f3;
  --cream: #efeee5;
  --zebra: #faf7f9;
  --border: #e5e0d8;
  --table-border: #e6dfe4;

  --max-w: 1220px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--white);
  color: var(--dark);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.ar-inline {
  font-family: var(--font-arabic);
  letter-spacing: 0 !important;
}

.hb-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .hb-container {
    padding-inline: 44px;
  }
}

/* ── Sticky Top Header with Direct Layer & Model Selector ────────────────── */
.hb-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 64px;
  background: rgba(32, 0, 30, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cream);
}

.hb-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hb-brand-mark {
  height: 22px;
  width: auto;
  display: block;
}

.hb-brand-word {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hb-brand-rule {
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.24);
}

.hb-brand-tag {
  font-family: var(--font-technical);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239, 238, 229, 0.78);
}

/* Center Layer Selector Dropdowns / Links in Top Bar */
.hb-layer-bar {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 960px) {
  .hb-layer-bar {
    display: flex;
  }
}

.hb-layer-menu {
  position: relative;
}

.hb-layer-trigger {
  border: 0;
  background: transparent;
  color: rgba(239, 238, 229, 0.82);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.hb-layer-trigger:hover,
.hb-layer-menu:hover .hb-layer-trigger,
.hb-layer-trigger.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.hb-layer-trigger svg {
  width: 11px;
  height: 11px;
  opacity: 0.7;
  transition: transform 0.18s ease;
}

.hb-layer-menu:hover .hb-layer-trigger svg {
  transform: rotate(180deg);
}

.hb-layer-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 250px;
  background: #ffffff;
  color: var(--dark);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(32, 0, 30, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.hb-layer-menu:hover .hb-layer-dropdown,
.hb-layer-menu:focus-within .hb-layer-dropdown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Invisible hover bridge so moving mouse into dropdown never drops hover */
.hb-layer-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.hb-drop-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  transition: background-color 0.14s ease, color 0.14s ease;
}

.hb-drop-link:hover {
  background: var(--orange-soft);
  color: var(--orange);
}

.hb-drop-stat {
  font-family: var(--font-technical);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

/* Right-side Benchmarks / Research Switch */
.hb-mode-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  flex-shrink: 0;
}

.hb-mode-btn {
  border: 0;
  background: transparent;
  color: rgba(239, 238, 229, 0.75);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.hb-mode-btn:hover {
  color: #ffffff;
}

.hb-mode-btn.is-active {
  background: var(--orange);
  color: #ffffff;
}

/* ── Dark Plum Animated Acoustic Wave Landing Hero ───────────────────────── */
.hb-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 82px;
  background: radial-gradient(circle at 50% 46%, #31072e 0%, #20001e 62%, #140013 100%);
  color: var(--cream);
}

@media (min-width: 768px) {
  .hb-hero {
    padding: 116px 0 108px;
  }
}

.hb-hero-wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hb-hero-center {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Editorial Research Lab Masthead (Zero Vibe-Coded Pill / Dot) */
.hb-hero-masthead {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hb-masthead-rule {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 59, 24, 0.85));
}

.hb-masthead-rule:last-child {
  background: linear-gradient(90deg, rgba(230, 59, 24, 0.85), transparent);
}

.hb-masthead-text {
  font-family: var(--font-technical);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(239, 238, 229, 0.76);
}

@keyframes hb-cursor-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

@keyframes hb-title-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hb-hero-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 60px);
  font-weight: 500;
  letter-spacing: -0.036em;
  line-height: 1.1;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: hb-title-rise 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hb-geek-line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-technical);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-size: clamp(28px, 4.3vw, 54px);
}

.hb-geek-prompt {
  color: rgba(230, 59, 24, 0.72);
  font-weight: 400;
  user-select: none;
}

.hb-geek-slot {
  position: relative;
  display: inline-block;
  text-align: left;
}

.hb-geek-ghost {
  visibility: hidden;
  white-space: pre;
  padding-right: 0.65ch;
}

.hb-geek-typed {
  position: absolute;
  left: 0;
  top: 0;
  white-space: pre;
  color: #ff5c39;
  text-shadow: 0 0 26px rgba(230, 59, 24, 0.38);
}

.hb-geek-cipher {
  color: rgba(255, 179, 163, 0.62);
}

.hb-geek-cursor {
  display: inline-block;
  color: #ff7e63;
  margin-left: 2px;
  animation: hb-cursor-blink 0.85s steps(1) infinite;
}

.hb-hero-rest {
  display: block;
  max-width: 820px;
}

.hb-hero-lead {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(15.5px, 1.25vw, 17.5px);
  line-height: 1.64;
  color: rgba(239, 238, 229, 0.76);
}

@media (max-width: 560px) {
  .hb-header-inner {
    gap: 8px;
  }

  .hb-brand-rule,
  .hb-brand-tag {
    display: none;
  }

  .hb-mode-btn {
    gap: 4px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .hb-geek-line {
    max-width: 100%;
    min-width: 0;
    gap: 6px;
    font-size: 24px;
  }

  .hb-geek-ghost {
    padding-right: 0.4ch;
  }

  .hb-geek-cursor {
    margin-left: 0;
  }

  .hb-seg-group {
    display: flex;
    width: 100%;
  }
}

/* ── Sticky Layer Sub-Bar While Scrolling Benchmarks ─────────────────────── */
.hb-sticky-subnav {
  position: sticky;
  top: 64px;
  z-index: 70;
  background: rgba(248, 247, 243, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.hb-subnav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hb-subnav-row::-webkit-scrollbar {
  display: none;
}

.hb-subnav-chip {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.hb-subnav-chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Chapter Dividers ────────────────────────────────────────────────────── */
.hb-chapter-band {
  padding: 68px 0 24px;
  text-align: center;
  scroll-margin-top: 76px;
}

.hb-chapter-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hb-chapter-code {
  font-family: var(--font-technical);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid var(--orange-100);
  padding: 5px 13px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 12px;
}

.hb-chapter-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--dark);
}

.hb-chapter-desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Model Cards ─────────────────────────────────────────────────────────── */
.hb-model-band {
  padding: 36px 0 48px;
  scroll-margin-top: 76px;
}

.hb-model-band.is-tinted {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hb-model-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 20px;
}

.hb-model-band.is-tinted .hb-model-card {
  box-shadow: 0 8px 30px rgba(32, 0, 30, 0.04);
}

@media (min-width: 768px) {
  .hb-model-card {
    padding: 40px 44px;
  }
}

.hb-model-header {
  position: relative;
  max-width: 740px;
  margin: 0 auto 24px;
  text-align: center;
}

.hb-model-kicker-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hb-model-kicker {
  font-family: var(--font-technical);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.hb-model-name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--dark);
}

.hb-model-summary {
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.58;
  color: var(--muted);
  max-width: 640px;
}

.hb-signal-id {
  font-family: var(--font-technical);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: var(--orange);
  text-transform: uppercase;
}

.hb-signal-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(230, 59, 24, 0.5);
}

.hb-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 600px;
  margin: 18px auto 0;
  border-top: 1px solid rgba(32, 0, 30, 0.1);
  border-bottom: 1px solid rgba(32, 0, 30, 0.1);
}

.hb-telemetry-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 12px;
  font-family: var(--font-technical);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hb-telemetry-cell + .hb-telemetry-cell {
  border-left: 1px solid rgba(32, 0, 30, 0.1);
}

.hb-telemetry-label {
  color: var(--muted);
}

.hb-telemetry-value {
  color: var(--dark);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hb-model-trace {
  display: block;
  width: 1px;
  height: 22px;
  margin: 12px auto -2px;
  background: linear-gradient(to bottom, rgba(230, 59, 24, 0), rgba(230, 59, 24, 0.7));
  transform: scaleY(0);
  transform-origin: top;
}

@keyframes hb-trace-draw {
  to {
    transform: scaleY(1);
  }
}

.hb-model-band.is-in-view .hb-model-trace {
  animation: hb-trace-draw 420ms ease-out forwards;
}

@media (max-width: 719px) {
  .hb-telemetry {
    grid-template-columns: 1fr;
  }

  .hb-telemetry-cell {
    justify-content: space-between;
  }

  .hb-telemetry-cell + .hb-telemetry-cell {
    border-left: 0;
    border-top: 1px solid rgba(32, 0, 30, 0.1);
  }
}

/* ── Per-Model Live Signal Visualizer Strip ──────────────────────────────── */
.hb-vis-box {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #230221 0%, #190017 100%);
  border: 1px solid #381135;
  border-radius: 16px;
  padding: 14px 18px 12px;
  margin-bottom: 24px;
  color: var(--cream);
  overflow: hidden;
}

.hb-vis-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 88%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 88%);
}

.hb-vis-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 158px;
}

.hb-vis-caption {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-technical);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  color: rgba(239, 238, 229, 0.72);
}

.hb-vis-caption-text {
  max-width: 100%;
}

/* ── 4-Column Centered KPI Strip ─────────────────────────────────────────── */
.hb-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 26px;
}

@media (min-width: 820px) {
  .hb-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hb-stat-cell {
  background: var(--paper);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hb-stat-cell.is-highlight {
  background: var(--orange-soft);
}

.hb-stat-number {
  font-family: var(--font-technical);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--dark);
}

.hb-stat-cell.is-highlight .hb-stat-number {
  color: var(--orange);
}

.hb-stat-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 2px;
}

.hb-stat-sub {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}

/* ── Non-Wrapping Segmented Tabs + Branded Bar Plot Box ──────────────────── */
.hb-figure-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hb-fig-label {
  font-family: var(--font-technical);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hb-seg-group {
  display: inline-flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 11px;
  scrollbar-width: none;
}

.hb-seg-group::-webkit-scrollbar {
  display: none;
}

.hb-seg-btn {
  flex-shrink: 0;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.16s ease;
}

.hb-seg-btn:hover {
  color: var(--dark);
}

.hb-seg-btn.is-active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(32, 0, 30, 0.1);
}

.hb-figure-box {
  background: #fcfbf9;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px 18px;
  margin-bottom: 18px;
}

/* Top-Left HeyBreez Logo inside every Bar Plot Card! */
.hb-figure-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 10px;
}

@media (min-width: 720px) {
  .hb-figure-head {
    grid-template-columns: 140px 1fr 140px;
    align-items: center;
  }
}

.hb-plot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hb-plot-brand img {
  height: 22px;
  width: auto;
  display: block;
}

.hb-figure-meta {
  text-align: center;
}

.hb-figure-meta h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.015em;
}

.hb-figure-meta p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* OpenAI-Style Vertical Column Chart */
.hb-vchart-wrap {
  position: relative;
  padding: 12px 4px 4px;
}

.hb-mobile-rank-chart {
  display: none;
}

.hb-vchart-stage {
  position: relative;
  isolation: isolate;
  height: 250px;
  display: grid;
  align-items: end;
  gap: 10px;
  padding: 28px 12px 0;
  border-bottom: 1.5px solid #d5ced4;
}

.hb-vchart-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(32, 0, 30, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 0, 30, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.64), transparent 92%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.64), transparent 92%);
}

@media (min-width: 768px) {
  .hb-vchart-stage {
    height: 268px;
    gap: 20px;
    padding: 30px 28px 0;
  }
}

.hb-vchart-gridlines {
  z-index: 1;
  position: absolute;
  inset: 28px 0 0 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hb-vchart-line {
  width: 100%;
  border-top: 1px dashed rgba(32, 0, 30, 0.09);
  position: relative;
}

.hb-vchart-line:last-child {
  border-top-color: transparent;
}

.hb-vchart-line span {
  position: absolute;
  top: -9px;
  left: 0;
  font-family: var(--font-technical);
  font-size: 10px;
  color: var(--faint);
  background: #fcfbf9;
  padding-right: 6px;
}

.hb-vcol {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  outline: none;
}

.hb-vcol::before,
.hb-vcol::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.hb-vcol-val,
.hb-vcol-bar {
  position: relative;
  z-index: 1;
}

.hb-vcol::before {
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dashed rgba(230, 59, 24, 0.42);
}

.hb-vcol::after {
  left: 8%;
  right: 8%;
  bottom: var(--bar-pct);
  border-top: 1px dashed rgba(230, 59, 24, 0.42);
}

.hb-vcol:hover::before,
.hb-vcol:hover::after,
.hb-vcol:focus-visible::before,
.hb-vcol:focus-visible::after {
  opacity: 1;
}

.hb-vcol:focus-visible {
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 0 2px rgba(230, 59, 24, 0.28);
}

.hb-vcol-val {
  font-family: var(--font-technical);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
  white-space: nowrap;
  transition: transform 0.16s ease;
}

.hb-vcol.is-ours .hb-vcol-val {
  color: var(--orange);
  font-weight: 700;
  font-size: 13.5px;
}

.hb-vcol-bar {
  width: 100%;
  max-width: 72px;
  border-radius: 7px 7px 0 0;
  background: #d7cfd7;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease;
}

.hb-vcol:hover .hb-vcol-bar {
  background: #bfb3bf;
}

.hb-vcol:hover .hb-vcol-val {
  transform: translateY(-2px);
}

.hb-vcol.is-ours .hb-vcol-bar {
  background: linear-gradient(180deg, #f25a3a 0%, #e63b18 100%);
  box-shadow: 0 6px 20px rgba(230, 59, 24, 0.22);
}

.hb-vcol.is-ours-secondary .hb-vcol-bar {
  background: var(--ink-2);
}

.hb-vchart-labels {
  display: grid;
  gap: 10px;
  padding: 12px 12px 0;
}

@media (min-width: 768px) {
  .hb-vchart-labels {
    gap: 20px;
    padding: 12px 28px 0;
  }
}

.hb-vchart-lbl {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
}

.hb-vchart-lbl.is-ours {
  font-weight: 700;
  color: var(--dark);
}

/* Interactive Floating Tooltip */
.hb-tooltip {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  background: var(--dark);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  box-shadow: 0 12px 30px rgba(32, 0, 30, 0.28);
  max-width: 280px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.hb-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hb-tooltip-name {
  font-weight: 600;
  margin-bottom: 2px;
  color: #ffffff;
}

.hb-tooltip-val {
  font-family: var(--font-technical);
  color: #ff8c73;
  font-weight: 500;
}

.hb-tooltip-meta {
  margin-top: 4px;
  color: #d8cfd8;
  font-size: 11.5px;
}

/* ── Deep-Plum Benchmark Table ───────────────────────────────────────────── */
.hb-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--table-border);
  border-radius: 12px;
  background: var(--white);
}

.hb-table-toggle,
.hb-table-swipe-hint {
  display: none;
}

.hb-table-collapsible {
  display: block;
}

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

.hb-table thead th {
  background: var(--plum-header);
  color: #ffffff;
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  line-height: 1.35;
  padding: 12px 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: top;
}

.hb-table thead th:last-child {
  border-right: 0;
}

.hb-table tbody td {
  padding: 12px 15px;
  border-top: 1px solid var(--table-border);
  border-right: 1px solid var(--table-border);
  color: var(--dark);
  vertical-align: middle;
}

.hb-table tbody td:last-child {
  border-right: 0;
}

.hb-table tbody tr:nth-child(even) td {
  background: var(--zebra);
}

.hb-table tbody tr.is-ours-row td {
  background: var(--orange-soft);
}

.hb-table tbody tr.is-ours-row td:first-child {
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--orange);
}

.hb-table td.is-ours-col {
  background: rgba(230, 59, 24, 0.05);
  font-weight: 600;
}

.hb-table td.is-num {
  font-family: var(--font-technical);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}

.hb-best-val {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--dark);
}

.hb-best-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.hb-table-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--font-technical);
  font-size: 11px;
  color: var(--muted);
}

.hb-table-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 719px) {
  .hb-model-band {
    padding: 24px 0 34px;
  }

  .hb-model-card {
    padding: 26px 16px;
    border-radius: 20px;
  }

  .hb-model-header {
    margin-bottom: 20px;
  }

  .hb-stats-grid {
    margin-bottom: 22px;
    border-radius: 14px;
  }

  .hb-stat-cell {
    min-height: 132px;
    padding: 18px 12px;
  }

  .hb-figure-bar {
    align-items: stretch;
    margin-bottom: 12px;
  }

  .hb-fig-label {
    width: 100%;
  }

  .hb-figure-box {
    padding: 18px 16px 16px;
    border-radius: 14px;
    margin-bottom: 12px;
  }

  .hb-figure-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .hb-plot-brand img {
    height: 20px;
  }

  .hb-figure-meta h3 {
    font-size: 17px;
    line-height: 1.25;
  }

  .hb-figure-meta p {
    font-size: 13px;
    line-height: 1.45;
  }

  .hb-desktop-chart {
    display: none;
  }

  .hb-mobile-rank-chart {
    display: grid;
    gap: 15px;
    padding: 8px 0 2px;
  }

  .hb-mobile-rank-direction {
    font-family: var(--font-technical);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-align: right;
  }

  .hb-mobile-rank-row {
    display: grid;
    gap: 7px;
    outline: none;
  }

  .hb-mobile-rank-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .hb-mobile-rank-name {
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
  }

  .hb-mobile-rank-value {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-technical);
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
  }

  .hb-mobile-rank-check {
    color: #18864b;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
  }

  .hb-mobile-rank-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #ebe6eb;
  }

  .hb-mobile-rank-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #cfc5ce;
  }

  .hb-mobile-rank-row.is-ours .hb-mobile-rank-name,
  .hb-mobile-rank-row.is-ours .hb-mobile-rank-value {
    color: var(--orange);
    font-weight: 700;
  }

  .hb-mobile-rank-row.is-ours .hb-mobile-rank-fill {
    background: linear-gradient(90deg, #e63b18 0%, #f25a3a 100%);
    box-shadow: 0 3px 10px rgba(230, 59, 24, 0.22);
  }

  .hb-mobile-rank-row.is-ours-secondary .hb-mobile-rank-fill {
    background: var(--ink-2);
  }

  .hb-table-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--paper);
    color: var(--dark);
    padding: 13px 15px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
  }

  .hb-table-toggle-icon {
    font-family: var(--font-technical);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: var(--orange);
  }

  .hb-table-collapsible {
    display: none;
    margin-top: 10px;
  }

  .hb-table-collapsible.is-open {
    display: block;
  }

  .hb-table-swipe-hint {
    display: block;
    margin: 0 2px 8px;
    font-family: var(--font-technical);
    font-size: 10px;
    color: var(--muted);
    text-align: right;
  }

  .hb-table-wrap {
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  .hb-table-legend {
    display: none;
  }
}

@media (hover: none) {
  .hb-vcol::before,
  .hb-vcol::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-model-band.is-in-view .hb-model-trace {
    animation: none;
    transform: scaleY(1);
  }
}

/* ── Animated Research "Coming Soon" Stage (Pill Removed!) ───────────────── */
.hb-research-stage {
  position: relative;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 44%, #2f072c 0%, #20001e 62%, #140013 100%);
  color: var(--white);
  padding: 72px 20px;
}

.hb-research-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hb-research-overlay {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hb-research-kicker {
  margin: 0;
  font-family: var(--font-technical);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #ff8c73;
}

.hb-research-big {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--cream);
}

.hb-research-sub {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(239, 238, 229, 0.75);
}

.hb-wave-bars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  margin-top: 6px;
}

@keyframes hb-eq {
  0%, 100% {
    transform: scaleY(0.28);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.hb-wave-bars i {
  display: block;
  width: 3px;
  height: 28px;
  border-radius: 99px;
  background: var(--orange);
  animation: hb-eq 1.4s ease-in-out infinite;
}

.hb-back-bench-btn {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.hb-back-bench-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
}

/* ── Centered Compliance & Minimal Footer ────────────────────────────────── */
.hb-compliance {
  padding: 64px 0 56px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.hb-compliance-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

@media (min-width: 768px) {
  .hb-compliance-card {
    padding: 50px 56px;
  }
}

.hb-compliance-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 680px;
}

.hb-compliance-card p.body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 590px;
}

.hb-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hb-badges img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.hb-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 34px;
  background: var(--white);
}

.hb-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.hb-footer-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hb-footer-left img {
  height: 18px;
  width: auto;
}

.is-hidden {
  display: none !important;
}
