/* HUB2CLOUD Homepage v0.3.1
 * Deliberately restrained: typography, spacing, contrast and motion create the premium feel.
 */

.hub-home {
  --hub-home-max: 1180px;
  --hub-home-cyan: var(--hub-brand, #00b3c7);
  --hub-home-ink: #0c0d0f;
  --hub-home-muted: #6b7280;
  --hub-home-line: rgba(12, 13, 15, 0.09);
}

.hub-home #page-wrapper {
  overflow: clip;
}

.hub-home .container {
  width: min(var(--hub-home-max), calc(100% - 48px));
}

.hub-home main#start {
  overflow: clip;
}

.hub-section {
  padding: clamp(5rem, 9vw, 8.5rem) 0;
}

.hub-kicker,
.hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--hub-home-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hub-kicker-dark {
  color: rgba(255,255,255,.58);
}

.hub-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .75fr);
  align-items: end;
  gap: 2rem 5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
}

.hub-section-heading h2,
.hub-capability h2,
.hub-final-cta h2,
.hub-metrics-title {
  margin: .65rem 0 0;
  max-width: 820px;
  font-size: clamp(2.35rem, 5.2vw, 4.65rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hub-section-heading > p,
.hub-capability-intro > p {
  margin: 0;
  color: var(--q2-text-muted);
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  line-height: 1.85;
}

.hub-section-heading-compact {
  align-items: center;
}

/* ---------- Hero ---------- */
.hub-home-hero {
  position: relative;
  min-height: clamp(680px, 88vh, 900px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), transparent 35%),
    var(--q2-bg);
  border-bottom: 1px solid var(--q2-divider);
}

:root[data-theme="dark"] .hub-home-hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 35%),
    var(--q2-bg);
}

.hub-home-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .48;
  background-image:
    linear-gradient(to right, var(--q2-divider) 1px, transparent 1px),
    linear-gradient(to bottom, var(--q2-divider) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent 96%);
}

.hub-home-glow {
  position: absolute;
  z-index: -2;
  width: min(52vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
  background: var(--hub-home-cyan);
  pointer-events: none;
}

.hub-home-glow-a {
  top: -28%;
  right: -14%;
}

.hub-home-glow-b {
  bottom: -44%;
  left: 24%;
  opacity: .09;
}

.hub-home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(440px, .97fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-top: clamp(6.8rem, 11vw, 9rem);
  padding-bottom: clamp(5rem, 9vw, 7rem);
}

.hub-eyebrow {
  padding: .47rem .72rem;
  border: 1px solid var(--q2-border-ring);
  border-radius: 999px;
  background: color-mix(in oklab, var(--q2-bg-elev) 82%, transparent);
  box-shadow: 0 10px 35px rgba(0,0,0,.04);
  backdrop-filter: blur(14px);
}

.hub-eyebrow-dot {
  width: .43rem;
  height: .43rem;
  border-radius: 50%;
  background: var(--hub-home-cyan);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--hub-home-cyan) 12%, transparent);
}

.hub-home-hero h1 {
  max-width: 820px;
  margin: 1.45rem 0 1.55rem;
  font-size: clamp(3.75rem, 7.5vw, 6.85rem);
  font-weight: 620;
  line-height: .96;
  letter-spacing: -.065em;
}

.hub-home-lead {
  max-width: 700px;
  margin: 0;
  color: var(--q2-text-muted);
  font-size: clamp(1.07rem, 1.6vw, 1.28rem);
  line-height: 1.78;
}

.hub-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 2.25rem;
}

.hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hub-button:hover {
  transform: translateY(-2px);
}

.hub-button-primary {
  color: var(--q2-bg) !important;
  background: var(--q2-text-strong);
  box-shadow: 0 10px 26px rgba(0,0,0,.13);
}

.hub-button-secondary {
  color: var(--q2-text) !important;
  border-color: var(--q2-border-strong);
  background: color-mix(in oklab, var(--q2-bg-elev) 74%, transparent);
  backdrop-filter: blur(12px);
}

.hub-home-note {
  margin: 1.1rem 0 0;
  color: var(--q2-text-muted);
  font-size: .78rem;
}

