.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
}

.hero-bg-trail {
  position: absolute;
  top: 50%;
  right: -10%;
  width: 70%;
  height: 120%;
  transform: translateY(-50%) rotate(-8deg);
  background:
    radial-gradient(ellipse at center, var(--theme-hero-glow-a, rgba(61, 255, 154, 0.08)) 0%, transparent 60%),
    conic-gradient(from 200deg at 50% 50%, transparent, var(--theme-hero-glow-b, rgba(61, 255, 154, 0.06)), transparent, var(--theme-hero-glow-c, rgba(61, 255, 154, 0.04)), transparent);
  filter: blur(48px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

#hero-interactive {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

.site-main--home-canvas {
  position: relative;
  background: #050505;
}

.site-main--home-canvas .hero-bg-trail {
  opacity: 0.18;
}

.site-main--home-canvas > .hero,
.site-main--home-canvas > .page-shell {
  position: relative;
  z-index: 1;
}

.site-main--home-canvas.is-sling-dragging {
  cursor: grabbing;
  user-select: none;
}

.site-main--home-canvas.is-sling-dragging .hero-content,
.site-main--home-canvas.is-sling-dragging .hero-bottom,
.site-main--home-canvas.is-sling-dragging .hero-aside,
.site-main--home-canvas.is-sling-dragging .feature-item,
.site-main--home-canvas.is-sling-dragging .page-shell a,
.site-main--home-canvas.is-sling-dragging .page-shell button {
  pointer-events: none;
}

.hero.is-sling-dragging {
  cursor: grabbing;
  user-select: none;
}

.hero.is-sling-dragging .hero-content,
.hero.is-sling-dragging .hero-bottom,
.hero.is-sling-dragging .hero-aside {
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2rem;
}

.hero-status-badge {
  align-self: flex-start;
  margin-bottom: 1.25rem;
  font-size: calc(0.7rem + 1pt);
}

.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-title .cursor {
  display: inline-block;
  width: clamp(2rem, 8vw, 5rem);
  height: clamp(0.5rem, 2vw, 1rem);
  background: var(--color-accent);
  margin-left: 0.1em;
  vertical-align: baseline;
  box-shadow: var(--glow-accent);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-aside {
  position: absolute;
  top: 30%;
  right: clamp(1.25rem, 4vw, 3rem);
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 2rem;
  z-index: 1;
}

.hero-cta-block {
  max-width: 280px;
  text-align: right;
}

.hero-cta-block p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-top: 4rem;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.btn.btn-ghost.is-disabled,
.btn.btn-ghost.is-disabled:hover {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.feature-item {
  padding: 2rem;
  background: var(--color-bg-elevated);
  transition: background var(--transition);
}

.feature-item:hover {
  background: var(--color-surface);
}

.feature-item .num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .hero-aside {
    display: flex;
  }
}
