/* =====================================================================
   IntelliLabs AI — Home page sections
   ===================================================================== */

/* ---------- Hero ----------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: var(--on-dark); }
.hero::before { /* soft floor glow, as under the logo */
  content: ""; position: absolute; inset: auto -10% -30% -10%; height: 70%; z-index: -2;
  background: radial-gradient(60% 60% at 70% 60%, rgba(31, 91, 255, 0.28), transparent 70%),
              radial-gradient(40% 50% at 88% 80%, rgba(240, 60, 203, 0.16), transparent 70%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px clamp(24px, 4vw, 64px);
  align-items: center; padding-block: clamp(56px, 8vw, 104px) clamp(96px, 11vw, 150px);
}
.hero__copy { display: grid; gap: 26px; justify-items: start; min-width: 0; }
.hero h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
.hero__line { display: block; }
@media (min-width: 480px) { .hero__line { white-space: nowrap; } }
.hero__key { position: relative; color: var(--on-dark); transition: color 0.6s var(--ease); }
.hero__key::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.09em; border-radius: 99px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease);
}
.hero__line.is-active .hero__key::after { transform: scaleX(1); }
.hero__line[data-shape="imagine"].is-active .hero__key { color: var(--cyan); }
.hero__line[data-shape="build"].is-active .hero__key { color: #7fa6ff; }
.hero__line[data-shape="innovate"].is-active .hero__key { color: #ff7ddf; }
.hero__lead { font-size: var(--fs-lead); color: var(--on-dark-soft); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.hero__note { display: flex; align-items: flex-start; gap: 14px; color: var(--note); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.3; }
.hero__note svg { flex: none; width: 74px; height: 44px; margin-top: 2px; color: var(--on-dark-soft); }

/* The right-hand stage: the WebGL shape is drawn wherever this box sits */
.hero__side { display: grid; gap: 18px; justify-items: center; min-width: 0; }
.hero__stage { width: 100%; max-width: 520px; aspect-ratio: 1 / 1; }
.hero__stage-fallback { display: none; }
.hero.no-webgl .hero__stage { display: grid; place-items: center; border-radius: 50%; background: radial-gradient(closest-side, rgba(33, 199, 243, 0.3), rgba(240, 60, 203, 0.14) 60%, transparent); }
.shape-switch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px; }
.shape-switch__btn {
  border: 0; background: none; padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-display); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--on-dark-soft); transition: color 0.3s, background-color 0.3s;
}
.shape-switch__btn:hover { color: var(--on-dark); }
.shape-switch__btn[aria-pressed="true"] { color: var(--navy-950); background: var(--on-dark); }
.shape-switch i { font-style: normal; width: 2px; height: 16px; border-radius: 2px; }
.shape-switch i:first-of-type { background: var(--cyan); }
.shape-switch i:last-of-type { background: var(--magenta); }
.hero__caption { min-height: 1.6em; font-size: var(--fs-small); color: var(--on-dark-soft); text-align: center; }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(36px, 6vw, 84px); color: var(--paper); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); padding-top: 20px; gap: 24px; }
  .hero__side { order: -1; gap: 6px; }
  .hero__stage { max-width: 290px; }
  .hero__copy { gap: 20px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__actions .link-arrow { margin-inline: auto; }
}