.hub-home-system {
  --hub-tilt-x: 0px;
  --hub-tilt-y: 0px;
  position: relative;
  transform: translate(var(--hub-tilt-x), var(--hub-tilt-y));
  transition: transform 300ms ease;
}

.hub-system-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--q2-border-strong);
  border-radius: 26px;
  background: color-mix(in oklab, var(--q2-bg-elev) 88%, transparent);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.35) inset,
    0 36px 100px -44px rgba(0,0,0,.36);
  backdrop-filter: blur(22px);
}

.hub-system-topbar,
.hub-system-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0 1.2rem;
  border-bottom: 1px solid var(--q2-divider);
  color: var(--q2-text-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.hub-system-footer {
  min-height: 48px;
  border-top: 1px solid var(--q2-divider);
  border-bottom: 0;
}

.hub-system-footer span,
.hub-system-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.hub-system-status span,
.hub-system-footer i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hub-home-cyan);
  box-shadow: 0 0 12px color-mix(in oklab, var(--hub-home-cyan) 60%, transparent);
}

.hub-system-stage {
  position: relative;
  aspect-ratio: 1.08;
  min-height: 440px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, color-mix(in oklab, var(--hub-home-cyan) 10%, transparent), transparent 38%),
    linear-gradient(to right, var(--q2-divider) 1px, transparent 1px),
    linear-gradient(to bottom, var(--q2-divider) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.hub-system-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: 154px;
  padding: 1.4rem 1rem 1.15rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--q2-border-strong);
  border-radius: 22px;
  background: var(--q2-bg-elev);
  box-shadow: var(--q2-shadow-raised);
}

.hub-system-core-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: .8rem;
  border-radius: 13px;
  color: #fff;
  background: #0d1117;
  font-size: 1.15rem;
  font-weight: 800;
}

.hub-system-core strong {
  font-size: .96rem;
}

.hub-system-core small,
.hub-system-node small {
  margin-top: .25rem;
  color: var(--q2-text-muted);
  font-size: .62rem;
  letter-spacing: .04em;
}

.hub-system-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid color-mix(in oklab, var(--hub-home-cyan) 28%, var(--q2-divider));
  border-radius: 50%;
  transform: translate(-50%,-50%);
}

.hub-system-orbit-one {
  width: 310px;
  height: 310px;
}

.hub-system-orbit-two {
  width: 430px;
  height: 430px;
  opacity: .5;
}

.hub-system-node {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 126px;
  padding: .82rem .9rem;
  border: 1px solid var(--q2-border-ring);
  border-radius: 16px;
  background: color-mix(in oklab, var(--q2-bg-elev) 94%, transparent);
  box-shadow: var(--q2-shadow-card);
}

.hub-system-node > span {
  color: var(--hub-home-cyan);
  font-size: .62rem;
  font-weight: 800;
}

.hub-system-node strong {
  margin-top: .3rem;
  font-size: .82rem;
}

.hub-system-node-a { top: 15%; left: 8%; }
.hub-system-node-b { top: 18%; right: 7%; }
.hub-system-node-c { right: 10%; bottom: 12%; }

/* ---------- Trust ---------- */
.hub-trust {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--q2-divider);
}

.hub-trust-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 60px;
}

.hub-trust-label {
  flex: 0 0 auto;
  color: var(--q2-text-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.hub-trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem 1.6rem;
}

.hub-trust-items span {
  position: relative;
  color: var(--q2-text);
  font-size: .9rem;
  font-weight: 560;
}

.hub-trust-items span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -.85rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--hub-home-cyan);
}

/* ---------- Bento ---------- */
.hub-bento {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  grid-auto-flow: dense;
  gap: 1rem;
}

.hub-bento-card {
  position: relative;
  min-height: 315px;
  overflow: hidden;
  padding: clamp(1.45rem, 3vw, 2.25rem);
  border: 1px solid var(--q2-border-ring);
  border-radius: 24px;
  background: var(--q2-bg-elev);
  box-shadow: 0 1px 0 rgba(255,255,255,.65) inset, 0 20px 60px -46px rgba(0,0,0,.28);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.hub-bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--q2-border-strong);
  box-shadow: var(--q2-shadow-raised);
}

