/* ═══════════════════════════════════════════════════════════════════════
   Homepage hero - "obsidian with light inside it"
   ═══════════════════════════════════════════════════════════════════════
   The product is named after volcanic glass: black, glossy, lit from
   within. The WebGL gradient renders exactly that, so it is treated as the
   page's ground material rather than as decoration - which is why the old
   blob-mesh and dot-grid layers are gone. Three competing background
   layers made the surface muddy; one deep one makes it read as a material.

   Everything else is deliberately quiet so the gradient and the headline
   carry the page. Loaded after home.page.css and intentionally overrides
   the older .hero-* rules.
   ═════════════════════════════════════════════════════════════════════ */

.hero {
  --ob-void:   #07070C;
  --ob-indigo: #4F46E5;
  --ob-violet: #7C3AED;
  --ob-lilac:  #A78BFA;
  --ob-ice:    #EEEDFF;
  --ob-mute:   rgba(238, 237, 255, .58);

  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 132px 24px 0;
  background: var(--ob-void);
  isolation: isolate;
}

/* ── Ground: the WebGL canvas ──────────────────────────────────────── */

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Darkens the outer field so the light pools toward the centre, behind the
   headline, instead of washing the whole panel evenly. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 34%, transparent 0%, rgba(7, 7, 12, .58) 62%, var(--ob-void) 100%),
    linear-gradient(to bottom, rgba(7, 7, 12, .55) 0%, transparent 22%, transparent 58%, var(--ob-void) 100%);
}

/* ── Copy ──────────────────────────────────────────────────────────── */

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 34px;
  padding: 7px 15px 7px 12px;
  border: 1px solid rgba(167, 139, 250, .22);
  border-radius: 100px;
  background: rgba(167, 139, 250, .07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(238, 237, 255, .72);
  animation: hero-rise .8s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .16);
}

/* Light weight at large size is what makes this read as considered rather
   than shouted - the previous 800-weight setting is the SaaS default. */
.hero-title {
  margin: 0 0 26px;
  font-size: clamp(2.75rem, 6.2vw, 5.125rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.038em;
  color: var(--ob-ice);
  animation: hero-rise .8s cubic-bezier(.16, 1, .3, 1) .08s both;
}

.hero-title .ht-line { display: block; }

/* The variable half of the sentence is the emphasised half: the weight and
   colour shift marks exactly the word that changes, so the styling carries
   the meaning instead of decorating it. */
.hero-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--ob-lilac);
  transition: opacity .5s ease;
}

.hero-title em.is-swapping { opacity: 0; }

.hero-lede {
  max-width: 34rem;
  margin: 0 auto 40px;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ob-mute);
  animation: hero-rise .8s cubic-bezier(.16, 1, .3, 1) .16s both;
}

/* ── Actions ───────────────────────────────────────────────────────── */

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  animation: hero-rise .8s cubic-bezier(.16, 1, .3, 1) .24s both;
}

.hcta-primary,
.hcta-quiet {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 26px;
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1),
              box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.hcta-primary {
  color: #0B0A14;
  background: linear-gradient(180deg, #F4F2FF, #C9C3F5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset,
              0 12px 34px rgba(124, 58, 237, .3);
}

.hcta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset,
              0 18px 44px rgba(124, 58, 237, .42);
}

.hcta-primary svg { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.hcta-primary:hover svg { transform: translateX(3px); }

.hcta-quiet {
  color: rgba(238, 237, 255, .82);
  border: 1px solid rgba(238, 237, 255, .16);
  background: rgba(238, 237, 255, .04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hcta-quiet:hover {
  border-color: rgba(238, 237, 255, .32);
  background: rgba(238, 237, 255, .08);
  transform: translateY(-2px);
}

.hero-note {
  margin: 0;
  font-size: .8125rem;
  color: rgba(238, 237, 255, .4);
  animation: hero-rise .8s cubic-bezier(.16, 1, .3, 1) .32s both;
}

.hero-note span { color: rgba(238, 237, 255, .22); margin: 0 8px; }

/* ── Product, glimpsed ─────────────────────────────────────────────── */
/* Cropped by the viewport rather than shown whole: it reads as depth under
   the headline instead of a second thing competing for attention. */

.hero-product {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 940px;
  margin: 74px auto -1px;
  animation: hero-rise 1s cubic-bezier(.16, 1, .3, 1) .42s both;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}

.hero-product .dash-window {
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(238, 237, 255, .1);
  border-bottom: none;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .06) inset,
              0 40px 90px rgba(0, 0, 0, .6);
}

/* Hairline where the hero meets the page - the only rule on the section. */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .38), transparent);
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .hero { padding: 108px 20px 0; min-height: auto; }
  .hero-title { letter-spacing: -.03em; }
  .hero-lede { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hcta-primary, .hcta-quiet { justify-content: center; }
  .hero-product { margin-top: 52px; }
}

/* ── Accessibility ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  /* The canvas animates continuously and can't be paused from CSS, so it is
     replaced with a still gradient in the same palette. */
  .hero-canvas { display: none; }
  .hero {
    background:
      radial-gradient(90% 70% at 50% 28%, rgba(124, 58, 237, .34), transparent 62%),
      radial-gradient(70% 60% at 22% 72%, rgba(79, 70, 229, .26), transparent 68%),
      var(--ob-void);
  }
  .hero-kicker, .hero-title, .hero-lede,
  .hero-cta, .hero-note, .hero-product { animation: none; }
  .hero-title em { transition: none; }
}

.hcta-primary:focus-visible,
.hcta-quiet:focus-visible {
  outline: 2px solid var(--ob-lilac);
  outline-offset: 3px;
}
