/* ============================================================
   BrainerX Labs — Landing page
   Design language: warm-white canvas, near-black ink, tight
   grotesk display type, cobalt accent, generous whitespace.
   ============================================================ */

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --ink: #0B0B0C;
  --ink-soft: #3B3B3E;
  --muted: #6E6E73;
  --faint: #9A9A9F;
  --border: #E8E6E1;
  --border-soft: #F0EEE9;
  --accent: #3B4FFF;
  --accent-soft: #EEF0FF;
  --violet: #7C5CFF;
  --green: #1FA971;
  --dark: #0C0C0E;
  --dark-2: #141417;
  --radius: 14px;
  --radius-lg: 20px;
  --font-display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1160px;
  --shadow-lg: 0 24px 60px -12px rgba(11, 11, 12, 0.14), 0 8px 20px -8px rgba(11, 11, 12, 0.08);
  --shadow-sm: 0 2px 8px rgba(11, 11, 12, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

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

.hide-mobile { display: inline; }

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 18px;
}

.eyebrow-light { color: rgba(255, 255, 255, 0.55); }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--ink);
}

.h2-light { color: #fff; }

.center { text-align: center; }

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin-top: 18px;
  line-height: 1.65;
}

.section-sub.center { margin-left: auto; margin-right: auto; }
.sub-light { color: rgba(255, 255, 255, 0.6); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  padding: 10px 20px;
  border-radius: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, opacity 0.16s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-lg { padding: 14px 28px; font-size: 15.5px; border-radius: 12px; }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #26262a; box-shadow: 0 8px 24px -8px rgba(11,11,12,.45); transform: translateY(-1px); }

.btn-light {
  background: #EFEDE8;
  color: var(--ink);
}
.btn-light:hover { background: #E7E4DE; transform: translateY(-1px); }

.btn-ghost { color: var(--ink-soft); padding: 10px 14px; }
.btn-ghost:hover { color: var(--ink); }

.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -8px rgba(255,255,255,.25); }

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255,255,255,.06); }

/* ---------- Nav ---------- */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-wrap.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.brand-suffix { font-weight: 500; color: var(--muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--ink); background: rgba(11, 11, 12, 0.045); }

.chev { width: 9px; height: 6px; opacity: 0.5; transition: transform 0.18s ease; }

.has-dropdown { position: relative; }
.has-dropdown:hover > a .chev { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -10px;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-dropdown-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 56px -20px rgba(11, 11, 12, 0.2), 0 4px 14px -6px rgba(11, 11, 12, 0.08);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, 218px);
  gap: 2px;
}

.nav-links .nav-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
}

.nav-links .nav-dropdown-panel a:hover { background: var(--border-soft); }

.nd-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.nd-sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 1px; }

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

/* mobile menu */

.mobile-menu { display: none; }

@media (max-width: 1024px) {
  .nav-wrap.nav-open .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 20px 18px;
    border-top: 1px solid var(--border-soft);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .mobile-menu a {
    padding: 11px 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    border-radius: 8px;
  }

  .mobile-menu a:hover { background: rgba(11, 11, 12, 0.045); color: var(--ink); }

  .mm-sec {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    color: var(--faint);
    padding: 14px 10px 4px;
  }

  .mobile-menu .mm-cta {
    margin-top: 12px;
    text-align: center;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
  }

  .nav-wrap.nav-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-wrap.nav-open .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-burger span { transition: transform 0.2s ease; }
}

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 42% at 50% -6%, rgba(59, 79, 255, 0.07), transparent 70%),
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(#000 45%, transparent 92%);
  mask-image: linear-gradient(#000 45%, transparent 92%);
  pointer-events: none;
}

.hero-inner { position: relative; text-align: center; }

.hero-title .hl-accent { color: var(--accent); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 650;
  letter-spacing: -0.042em;
  line-height: 1.02;
  color: var(--ink);
}

.hero-sub {
  margin: 26px auto 0;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

/* ---------- Mockup ---------- */

.mockup-wrap {
  position: relative;
  margin-top: 84px;
  padding-bottom: 0;
}

.mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  background: #FDFDFC;
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }

.mockup-crumb {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 500;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-draft {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--border-soft);
  padding: 2px 7px;
  border-radius: 20px;
}

.mockup-actions { display: flex; gap: 8px; }

.mockup-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  background: #fff;
}