.hub-bento-large {
  grid-row: span 2;
  min-height: 646px;
}

.hub-bento-card.is-accent {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in oklab, var(--hub-home-cyan) 14%, transparent), transparent 50%),
    var(--q2-bg-elev);
}

.hub-bento-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hub-card-kicker {
  color: var(--hub-home-cyan);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hub-bento-card h3 {
  margin: .62rem 0 .7rem;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 620;
  letter-spacing: -.035em;
}

.hub-bento-card p {
  max-width: 560px;
  margin: 0;
  color: var(--q2-text-muted);
  line-height: 1.75;
}

.hub-bento-card a,
.hub-solution-card a,
.hub-text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
  color: var(--q2-text) !important;
  font-size: .86rem;
  font-weight: 680;
  text-decoration: none !important;
}

.hub-product-ui {
  position: absolute;
  right: -3%;
  bottom: -7%;
  width: 82%;
  overflow: hidden;
  border: 1px solid var(--q2-border-strong);
  border-radius: 18px 18px 0 0;
  background: var(--q2-bg);
  box-shadow: 0 32px 70px rgba(0,0,0,.16);
  transform: rotate(-1.8deg);
}

.hub-product-ui-bar {
  display: flex;
  align-items: center;
  gap: .34rem;
  height: 38px;
  padding: 0 .8rem;
  border-bottom: 1px solid var(--q2-divider);
}

.hub-product-ui-bar > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--q2-border-strong);
}

.hub-product-ui-bar b {
  margin-left: .45rem;
  color: var(--q2-text-muted);
  font-size: .56rem;
  letter-spacing: .1em;
}

.hub-product-ui-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 310px;
}

.hub-product-sidebar {
  display: grid;
  align-content: start;
  gap: .7rem;
  padding: 1.1rem .85rem;
  border-right: 1px solid var(--q2-divider);
}

.hub-product-sidebar i {
  height: 10px;
  border-radius: 4px;
  background: var(--q2-bg-muted);
}

.hub-product-sidebar i.is-active {
  background: var(--hub-home-cyan);
}

.hub-product-content {
  padding: 1.6rem;
}

.hub-product-chip {
  display: inline-flex;
  padding: .35rem .55rem;
  border-radius: 999px;
  color: var(--hub-home-cyan);
  background: color-mix(in oklab, var(--hub-home-cyan) 9%, transparent);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .11em;
}

.hub-product-line {
  width: 72%;
  height: 8px;
  margin-top: .8rem;
  border-radius: 999px;
  background: var(--q2-bg-muted);
}

.hub-product-line.is-title {
  width: 52%;
  height: 15px;
  margin-top: 1.4rem;
  background: var(--q2-text);
  opacity: .84;
}

.hub-product-line.is-short { width: 48%; }

.hub-product-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: 1.7rem;
}

.hub-product-panels > div {
  padding: 1rem;
  border: 1px solid var(--q2-divider);
  border-radius: 13px;
  background: var(--q2-bg-elev);
}

.hub-product-panels span,
.hub-product-panels strong {
  display: block;
}

.hub-product-panels span {
  color: var(--q2-text-muted);
  font-size: .6rem;
}

.hub-product-panels strong {
  margin-top: .3rem;
  font-size: .75rem;
}

.hub-mini-visual {
  position: absolute;
  right: 1.7rem;
  bottom: 1.6rem;
  display: flex;
  align-items: end;
  gap: .45rem;
  height: 74px;
}

.hub-mini-visual span {
  width: 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--hub-home-cyan) 70%, var(--q2-text));
}

.hub-mini-visual span:nth-child(1) { height: 42%; opacity: .36; }
.hub-mini-visual span:nth-child(2) { height: 100%; opacity: .8; }
.hub-mini-visual span:nth-child(3) { height: 68%; opacity: .55; }

/* ---------- Capability dark section ---------- */
.hub-capability {
  position: relative;
  overflow: hidden;
  color: #f5f7f8;
  background: #07090b;
}

