/* ============================================================
   swavo.ai — Product Detail Page (shared styles)
   Used by: portale.html, giulia-voice.html, whatsapp-ai.html,
            hub.html, brain.html, agent-studio.html
   ============================================================ */

html { scroll-behavior: smooth; }
body { background: var(--brand-ink); color: var(--text-on-dark); margin: 0; overflow-x: hidden; font-family: var(--font-sans); }

/* ============ NAV (clone Prezzi) ============ */
.nav-wrap { position: sticky; top: var(--fbar-h, 0px); z-index: 50; backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); background: rgba(14,17,22,0.65); border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease; }
.nav-wrap.scrolled { background: rgba(14,17,22,0.85); border-color: rgba(255,255,255,0.06); }
.nav { display: flex; align-items: center; padding: 18px 32px; gap: 24px; max-width: 1280px; margin: 0 auto; }
.nav__logo { display: inline-flex; }
.nav__logo img { height: 32px; opacity: 0.9; transition: opacity .2s; }
.nav__logo:hover img { opacity: 1; }
.nav__pill {
  display: flex; align-items: center; gap: 2px;
  padding: 4px;
  background: rgba(10,14,18,0.4);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  margin: 0 auto;
}
.nav__pill a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all .2s;
  white-space: nowrap;
}
.nav__pill a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav__pill a.current { background: rgba(154,189,73,0.16); color: #DCEC9B; }
.nav__pill a.current:hover { background: rgba(154,189,73,0.22); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__cta .btn { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 880px) { .nav__pill { display: none; } .nav { padding: 14px 18px; gap: 12px; } }
.btn { padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 13px; border: 0; cursor: pointer; font-family: inherit; transition: all .2s var(--ease-out); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }
.btn-pri { background: var(--brand-accent); color: var(--brand-ink); font-weight: 600; }
.btn-pri:hover { background: var(--brand-accent-600); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(154,189,73,0.35); }

/* In Anteprima pill */
.pre-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(154,189,73,0.10);
  border: 1px solid rgba(154,189,73,0.30);
  color: #DCEC9B;
  font-family: inherit; font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; white-space: nowrap;
  backdrop-filter: blur(10px);
}
.pre-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-accent); box-shadow: 0 0 8px rgba(154,189,73,0.7); animation: prePillPulse 1.8s ease-in-out infinite; }
@keyframes prePillPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@media (max-width: 880px) { .pre-pill { display: none; } }

/* ============ Breadcrumb ============ */
.breadcrumb { max-width: 1180px; margin: 0 auto; padding: 24px 48px 0; font-size: 12.5px; color: rgba(255,255,255,0.45); letter-spacing: 0.02em; font-family: 'JetBrains Mono', monospace; }
.breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--brand-accent); }
.breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,0.25); }
.breadcrumb .current { color: rgba(255,255,255,0.8); }

/* ============ PRODUCT HERO ============ */
.prod-hero-wrap { position: relative; overflow: hidden; padding: 56px 0 80px; }
.prod-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.prod-hero-bg::before { content: ''; position: absolute; left: -250px; top: -200px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(154,189,73,0.07), transparent 70%); }
.prod-hero-bg::after { content: ''; position: absolute; right: -200px; bottom: -100px; width: 600px; height: 600px; background: radial-gradient(closest-side, rgba(154,189,73,0.05), transparent 65%); }
.prod-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%); }

.prod-hero { max-width: 1180px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .prod-hero { grid-template-columns: 1fr; gap: 48px; padding: 0 32px; } }

.prod-hero__copy .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-accent); font-weight: 500; margin-bottom: 22px;
  padding: 6px 12px;
  background: rgba(154,189,73,0.08);
  border: 1px solid rgba(154,189,73,0.22);
  border-radius: 999px;
}
.prod-hero__copy .eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-accent); box-shadow: 0 0 8px rgba(154,189,73,0.8); }
.prod-hero__copy h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 68px); font-weight: 500; line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 22px; padding-bottom: 0.05em; }
.prod-hero__copy h1 em { font-family: 'Instrument Serif', serif; color: var(--brand-accent); font-style: italic; font-weight: 400; }
.prod-hero__copy .lead { font-size: 19px; color: rgba(255,255,255,0.72); max-width: 540px; margin: 0 0 28px; line-height: 1.55; }
.prod-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.prod-hero__cta .btn-big { padding: 14px 24px; font-size: 14px; }
.prod-hero__cta .btn-pri.btn-big { box-shadow: 0 10px 30px -8px rgba(154,189,73,0.5); }
.prod-hero__meta { margin-top: 22px; font-size: 12px; color: rgba(255,255,255,0.45); display: flex; gap: 14px; align-items: center; }
.prod-hero__meta::before { content: '✦'; color: var(--brand-accent); }

