/* =============================================
   HOME PAGE — HERO LAYOUT ENHANCEMENTS
   Two-column grid hero with terminal panel
   ============================================= */

/* ======= HERO TWO-COLUMN GRID ======= */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 66px);
  padding: 100px 0 60px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======= TERMINAL WINDOW ======= */
.terminal-window {
  background: #0d1117;
  border: 1px solid rgba(26, 115, 232, 0.25);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  box-shadow:
    0 0 0 1px rgba(26, 115, 232, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(26, 115, 232, 0.08);
  position: relative;
  z-index: 2;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid rgba(26, 115, 232, 0.15);
}

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

.terminal-title {
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(240, 246, 255, 0.35);
  letter-spacing: 0.5px;
}

.terminal-body {
  padding: 20px 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(240, 246, 255, 0.75);
  overflow: hidden;
}

.t-prompt { color: #4A90E2; }
.t-cmd    { color: rgba(240, 246, 255, 0.9); }
.t-out    { color: rgba(240, 246, 255, 0.55); display: block; }
.t-key    { color: #38BDF8; }
.t-val    { color: #4ade80; }
.t-str    { color: #f59e0b; }
.t-hash   { color: #7c3aed; }
.t-msg    { color: rgba(240, 246, 255, 0.65); }
.t-blank  { display: block; height: 0.5em; }
.t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: #4A90E2;
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ======= STAT CHIPS ======= */
.stat-chip {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 3;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stat-chip-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-chip-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  white-space: nowrap;
}

.chip-1 { top: 12%;  left: -28px; }
.chip-2 { bottom: 18%; left: -20px; }
.chip-3 { top: 8%;  right: -20px; }

/* ======= HERO CONTENT (existing elements carry over, spacing adjustments) ======= */
.hero-container .hero-badge { margin-bottom: 20px; }
.hero-container h1          { margin-bottom: 16px; }
.hero-container .hero-subtitle { margin-bottom: 20px; }
.hero-container .hero-para  { margin-bottom: 28px; }
.hero-container .hero-cta   { margin-bottom: 28px; }
.hero-container .hero-icons { margin-bottom: 0; }

/* Remove old hero-content centering if any */
.hero .hero-content { max-width: none; }

/* ======= RESPONSIVE — COLLAPSE TO SINGLE COLUMN ======= */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 90px 0 48px;
    min-height: auto;
  }

  .hero-right {
    justify-content: center;
  }

  .terminal-window {
    max-width: 100%;
  }

  .chip-1 { top: -14px; left: 12px;  }
  .chip-2 { bottom: -14px; left: 12px; }
  .chip-3 { top: -14px; right: 12px;  }
}

@media (max-width: 600px) {
  .hero-container { gap: 36px; padding: 80px 0 40px; }
  .terminal-body  { font-size: 0.72rem; }
  .chip-2         { display: none; }
}
