/* ============================================================
   Hero MSP — marketing site foundation
   Built on HeroNet design tokens (tokens.css). Prefix: hm-
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--fg-2);
  background: var(--surface-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--hero-purple-200); color: var(--hero-purple-900); }

.hm-container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.hm-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ---------- Type helpers ---------- */
.hm-eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 12px; line-height: 1;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--hero-purple-600); display: inline-flex;
  align-items: center; gap: 8px; }
.hm-eyebrow.on-dark { color: var(--hero-purple-300); }
.hm-eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.gradient-word { background: linear-gradient(100deg, var(--hero-purple-500) 0%, var(--hero-purple-400) 50%, var(--blue-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradient-word.on-dark { background: linear-gradient(100deg, #C4B5FD 0%, #D4B8EC 40%, #93C5FD 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--fg-1); margin: 0; }

.hm-section-head { max-width: 720px; }
.hm-section-head.center { margin: 0 auto; text-align: center; }
.hm-section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08; letter-spacing: -0.02em; color: var(--fg-1); margin: 16px 0 0; }
.hm-section-head p { font-size: 18px; line-height: 1.6; color: var(--fg-3); margin: 18px 0 0; }
.hm-section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 12px 20px;
  border-radius: var(--radius-md); border: 1px solid transparent; transition: all .15s var(--ease-out-quart); white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 15px; font-size: 13px; }
.btn-primary { background: var(--hero-purple-500); color: #fff; box-shadow: var(--shadow-purple-glow); }
.btn-primary:hover { background: var(--hero-purple-600); transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(122,60,190,.6); }
.btn-secondary { background: #fff; color: var(--fg-1); border-color: var(--border-default); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.btn-secondary:hover { background: var(--surface-100); border-color: var(--surface-400); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: var(--surface-100); color: var(--fg-1); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.btn-link { background: transparent; color: var(--hero-purple-600); padding: 0; font-weight: 600; }
.btn-link:hover { gap: 11px; color: var(--hero-purple-700); }
.btn-link svg { transition: transform .15s; }
.btn-link:hover svg { transform: translateX(2px); }

/* ============================================================
   TOP BAR + HEADER + MEGA MENU
   ============================================================ */
.hm-topbar { background: var(--navy-500); color: rgba(255,255,255,.72); font-size: 12.5px; position: relative; z-index: 60; }
.hm-topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.hm-topbar-left, .hm-topbar-right { display: flex; gap: 20px; align-items: center; }
.hm-topbar a { display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.hm-topbar a:hover { color: #fff; }
.hm-topbar svg { width: 13px; height: 13px; opacity: .8; }
.hm-topbar-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 9999px;
  background: rgba(122,60,190,.2); color: #D4B8EC; border: 1px solid rgba(122,60,190,.32); font-size: 11.5px; font-weight: 600; }
.hm-topbar-sep { width: 1px; height: 14px; background: rgba(255,255,255,.16); }

.hm-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle); transition: box-shadow .2s; }
.hm-header.scrolled { box-shadow: 0 4px 20px -8px rgba(15,26,46,.14); }
.hm-header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.hm-logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.hm-logo img { height: 38px; width: auto; }
.hm-logo-text { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; color: var(--navy-500); line-height: 1; }
.hm-logo-text .msp { color: var(--hero-purple-500); }

.hm-nav { display: flex; align-items: center; gap: 2px; }
.hm-nav-item { display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 500; color: var(--fg-2); transition: all .15s; position: relative; }
.hm-nav-item:hover, .hm-nav-item.open { color: var(--fg-1); background: var(--surface-100); }
.hm-nav-item svg.chev { width: 15px; height: 15px; opacity: .55; transition: transform .2s; }
.hm-nav-item.open svg.chev { transform: rotate(180deg); }
.hm-header-spacer { flex: 1; }
.hm-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hm-signin { font-size: 15px; font-weight: 500; color: var(--fg-2); padding: 10px 12px; border-radius: var(--radius-md); transition: all .15s; }
.hm-signin:hover { color: var(--fg-1); background: var(--surface-100); }

/* mega menu */
.hm-mega-wrap { position: relative; }
.hm-mega { position: absolute; top: calc(100% + 14px); left: 0; background: #fff; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); box-shadow: 0 24px 60px -20px rgba(15,26,46,.3); padding: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .2s var(--ease-out-quart); z-index: 55; }
.hm-mega.show { opacity: 1; visibility: visible; transform: translateY(0); }
.hm-mega::before { content: ''; position: absolute; top: -8px; left: 28px; width: 16px; height: 16px; background: #fff;
  border-left: 1px solid var(--border-subtle); border-top: 1px solid var(--border-subtle); transform: rotate(45deg); }
.hm-mega-grid { display: grid; gap: 4px; position: relative; }
.hm-mega.platform { width: 720px; }
.hm-mega.platform .hm-mega-grid { grid-template-columns: 1fr 1fr; }
.hm-mega.solutions { width: 360px; }
.hm-mega.protection { width: 380px; }
.hm-mega.voice { width: 360px; }
.hm-mega.resources { width: 340px; }
.hm-mega-item { display: flex; gap: 12px; padding: 11px 12px; border-radius: var(--radius-md); transition: all .15s; align-items: flex-start; }
.hm-mega-item:hover { background: var(--surface-50); }
.hm-mega-ic { width: 38px; height: 38px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hm-mega-ic svg { width: 19px; height: 19px; }
.hm-mega-item h5 { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--fg-1); margin: 1px 0 0; letter-spacing: -0.01em; }
.hm-mega-item p { font-size: 12.5px; color: var(--fg-3); margin: 3px 0 0; line-height: 1.45; }
.hm-mega-foot { margin-top: 10px; padding: 14px 16px; border-radius: var(--radius-md);
  background: linear-gradient(120deg, var(--hero-purple-25), var(--surface-50)); display: flex; align-items: center;
  justify-content: space-between; gap: 16px; border: 1px solid var(--border-subtle); }
.hm-mega.platform .hm-mega-foot { grid-column: 1 / -1; }
.hm-mega-foot-txt h5 { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--fg-1); margin: 0; }
.hm-mega-foot-txt p { font-size: 12.5px; color: var(--fg-3); margin: 2px 0 0; }

/* icon tile color variants */
.tile-purple { background: var(--cat-ai-bg); color: var(--cat-ai); }
.tile-blue { background: var(--cat-web-bg); color: var(--cat-web); }
.tile-emerald { background: var(--cat-it-bg); color: var(--cat-it); }
.tile-amber { background: var(--cat-phone-bg); color: var(--cat-phone); }
.tile-teal { background: var(--teal-50); color: var(--teal-600); }
.tile-indigo { background: var(--indigo-50); color: var(--indigo-600); }
.tile-rose { background: var(--rose-50); color: var(--rose-600); }
.tile-gray { background: var(--surface-100); color: var(--fg-3); }

/* mobile menu button (hidden on desktop) */
.hm-burger { display: none; width: 42px; height: 42px; border-radius: var(--radius-md); align-items: center; justify-content: center; color: var(--fg-1); }
.hm-burger:hover { background: var(--surface-100); }

/* ============================================================
   HERO
   ============================================================ */
.hm-hero { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #0B1322 0%, #0F1A2E 28%, #1a1f4a 64%, #2a1a52 100%); }
.hm-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 30px 30px; opacity: .6; }
.hm-blob { position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none; }
.hm-blob.v1 { width: 560px; height: 560px; background: rgba(122,60,190,.4); top: -240px; right: -120px; }
.hm-blob.v2 { width: 460px; height: 460px; background: rgba(37,99,235,.22); bottom: -260px; left: -100px; }
.hm-blob.v3 { width: 320px; height: 320px; background: rgba(124,58,237,.22); top: 30%; left: 44%; }
.hm-hero-inner { position: relative; z-index: 2; padding: 56px 0 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.hm-hero-toggle { display: inline-flex; padding: 4px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 9999px; margin-bottom: 26px; gap: 2px; }
.hm-hero-toggle button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 9999px;
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.68); transition: all .2s var(--ease-out-quart); }
.hm-hero-toggle button svg { width: 15px; height: 15px; }
.hm-hero-toggle button.active { background: #fff; color: var(--navy-500); box-shadow: 0 4px 14px -4px rgba(0,0,0,.3); }

.hm-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.4vw, 62px); line-height: 1.04;
  letter-spacing: -0.025em; color: #fff; margin: 0; }
.hm-hero-sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: rgba(255,255,255,.74); margin: 22px 0 0; max-width: 560px; }
.hm-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hm-hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hm-hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); }
.hm-hero-trust-item svg { width: 16px; height: 16px; color: var(--success-400); }
.hm-hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 9999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.82); margin-bottom: 24px; }
.hm-hero-pill .tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 9999px;
  background: var(--hero-purple-500); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em; }