/* Hero visual container — each product overrides .prod-hero__visual */
.prod-hero__visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(154,189,73,0.10), rgba(154,189,73,0.02));
  border: 1px solid rgba(154,189,73,0.18);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(154,189,73,0.35);
}
.prod-hero__visual::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(closest-side at 50% 0%, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
}

/* ============ FEATURES (3-4 cards) ============ */
.prod-section { max-width: 1180px; margin: 0 auto; padding: 80px 48px; }
.prod-section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.prod-section__head .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-accent); font-weight: 500; margin-bottom: 14px;
}
.prod-section__head h2 { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 48px); font-weight: 500; letter-spacing: -0.02em; margin: 0 0 12px; }
.prod-section__head h2 em { font-family: 'Instrument Serif', serif; color: var(--brand-accent); font-style: italic; font-weight: 400; }
.prod-section__head p { color: rgba(255,255,255,0.62); margin: 0; font-size: 16px; line-height: 1.55; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } }

.feat-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 32px 28px;
  transition: all .3s var(--ease-out);
}
.feat-item:hover { border-color: rgba(154,189,73,0.30); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.feat-item__ico {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(154,189,73,0.15);
  color: var(--brand-accent);
  margin-bottom: 16px;
}
.feat-item h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.feat-item p { color: rgba(255,255,255,0.62); font-size: 14.5px; line-height: 1.55; margin: 0; }

/* ============ USE CASES ============ */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.usecase__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--brand-accent);
  letter-spacing: 0.12em;
}
.usecase h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
.usecase p { color: rgba(255,255,255,0.62); font-size: 14px; line-height: 1.55; margin: 0; }
.usecase__quote {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  padding: 12px 14px;
  border-left: 2px solid var(--brand-accent);
  background: rgba(154,189,73,0.06);
  border-radius: 4px;
  line-height: 1.45;
}

/* ============ RELATED PRODUCTS (cross-sell) ============ */
.related { background: linear-gradient(180deg, rgba(154,189,73,0.02), transparent); border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.related-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 980px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 6px;
  transition: all .25s var(--ease-out);
}
.related-card:hover { border-color: rgba(154,189,73,0.35); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.related-card__tag { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-accent); }
.related-card__name { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.related-card__desc { font-size: 12.5px; color: rgba(255,255,255,0.55); line-height: 1.4; }
.related-card__arrow { color: var(--brand-accent); font-size: 12px; margin-top: 2px; }

/* ============ CTA banner ============ */
.cta-banner { max-width: 1180px; margin: 0 auto 80px; padding: 0 48px; }
.cta-banner__inner {
  background: linear-gradient(135deg, rgba(154,189,73,0.12), rgba(154,189,73,0.04));
  border: 1px solid rgba(154,189,73,0.25);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner__inner::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(154,189,73,0.18), transparent);
}
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 44px); font-weight: 500; margin: 0 0 14px; letter-spacing: -0.02em; position: relative; }
.cta-banner h2 em { font-family: 'Instrument Serif', serif; color: var(--brand-accent); font-style: italic; font-weight: 400; }
.cta-banner p { color: rgba(255,255,255,0.7); margin: 0 0 28px; font-size: 16px; position: relative; }
.cta-banner .btn-big { position: relative; padding: 14px 28px; font-size: 14px; }

