.hero {
  display: grid;
  align-items: center;
}

.hero__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: var(--space-2xs);
  border-radius: var(--radius-full);
  background: var(--color-success);
  box-shadow: 0 0 14px var(--color-success-glow);
}

.hero__title {
  max-width: 760px;
  margin-bottom: var(--space-m);
  font-size: var(--text-5xl);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero__title-accent {
  color: var(--color-text-subtle);
}

.hero__text {
  max-width: 37rem;
  color: var(--color-text-muted);
  font-size: var(--text-m);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-block: var(--space-l);
}

.hero__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
}

.hero__tech-separator {
  color: var(--color-line-hover);
}

/* Decorative visual — aria-hidden in markup */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(20rem, 16.667rem + 16.667vw, 30rem); /* 320 → 480 */
}

.hero__grid-lines {
  position: absolute;
  inset: 5%;
  border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-full);
  background-image:
    linear-gradient(rgb(var(--glow-rgb) / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--glow-rgb) / 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: rotate(-8deg);
  -webkit-mask-image: radial-gradient(circle, black 20%, transparent 70%);
  mask-image: radial-gradient(circle, black 20%, transparent 70%);
}

.hero__orb {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: var(--glow-opacity);
  filter: blur(2px);
}

.hero__orb--large {
  width: 270px;
  height: 270px;
  background: rgb(var(--glow-rgb) / 0.11);
  box-shadow: 0 0 100px rgb(var(--glow-rgb) / 0.16);
}

.hero__orb--small {
  top: 8%;
  right: 14%;
  width: 90px;
  height: 90px;
  border: var(--border-width) solid rgb(var(--glow-rgb) / 0.3);
  box-shadow: 0 0 50px rgb(var(--glow-rgb) / 0.2);
}

.hero__code {
  position: relative;
  width: min(100%, 470px);
  overflow: hidden;
  border: var(--border-width) solid var(--color-code-border);
  border-radius: var(--radius-l);
  background: var(--color-code-bg);
  box-shadow: var(--shadow-l), var(--shadow-glow);
}

.hero__code-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  height: 2.5rem;
  padding-inline: var(--space-s);
  border-bottom: var(--border-width) solid var(--color-code-line);
}

.hero__code-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-code-dot);
}

.hero__code-body {
  padding: var(--space-m);
  color: var(--color-code-text);
  font-family: var(--font-mono);
  font-size: var(--text-s);
  line-height: 2;
}

.hero__code-line {
  margin-left: var(--space-m);
}

.hero__code-selector {
  color: var(--color-code-accent);
  font-weight: var(--font-weight-bold);
}

.hero__code-token--key {
  color: var(--color-code-key);
}

.hero__code-token--value {
  color: var(--color-code-value);
}

.hero__code-token--accent {
  color: var(--color-code-accent);
}

.hero__code-punct {
  color: var(--color-code-punct);
}

.hero__code-footer {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-s);
  border-top: var(--border-width) solid var(--color-code-line);
  color: var(--color-code-meta);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .hero__code {
    transform: rotate(2deg);
  }

  .hero__code-body {
    padding: var(--space-l);
  }
}

@media (min-width: 992px) {
  .hero {
    min-height: 45.625rem; /* 730 — fills a desktop viewport */
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
