/**
 * hero.css - Full-viewport liquid-glass hero matching the 3D slab composition.
 * Requirements: 6.1, 6.2
 */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 5rem;
  overflow: visible;
}

.hero__inner {
  display: grid;
  gap: 2.5rem;
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__logo {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  background: #050509;
}

.hero__headline {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 400;
  text-wrap: balance;
}

.hero__headline span {
  display: block;
}

.hero__subline {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  color: var(--color-text-muted);
  max-width: 34rem;
}

.hero__body {
  margin-top: 0.55rem;
  color: var(--color-text-faint);
  max-width: 34rem;
  font-size: 0.95rem;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.hero__visual {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}

.hero-slab {
  position: relative;
  width: min(100%, 540px);
  transform-style: preserve-3d;
}

.hero-slab__glow {
  position: absolute;
  inset: 18% -8% -18% 8%;
  background:
    radial-gradient(ellipse at 30% 100%, rgba(22, 140, 255, 0.38), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 42, 42, 0.28), transparent 50%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.hero__glass {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.35rem 1.35rem 1.2rem;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(210, 230, 255, 0.16) 0%, rgba(18, 28, 55, 0.42) 48%, rgba(10, 14, 28, 0.55) 100%);
  border: 1px solid rgba(186, 230, 255, 0.42);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 60px rgba(22, 140, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(22, 140, 255, 0.18);
}

.hero__glass.glass-in-view {
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.hero__reflections::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 46%;
  height: 160%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  pointer-events: none;
  z-index: 3;
}

.hero-dash {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  position: relative;
  z-index: 2;
}

.hero-dash__cell {
  min-height: 0;
  aspect-ratio: 1.28 / 1;
  padding: 0.85rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.55rem;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -10px 18px rgba(0, 20, 40, 0.18);
}

a.hero-dash__cell:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

.hero-dash__icon {
  width: 22px;
  height: 22px;
  color: rgba(230, 244, 255, 0.92);
}

.hero-dash__icon svg {
  width: 100%;
  height: 100%;
}

.hero-dash__label {
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}

.hero-dash__signals {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.05rem;
  padding: 0.15rem 0.15rem 0.35rem;
  position: relative;
  z-index: 2;
}

.hero-dash__signal {
  display: block;
  height: 8px;
  border-radius: 99px;
  box-shadow: 0 0 16px currentColor;
}

.hero-dash__signal--cyan {
  width: 92%;
  background: linear-gradient(90deg, #19d9ff, #168cff);
  color: #19d9ff;
}

.hero-dash__signal--violet {
  width: 78%;
  background: linear-gradient(90deg, #168cff, #7a3cff);
  color: #7a3cff;
}

.hero-dash__signal--red {
  width: 64%;
  background: linear-gradient(90deg, #ff2a2a, #7a3cff);
  color: #ff2a2a;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.02fr 0.98fr;
    gap: 1.5rem 2.5rem;
  }

  .hero__visual {
    min-width: 40%;
    min-height: 460px;
  }

  .hero-slab {
    transform: rotateY(-22deg) rotateX(8deg) translateZ(20px);
  }
}