/* ============ Footer ============ */
footer { padding: 64px 48px 36px; max-width: 1280px; margin: 0 auto; color: rgba(255,255,255,0.55); font-size: 13px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer__brand img { height: 32px; margin-bottom: 14px; opacity: 0.9; }
.footer__tag { font-family: 'Instrument Serif', serif; font-size: 18px; font-style: italic; color: rgba(255,255,255,0.72); line-height: 1.35; margin: 0 0 18px; max-width: 260px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); color: rgba(255,255,255,0.55); text-decoration: none; transition: all .2s; }
.footer__social a:hover { color: var(--brand-accent); border-color: rgba(154,189,73,0.4); background: rgba(154,189,73,0.08); }
.footer__social svg { width: 15px; height: 15px; }
.footer__col h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.20em; color: rgba(255,255,255,0.42); font-weight: 500; margin: 0 0 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__col a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 13.5px; transition: color .2s; }
.footer__col a:hover { color: var(--brand-accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: rgba(255,255,255,0.42); flex-wrap: wrap; gap: 12px; }
.footer__bottom .made { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 580px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } footer { padding: 48px 24px 28px; } .prod-section { padding: 48px 20px; } .prod-hero-wrap { padding: 32px 0 56px; } .cta-banner { padding: 0 20px; } .cta-banner__inner { padding: 36px 24px; } }

/* ============================================================
   PER-PRODUCT HERO VISUALS
   ============================================================ */

/* ---------- PORTALE ---------- */
.hv-portale { padding: 36px; flex-direction: column; gap: 12px; align-items: stretch; }
.hv-portale .pt-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(10,14,18,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  opacity: 0; transform: translateY(8px);
  animation: ptRowIn .6s var(--ease-out) forwards;
}
.hv-portale .pt-row.r1 { animation-delay: 0.2s; }
.hv-portale .pt-row.r2 { animation-delay: 0.5s; border-color: rgba(154,189,73,0.45); box-shadow: 0 0 20px rgba(154,189,73,0.2); }
.hv-portale .pt-row.r3 { animation-delay: 0.8s; }
.hv-portale .pt-row.r4 { animation-delay: 1.1s; }
.hv-portale .pt-row.r5 { animation-delay: 1.4s; }
@keyframes ptRowIn { to { opacity: 1; transform: none; } }
.hv-portale .pt-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); flex-shrink: 0; }
.hv-portale .pt-row.r2 .pt-dot { background: var(--brand-accent); box-shadow: 0 0 10px rgba(154,189,73,0.8); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.85); } }
.hv-portale .pt-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.10); border-radius: 999px; position: relative; overflow: hidden; }
.hv-portale .pt-bar::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: var(--w, 60%); background: linear-gradient(90deg, rgba(154,189,73,0.4), rgba(154,189,73,0.15)); border-radius: 999px; }
.hv-portale .pt-time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; }
.hv-portale .pt-time.hot { color: #DCEC9B; }

/* ---------- VOICE (Giulia) ---------- */
.hv-voice { padding: 32px; flex-direction: column; gap: 18px; }
.hv-voice .v-orb {
  position: relative; width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #E9F4BD 0%, var(--brand-accent) 40%, #5b7a26 100%);
  box-shadow: 0 0 60px rgba(154,189,73,0.5);
}
.hv-voice .v-orb::before, .hv-voice .v-orb::after {
  content: ''; position: absolute; inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(154,189,73,0.4);
  animation: orbRipple 3s ease-out infinite;
}
.hv-voice .v-orb::after { animation-delay: 1.5s; }
@keyframes orbRipple { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.hv-voice .v-bars { display: flex; gap: 4px; align-items: center; height: 80px; }
.hv-voice .v-bars .bar {
  width: 5px; background: var(--brand-accent);
  border-radius: 3px;
  animation: voiceBar 0.9s ease-in-out infinite;
}
@keyframes voiceBar { 0%,100% { height: var(--low); } 50% { height: var(--high); } }
.hv-voice .v-bars .bar:nth-child(1) { --low: 12px; --high: 30px; animation-delay: 0s; }
.hv-voice .v-bars .bar:nth-child(2) { --low: 18px; --high: 56px; animation-delay: 0.08s; }
.hv-voice .v-bars .bar:nth-child(3) { --low: 28px; --high: 72px; animation-delay: 0.16s; }
.hv-voice .v-bars .bar:nth-child(4) { --low: 22px; --high: 64px; animation-delay: 0.24s; }
.hv-voice .v-bars .bar:nth-child(5) { --low: 14px; --high: 44px; animation-delay: 0.32s; }
.hv-voice .v-bars .bar:nth-child(6) { --low: 20px; --high: 60px; animation-delay: 0.4s; }
.hv-voice .v-bars .bar:nth-child(7) { --low: 28px; --high: 80px; animation-delay: 0.48s; }
.hv-voice .v-bars .bar:nth-child(8) { --low: 16px; --high: 50px; animation-delay: 0.56s; }
.hv-voice .v-bars .bar:nth-child(9) { --low: 10px; --high: 28px; animation-delay: 0.64s; }
.hv-voice .v-caption {
  font-family: 'Instrument Serif', serif; font-style: italic;
  color: rgba(255,255,255,0.85); font-size: 16px;
  text-align: center; max-width: 240px;
  padding: 10px 14px;
  background: rgba(10,14,18,0.5);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
}

/* ---------- WHATSAPP ---------- */
.hv-whatsapp { padding: 28px; flex-direction: column; gap: 8px; justify-content: center; }
.hv-whatsapp .wa-thread { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 290px; margin: 0 auto; }
.hv-whatsapp .wa-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.35;
  color: #fff;
  opacity: 0; transform: translateY(8px);
  animation: bubbleIn 0.5s var(--ease-out) forwards;
  max-width: 85%;
}
.hv-whatsapp .wa-bubble.in { background: rgba(255,255,255,0.08); align-self: flex-start; border-bottom-left-radius: 4px; }
.hv-whatsapp .wa-bubble.out { background: rgba(154,189,73,0.22); border: 1px solid rgba(154,189,73,0.35); color: #E9F4BD; align-self: flex-end; border-bottom-right-radius: 4px; }
.hv-whatsapp .b1 { animation-delay: 0.2s; }
.hv-whatsapp .b2 { animation-delay: 0.8s; }
.hv-whatsapp .b3 { animation-delay: 1.4s; }
.hv-whatsapp .b4 { animation-delay: 2.0s; }
.hv-whatsapp .b5 { animation-delay: 2.5s; }
@keyframes bubbleIn { to { opacity: 1; transform: none; } }
.hv-whatsapp .wa-typing {
  align-self: flex-start; padding: 9px 13px;
  background: rgba(255,255,255,0.08); border-radius: 14px; border-bottom-left-radius: 4px;
  display: inline-flex; gap: 4px; align-items: center;
  opacity: 0;
  animation: bubbleIn 0.4s var(--ease-out) forwards;
  animation-delay: 2.9s;
}
.hv-whatsapp .wa-typing span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.5); animation: waType 1.4s ease-in-out infinite; }
.hv-whatsapp .wa-typing span:nth-child(2) { animation-delay: 0.15s; }
.hv-whatsapp .wa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes waType { 0%,100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-3px); opacity: 1; } }