.hub-capability::before {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  top: -380px;
  right: -220px;
  border-radius: 50%;
  background: var(--hub-home-cyan);
  filter: blur(130px);
  opacity: .12;
}

.hub-capability-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(4rem, 8vw, 8rem);
}

.hub-capability h2 {
  color: #fff;
}

.hub-capability-intro > p {
  margin-top: 1.35rem;
  color: rgba(255,255,255,.58);
}

.hub-capability-list {
  border-top: 1px solid rgba(255,255,255,.11);
}

.hub-capability-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.4rem;
  padding: 1.7rem 0 1.9rem;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.hub-capability-index {
  color: var(--hub-home-cyan);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.hub-capability-item h3 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 620;
}

.hub-capability-item p {
  margin: .55rem 0 0;
  color: rgba(255,255,255,.52);
  font-size: .92rem;
  line-height: 1.75;
}

.hub-capability-line {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--hub-home-cyan);
  transition: width 350ms ease;
}

.hub-capability-item:hover .hub-capability-line {
  width: 100%;
}

/* ---------- Solutions ---------- */
.hub-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--q2-divider);
  border-bottom: 1px solid var(--q2-divider);
}

.hub-solution-card {
  min-height: 390px;
  padding: 2rem 2rem 2.2rem;
  border-right: 1px solid var(--q2-divider);
}

.hub-solution-card:first-child {
  border-left: 1px solid var(--q2-divider);
}

.hub-solution-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--q2-text-muted);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .12em;
}

.hub-solution-card h3 {
  margin: clamp(4.5rem, 8vw, 7rem) 0 .8rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 620;
  letter-spacing: -.03em;
}

.hub-solution-card p {
  color: var(--q2-text-muted);
  line-height: 1.78;
}

/* ---------- Metrics ---------- */
.hub-metrics {
  padding-top: 1rem;
}

.hub-metrics-title {
  max-width: 760px;
  margin-bottom: 3rem;
}

.hub-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--q2-divider);
}

.hub-metric {
  min-height: 210px;
  padding: 2rem 1.5rem 1.5rem 0;
  border-right: 1px solid var(--q2-divider);
}

.hub-metric:last-child {
  border-right: 0;
}

.hub-metric strong,
.hub-metric span,
.hub-metric small {
  display: block;
}

.hub-metric strong {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 580;
  letter-spacing: -.055em;
  line-height: 1;
}

.hub-metric span {
  margin-top: 1.2rem;
  color: var(--q2-text);
  font-weight: 620;
}

.hub-metric small {
  margin-top: .35rem;
  color: var(--q2-text-muted);
  line-height: 1.5;
}

/* ---------- News ---------- */
.hub-news-list {
  border-top: 1px solid var(--q2-divider);
}

.hub-news-item {
  display: grid;
  grid-template-columns: 120px 1fr 30px;
  align-items: center;
  gap: 1.5rem;
  min-height: 96px;
  border-bottom: 1px solid var(--q2-divider);
  color: var(--q2-text) !important;
  text-decoration: none !important;
  transition: padding 180ms ease, background 180ms ease;
}

.hub-news-item:hover {
  padding: 0 1rem;
  background: var(--q2-bg-muted);
}

.hub-news-item time {
  color: var(--q2-text-muted);
  font-size: .76rem;
}

.hub-news-item strong {
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  font-weight: 580;
}

/* ---------- Final CTA ---------- */
.hub-final-cta {
  padding-top: clamp(4rem, 7vw, 7rem);
  padding-bottom: 0;
}

.hub-final-cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem);
  border-radius: 30px;
  color: #fff;
  background: #080a0c;
}

.hub-final-cta-glow {
  position: absolute;
  top: -60%;
  right: -8%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: var(--hub-home-cyan);
  filter: blur(120px);
  opacity: .14;
}

.hub-final-cta h2 {
  position: relative;
  max-width: 900px;
  color: #fff;
}