.chip-dark { background: var(--ink); color: #fff; border-color: var(--ink); }

.mockup-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 340px;
}

.mockup-side {
  border-right: 1px solid var(--border-soft);
  padding: 14px 10px;
  background: #FDFDFC;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mside-item {
  font-size: 12px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.mside-item.active { background: var(--accent-soft); color: var(--accent); }
.mside-add { border: 1px dashed var(--border); color: var(--ink-soft); margin-bottom: 8px; }
.mside-sec {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--faint);
  padding: 12px 10px 4px;
}

.mockup-canvas {
  position: relative;
  background:
    radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 22px 22px;
  min-height: 340px;
}

.canvas-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.canvas-links path {
  fill: none;
  stroke: #C9CCF5;
  stroke-width: 2;
  stroke-dasharray: 6 5;
  animation: dashmove 1.4s linear infinite;
}

@keyframes dashmove {
  to { stroke-dashoffset: -11; }
}

.node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 172px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 10px 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.node:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(11,11,12,.16); }

.node-llm { width: 190px; border-color: #D8D2FF; }
.node-action { border-color: #CBE8DB; }

.node-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.node-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 10px;
  flex-shrink: 0;
}

.ico-blue { background: var(--accent-soft); color: var(--accent); }
.ico-violet { background: #F1EDFF; color: var(--violet); }
.ico-green { background: #E7F6EF; color: var(--green); }

.node-body { font-size: 11px; color: var(--muted); line-height: 1.45; }

.node-meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--border-soft);
}

.canvas-toast {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  background: #fff;
  border: 1px solid #CBE8DB;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Trusted ---------- */

.trusted { padding: 64px 0 28px; border-bottom: 1px solid var(--border-soft); }

.trusted .eyebrow { margin-bottom: 30px; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: scroll-x 36s linear infinite;
  padding-bottom: 34px;
}

@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

.logo-word {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #B9B7B1;
  white-space: nowrap;
}

.lw-light { font-weight: 400; }

/* ---------- Sections ---------- */

.section { padding: 118px 0; }
.section-alt { background: #F5F4F0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* ---------- Bento grid (What we do best) ---------- */

.eyebrow-line {
  display: inline-block;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.b-5 { grid-column: span 5; }
.b-6 { grid-column: span 6; }
.b-7 { grid-column: span 7; }
.b-12 { grid-column: span 12; }

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover { transform: translateY(-2px); box-shadow: 0 20px 48px -18px rgba(11, 11, 12, 0.13); }

.bento-head { padding: 30px 32px 6px; }

.bento-head h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.bento-head p { font-size: 16px; color: var(--muted); line-height: 1.55; }

.bento-viz {
  position: relative;
  flex: 1;
  margin-top: 18px;
  background: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* -- 1. workflow canvas -- */

.bviz-flow { min-height: 470px; }

.node-lg { width: 232px; }

.node-quote {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--border-soft);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
}

.node-meta { display: flex; justify-content: space-between; gap: 10px; }
.node-dots { margin-left: auto; color: var(--faint); }

.node-agent { border-color: #D8D2FF; }

.agent-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--border-soft);
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 9px;
}

.agent-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin: 10px 0 5px;
}

.agent-btn {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
}

.agent-tools { display: flex; align-items: center; gap: 6px; }
.agent-tools i { width: 16px; height: 16px; border-radius: 5px; background: var(--c); opacity: 0.85; }
.agent-tools span {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px dashed var(--faint); border-radius: 5px;
  font-size: 9px; color: var(--muted);
}

.node-out { border-color: #CBE8DB; }

.out-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
}

.out-tabs span { padding: 3px 8px; border-radius: 6px; border: 1px solid transparent; }
.out-tabs .active { background: var(--ink); color: #fff; }
.out-tabs .out-clear { margin-left: auto; border-color: var(--border); }

/* -- 2. deploy anywhere -- */

.bviz-deploy { min-height: 300px; overflow: hidden; }

.dep-mountain {
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 420px;
  height: 240px;
  background: radial-gradient(circle, #C9C7C1 1.4px, transparent 1.4px);
  background-size: 9px 9px;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  opacity: 0.75;
}

.dep-chip {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(calc(-50% + var(--dx)), var(--dy));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* -- 3. security & governance -- */

.bviz-gov { padding: 24px 32px 28px; background: none; }

.gov-stats { position: relative; height: 158px; }

.stat {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: 158px;
  background: #FDFDFC;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px 0;
  box-shadow: 0 10px 24px -12px rgba(11, 11, 12, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 118px;
}

.stat-label { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.stat-num { font-family: var(--font-display); font-size: 24px; font-weight: 650; letter-spacing: -0.02em; margin-top: 2px; }
.stat-base { font-family: var(--font-mono); font-size: 9px; color: var(--faint); }

.spark { margin-top: auto; width: 100%; height: 26px; }
.spark path { fill: #E4E2DC; }

.bars { margin-top: auto; display: flex; align-items: flex-end; gap: 7px; height: 40px; padding-bottom: 0; }
.bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, #3B3B3E, #85848A); border-radius: 3px 3px 0 0; }

.gov-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 12px; }

.gov-table th {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  text-align: left;
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
}

.gov-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--ink-soft);
  white-space: nowrap;
}

.gov-table td:first-child { font-weight: 600; color: var(--ink); }
.gov-table th:nth-child(n+4), .gov-table td:nth-child(n+4) { text-align: right; }

.av {
  display: inline-flex;
  width: 16px; height: 16px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: -3px;
}

/* -- 4. human in the loop -- */

.bviz-hitl { padding: 22px 32px 30px; }

.wait-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8A6D1A;
  background: #FBF3D9;
  border: 1px solid #EBDCA8;
  border-radius: 7px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.hitl-node, .hitl-msg {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.hitl-node { max-width: 340px; }

.hitl-msg { margin: 18px 0 0 42px; }

.hm-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.hm-mark { width: 20px; height: 20px; border-radius: 5px; }
.hm-app {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
  background: var(--border-soft);
  border-radius: 4px;
  padding: 2px 5px;
}
.hm-time { font-family: var(--font-mono); font-size: 9.5px; color: var(--faint); }

.hm-sub { font-size: 10.5px; color: var(--muted); margin: 4px 0 8px 28px; }

.hm-body { font-size: 12px; line-height: 1.55; color: var(--ink-soft); margin-left: 28px; }

.hm-actions { display: flex; gap: 8px; margin: 12px 0 2px 28px; }

.hm-approve, .hm-reject {
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  border-radius: 7px;
  padding: 6px 14px;
}

.hm-approve { background: #157A55; }
.hm-reject { background: #C22B5A; }

/* -- 5. model agnostic hexes -- */

.bviz-hex { display: flex; align-items: center; justify-content: center; padding: 26px 20px 36px; }

.hex-row { display: flex; justify-content: center; gap: 12px; }
.hex-row + .hex-row { margin-top: -22px; }

.hex {
  position: relative;
  width: 94px;
  height: 106px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  background: var(--border);
  flex-shrink: 0;
}

.hex-in {
  position: absolute;
  inset: 1.5px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  color: var(--hc, var(--ink));
}

.hex-brand { background: var(--accent); }
.hex-brand .hex-in svg { width: 38px; height: 38px; border-radius: 9px; }
.bviz-hex .hex-in img { width: 32px; height: 32px; object-fit: contain; }

.hex-grad {
  background-image: linear-gradient(120deg, #4285F4, #9B72CB, #D96570);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -- 6. ADLC -- */

.bviz-adlc { display: flex; flex-direction: column; background: none; }

.adlc-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: #FDFDFC;
}

.adlc-ver {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  background: #fff;
}

.adlc-spacer { flex: 1; }

.adlc-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}

.adlc-canvas {
  background: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.adlc-canvas .node { position: static; }

.adlc-panel {
  border-left: 1px solid var(--border-soft);
  background: #fff;
  padding: 16px 20px 22px;
  border-top-left-radius: 14px;
}

.adlc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.adlc-toggle { display: flex; gap: 2px; background: var(--border-soft); border-radius: 7px; padding: 2px; }
.adlc-toggle b { font-size: 10px; font-weight: 600; color: var(--muted); padding: 3px 9px; border-radius: 5px; }
.adlc-toggle .on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.adlc-diff {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  overflow: hidden;
}

.diff-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.diff-upd { margin-left: auto; font-family: var(--font-mono); font-size: 9px; color: var(--faint); font-weight: 400; }

.diff-line {
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.5;
  padding: 4px 8px;
  border-radius: 5px;
  margin-top: 3px;
  overflow-wrap: break-word;
}

.diff-del { background: #FDECEC; color: #9F3A3A; }
.diff-add { background: #E8F6EE; color: #1E6B47; }

.adlc-pr-label { font-size: 11px; color: var(--muted); margin: 14px 0 8px; }

.adlc-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 6px;
}

.adlc-radio i { width: 12px; height: 12px; border: 1.5px solid var(--faint); border-radius: 50%; }
.adlc-radio.checked { border-color: var(--ink); }
.adlc-radio.checked i { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 45%, transparent 50%); }

.adlc-btn {
  margin-top: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-radius: 9px;
  padding: 9px;
}

/* -- 7. white-glove chat -- */

.bviz-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 26px 30px;
  background: none;
}

.chat-row { display: flex; gap: 10px; max-width: 88%; }
.chat-row.team { align-self: flex-end; justify-content: flex-end; }
.chat-row.team .chat-col { text-align: right; }

.chat-col { display: flex; flex-direction: column; gap: 4px; }

.chat-name { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; color: var(--faint); }

.chat-bubble {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.chat-row.team .chat-bubble { background: #F0EFEA; }

.chat-av {
  width: 26px; height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  margin-top: 14px;
}

.av-you { background: #E7E4DE; color: var(--ink-soft); }
.av-team { background: var(--ink); color: #fff; }

/* ---------- Integrations hexes ---------- */

.int-hexes {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 68px;
}

.hexw {
  filter: drop-shadow(0 18px 28px rgba(11, 11, 12, 0.1));
  transition: transform 0.2s ease;
}

.hexw:hover { transform: translateY(-5px); }

.int-hexes .hex { width: 116px; height: 130px; }
.int-hexes .hex-in { font-size: 34px; font-weight: 600; }
.int-hexes .hex-xl { width: 150px; height: 168px; }
.hex-xl .hex-in svg { width: 54px; height: 54px; border-radius: 12px; }
.int-hexes .hex-in img { width: 40px; height: 40px; object-fit: contain; }

/* ---------- Certifications (dark panel) ---------- */

.cert-panel {
  position: relative;
  background: var(--dark);
  border-radius: 28px;
  padding: 72px 64px 64px;
  overflow: hidden;
}

.cert-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 55% at 88% -4%, rgba(59, 79, 255, 0.16), transparent 70%),
    radial-gradient(30% 40% at 4% 108%, rgba(124, 92, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.eyebrow-line-light { border-bottom-color: rgba(255, 255, 255, 0.6); }

.cert-panel .section-sub { max-width: 520px; }

.cert-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.cert-card {
  background: #131316;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 140, 255, 0.35);
  box-shadow: 0 20px 48px -20px rgba(59, 79, 255, 0.25);
}

.cert-emblem {
  position: relative;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(115deg, transparent 49.7%, rgba(255, 255, 255, 0.055) 49.7%, rgba(255, 255, 255, 0.055) 50.3%, transparent 50.3%),
    linear-gradient(65deg, transparent 49.7%, rgba(255, 255, 255, 0.055) 49.7%, rgba(255, 255, 255, 0.055) 50.3%, transparent 50.3%),
    linear-gradient(90deg, transparent calc(18% - 0.5px), rgba(255, 255, 255, 0.04) 18%, transparent calc(18% + 0.5px)),
    linear-gradient(90deg, transparent calc(82% - 0.5px), rgba(255, 255, 255, 0.04) 82%, transparent calc(82% + 0.5px));
}

.cert-badge {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: radial-gradient(circle at 50% 28%, #1D1D23, #0E0E11);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.03), 0 0 44px rgba(59, 79, 255, 0.18);
}

.cb-top { color: #7B8CFF; font-size: 11px; line-height: 1; }

.cb-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #fff;
}

.cb-sub {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
}

.cert-info { padding: 22px 22px 18px; display: flex; flex-direction: column; flex: 1; }

.cert-info h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.cert-info p { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); line-height: 1.6; flex: 1; }

.cert-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  margin-top: 18px;
}

.cert-num { color: #7B8CFF; }

/* ---------- Use cases ---------- */

.uc-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  margin-top: 52px;
  box-shadow: var(--shadow-sm);
}

.uc-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.uc-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.uc-tab:hover { border-color: var(--faint); transform: translateY(-1px); }

.uc-tab.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 20px -10px rgba(59, 79, 255, 0.35);
}

.uct-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.uct-head i { font-style: normal; font-size: 13px; color: var(--ink-soft); }

.uct-sub { font-size: 12.5px; color: var(--muted); }

.uc-stage {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.uc-stage.switching { opacity: 0; transform: translateY(6px); }

.uc-canvas {
  position: relative;
  min-height: 690px;
  background:
    radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 18px 18px;
  background-color: #FCFCFB;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
}

.uc-canvas .canvas-links { position: absolute; inset: 0; width: 100%; height: 100%; }

/* workflow nodes */

.wf-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 252px;
  z-index: 1;
}

.wf-tag {
  position: absolute;
  top: -9px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid;
}

.tag-input { background: #E9EEFE; color: #2B4ACB; border-color: #C9D4F8; }
.tag-llm { background: #F1EDFF; color: #6242D8; border-color: #DCD2F8; }
.tag-action { background: #FBF3D9; color: #8A6D1A; border-color: #EBDCA8; }
.tag-output { background: #E4F4EC; color: #157A55; border-color: #C4E5D4; }

.wf-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 26px -14px rgba(11, 11, 12, 0.16);
}

.wf-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.wf-ico {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--border-soft);
  font-size: 11px;
  flex-shrink: 0;
}

.wf-dots { margin-left: auto; color: var(--faint); font-size: 12px; }

.wf-desc { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.wf-box {
  background: var(--border-soft);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 9px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.wf-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 4px;
}

.wf-file {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--border-soft);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 9px;
}

.wf-file i {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--c, var(--accent));
  color: #fff;
  font-size: 10px;
  font-style: normal;
  flex-shrink: 0;
}

.wf-file b { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink); }
.wf-file small { display: block; font-size: 9.5px; color: var(--muted); }

.wf-foot { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

.wf-chip {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 7px;
  background: #fff;
}

/* preview panel */

.uc-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pv-pad { padding: 30px 28px; display: flex; flex-direction: column; flex: 1; }

.pv-logo { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px; }

.uc-preview h4 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.pv-sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }

.pv-label { font-size: 13px; font-weight: 600; color: var(--ink); margin: 22px 0 8px; }

.pv-input {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 13px;
  color: var(--faint);
}

.pv-drop {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.pv-drop-ico {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--border-soft);
  font-size: 15px;
  margin-bottom: 6px;
}

.pv-drop b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pv-drop small { font-size: 11.5px; color: var(--muted); }

.pv-upload {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pv-submit {
  margin-top: auto;
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9px;
  padding: 9px 22px;
}

.pv-pad .pv-submit { margin-top: 26px; }

/* doc-style preview */

.pv-doc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pv-doc-head .pv-logo { width: 34px; height: 34px; border-radius: 8px; margin: 0; }

.pv-doc h5 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 14px 0 6px;
}

.pv-doc p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 8px; }

.pv-msg {
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
  padding: 14px 20px 16px;
}

.pv-msg-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px 30px;
  font-size: 13px;
  color: var(--faint);
  position: relative;
}

.pv-msg-box::after {
  content: "▣";
  position: absolute;
  left: 12px;
  bottom: 7px;
  font-size: 12px;
  color: var(--muted);
}

/* table-style preview */

.pv-table { width: 100%; border-collapse: collapse; }

.pv-table th {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.pv-table td {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.pv-table td.pv-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  word-break: break-all;
  border-right: 1px solid var(--border-soft);
  width: 46%;
}

/* ---------- Solutions ---------- */

.sol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 64px;
}

.sol-card.sol-dark { background: var(--dark); border-color: var(--dark); }
.sol-card.sol-dark h3 { color: #fff; }
.sol-card.sol-dark p { color: rgba(255, 255, 255, 0.55); }
.sol-card.sol-dark .sol-ico { background: rgba(255, 255, 255, 0.1); color: #fff; }
.sol-card.sol-dark .sol-link { color: #fff; }

.sol-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sol-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -14px rgba(11, 11, 12, 0.12); }

.sol-ico {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--border-soft);
  color: var(--ink);
  margin-bottom: 22px;
}

.sol-ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sol-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}

.sol-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }

.sol-link { font-size: 13.5px; font-weight: 600; color: var(--ink); opacity: 0.75; transition: opacity .15s; }
.sol-link:hover { opacity: 1; }

/* ---------- Testimonials ---------- */

.t-marquee {
  margin-top: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.t-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scroll-x 70s linear infinite;
}

.t-marquee:hover .t-track { animation-play-state: paused; }

.t-card {
  width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.t-card blockquote {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  flex: 1;
}

.t-card figcaption { display: flex; flex-direction: column; gap: 3px; }
.t-card strong { font-size: 14px; font-weight: 600; }
.t-card span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  background: var(--dark);
  padding: 130px 0;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 60% at 50% 115%, rgba(59, 79, 255, 0.28), transparent 70%),
    radial-gradient(30% 40% at 78% 110%, rgba(124, 92, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; }

/* ---------- Footer ---------- */

.footer {
  background: var(--dark);
  color: #fff;
  padding: 72px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .brand { color: #fff; }
.footer .brand-suffix { color: rgba(255, 255, 255, 0.5); }
.footer .brand-mark rect { fill: #fff; }
.footer .brand-mark path { fill: var(--dark); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.footer-tag { font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 13px;
  border-radius: 20px;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.in { opacity: 1; transform: none; }

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .t-track, .canvas-links path, .status-pill i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .b-5, .b-6, .b-7 { grid-column: span 12; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-panel { padding: 52px 40px 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 1100px) {
  .uc-stage { grid-template-columns: 1fr; }
  .uc-tabs { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .bviz-flow { height: auto; padding: 6px 0 16px; }
  .bviz-flow .canvas-links { display: none; }
  .bviz-flow .node { position: static; width: auto; margin: 10px 18px; }
  .uc-canvas { min-height: 0; padding: 14px 0 6px; }
  .uc-canvas .canvas-links { display: none; }
  .wf-node { position: static; width: auto; margin: 18px 14px; }
  .uc-tabs { grid-template-columns: repeat(2, 1fr); }
  .adlc-body { grid-template-columns: 1fr; }
  .adlc-panel { border-left: none; border-top: 1px solid var(--border-soft); border-top-left-radius: 0; }
  .gov-stats { position: static; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { position: static; width: auto; }
}

@media (max-width: 640px) {
  .hide-mobile { display: none; }
  .cert-panel { padding: 44px 24px 40px; border-radius: 20px; }
  .dep-mountain { width: 300px; height: 180px; }
  .mockup-crumb .tag-draft { display: none; }
  .container { padding: 0 20px; }
  .nav { gap: 10px; }
  .brand-suffix { display: none; }
  .nav-actions .btn-dark { padding: 8px 14px; font-size: 13.5px; }
  .hero-title { font-size: clamp(40px, 11vw, 84px); }
  .hero-title br { display: none; }
  .mockup-actions { display: none; }
  .mockup-crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .section { padding: 80px 0; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-panel { padding: 40px 22px 32px; border-radius: 20px; }
  .int-hexes { gap: 14px; margin-top: 48px; }
  .int-hexes .hex { width: 82px; height: 92px; }
  .int-hexes .hex-in { font-size: 24px; }
  .int-hexes .hex-xl { width: 104px; height: 116px; }
  .hex-xl .hex-in svg { width: 38px; height: 38px; border-radius: 9px; }
  .bento-head { padding: 24px 20px 4px; }
  .bento-head h3 { font-size: 20px; }
  .bento-head p { font-size: 14.5px; }
  .bviz-gov { padding: 18px 16px 22px; }
  .gov-table th:nth-child(3), .gov-table td:nth-child(3),
  .gov-table th:nth-child(5), .gov-table td:nth-child(5) { display: none; }
  .bviz-hitl { padding: 18px 16px 24px; }
  .hitl-msg { margin-left: 16px; }
  .hex { width: 74px; height: 84px; }
  .hex-in { font-size: 21px; }
  .hex-row + .hex-row { margin-top: -17px; }
  .hex-brand .hex-in svg { width: 30px; height: 30px; }
  .bviz-chat { padding: 18px 16px 24px; }
  .sol-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .uc-tabs { grid-template-columns: 1fr; }
  .uc-shell { padding: 10px; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-side { display: none; }
  .canvas-links { display: none; }
  .node { position: static; width: auto; margin: 10px 14px; }
  .mockup-canvas { padding: 6px 0; min-height: 0; }
  .canvas-toast { position: static; display: inline-block; margin: 8px 14px 14px; }
  .nav-actions .btn-ghost { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .t-card { width: 300px; }
}

.nav-dropdown-panel.nav-dropdown-narrow { grid-template-columns: 236px; }
