/*
 * Hexa marketing site — house style.
 *
 * The visual tokens (colors, type, building-block class names) are the canonical Salesbot deck
 * design system (Hexa knowledge doc `webdeck/salesbot_deck_design_system`), reused here so the
 * marketing site reads as the same family as the decks. Only the VISUAL language is shared; all
 * naming/copy is Hexa (hexahq.ai). Update the knowledge doc, not just this file, if the house
 * style changes.
 *
 * This is a WEBSITE, not a print deck, so the deck's "no animations / flatten .grad in @media
 * print" export rules do not apply — subtle transitions are allowed. The palette, type, and
 * building-block classes (.grad/.head/.row/.col/.callout/.chip/.stat/.brandfoot/.ph) are kept
 * faithful to the doc.
 *
 * Wordmark exception: the logo (.brand) is set in Clash Display — a distinct display face from the
 * same foundry as Satoshi, designed to pair with it — so the logo carries more personality than the
 * UI/body type. This is the ONLY place Clash Display is used; everything else stays Satoshi/Inter.
 */
@import "https://api.fontshare.com/v2/css?f[]=clash-display@600,700&display=swap";

:root {
  /* Color tokens — verbatim from webdeck/salesbot_deck_design_system */
  --bg: #06080c; /* section/surface background */
  --page: #020304; /* page background (deepest) */
  --fg: #ecf1f8; /* primary text */
  --fg-muted: #a2b0c5; /* muted text */
  --teal: #2dd4bf;
  --teal-bright: #5eead4;
  --blue: #60a5fa;
  --amber: #fbbf24;

  /* Derived surface tints (kept within the palette — no new hues) */
  --surface: #0b0f16;
  --surface-2: #0e131c;
  --line: rgb(162, 176, 197, 14%); /* --fg-muted @ low alpha */
  --line-strong: rgb(162, 176, 197, 28%);

  /* Typography — Satoshi display, Inter body, 16px floor */
  --display: "Satoshi", "Inter", system-ui, -apple-system, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", menlo, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --grad: linear-gradient(100deg, var(--teal) 0%, var(--blue) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px; /* readable floor from the design system */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

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

a {
  color: var(--teal-bright);
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

/* ---- Building blocks (class names reused from the design system) ---- */

/* .grad — teal→blue gradient text */
.grad {
  background: var(--grad);
  background-clip: text;
  color: transparent;
}

/* .head — section eyebrow/kicker above a heading */
.head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 0.9rem;
}

/* .row / .col — flex layout primitives; % sizing per design rules */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.col {
  flex: 1 1 0;
  min-width: 0;
}

/* .callout — bordered surface card */
.callout {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

/* .chip — small pill label */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: rgb(45, 212, 191, 8%);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* .stat — big number + label */
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat .stat-num {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
}

.stat .stat-label {
  color: var(--fg-muted);
  font-size: 0.92rem;
}

/* .ph — Phosphor icon wrapper */
.ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  background: rgb(96, 165, 250, 10%);
  border: 1px solid var(--line);
  color: var(--teal-bright);
  flex: none;
}

.ph svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* .brandfoot — brand footer strip */
.brandfoot {
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* ---- Layout scaffolding ---- */

.wrap {
  width: min(var(--maxw), 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

/* Subtle hex-mesh texture behind alternating sections for depth. The mesh SVGs are a
   transparent honeycomb plus a soft corner bloom (hand-authored, palette-only — see
   assets/img/bg-mesh-*.svg); kept faint so body text stays fully readable. isolation:isolate
   scopes the -1 layer to the section, so it sits over the page bg but under the content. */
.section.mesh {
  position: relative;
  isolation: isolate;
}

.section.mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  background: center / cover no-repeat;
  pointer-events: none;
}

.section.mesh-1::before {
  background-image: url("/assets/img/bg-mesh-1.svg");
}

.section.mesh-2::before {
  background-image: url("/assets/img/bg-mesh-2.svg");
}

.section.mesh-3::before {
  background-image: url("/assets/img/bg-mesh-3.svg");
}

.muted {
  color: var(--fg-muted);
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--fg-muted);
  max-width: 42ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad);
  color: #04120f;
  box-shadow: 0 8px 30px rgb(45, 212, 191, 22%);
}

.btn-primary:hover {
  color: #04120f;
  transform: translateY(-1px);
  box-shadow: 0 12px 38px rgb(45, 212, 191, 32%);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--teal);
  background: rgb(45, 212, 191, 6%);
}