.hub-final-cta p {
  position: relative;
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: rgba(255,255,255,.58);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hub-button-light {
  position: relative;
  color: #0b0d10 !important;
  background: #fff;
}

.hub-button-ghost {
  position: relative;
  color: #fff !important;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms cubic-bezier(.2,.8,.2,1), transform 650ms cubic-bezier(.2,.8,.2,1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hub-home-system,
  .hub-bento-card,
  .hub-button {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hub-home-hero-inner,
  .hub-capability-layout {
    grid-template-columns: 1fr;
  }

  .hub-home-hero-inner {
    gap: 3.2rem;
  }

  .hub-home-system {
    width: min(680px, 100%);
  }

  .hub-section-heading {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hub-bento {
    grid-template-columns: 1fr 1fr;
  }

  .hub-bento-large {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 600px;
  }

  .hub-solution-grid {
    grid-template-columns: 1fr;
  }

  .hub-solution-card {
    min-height: 300px;
    border-left: 1px solid var(--q2-divider);
    border-bottom: 1px solid var(--q2-divider);
  }

  .hub-solution-card:last-child {
    border-bottom: 0;
  }

  .hub-solution-card h3 {
    margin-top: 3.5rem;
  }

  .hub-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hub-metric:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .hub-home .container {
    width: min(100% - 28px, var(--hub-home-max));
  }

  .hub-home-hero {
    min-height: auto;
  }

  .hub-home-hero-inner {
    padding-top: 8rem;
  }

  .hub-home-hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .hub-system-stage {
    min-height: 360px;
  }

  .hub-system-footer {
    flex-wrap: wrap;
    padding-top: .75rem;
    padding-bottom: .75rem;
  }

  .hub-system-orbit-two {
    width: 360px;
    height: 360px;
  }

  .hub-system-orbit-one {
    width: 250px;
    height: 250px;
  }

  .hub-system-node {
    width: 108px;
    padding: .68rem .72rem;
  }

  .hub-system-node-a { left: 2%; }
  .hub-system-node-b { right: 2%; }
  .hub-system-node-c { right: 3%; bottom: 8%; }

  .hub-trust-row {
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
    padding: .8rem 0;
  }

  .hub-trust-items {
    gap: .55rem 1.2rem;
  }

  .hub-bento {
    grid-template-columns: 1fr;
  }

  .hub-bento-large {
    min-height: 560px;
  }

  .hub-product-ui {
    width: 94%;
  }

  .hub-metrics-grid {
    grid-template-columns: 1fr;
  }

  .hub-metric,
  .hub-metric:nth-child(2) {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--q2-divider);
  }

  .hub-news-item {
    grid-template-columns: 1fr 24px;
    gap: .65rem 1rem;
    padding: 1.25rem 0;
  }

  .hub-news-item time {
    grid-column: 1;
  }

  .hub-news-item strong {
    grid-column: 1;
  }

  .hub-news-item > span {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .hub-final-cta-card {
    border-radius: 22px;
  }
}

/* ========================================================================== */
/* HUB2CLOUD Homepage v0.3 — immersive editorial rhythm + stronger mobile UX   */
/* ========================================================================== */

.hub-home {
  --hub-home-max: 1320px;
}

.hub-home .container {
  width: min(var(--hub-home-max), calc(100% - 64px));
}

.hub-home-hero {
  min-height: min(960px, 100svh);
  border-bottom: 0;
}

.hub-home-hero-inner {
  grid-template-columns: minmax(0, 1.06fr) minmax(460px, .94fr);
  gap: clamp(3.5rem, 7.5vw, 8rem);
  padding-top: clamp(8.5rem, 13vh, 10.5rem);
  padding-bottom: clamp(5rem, 9vh, 7.5rem);
}

.hub-home-hero h1,
.hub-section-heading h2,
.hub-capability h2,
.hub-final-cta h2,
.hub-metrics-title {
  text-wrap: balance;
}

.hub-home-hero h1 {
  max-width: 900px;
  font-size: clamp(4.15rem, 7.45vw, 7.35rem);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.07em;
}

.hub-home-lead {
  max-width: 690px;
  font-size: clamp(1.08rem, 1.45vw, 1.26rem);
  line-height: 1.82;
}

.hub-system-window {
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.25) inset,
    0 46px 110px -50px rgba(0,0,0,.4);
}

.hub-system-stage {
  aspect-ratio: 1.16;
  min-height: 430px;
}

/* NANFU-like "continue exploring" cue: a quiet signal, not a decorative toy. */
.hub-scroll-cue {
  position: absolute;
  left: max(32px, calc((100vw - var(--hub-home-max)) / 2));
  bottom: 1.4rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--q2-text-muted);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
}

.hub-scroll-cue::after {
  content: "";
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, var(--hub-home-cyan), var(--q2-divider));
  transform-origin: left;
  animation: hub-scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes hub-scroll-pulse {
  0%, 100% { transform: scaleX(.28); opacity: .45; }
  50% { transform: scaleX(1); opacity: 1; }
}

.hub-section {
  padding: clamp(6rem, 10vw, 10rem) 0;
}

.hub-section-heading {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr);
  gap: 2rem clamp(4rem, 8vw, 8rem);
  margin-bottom: clamp(3rem, 6vw, 5.25rem);
}

