/* ============================================================
   HERO.CSS — Homepage hero + compiler hero
   ============================================================ */

/* ---- MAIN SITE HERO ---- */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-20);
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f7f7 50%, #f8faff 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23185FA5' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: .3rem .9rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--cl-blue);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,.1); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: var(--space-5);
}

.hero-title .accent { color: var(--cl-blue); }
.hero-title .accent-teal { color: var(--cl-teal); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .8125rem;
  color: var(--text-muted);
}

.trust-item svg { color: var(--cl-teal); flex-shrink: 0; }

/* HERO VISUAL — terminal card */
.hero-visual { position: relative; }

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-card-bar {
  background: var(--gray-100);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid var(--border);
}

.win-dot { width: 11px; height: 11px; border-radius: 50%; }
.win-dot.r { background: #ff5f57; }
.win-dot.y { background: #febc2e; }
.win-dot.g { background: #28c840; }

.card-tab {
  margin-left: var(--space-3);
  font-size: .7rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: .25rem .75rem;
  letter-spacing: .02em;
}

.hero-code-block {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.9;
  background: #1e1e2e;
  color: #cdd6f4;
  min-height: 200px;
}

.code-kw  { color: #cba6f7; }
.code-fn  { color: #89dceb; }
.code-str { color: #a6e3a1; }
.code-num { color: #fab387; }
.code-cm  { color: #6c7086; }
.code-op  { color: #89b4fa; }

.hero-output {
  padding: .75rem 1.5rem;
  background: #0f0f17;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #a6e3a1;
  border-top: 1px solid rgba(255,255,255,.05);
}

.output-prompt { color: #6c7086; margin-right: .5rem; }

.cursor-blink {
  display: inline-block;
  width: 7px; height: .9rem;
  background: var(--cl-teal);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

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

/* Floating badges on hero */
.hero-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .625rem .875rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-800);
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.hero-badge.badge-tl { top: -16px; left: -16px; animation-delay: 0s; }
.hero-badge.badge-br { bottom: -16px; right: -16px; animation-delay: 1.5s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* COMING SOON HERO */
.hero-coming-soon {
  background: linear-gradient(135deg, var(--gray-900) 0%, #0f1a2e 50%, #0a1a1a 100%);
  padding: var(--space-24) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-coming-soon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(24,95,165,.25), transparent),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(14,165,164,.15), transparent);
}

.hero-coming-soon .container { position: relative; z-index: 1; }
.hero-coming-soon .hero-title { color: var(--white); }
.hero-coming-soon .hero-desc  { color: rgba(255,255,255,.65); margin: 0 auto var(--space-8); }
.hero-coming-soon .section-label { color: var(--cl-teal); }

/* Responsive hero */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .hero { padding: var(--space-16) 0 var(--space-12); }
}