/* hero dashboard cluster */
.hm-hero-visual { position: relative; height: 540px; }
.hm-fade-swap { animation: hmFade .5s var(--ease-out-quart); }
@keyframes hmFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hm-fade-swap { animation: none; }
}

/* ============================================================
   GENERIC SECTION + CARD UTILITIES
   ============================================================ */
.hm-section { padding: 96px 0; }
.hm-section.tight { padding: 72px 0; }
.hm-section.dark { background: var(--navy-500); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.hm-section.muted { background: var(--surface-50); }
.hm-section.dark h2, .hm-section.dark h3, .hm-section.dark h4 { color: #fff; }
.hm-section.dark .hm-section-head p { color: rgba(255,255,255,.66); }

.hm-logos-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
  opacity: .85; }
.hm-logos-row .lbl { font-size: 13px; color: var(--fg-4); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hm-stat-chip { font-family: var(--font-display); font-weight: 800; color: var(--fg-1); font-size: 17px; display: inline-flex; align-items: baseline; gap: 6px; }
.hm-stat-chip span { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--fg-3); }

/* ============================================================
   FOOTER
   ============================================================ */
.hm-footer { background: var(--navy-600); color: rgba(255,255,255,.6); padding: 72px 0 32px; position: relative; overflow: hidden; }
.hm-footer::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 30px 30px; }
.hm-footer-blob { position: absolute; width: 420px; height: 420px; border-radius: 9999px; background: rgba(122,60,190,.16);
  filter: blur(100px); top: -200px; left: 20%; pointer-events: none; }