.hub-section-heading h2,
.hub-capability h2,
.hub-final-cta h2,
.hub-metrics-title {
  font-size: clamp(2.7rem, 5.25vw, 5.2rem);
  font-weight: 590;
  line-height: .98;
  letter-spacing: -.055em;
}

/* Less "dashboard card", more product/editorial composition. */
.hub-bento {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--q2-divider);
  border-radius: 14px;
  background: var(--q2-divider);
}

.hub-bento-card {
  min-height: 330px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hub-bento-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.hub-bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 72%, color-mix(in oklab, var(--hub-home-cyan) 5%, transparent));
  opacity: 0;
  transition: opacity .25s ease;
}

.hub-bento-card:hover::after {
  opacity: 1;
}

.hub-bento-large {
  min-height: 680px;
}

.hub-bento-card h3 {
  font-size: clamp(1.75rem, 3.1vw, 2.75rem);
}

.hub-product-ui {
  width: 84%;
  border-radius: 12px 12px 0 0;
  transform: rotate(-1deg);
}

/* Capability uses larger, calmer rows; index feels like an editorial anchor. */
.hub-capability-layout {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.hub-capability-item {
  grid-template-columns: 64px 1fr;
  padding: 2rem 0 2.15rem;
}

.hub-capability-index {
  font-size: .78rem;
}

.hub-capability-item h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
}

/* Solutions: stronger architectural lines and breathing room. */
.hub-solution-grid {
  border-color: var(--q2-border-strong);
}

.hub-solution-card {
  min-height: 430px;
  padding: 2.2rem clamp(1.7rem, 2.8vw, 2.6rem) 2.4rem;
}

