/* ===========================================================================
   Public home page (/home). Loaded after css/legal.css, which supplies the
   shared frame (nav, teal header band, footer), the theme tokens and the
   motion. Only home's own sections are here (hm-), in the same teal palette.
   =========================================================================== */

/* Header band extras */
.hm-pulse { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: hsl(186 90% 70%); box-shadow: 0 0 0 0 hsl(186 90% 70% / 0.6); animation: hm-pulse 2.2s ease-out infinite; }
@keyframes hm-pulse { 70% { box-shadow: 0 0 0 0.5rem hsl(186 90% 70% / 0); } 100% { box-shadow: 0 0 0 0 hsl(186 90% 70% / 0); } }
.lg-hero h1 { max-width: 48rem; }
.hm-hl { background: linear-gradient(100deg, hsl(186 95% 80%), #fff 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-hl .lg-ch { color: hsl(186 95% 84%); }
.hm-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.cui-page .hm-actions .cui-btn { height: 2.9rem; padding-inline: 1.35rem; font-size: 1rem; }
.cui-page .hm-btn-light.cui-btn-primary { background: #fff; color: hsl(196 70% 18%); border-color: #fff; }
.cui-page .hm-btn-light.cui-btn-primary:hover { background: hsl(186 60% 94%); }
.cui-page .hm-btn-glass { color: #fff; background: hsl(0 0% 100% / 0.12); border: 1px solid hsl(0 0% 100% / 0.28); backdrop-filter: blur(6px); }
.cui-page .hm-btn-glass:hover { background: hsl(0 0% 100% / 0.2); color: #fff; }
.hm-btn-glass svg { width: 1rem; height: 1rem; }

/* Body */
.hm { display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.hm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border-radius: var(--cui-r-xl); box-shadow: var(--cui-shadow-card); padding: 1.5rem 0.5rem; }
.hm-stats > div { display: grid; gap: 0.2rem; justify-items: center; text-align: center; padding: 0.25rem 1rem; }
.hm-stats > div + div { border-left: 1px solid hsl(var(--border-component)); }
.hm-stats b { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(135deg, hsl(188 75% 42%), hsl(196 75% 20%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-stats small { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
@media (max-width: 760px) {
  .hm-stats { grid-template-columns: 1fr 1fr; row-gap: 1.25rem; }
  .hm-stats > div:nth-child(3) { border-left: 0; }
}

.hm-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: hsl(var(--accent-component)); margin-bottom: 0.6rem; }
.hm h2 { margin: 0 0 0.9rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--foreground); text-wrap: balance; }
.hm-copy p, .hm-head p { margin: 0; font-size: 1.1rem; line-height: 1.7; color: hsl(var(--foreground-component) / 0.72); max-width: 36rem; }
.hm-sec, .hm-spot { scroll-margin-top: calc(var(--lg-nav-h, 4.75rem) + 1.5rem); }

/* Feature spotlights: copy beside a product card, alternating sides */
.hm-spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hm-spot.is-flip .hm-copy { order: 2; }
@media (max-width: 860px) { .hm-spot { grid-template-columns: minmax(0, 1fr); } .hm-spot.is-flip .hm-copy { order: 0; } }
.hm-checks { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.95rem; }
.hm-checks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.8rem; align-items: start; font-size: 1rem; line-height: 1.6; color: var(--muted-foreground); }
.hm-checks strong { display: block; color: var(--foreground); font-weight: 700; }
.hm-chk { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; border-radius: 0.5rem; color: #fff;
  background: linear-gradient(135deg, hsl(188 75% 46%), hsl(var(--accent-component))); box-shadow: 0 6px 12px -6px hsl(var(--accent-component) / 0.8); }
.hm-chk svg { width: 0.95rem; height: 0.95rem; stroke-width: 3; }

/* Product cards */
.hm-mock { background: var(--card); border-radius: var(--cui-r-xl); box-shadow: var(--cui-shadow-pop); overflow: hidden; border-top: 3px solid hsl(var(--accent-component)); min-width: 0; }
.hm-mock-top { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.25rem; border-bottom: 1px solid hsl(var(--border-component)); }
.hm-mock-ic { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 0.65rem; color: hsl(var(--accent-component)); background: hsl(var(--accent-component) / 0.1); }
.hm-mock-ic svg { width: 1.1rem; height: 1.1rem; }
.hm-mock-title { font-weight: 700; font-size: 1rem; color: var(--foreground); }
.hm-live { margin-left: auto; font-size: 0.78rem; font-weight: 700; color: hsl(var(--cui-positive)); background: hsl(var(--cui-positive) / 0.1); padding: 0.2rem 0.6rem; border-radius: 999px; }
.hm-mock-body { display: grid; gap: 0.6rem; padding: 1.1rem 1.25rem 1.25rem; }
.hm-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.85rem; border-radius: var(--cui-r-lg); background: hsl(var(--muted-component)); border: 1px solid hsl(var(--border-component) / 0.7); }
.hm-grow { flex: 1; min-width: 0; }
.hm-name { font-size: 0.95rem; font-weight: 650; color: var(--foreground); }
.hm-meta { font-size: 0.82rem; color: var(--muted-foreground); }
.hm-stat { font-size: 0.95rem; font-weight: 800; color: hsl(var(--accent-component)); font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: right; }
.hm-dot { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: hsl(var(--accent-component) / 0.45); }
.hm-dot.is-on { background: hsl(var(--cui-positive)); }
.hm-dot.is-run { background: hsl(188 80% 48%); }
.hm-tag { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; color: hsl(var(--accent-component)); background: hsl(var(--accent-component) / 0.1); white-space: nowrap; }
.hm-tag.is-on { color: hsl(var(--cui-positive)); background: hsl(var(--cui-positive) / 0.1); }
.hm-tag.is-run { color: hsl(192 80% 32%); background: hsl(188 80% 48% / 0.14); }
.hm-chips { display: flex; gap: 0.4rem; }

.hm-msg { display: flex; gap: 0.65rem; align-items: flex-start; }
.hm-msg.is-ai { flex-direction: row-reverse; text-align: right; }
.hm-av { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font-size: 0.75rem; font-weight: 800; color: hsl(var(--accent-component)); background: hsl(var(--accent-component) / 0.12); }
.hm-msg.is-ai .hm-av { color: #fff; background: linear-gradient(135deg, hsl(188 75% 46%), hsl(196 75% 22%)); }
.hm-bubble { display: inline-block; text-align: left; padding: 0.6rem 0.85rem; border-radius: 0.9rem; font-size: 0.92rem; line-height: 1.5; color: var(--foreground); background: hsl(var(--muted-component)); border: 1px solid hsl(var(--border-component) / 0.7); }
.hm-msg.is-ai .hm-bubble { color: #fff; border-color: transparent; background: linear-gradient(135deg, hsl(var(--accent-component)), hsl(196 70% 26%)); }
.hm-time { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }

.hm-pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
@media (max-width: 420px) { .hm-pipe { grid-template-columns: 1fr 1fr; } }
.hm-pipe-h { margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.hm-pipe-h span { margin-left: 0.3rem; padding: 0.05rem 0.4rem; border-radius: 0.35rem; color: hsl(var(--accent-component)); background: hsl(var(--accent-component) / 0.1); }
.hm-card { display: grid; gap: 0.1rem; padding: 0.6rem 0.7rem; margin-bottom: 0.45rem; border-radius: var(--cui-r); background: hsl(var(--muted-component)); border: 1px solid hsl(var(--border-component) / 0.8); }
.hm-card b { font-size: 0.88rem; color: var(--foreground); }
.hm-card small { font-size: 0.78rem; color: var(--muted-foreground); }
.hm-card.is-hot { border-color: hsl(var(--accent-component) / 0.5); background: hsl(var(--accent-component) / 0.06); }
.hm-card.is-won { border-color: hsl(var(--cui-positive) / 0.45); background: hsl(var(--cui-positive) / 0.06); }

.hm-cap { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.hm-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; padding: 0.6rem 0.75rem; border-radius: var(--cui-r); background: hsl(var(--muted-component)); border: 1px solid hsl(var(--border-component) / 0.8); font-size: 0.88rem; }
.hm-fl { color: var(--muted-foreground); }
.hm-op { font-weight: 800; font-size: 0.8rem; color: hsl(var(--accent-component)); }
.hm-push { margin-left: auto; }
.hm-fc { font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 0.4rem; color: hsl(196 70% 22%); background: hsl(188 60% 90%); }
.hm-result { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; padding: 0.9rem 1rem; border-radius: var(--cui-r-lg);
  background: linear-gradient(135deg, hsl(190 70% 97%), hsl(190 60% 92%)); border: 1px solid hsl(190 50% 85%); }
.hm-result b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: hsl(196 70% 22%); }
.hm-result small { font-size: 0.82rem; color: var(--muted-foreground); }
.hm-result .cui-btn { pointer-events: none; }

/* Agent types */
.hm-head { max-width: 40rem; margin-bottom: 2rem; }
.hm-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.hm-type { display: grid; justify-items: start; align-content: start; gap: 0.55rem; padding: 1.4rem; border-radius: var(--cui-r-xl); background: var(--card); box-shadow: var(--cui-shadow-card); transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.hm-type:hover { transform: translateY(-3px); box-shadow: var(--cui-shadow-pop); }
.hm-ti { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.85rem; margin-bottom: 0.25rem; color: #fff;
  background: linear-gradient(135deg, hsl(188 75% 46%), hsl(var(--accent-component)) 60%, hsl(196 75% 20%)); box-shadow: 0 8px 16px -8px hsl(var(--accent-component) / 0.8); }
.hm-ti svg { width: 1.3rem; height: 1.3rem; }
.hm-type h3 { margin: 0.15rem 0 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; color: var(--foreground); }
.hm-type p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--muted-foreground); }

/* Integrations */
.hm-ints { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.hm-ints span { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 1rem; border-radius: 999px; font-size: 0.98rem; font-weight: 600; color: var(--foreground); background: var(--card); box-shadow: var(--cui-shadow-card); transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.hm-ints span:hover { transform: translateY(-2px); box-shadow: var(--cui-shadow-pop); }
.hm-ints i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: linear-gradient(135deg, hsl(188 80% 50%), hsl(var(--accent-component))); }

/* Closing call to action: the header band's teal */
.hm-cta { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: calc(var(--cui-r-xl) * 1.4); padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  background: radial-gradient(70% 120% at 100% 0%, hsl(30 95% 60% / 0.26) 0%, transparent 55%),
              radial-gradient(60% 120% at 0% 100%, hsl(188 85% 55% / 0.45) 0%, transparent 60%),
              linear-gradient(135deg, hsl(196 75% 12%) 0%, hsl(193 70% 24%) 45%, hsl(var(--accent-component)) 100%); }
.hm .hm-cta h2 { color: #fff; margin-inline: auto; max-width: 36rem; }
.hm-cta p { margin: 0 auto; max-width: 32rem; font-size: 1.1rem; line-height: 1.65; color: hsl(0 0% 100% / 0.82); }
.hm-cta .hm-actions { justify-content: center; }