.hm-footer-inner { position: relative; z-index: 1; }
.hm-footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hm-footer-brand img { height: 38px; margin-bottom: 18px; }
.hm-footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.58); max-width: 280px; margin: 0 0 20px; }
.hm-footer-brand .hm-logo-text { color: #fff; font-size: 22px; }
.hm-footer-social { display: flex; gap: 10px; }
.hm-footer-social a { width: 38px; height: 38px; border-radius: var(--radius-md); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: all .15s; }
.hm-footer-social a:hover { background: rgba(122,60,190,.3); color: #fff; transform: translateY(-2px); }
.hm-footer-col h5 { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; margin: 0 0 16px;
  text-transform: uppercase; letter-spacing: .08em; }
.hm-footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.hm-footer-col a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .15s; }
.hm-footer-col a:hover { color: #fff; }
.hm-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; flex-wrap: wrap; }
.hm-footer-bottom p { font-size: 13px; color: rgba(255,255,255,.5); margin: 0; }
.hm-footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.hm-footer-legal a { font-size: 13px; color: rgba(255,255,255,.5); }
.hm-footer-legal a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hm-nav { display: none; }
  .hm-burger { display: inline-flex; }
  .hm-signin { display: none; }
  .hm-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hm-hero-visual { height: auto; min-height: 440px; }
}
@media (max-width: 820px) {
  .hm-container, .hm-narrow { padding: 0 20px; }
  .hm-section { padding: 64px 0; }
  .hm-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hm-footer-brand { grid-column: 1 / -1; }
  .hm-topbar-left { display: none; }
}