.hub-solution-card h3 {
  margin-top: clamp(6rem, 10vw, 9rem);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

/* Metrics become a proof wall instead of small KPI cards. */
.hub-metrics-grid {
  border-top-color: var(--q2-border-strong);
  border-bottom: 1px solid var(--q2-divider);
}

.hub-metric {
  min-height: 250px;
  padding: 2.5rem 2rem 2rem 0;
}

.hub-metric strong {
  font-size: clamp(3.2rem, 6.5vw, 6.5rem);
  font-weight: 530;
  line-height: .92;
}

.hub-news-item {
  min-height: 108px;
}

.hub-final-cta-card {
  border-radius: 16px;
}

/* ----------------------------- Tablet / Mobile ---------------------------- */
@media (max-width: 980px) {
  .hub-home .container {
    width: min(100% - 40px, var(--hub-home-max));
  }

  .hub-home-hero {
    min-height: auto;
  }

  .hub-home-hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vw, 4.5rem);
    padding-top: 8.5rem;
    padding-bottom: 5.5rem;
  }

  .hub-home-hero-copy {
    max-width: 760px;
  }

  .hub-home-system {
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .hub-scroll-cue {
    display: none;
  }

  .hub-section-heading {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .hub-bento-large {
    min-height: 620px;
  }

  .hub-capability-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hub-solution-card {
    min-height: 320px;
  }

  .hub-solution-card h3 {
    margin-top: 4rem;
  }
}

@media (max-width: 720px) {
  .hub-home .container {
    width: calc(100% - 32px);
  }

  .hub-section {
    padding: clamp(4.5rem, 16vw, 6.5rem) 0;
  }

  .hub-home-hero-inner {
    padding-top: calc(6.6rem + env(safe-area-inset-top, 0px));
    padding-bottom: 4.25rem;
  }

  .hub-eyebrow {
    max-width: 100%;
    padding: .42rem .62rem;
    font-size: .63rem;
    letter-spacing: .11em;
  }

  .hub-home-hero h1 {
    margin: 1.2rem 0 1.25rem;
    font-size: clamp(3rem, 14.4vw, 4.55rem);
    font-weight: 590;
    line-height: .98;
    letter-spacing: -.06em;
  }

  .hub-home-lead {
    font-size: 1rem;
    line-height: 1.72;
  }

  .hub-home-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    width: 100%;
    margin-top: 1.8rem;
  }

  .hub-button {
    width: 100%;
    min-height: 50px;
    padding-inline: .85rem;
  }

  .hub-home-note {
    font-size: .72rem;
    line-height: 1.6;
  }

  /* Move the software visual into normal document flow so it can never crop or
   * create horizontal overflow on narrow phones. */
  .hub-system-window {
    border-radius: 14px;
  }

  .hub-system-stage {
    aspect-ratio: auto;
    min-height: 350px;
  }

  .hub-system-orbit-one {
    width: 238px;
    height: 238px;
  }

  .hub-system-orbit-two {
    width: 330px;
    height: 330px;
  }

  .hub-system-core {
    width: 132px;
    padding: 1.1rem .8rem .95rem;
    border-radius: 16px;
  }

  .hub-system-core-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .hub-system-node {
    width: 102px;
    padding: .65rem .7rem;
    border-radius: 11px;
  }

  .hub-system-node-a { top: 11%; left: 2%; }
  .hub-system-node-b { top: 14%; right: 2%; }
  .hub-system-node-c { right: 4%; bottom: 7%; }

  .hub-system-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    padding: .8rem 1rem;
    font-size: .57rem;
    letter-spacing: .06em;
  }

  .hub-system-footer span:last-child {
    grid-column: 1 / -1;
  }

  .hub-trust {
    overflow: hidden;
  }

  .hub-trust-row {
    gap: .65rem;
  }

  .hub-trust-items {
    width: calc(100vw - 16px);
    margin-right: -16px;
    padding-right: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hub-trust-items::-webkit-scrollbar { display: none; }

  .hub-trust-items span {
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-size: .86rem;
  }

  .hub-section-heading h2,
  .hub-capability h2,
  .hub-final-cta h2,
  .hub-metrics-title {
    font-size: clamp(2.45rem, 11.5vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -.05em;
  }

  .hub-section-heading > p,
  .hub-capability-intro > p {
    font-size: .98rem;
    line-height: 1.72;
  }

  .hub-bento {
    grid-template-columns: 1fr;
    gap: 1px;
    border-radius: 10px;
  }

  .hub-bento-card,
  .hub-bento-large {
    min-height: auto;
    padding: 1.45rem 1.25rem 1.55rem;
  }

  .hub-bento-card h3 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .hub-product-ui {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 2.3rem;
    border-radius: 10px;
    transform: none;
  }

  .hub-product-ui-body {
    min-height: 260px;
  }

  .hub-product-content {
    padding: 1.2rem;
  }

  .hub-mini-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: max-content;
    margin: 2rem 0 .2rem auto;
  }

  .hub-capability-item {
    grid-template-columns: 42px 1fr;
    gap: .85rem;
    padding: 1.45rem 0 1.6rem;
  }

  .hub-capability-item p {
    font-size: .88rem;
    line-height: 1.68;
  }

  /* Swipeable solution chapters on phone — closer to an immersive product
   * story than three compressed stacked cards. */
  .hub-solutions .container {
    width: 100%;
  }

  .hub-solutions .hub-section-heading {
    width: calc(100% - 32px);
    margin-inline: auto;
  }

  .hub-solution-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 10px;
    border: 0;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hub-solution-grid::-webkit-scrollbar { display: none; }

  .hub-solution-card,
  .hub-solution-card:first-child,
  .hub-solution-card:last-child {
    flex: 0 0 min(84vw, 430px);
    min-height: 360px;
    padding: 1.5rem;
    border: 1px solid var(--q2-divider);
    border-radius: 10px;
    background: var(--q2-bg-elev);
    scroll-snap-align: center;
  }

  .hub-solution-card h3 {
    margin-top: 4.5rem;
    font-size: 1.75rem;
  }

  .hub-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hub-metric,
  .hub-metric:nth-child(2) {
    min-height: 180px;
    padding: 1.5rem .8rem 1.35rem 0;
    border-right: 1px solid var(--q2-divider);
    border-bottom: 1px solid var(--q2-divider);
  }

  .hub-metric:nth-child(2n) {
    padding-left: 1rem;
    border-right: 0;
  }

  .hub-metric strong {
    font-size: clamp(2.8rem, 15vw, 4.25rem);
  }

  .hub-news-item {
    grid-template-columns: 1fr 22px;
    gap: .55rem 1rem;
    min-height: auto;
    padding: 1.15rem 0;
  }

  .hub-news-item:hover {
    padding: 1.15rem 0;
    background: transparent;
  }

  .hub-final-cta {
    padding-top: 3.5rem;
  }

  .hub-final-cta-card {
    padding: 2.4rem 1.35rem 2.6rem;
    border-radius: 10px;
  }
}

