/* ============================================================
   H@RTS — hub.css
   Enterprise B2B "Digital Hub" layer. 3D / spatial styling.
   Layers on top of style.css tokens (--bg, --surface, --card-bg,
   --border, --text, --muted). All classes are namespaced (hub- /
   tilt- / wa- / sla- / lead-) to avoid collisions with the
   existing chat + services + training CSS.
   Pure CSS 3D transforms + Canvas. No external libraries.
   ============================================================ */

:root {
  --hub-accent:      #ffffff;   /* monochrome — brand is strictly black & white */
  --hub-accent-dim:  rgba(255,255,255,0.10);
  --hub-glow:        0 0 40px rgba(255,255,255,0.12);
  --hub-grid:        rgba(255,255,255,0.045);
  --hub-elev-1:      0 8px 30px rgba(0,0,0,0.5);
  --hub-elev-2:      0 24px 60px rgba(0,0,0,0.6);
  --hub-max:         1180px;
}

/* ── Page shell ───────────────────────────────────────────── */
.hub-body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(180deg, #050505 0%, #000 40%);
  color: var(--text);
  overflow-x: hidden;
}
.hub-body::before { /* faint global tech grid */
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--hub-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hub-grid) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.hub-wrap { position: relative; z-index: 1; }

/* ── Navigation / Header ──────────────────────────────────── */
.hub-nav {
  position: sticky;
  top: 0;
  z-index: 1500;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(0,0,0,0.62);
  border-bottom: 1px solid var(--border);
}
.hub-nav-inner {
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hub-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hub-brand b { color: var(--hub-accent); }
.hub-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  list-style: none;
}
.hub-nav-link {
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}
.hub-nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.hub-nav-link.active { color: #fff; }
.hub-nav-link.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: #fff;
}
.hub-cta {
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
}
.hub-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--hub-glow);
}
.hub-cta.ghost {
  background: transparent;
  color: #fff;
  border-color: var(--border);
}
.hub-cta.ghost:hover { border-color: var(--hub-accent); box-shadow: none; }
.hub-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ── Section base ─────────────────────────────────────────── */
.hub-section {
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: 96px 1.5rem 0;
}
.hub-section.tight { padding-top: 64px; }
.hub-section-head { max-width: 720px; margin-bottom: 2.5rem; }
.hub-kicker {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hub-accent);
  border: 1px solid var(--hub-accent-dim);
  background: var(--hub-accent-dim);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hub-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -1px;
}
.hub-section-sub {
  margin-top: 0.9rem;
  color: #9aa0a6;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hub-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hub-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
/* fallback visual when canvas is disabled (mobile / reduced-motion) */
.hub-hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(600px 400px at 75% 30%, rgba(255,255,255,0.16), transparent 65%),
    radial-gradient(500px 500px at 20% 80%, rgba(255,255,255,0.08), transparent 60%);
  display: none;
}
.hub-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  width: 100%;
}
.hub-hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -2px;
  max-width: 15ch;
}
.hub-hero-title .accent {
  background: linear-gradient(120deg, #fff 10%, #7a7a7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hub-hero-sub {
  margin-top: 1.4rem;
  max-width: 54ch;
  color: #aab0b6;
  font-size: clamp(0.98rem, 2vw, 1.18rem);
  line-height: 1.7;
}
.hub-hero-actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.hub-hero-badges {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.hub-hero-badges b { color: #fff; font-family: 'Syne', sans-serif; font-size: 1.4rem; display: block; }

/* ── 3D tilt cards (capabilities / portfolio) ─────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  perspective: 1200px;
}
.tilt-card {
  position: relative;
  background: linear-gradient(160deg, #141414 0%, #0c0c0c 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1), border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
  overflow: hidden;
}
.tilt-card::after { /* sheen that tracks the tilt */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.tilt-card:hover {
  border-color: rgba(255,255,255,0.4);
  box-shadow: var(--hub-elev-2), var(--hub-glow);
}
.tilt-card:hover::after { opacity: 1; }
.tilt-card > * { transform: translateZ(30px); }
.cap-index {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--hub-accent);
  letter-spacing: 0.1em;
}
.cap-icon {
  width: 52px;
  height: 52px;
  margin: 0.5rem 0 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--hub-accent-dim);
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 1.4rem;
}
.cap-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  margin-bottom: 0.5rem;
}
.cap-text { color: #9aa0a6; font-size: 0.92rem; line-height: 1.6; }
/* SME service feature list inside enterprise tilt-cards */
.tilt-card .sv-service-list { margin-top: 1rem; padding-left: 0; list-style: none; display: grid; gap: 0.5rem; }
.tilt-card .sv-service-list li { font-size: 0.86rem; color: #cfd4d8; padding-left: 1.3rem; position: relative; line-height: 1.4; }
.tilt-card .sv-service-list li::before { content: "→"; position: absolute; left: 0; color: var(--hub-accent); }
.cap-tags {
  margin-top: 1rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.cap-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: #cfd4d8;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}

/* ── WhatsApp automation section ──────────────────────────── */
.hub-wa {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.wa-features { margin-top: 1.8rem; display: grid; gap: 1rem; }
.wa-feature {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.015);
  transition: border-color 0.2s, transform 0.2s;
}
.wa-feature:hover { border-color: rgba(255,255,255,0.35); transform: translateX(4px); }
.wa-feature-ico {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--hub-accent-dim);
  font-size: 1rem;
}
.wa-feature h4 { font-family: 'Syne', sans-serif; font-size: 1rem; margin-bottom: 0.2rem; }
.wa-feature p { color: #9aa0a6; font-size: 0.86rem; line-height: 1.5; }

/* 3D phone mockup + chat simulator */
.phone-stage { perspective: 1400px; display: grid; place-items: center; }
.phone-3d {
  position: relative;
  width: 300px;
  max-width: 82vw;
  aspect-ratio: 300 / 610;
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(160deg, #1c1c1c, #060606);
  border: 1px solid #2a2a2a;
  box-shadow: var(--hub-elev-2), var(--hub-glow);
  transform: rotateY(-18deg) rotateX(6deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.phone-stage:hover .phone-3d { transform: rotateY(-8deg) rotateX(3deg); }
.phone-3d::before { /* speaker notch */
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 5px;
  border-radius: 999px;
  background: #333;
  z-index: 3;
}
.phone-screen {
  height: 100%;
  border-radius: 30px;
  background: #0b141a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-topbar {
  background: #1f2c33;
  padding: 1.4rem 0.9rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.phone-topbar .ava {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--hub-accent); color: #001;
  display: grid; place-items: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.8rem;
}
.phone-topbar .who b { display: block; font-size: 0.82rem; font-family: 'Syne', sans-serif; }
.phone-topbar .who span { font-size: 0.66rem; color: #8fa; }
.sim-feed {
  flex: 1;
  padding: 0.8rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(11,20,26,0.9), rgba(11,20,26,0.9));
}
.sim-msg {
  max-width: 78%;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  font-size: 0.74rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  animation: simIn 0.4s forwards;
}
.sim-msg.bot { align-self: flex-start; background: #202c33; border-top-left-radius: 3px; }
.sim-msg.user { align-self: flex-end; background: #005c4b; border-top-right-radius: 3px; }
.sim-msg .tick { color: var(--hub-accent); font-size: 0.6rem; }
@keyframes simIn { to { opacity: 1; transform: translateY(0); } }
.sim-typing { align-self: flex-start; display: inline-flex; gap: 3px; padding: 0.6rem 0.7rem; background: #202c33; border-radius: 12px; }
.sim-typing span { width: 5px; height: 5px; border-radius: 50%; background: #8a9; animation: simBlink 1s infinite; }
.sim-typing span:nth-child(2){ animation-delay: .15s; }
.sim-typing span:nth-child(3){ animation-delay: .3s; }
@keyframes simBlink { 0%,60%,100%{opacity:.3} 30%{opacity:1} }

/* ── Portfolio / case studies ─────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  perspective: 1200px;
}
.work-card { padding: 0; }
.work-thumb {
  height: 150px;
  border-radius: 17px 17px 0 0;
  display: grid;
  place-items: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: rgba(255,255,255,0.25);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 10px, transparent 10px 20px),
    #0d0d0d;
  transform: translateZ(0);
}
.work-body { padding: 1.4rem 1.4rem 1.6rem; }
.work-cat {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hub-accent);
}
.work-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.15rem; margin: 0.4rem 0 0.5rem; }
.work-desc { color: #9aa0a6; font-size: 0.86rem; line-height: 1.55; }
.work-metrics { margin-top: 1rem; display: flex; gap: 1.3rem; }
.work-metric b { font-family: 'Syne', sans-serif; font-size: 1.3rem; display: block; }
.work-metric span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Pricing / SLA retainers ──────────────────────────────── */
.sla-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  perspective: 1200px;
}
.sla-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  background: linear-gradient(160deg, #131313, #0b0b0b);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.sla-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.35); box-shadow: var(--hub-elev-2); }
.sla-card.featured {
  border-color: var(--hub-accent);
  box-shadow: var(--hub-glow);
}
.sla-badge {
  position: absolute;
  top: -11px; left: 1.6rem;
  background: var(--hub-accent);
  color: #001;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.sla-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.3rem; }
.sla-tagline { color: var(--muted); font-size: 0.8rem; margin: 0.3rem 0 1.2rem; }
.sla-price { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 2.2rem; letter-spacing: -1px; }
.sla-price small { font-size: 0.8rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.sla-list { list-style: none; margin: 1.3rem 0; display: grid; gap: 0.65rem; flex: 1; }
.sla-list li { font-size: 0.85rem; color: #cfd4d8; padding-left: 1.4rem; position: relative; line-height: 1.4; }
.sla-list li::before { content: "→"; position: absolute; left: 0; color: var(--hub-accent); }
.sla-cta {
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  color: #fff;
  transition: background 0.18s, color 0.18s;
}
.sla-cta:hover { background: #fff; color: #000; }
.sla-card.featured .sla-cta { background: var(--hub-accent); color: #001; border-color: var(--hub-accent); }
.sla-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 1.5rem; }

/* Two-part pricing story: Build (one-time) + Manage (retainers) */
.pricing-block-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #cfd4d8;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pricing-block-label span {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: #000;
  background: #fff;
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
}
.build-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  margin-bottom: 2.6rem;
  background: linear-gradient(160deg, #141414, #0b0b0b);
}
.build-band-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.build-band-price .build-from { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.build-band-price b { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -1px; }
.build-band-price .build-unit { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.7rem; }
.build-band-price .sla-cta { flex: none; }

.sme-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1.3rem 1.6rem;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.015);
}
.sme-band b { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; display: block; }
.sme-band span { color: #9aa0a6; font-size: 0.88rem; display: block; margin-top: 0.25rem; max-width: 62ch; }
@media (max-width: 600px) {
  .build-band, .build-band-price { text-align: left; align-items: flex-start; }
  .build-band-price { align-items: flex-start; }
}

/* ── Lead capture ─────────────────────────────────────────── */
.lead-shell {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(160deg, #101010, #070707);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
}
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lead-field { display: flex; flex-direction: column; gap: 0.4rem; }
.lead-field.full { grid-column: 1 / -1; }
.lead-field label { font-family: 'DM Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.lead-field input,
.lead-field select,
.lead-field textarea {
  background: #0b0b0b;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.9rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--hub-accent);
  box-shadow: 0 0 0 3px var(--hub-accent-dim);
}
.lead-field textarea { resize: vertical; min-height: 88px; }
.lead-actions { grid-column: 1 / -1; display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.3rem; }
.lead-btn {
  flex: 1;
  min-width: 180px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}
.lead-btn:hover { transform: translateY(-1px); }
.lead-btn.primary { background: #fff; color: #000; }
.lead-btn.primary:hover { box-shadow: var(--hub-glow); }
.lead-btn.wa { background: #25D366; color: #04240f; }
.lead-status { grid-column: 1 / -1; font-size: 0.82rem; color: var(--hub-accent); min-height: 1.1rem; }
.lead-aside h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.5rem; line-height: 1.15; }
.lead-aside p { color: #9aa0a6; margin-top: 0.8rem; line-height: 1.7; font-size: 0.95rem; }
.lead-aside ul { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.lead-aside li { font-size: 0.88rem; color: #cfd4d8; padding-left: 1.5rem; position: relative; }
.lead-aside li::before { content: "✓"; position: absolute; left: 0; color: var(--hub-accent); font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────── */
.hub-footer {
  max-width: var(--hub-max);
  margin: 6rem auto 0;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}
.hub-footer a { color: #cfd4d8; text-decoration: none; }
.hub-footer a:hover { color: var(--hub-accent); }
.hub-footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ── Floating action buttons ──────────────────────────────── */
.fab-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}
.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--hub-elev-1);
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab svg { width: 28px; height: 28px; }
.fab-wa { background: #25D366; color: #fff; }
.fab-chat { background: #fff; color: #000; }
.fab-label {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #111;
  border: 1px solid var(--border);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.fab:hover .fab-label { opacity: 1; }
.fab-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: fabPing 2.2s ease-out infinite;
}
.fab-wa .fab-ping { border-color: #25D366; }
@keyframes fabPing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ── Chat widget (existing app.js chat, as a pop-up bubble) ── */
#harts-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 3200;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #0b0b0b;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--hub-elev-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1), opacity 0.22s;
}
#harts-chat-widget.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-widget-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(90deg, #111, #0b0b0b);
  border-bottom: 1px solid var(--border);
}
.chat-widget-head .ava {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--hub-accent); color: #001;
  display: grid; place-items: center;
  font-family: 'Syne', sans-serif; font-weight: 700;
}
.chat-widget-head .who b { font-family: 'Syne', sans-serif; font-size: 0.92rem; display: block; }
.chat-widget-head .who span { font-size: 0.68rem; color: #6adf9a; }
.chat-widget-close {
  margin-left: auto;
  background: none; border: none; color: var(--muted);
  font-size: 1.3rem; cursor: pointer; line-height: 1;
  padding: 0.2rem 0.4rem; border-radius: 6px;
}
.chat-widget-close:hover { color: #fff; background: rgba(255,255,255,0.06); }
/* scope + reset the full-page chat styles into the panel */
#harts-chat-widget .gemini-chat {
  flex: 1;
  min-height: 0;
  height: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}
#harts-chat-widget .chat-welcome { padding: 1.2rem 1rem 0; min-height: 0; flex: 0 0 auto; }
#harts-chat-widget .welcome-inner h1 { font-size: 1.15rem; line-height: 1.3; }
#harts-chat-widget .chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  max-width: none;
}
#harts-chat-widget .input-container { padding: 0.7rem; margin: 0; position: static; }
#harts-chat-widget .gemini-input { max-width: none; margin: 0; }
#harts-chat-widget .chat-suggestions { margin-top: 0.8rem; }

/* ── Reveal-on-scroll ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-wa { grid-template-columns: 1fr; gap: 2rem; }
  .work-grid { grid-template-columns: 1fr; }
  .sla-grid { grid-template-columns: 1fr; }
  .lead-shell { grid-template-columns: 1fr; padding: 1.6rem; }
  .lead-form { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hub-nav-links { display: none; }
  .hub-nav-toggle { display: inline-block; }
  .hub-nav.menu-open .hub-nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #060606;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
  }
  .hub-nav.menu-open .hub-nav-link { padding: 0.9rem; }
  .hub-nav.menu-open .hub-cta { margin: 0.5rem; text-align: center; }
}

/* ── Low-power / accessibility fallbacks ──────────────────── */
.no-3d .hub-hero-canvas { display: none; }
.no-3d .hub-hero-fallback { display: block; }
.no-3d .tilt-card { transform: none !important; }
.no-3d .phone-3d { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hub-hero-canvas { display: none; }
  .hub-hero-fallback { display: block; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fab-ping { animation: none; }
  .sim-msg { animation: none; opacity: 1; transform: none; }
  .tilt-card, .phone-3d { transition: none; }
  * { scroll-behavior: auto; }
}