/* ---------- HUB ---------- */
.hv-hub { padding: 24px; }
.hv-hub .hub-orbit {
  position: relative; width: 280px; height: 280px;
  animation: hubRotate 24s linear infinite;
}
.hv-hub .hub-core {
  position: absolute; left: 50%; top: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #E9F4BD, var(--brand-accent));
  box-shadow: 0 0 50px rgba(154,189,73,0.6);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-size: 30px;
  color: var(--brand-ink);
  font-weight: 400;
  animation: hubCoreReverse 24s linear infinite;
}
@keyframes hubCoreReverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.hv-hub .hub-chip {
  position: absolute; left: 50%; top: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(10,14,18,0.85);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 600;
  transform: rotate(var(--a)) translateY(-115px) rotate(calc(var(--a) * -1));
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
@keyframes hubRotate { to { transform: rotate(360deg); } }

/* ---------- BRAIN ---------- */
.hv-brain { padding: 32px; }
.hv-brain .brain-canvas { position: relative; width: 260px; height: 260px; }
.hv-brain .core-dot {
  position: absolute; left: 50%; top: 50%;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #E9F4BD, var(--brand-accent));
  box-shadow: 0 0 40px rgba(154,189,73,0.7);
}
.hv-brain .ripple {
  position: absolute; left: 50%; top: 50%;
  width: 50px; height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  border: 1.5px solid rgba(154,189,73,0.55);
  animation: brainRipple 3s ease-out infinite;
}
.hv-brain .ripple.r2 { animation-delay: 1s; }
.hv-brain .ripple.r3 { animation-delay: 2s; }
@keyframes brainRipple { 0% { transform: scale(0.4); opacity: 1; border-color: rgba(220,236,155,0.95); } 100% { transform: scale(3); opacity: 0; border-color: rgba(154,189,73,0); } }
.hv-brain .memnode {
  position: absolute;
  padding: 5px 9px;
  background: rgba(10,14,18,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: memIn 0.5s var(--ease-out) forwards;
}
.hv-brain .memnode.m1 { left: 8%; top: 18%; animation-delay: 0.4s; }
.hv-brain .memnode.m2 { right: 4%; top: 30%; animation-delay: 0.8s; }
.hv-brain .memnode.m3 { left: 6%; bottom: 28%; animation-delay: 1.2s; }
.hv-brain .memnode.m4 { right: 8%; bottom: 14%; animation-delay: 1.6s; color: var(--brand-accent); border-color: rgba(154,189,73,0.4); }
@keyframes memIn { to { opacity: 1; } }

/* ---------- AGENT STUDIO ---------- */
.hv-agent { padding: 26px 28px; flex-direction: column; gap: 10px; align-items: stretch; }
.hv-agent .ag-card {
  padding: 14px 18px;
  background: rgba(10,14,18,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 4px solid var(--brand-accent);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(-12px);
  animation: agIn 0.6s var(--ease-out) forwards;
}
.hv-agent .ag-card.c1 { animation-delay: 0.3s; }
.hv-agent .ag-card.c2 { animation-delay: 0.7s; }
.hv-agent .ag-card.c3 { animation-delay: 1.1s; }
.hv-agent .ag-card.c4 { animation-delay: 1.5s; border-left-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
@keyframes agIn { to { opacity: 1; transform: none; } }
.hv-agent .ag-name { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #DCEC9B; letter-spacing: 0.06em; text-transform: uppercase; }
.hv-agent .ag-card.c4 .ag-name { color: rgba(255,255,255,0.55); }
.hv-agent .ag-desc { font-size: 12.5px; color: rgba(255,255,255,0.62); line-height: 1.4; }
.hv-agent .ag-pill {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  background: rgba(154,189,73,0.12);
  border: 1px solid rgba(154,189,73,0.25);
  color: var(--brand-accent);
  border-radius: 4px;
}
.hv-agent .ag-card.c4 .ag-pill { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.15); }

/* ============================================================
   MOBILE REFINEMENTS (audit) — keep fixed-px hero visuals inside the
   narrowed single-column hero box; collapse cross-sell grid on phones.
   ============================================================ */
@media (max-width: 580px) {
  .breadcrumb { padding: 18px 20px 0; }

  /* Inline "Founding Partner -40%" promo links -> comfortable tap target. */
  a[href*="founding-partners"] { min-height: 44px; display: inline-flex; align-items: center; }

  /* HUB orbital — 280px orbit no longer fits the ~278px mobile column. */
  .hv-hub { padding: 14px; }
  .hv-hub .hub-orbit { width: 220px; height: 220px; }
  .hv-hub .hub-core { width: 52px; height: 52px; margin: -26px 0 0 -26px; font-size: 24px; }
  .hv-hub .hub-chip {
    width: 42px; height: 42px; margin: -21px 0 0 -21px;
    transform: rotate(var(--a)) translateY(-90px) rotate(calc(var(--a) * -1));
  }

  /* BRAIN memnodes — pull inside the smaller canvas, allow wrap, no overlap. */
  .hv-brain .brain-canvas { width: 220px; height: 220px; }
  .hv-brain .memnode { font-size: 9px; padding: 4px 7px; max-width: 44%; white-space: normal; line-height: 1.25; }
  .hv-brain .memnode.m1 { left: 2%; }
  .hv-brain .memnode.m2 { right: 0; }
  .hv-brain .memnode.m3 { left: 2%; }
  .hv-brain .memnode.m4 { right: 1%; }
}

/* True phones: cross-sell cards go single column so long IT copy stays readable. */
@media (max-width: 430px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-card__tag { font-size: 10.5px; }
  .related-card__desc { font-size: 13px; }
}
