/**
 * Hero Component
 * Company homepage hero — grid background + code window accent
 */

.hero {
  position: relative;
  padding: var(--space-12) 0 var(--space-10);
  background-color: var(--midnight-canvas);
  overflow: hidden;
}

/* Subtle grid lines background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 120, 198, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 120, 198, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

/* Radial fade so grid clears nicely around content */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 80% at 50% 40%,
    rgba(10, 14, 20, 0.88) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--space-4);
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-code);
  font-size: var(--text-sm);
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
  opacity: 0.85;
}

.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.7;
}

/* Title */
.hero-title {
  font-size: var(--text-6xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-4);
  color: var(--frost-white);
}

.hero-title-accent {
  font-style: normal;
  color: var(--brand);
}

/* Subtitle */
.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--frost-tertiary);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* CTAs */
.hero-cta {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

/* Code window accent */
.hero-code-window {
  background: var(--midnight-card);
  border: 1px solid rgba(49, 120, 198, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(49, 120, 198, 0.06),
    var(--shadow-dramatic);
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.code-window-bar {
  background: var(--midnight-elevated);
  padding: 10px var(--space-3);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(230, 232, 235, 0.06);
}

.code-window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.code-window-dot:nth-child(1) { background: #ec5f67; }
.code-window-dot:nth-child(2) { background: #f0c674; opacity: 0.7; }
.code-window-dot:nth-child(3) { background: #5fb3b3; opacity: 0.5; }

.code-window-filename {
  font-family: var(--font-code);
  font-size: var(--text-xs);
  color: var(--frost-disabled);
  margin-left: var(--space-2);
  letter-spacing: 0.02em;
}

.code-window-body {
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-code);
  font-size: 0.875rem;
  line-height: 1.75;
  overflow-x: auto;
  margin: 0;
}

/* Syntax token colours */
.ct-comment { color: var(--comment-gray); font-style: italic; }
.ct-keyword { color: #c792ea; }
.ct-var     { color: var(--function-blue); }
.ct-prop    { color: var(--frost-secondary); }
.ct-string  { color: #c3e88d; }
.ct-bool    { color: #ff9d64; }
.ct-op      { color: var(--frost-disabled); }
.ct-cursor  {
  color: var(--function-blue);
  animation: blink 1s step-end infinite;
}

/* Responsive */
@media (max-width: 767px) {
  .hero {
    padding: var(--space-10) 0 var(--space-8);
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
  }

  .hero-cta .btn {
    justify-content: center;
  }

  .hero-code-window {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}
