/* ============================================
   Home page
   ============================================ */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: var(--sp-16) var(--sp-24);
  overflow: hidden;
}

.hero__rain {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
  opacity: 0.18;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: var(--z-base);
  max-width: var(--w-content);
}

.hero__prompt {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--fg-dim);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-6);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
}
.hero__prompt-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  color: var(--fg-bright);
  min-height: 2.5em;
}
.hero__title-line { display: block; }
.hero__title-accent { color: var(--accent); }
.hero__title-caret {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: blink 1.05s step-end infinite;
}

.hero__lead {
  font-size: var(--fs-lg);
  color: var(--fg-dim);
  margin-bottom: var(--sp-8);
  line-height: var(--lh-base);
  max-width: 60ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hero__stats {
  margin-top: var(--sp-12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  border-top: 1px dashed var(--border);
  padding-top: var(--sp-6);
}
.stat__num {
  display: block;
  font-size: var(--fs-2xl);
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}
.stat__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  margin-top: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ---- Services preview ---- */

.services-preview__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}
.section-title {
  font-size: var(--fs-2xl);
}
.section-title::before {
  content: '# ';
  color: var(--accent);
}
.section-subtitle {
  color: var(--fg-muted);
  font-size: var(--fs-sm);
}
.section-subtitle::before { content: '// '; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}

/* ---- CTA strip ---- */
.cta {
  margin-top: var(--sp-16);
}
.cta__terminal { max-width: var(--w-content); margin-inline: auto; }
.cta__line { color: var(--fg-dim); margin-bottom: var(--sp-2); }
.cta__line::before { content: '$ '; color: var(--accent); }
.cta__line--in::before { content: '> '; color: var(--accent); }
.cta__title {
  font-size: var(--fs-xl);
  color: var(--fg-bright);
  margin: var(--sp-3) 0 var(--sp-5);
}