/* ---- Header / nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgb(2, 3, 4, 72%);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Clash Display", var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--fg);
  letter-spacing: -0.005em;
}

.brand:hover {
  color: var(--fg);
}

.brand .mark {
  width: 1.9rem;
  height: 1.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

/* Plain nav links only — :not(.btn) so it doesn't outrank .btn-primary's own text
   color (which is less specific than `.nav-links a` and would otherwise lose). */
.nav-links a:not(.btn) {
  color: var(--fg-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: var(--fg);
}

.nav-links .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

@media (width <= 720px) {
  .nav-links .hide-sm {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
}

/* Ambient glow, drawn from palette tokens only */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 620px;
  background:
    radial-gradient(60% 55% at 25% 15%, rgb(45, 212, 191, 18%), transparent 70%),
    radial-gradient(50% 50% at 80% 5%, rgb(96, 165, 250, 16%), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lede {
  max-width: 52ch;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero-note {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* ---- Feature grid ---- */

.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.feature h3 {
  margin: 1rem 0 0.5rem;
}

.feature p {
  color: var(--fg-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ---- Steps ---- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.step {
  position: relative;
  padding-top: 0.5rem;
}

.step .num {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  margin-bottom: 0.9rem;
}

.step h3 {
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--fg-muted);
  margin: 0;
}

/* Centered responsive illustration for a section (the how-it-works / connect render scenes).
   The art PNGs are near-black already, so a hairline frame + radius reads as an intentional
   panel rather than a pasted-in rectangle. Sized in % with a max cap, per the responsive rule. */
.section-art {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 2.8rem auto 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* Square render atop each how-it-works step, so the three read as a matched Connect/Ask/Runs set.
   Fills its grid column; the near-black art blends into the section with a hairline frame. */
.step-art {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

/* ---- Connect page: faded hero art, three-step connector flow, wide diagram ---- */

/* Hero illustration: crop the square render toward its hexagon and fade the edges into the page,
   so it reads as part of the composition rather than a bordered card. */
.hero-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 58% 50%;
  mask-image: radial-gradient(125% 115% at 62% 48%, #000 46%, transparent 85%);
}

/* Three-step connector progression (existing MCP server -> AI-authored connector -> common
   governance). Light, no cards; a hairline line runs behind the hexagon markers.
   NOTE: named .connect-* (not .flow-*) — .flow-step already exists for how-it-works.html. */
.connect-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.connect-steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-strong) 14%,
    var(--line-strong) 86%,
    transparent
  );
  z-index: 0;
}

.connect-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.4rem;
}

.connect-step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  background: var(--page);
  border-radius: 50%;
}

.connect-step-mark svg {
  display: block;
}

.connect-step h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.connect-step p {
  color: var(--fg-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Primary explanatory diagram: wide, height-capped, soft side fades, a glow behind the central
   node, no border or card frame. */
.connect-diagram-wrap {
  position: relative;
  max-width: 960px;
  margin: 2.6rem auto 0;
}

.connect-diagram-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(36% 52% at 50% 50%, rgb(45, 212, 191, 12%), transparent 70%);
  pointer-events: none;
}

.connect-diagram {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  object-position: 44% 50%;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.diagram-caption {
  max-width: 58ch;
  margin: 1.4rem auto 0;
  text-align: center;
  font-size: 0.92rem;
}

@media (width <= 760px) {
  /* Stack the three steps with a vertical progression line. */
  .connect-steps {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    max-width: 23rem;
    margin: 0 auto;
  }

  .connect-steps::before {
    inset: 8px auto 8px 27px;
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      transparent,
      var(--line-strong) 10%,
      var(--line-strong) 90%,
      transparent
    );
  }

  .connect-step {
    display: grid;
    grid-template-columns: 54px 1fr;
    column-gap: 1rem;
    text-align: left;
    align-items: start;
  }

  .connect-step-mark {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-bottom: 0;
  }

  .connect-step h3,
  .connect-step p {
    grid-column: 2;
  }

  .connect-step h3 {
    margin: 0 0 0.4rem;
  }

  /* Keep the diagram legible: let it hold width and scroll rather than shrink to mush. */
  .connect-diagram-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .connect-diagram {
    min-width: 520px;
    aspect-ratio: 16 / 9;
  }
}

/* ---- Install / code block ---- */

.install .callout {
  padding: 0;
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgb(255, 255, 255, 2%);
  font-size: 0.85rem;
  color: var(--fg-muted);
}

pre {
  margin: 0;
  padding: 1.3rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--fg);
}

pre .tok-key {
  color: var(--teal-bright);
}

pre .tok-str {
  color: var(--amber);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg-muted);
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--sans);
}

.copy-btn:hover {
  color: var(--fg);
  border-color: var(--teal);
}

.stat-row {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

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

.cta-band {
  text-align: center;
}

.cta-band .callout {
  padding: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(80% 120% at 50% 0%, rgb(45, 212, 191, 12%), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.cta-band h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.cta-band .cta-row {
  justify-content: center;
}

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

.site-footer {
  padding: 3rem 0 3.5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-links a {
  color: var(--fg-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

/* ---- Legal (TOS / Privacy) pages ---- */

.legal {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.legal .wrap {
  width: min(760px, 92vw);
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal h2 {
  font-size: 1.4rem;
  margin-top: 2.4rem;
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.6rem;
}

.legal p,
.legal li {
  color: var(--fg-muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal .placeholder {
  color: var(--amber);
  font-style: italic;

  /* Long {{…}} tokens have no natural break points; let them wrap mid-token so
     they never force horizontal overflow on narrow screens. */
  overflow-wrap: anywhere;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Two-column hero + individual connect visual ---- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (width <= 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  /* Lead with the copy on mobile — the headline/CTAs come first, the illustrative
     connect card follows below (never order:-1, which buries the pitch under the fold). */
  .hero-visual {
    max-width: 460px;
    margin: 0 auto;
  }
}

/* The connect card — an illustrative "connect in a click, acting as you" panel.
   Conceptual marketing art (generic provider categories, no logos), not a product screenshot. */
.hero-visual {
  position: relative;
}

.connect-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 24px 70px rgb(2, 3, 4, 60%);
}

.connect-card .cc-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.7rem;
}

.cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.6rem;
  border-radius: var(--radius-sm);
}

.cc-row + .cc-row {
  margin-top: 0.15rem;
}

.cc-row:hover {
  background: rgb(45, 212, 191, 5%);
}

.cc-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  color: var(--fg);
}

.cc-tool .cc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgb(96, 165, 250, 10%);
  border: 1px solid var(--line);
  color: var(--teal-bright);
  flex: none;
}

.cc-tool .cc-ico svg {
  width: 1.15rem;
  height: 1.15rem;
}

.cc-state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--teal-bright);
  white-space: nowrap;
}

.cc-state .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgb(45, 212, 191, 18%);
  flex: none;
}

.cc-add {
  color: var(--fg-muted);
}

.cc-add .cc-ico {
  color: var(--fg-muted);
  border-style: dashed;
}

.connect-card .cc-foot {
  padding: 0.9rem 0.6rem 0.3rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ---- Elevated hero visual: background wash + prompt bar + Hub peek ---- */

/* Ambient product-art wash (Gemini "variant 2"), faded in from the right and masked away from the
   headline on the left so copy stays readable. Sits behind the card as a halo. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/img/hero-bg.png") no-repeat right center;
  background-size: cover;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 0%, transparent 30%, #000 72%);
}

/* Card floats above the Hub peek. */
.hero-visual .connect-card {
  position: relative;
  z-index: 2;
}

/* Prompt bar at the top of the card: the AI request. */
.cc-prompt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.9rem;
  border-radius: var(--radius-sm);
  background: rgb(45, 212, 191, 7%);
  border: 1px solid var(--line);
}

.cc-prompt .cc-spark {
  display: inline-flex;
  flex: none;
}

.cc-prompt-text {
  color: var(--fg);
  font-weight: 500;
}

/* Hub/approval peek, offset behind the card for depth. */
.hero-peek {
  position: absolute;
  bottom: 100%; /* pin the whole peek above the card, overlapping only its blank bottom edge */
  margin-bottom: -14px;
  right: -22px;
  z-index: 1;
  width: 66%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2) 0%, #0a0e15 100%);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgb(2, 3, 4, 55%);
}

.hero-peek-ey {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--teal-bright);
}

.hero-peek-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--fg);
}