@media (max-width: 430px) {
  .hub-home .container {
    width: calc(100% - 28px);
  }

  .hub-home-hero h1 {
    font-size: clamp(2.8rem, 14vw, 3.85rem);
  }

  .hub-home-actions {
    grid-template-columns: 1fr;
  }

  .hub-system-stage {
    min-height: 318px;
  }

  .hub-system-orbit-two {
    display: none;
  }

  .hub-system-node-c {
    display: none;
  }

  .hub-system-node-a { top: 10%; left: 3%; }
  .hub-system-node-b { top: 12%; right: 3%; }

  .hub-product-ui-body {
    grid-template-columns: 40px 1fr;
    min-height: 230px;
  }

  .hub-product-panels {
    grid-template-columns: 1fr;
  }

  .hub-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hub-metric span {
    font-size: .88rem;
  }

  .hub-metric small {
    font-size: .7rem;
  }

  /* Full-bleed dark ending feels more intentional on phone and avoids the
   * "small card floating inside a small screen" look. */
  .hub-final-cta .container {
    width: 100%;
  }

  .hub-final-cta-card {
    border-radius: 0;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: calc(2.8rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (hover: none), (pointer: coarse) {
  .hub-bento-card:hover,
  .hub-button:hover {
    transform: none;
  }

  .hub-bento-card:hover::after {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-scroll-cue::after {
    animation: none;
  }
}

/* ========================================================================== */
/* HUB2CLOUD v0.4.1 — stability guardrails                                    */
/* ========================================================================== */

/* Never let a grid/flex child force the homepage wider than its container. */
.hub-section-heading,
.hub-bento,
.hub-bento-card,
.hub-bento-copy,
.hub-product-ui,
.hub-product-ui-body,
.hub-product-content,
.hub-product-panels,
.hub-final-cta-card,
.hub-final-cta-copy {
  min-width: 0;
  max-width: 100%;
}

/* Product UI labels must stay horizontal. The v0.4.0 rewrite allowed the
 * workspace label to collapse to one character per line at some widths. */
.hub-product-ui-bar {
  min-width: 0;
}

.hub-product-ui-bar b,
.hub-product-ui-bar > span:last-child,
.hub-product-chip {
  min-width: 0;
  white-space: nowrap;
}

.hub-product-ui-bar b {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Keep the feature mock inside the large product card on every desktop width. */
.hub-bento-large {
  overflow: hidden;
}

.hub-bento-large .hub-product-ui {
  width: auto;
  max-width: 100%;
}

/* The final CTA is a single module. Give it predictable separation without
 * creating page-sized empty bands. */
.hub-final-cta {
  margin: 0;
}

@media (max-width: 980px) {
  .hub-bento-large .hub-product-ui {
    position: relative;
    inset: auto;
    width: auto;
    max-width: 100%;
  }
}
