/* hero.css — Asymmetric hero with blueprint texture */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 6rem; /* clear fixed nav */
}

/* Blueprint grid texture — main grid + fine subdivision */
.hero__blueprint-texture {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(var(--hero-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-fine) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  pointer-events: none;
}

/* Blueprint annotation marks — tick marks along left and bottom edges */
.hero__blueprint-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--hero-grid-line) 0,
      var(--hero-grid-line) 1px,
      transparent 1px,
      transparent 80px
    );
  background-size: 80px 6px;
  background-position: 0 100%;
  background-repeat: repeat-x;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 600px;
}

.hero__label {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-mid);
  max-width: 50ch;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 600;
  color: white;
  background: var(--violet);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-button);
  transition: background var(--transition-fast), transform 100ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero__cta:hover {
    background: var(--violet-light);
    color: white;
  }
}

.hero__cta:active {
  transform: scale(0.97);
}

/* Decorative blueprint circle */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__circle {
  width: 100%;
  max-width: 400px;
  height: auto;
  opacity: 0.8;
  animation: blueprint-orbit 40s linear infinite;
  will-change: transform;
}

@keyframes blueprint-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__circle {
    animation: none;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-block: 8rem 4rem;
  }

  .hero__visual {
    display: none; /* hide decorative circle on mobile */
  }

  .hero__content {
    max-width: 100%;
  }
}