.hero-peek-row.muted {
  color: var(--fg-muted);
}

.cc-chip {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
  color: var(--fg-muted);
  background: rgb(96, 165, 250, 12%);
  border: 1px solid var(--line);
}

.cc-chip-amber {
  color: var(--amber);
  background: rgb(251, 191, 36, 14%);
  border-color: rgb(251, 191, 36, 40%);
}

.cc-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-bright);
}

.cc-status .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgb(45, 212, 191, 18%);
  flex: none;
}

@media (width <= 900px) {
  .hero-bg {
    opacity: 0.16;
  }

  /* Peek would overflow the narrower centered card; drop it on small screens. */
  .hero-peek {
    display: none;
  }
}

/* ---- Collaboration band (land-and-expand teaser on the homepage) ---- */

.collab .callout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.2rem);
}

@media (width <= 820px) {
  .collab .callout {
    grid-template-columns: 1fr;
  }
}

.collab h2 {
  margin-bottom: 0.6rem;
}

.collab ul.check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.collab ul.check li {
  display: flex;
  gap: 0.7rem;
  color: var(--fg-muted);
  font-size: 0.98rem;
}

.collab ul.check svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--teal);
  margin-top: 0.15rem;
}

/* ---- Pricing ---- */

.pricing-grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  max-width: 840px;
  margin: 2.6rem auto 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.price-card.featured {
  position: relative;
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}

