/* ════════════════════════════════════════════════════════════════════════════
   INDEX.CSS — Homepage-specific styles
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Hero / Terminal ───────────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 60px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-heading em {
  font-style: italic;
  color: var(--text-muted);
}

.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── Terminal Box ──────────────────────────────────────────────────────────── */
.terminal {
  background: var(--bg-terminal);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 4px 24px rgba(0,0,0,0.28),
    0 12px 48px rgba(0,0,0,0.18);
  font-family: var(--font-mono);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red {
  background: #ff5f57;
}
.dot-yellow {
  background: #ffbd2e;
}
.dot-green {
  background: #28c840;
}

.terminal-title {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-left: 8px;
  letter-spacing: 0.04em;
}

.terminal-body {
  padding: 22px 24px 26px;
  min-height: 240px;
}

.term-line {
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.term-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.term-line.cmd {
  color: var(--term-cmd);
}
.term-line.data {
  color: var(--term-data);
}
.term-line.meta {
  color: var(--term-dim);
}
.term-line.divider {
  color: var(--term-dim);
  opacity: 0;
}
.term-line.divider.visible {
  opacity: 0.4;
}
.term-line.welcome {
  color: var(--term-green);
  font-weight: 500;
}
.term-line.desc {
  color: rgba(200,196,188,0.72);
}
.term-line.nav {
  color: var(--term-link);
}
.term-line.empty {
  color: transparent;
  user-select: none;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--term-cursor);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  border-radius: 1px;
}

/* ── Section grid ──────────────────────────────────────────────────────────── */
.sections {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.3s forwards;
}

.section-card {
  background: var(--bg);
  padding: 28px 26px 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--transition);
}

.section-card:hover {
  background: var(--bg-raised);
}

.card-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.card-arrow {
  margin-top: auto;
  font-size: 16px;
  color: var(--text-faint);
  transition: transform var(--transition), color var(--transition);
}
.section-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--text-muted);
}

/* ── Divider ───────────────────────────────────────────────────────────────── */
.divider-line {
  height: 1px;
  background: var(--border);
  margin: 56px 0;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.5s forwards;
}

/* ── About strip ───────────────────────────────────────────────────────────── */
.about {
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.about-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 4px;
}

.about-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
}

.about-text p + p {
  margin-top: 14px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .sections {
    grid-template-columns: 1fr;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .sections {
    padding-top: 48px;
  }
}