.price-card .tier {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.price-card .price {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin: 0.6rem 0 0.2rem;
}

.price-card .price small {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--fg-muted);
}

.price-card .price-sub {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  min-height: 1.4em;
}

.price-card ul.check {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  gap: 0.7rem;
  flex: 1;
}

.price-card ul.check li {
  display: flex;
  gap: 0.6rem;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.price-card ul.check svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--teal);
  margin-top: 0.1rem;
}

.price-card .btn {
  width: 100%;
  justify-content: center;
}

.price-tag {
  position: absolute;
  top: -0.75rem;
  right: 1.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--grad);
  color: #04120f;
}

/* ---- "See it work" example cards ---- */

.example .cmd {
  display: block;
  font-family: var(--mono);
  color: var(--teal-bright);
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.example p {
  margin: 0;
  font-size: 0.98rem;
}

/* ---- Contrast ("what Hexa isn't") cards ---- */

.contrast h3 {
  margin: 0 0 0.4rem;
}

.contrast p {
  margin: 0;
}

/* Callout note line under a section (MCP one-liner, the falsifiable test) */
.note-line {
  margin-top: 2.2rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 90ch;
}

.note-line strong {
  color: var(--fg);
}

/* Bigger icon tile for the two product-surface cards */
.surface .ph {
  width: 3rem;
  height: 3rem;
}

.surface .ph svg {
  width: 1.7rem;
  height: 1.7rem;
}

/* ---- How-it-works vertical flow ---- */

.flow {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.6rem;
  max-width: 780px;
}

.flow-step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.flow-step .num {
  flex: none;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.flow-step h3 {
  margin: 0 0 0.25rem;
}

.flow-step p {
  margin: 0;
  color: var(--fg-muted);
}

/* Compact hero for the focused sub-pages (Product, How it works) */
.hero.hero-compact {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

/* ---- Use cases by function (tabbed) ---- */

.uc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2rem 0 2.2rem;
}

.uc-tab {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.uc-tab:hover {
  color: var(--fg);
  border-color: var(--teal);
}

.uc-tab.active {
  color: #04120f;
  background: var(--grad);
  border-color: transparent;
}

.uc-panel[hidden] {
  display: none;
}

.uc-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.uc-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.uc-role {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: rgb(255, 255, 255, 3%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.uc-card .cmd {
  font-family: var(--mono);
  color: var(--teal-bright);
  font-size: 1rem;
  line-height: 1.4;
}

.uc-card p {
  margin: 0;
  flex: 1;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.uc-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.2rem;
}

.uc-tools .uc-pull {
  font-size: 0.74rem;
  color: var(--fg-muted);
  opacity: 0.65;
  margin-right: 0.15rem;
}

.uc-tool {
  font-size: 0.75rem;
  color: var(--fg-muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12rem 0.5rem;
}

/* Shareability strip under the use cases */
.uc-share {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 2.6rem);
}

@media (width <= 760px) {
  .uc-share {
    grid-template-columns: 1fr;
  }
}

.uc-share h3 {
  margin: 0.5rem 0;
  font-size: 1.35rem;
}

.uc-share p {
  margin: 0;
  color: var(--fg-muted);
}

.share-viz {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: center;
}

.share-viz .node {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  color: var(--fg-muted);
  background: var(--surface-2);
  flex: none;
}

.share-viz .node.author {
  background: var(--grad);
  color: #04120f;
  border-color: transparent;
}

.share-viz .arrow {
  color: var(--fg-muted);
  font-size: 1.1rem;
}

.share-viz .team {
  display: flex;
}

.share-viz .team .node + .node {
  margin-left: -0.7rem;
}

/* ---- Use-case index pages (per-ICP, searchable) ---- */

.uc-searchbar {
  margin: 1.6rem 0 2rem;
}

.uc-search {
  width: 100%;
  max-width: 540px;
  padding: 0.85rem 1.1rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.uc-search::placeholder {
  color: var(--fg-muted);
}

.uc-count {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* Force-hide filtered cards (uc-card is display:flex, so [hidden] needs help) */
.uc-card[hidden] {
  display: none;
}

.uc-empty {
  color: var(--fg-muted);
  padding: 2rem 0;
}

/* Differentiation callout on the ICP pages */
.uc-diff {
  margin: 0 0 0.5rem;
}

.uc-diff strong {
  color: var(--fg);
}

/* ---- Header dropdown menus ---- */

.nav-item {
  position: relative;
}

.nav-trigger {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-trigger::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentcolor;
  border-bottom: 1.5px solid currentcolor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: 0.65;
  transition: transform 0.15s ease;
}

.nav-trigger:hover {
  color: var(--fg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 55px rgb(2, 3, 4, 60%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
  z-index: 60;
}

.nav-item:hover .nav-menu,
.nav-item.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-item:hover .nav-trigger::after,
.nav-item.open .nav-trigger::after {
  transform: rotate(-135deg);
}

.nav-menu a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: var(--fg-muted);
  font-size: 0.92rem;
}

.nav-menu a strong {
  color: var(--fg);
  font-weight: 600;
}

.nav-menu a span {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.nav-menu a:hover {
  background: rgb(45, 212, 191, 6%);
  color: var(--fg);
}

.nav-plain {
  color: var(--fg-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-plain:hover {
  color: var(--fg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.7rem;
  height: 2.6rem;
  padding: 0 0.6rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgb(2, 3, 4, 98%);
  backdrop-filter: blur(12px);
}

.mobile-menu .wrap {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0 1.6rem;
}

.mobile-menu h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 1.1rem 0 0.2rem;
}

.mobile-menu a {
  color: var(--fg);
  font-size: 1rem;

  /* Padding sized so the tap target clears the 44px touch-target guideline. */
  padding: 0.65rem 0;
}

.mobile-menu .mobile-cta {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.mobile-menu .mobile-cta .btn {
  flex: 1;
  justify-content: center;
}

@media (width <= 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu.open {
    display: block;
  }
}

/* ---- Sitemap footer ---- */

.footer-cols {
  display: grid;
  grid-template-columns: 1.7fr repeat(5, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (width <= 900px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brandcol {
    grid-column: 1 / -1;
  }
}

.footer-brandcol .brand {
  margin-bottom: 0.8rem;
}

.footer-tag {
  color: var(--fg-muted);
  font-size: 0.9rem;
  max-width: 34ch;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 0.9rem;
}

.footer-col a {
  display: block;
  color: var(--fg-muted);
  font-size: 0.9rem;
  padding: 0.28rem 0;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.3rem;
}

.footer-legal a {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: var(--fg);
}

/* ---- Prose (About, Security, article bodies) ---- */

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.4rem;
}

.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.6rem;
}

.prose p,
.prose li {
  color: var(--fg-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* ---- Comparison tables ---- */

.cmp-table-wrap {
  overflow-x: auto;
  margin: 2.2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.95rem;
}

.cmp-table th,
.cmp-table td {
  text-align: left;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cmp-table tr:last-child th,
.cmp-table tr:last-child td {
  border-bottom: 0;
}

.cmp-table thead th {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--fg);
}

.cmp-table tbody th {
  font-weight: 500;
  color: var(--fg-muted);
  font-family: var(--sans);
}

.cmp-table .col-hexa {
  background: rgb(45, 212, 191, 5%);
  color: var(--fg);
}

.cmp-table thead .col-hexa {
  color: var(--teal-bright);
}

.cmp-yes {
  color: var(--teal-bright);
  font-weight: 600;
}

.cmp-no {
  color: var(--fg-muted);
  opacity: 0.7;
}

/* ---- FAQ accordion (native details/summary) ---- */

.faq-group {
  margin-top: 1.4rem;
  margin-bottom: 2.4rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  background: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 500;
  color: var(--fg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--teal-bright);
  font-size: 1.35rem;
  line-height: 1;
  flex: none;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item .faq-a {
  padding: 0 1.2rem 1.1rem;
  margin: 0;
  color: var(--fg-muted);
}

/* ---- Blog list ---- */

.blog-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.blog-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.blog-row .pri {
  flex: none;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--teal-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin-top: 0.15rem;
}

.blog-row .blog-meta {
  flex: 1;
}

.blog-row .blog-meta h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.blog-row .blog-meta p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.92rem;
}

.blog-soon {
  flex: none;
  font-size: 0.72rem;
  color: var(--fg-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

/* ---- Tool grid (Connect) ---- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.tool-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.95rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--fg-muted);
  font-size: 0.9rem;
}

a.tool-pill:hover {
  color: var(--fg);
  border-color: var(--teal);
  background: rgb(45, 212, 191, 5%);
}

/* ---- Help center (/help/, searchable) ---- */

.help-searchbar {
  margin: 1.6rem 0 2.4rem;
}

.help-search {
  width: 100%;
  max-width: 620px;
  padding: 0.9rem 1.1rem;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.help-search::placeholder {
  color: var(--fg-muted);
}

.help-count {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.help-cat {
  margin-top: 2.6rem;
}

.help-cat[hidden] {
  display: none;
}

.help-cat > h2 {
  font-size: 1.4rem;
  margin: 0 0 1.1rem;
}

.help-cards {
  display: grid;
  gap: 1rem;
}

.help-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 5.5rem;
}

.help-card[hidden] {
  display: none;
}

.help-card > details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
}

.help-card > details > summary::-webkit-details-marker {
  display: none;
}

.help-card summary .help-q {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--fg);
}

.help-card summary::after {
  content: "+";
  color: var(--fg-muted);
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
  transition: transform 0.15s ease;
}

.help-card > details[open] summary::after {
  content: "\2013"; /* en dash */
}

.help-card .help-body {
  padding: 0 1.4rem 1.4rem;
  color: var(--fg-muted);
}

.help-card .help-body p {
  margin: 0 0 0.9rem;
}

.help-card .help-body p:last-child {
  margin-bottom: 0;
}

.help-card .help-body ul,
.help-card .help-body ol {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.help-card .help-body li {
  margin: 0.35rem 0;
}

.help-card .help-body strong {
  color: var(--fg);
}

.help-card .help-body code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--teal-bright);
  background: rgb(45, 212, 191, 6%);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08rem 0.35rem;
}

.help-empty {
  color: var(--fg-muted);
  padding: 2rem 0;
}

/* Quick-start tiles at the top of the help center */
.help-tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-top: 1.5rem;
}

/* Focus visibility for keyboard users */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
