*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0b10;
  --surface: #13141f;
  --border: #1e2035;
  --text: #e8eaf6;
  --muted: #6b7280;
  --accent: #7c6af7;
  --accent-dim: rgba(124, 106, 247, 0.15);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --key: #7dd3fc;
  --str: #86efac;
  --radius: 12px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(124, 106, 247, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.hero-inner {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Copy ── */
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-dim);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s;
}
.chip:hover { border-color: var(--accent); }
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-suffix { color: var(--accent); }

.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

/* ── Code block ── */
.hero-code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: var(--red); }
.dot.y { background: var(--yellow); }
.dot.g { background: var(--green); }

.code-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.copy-btn:hover { color: var(--text); }
.copy-btn.copied { color: var(--green); }

.code-body {
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  overflow-x: auto;
}
.code-body code { display: block; }

.ck { color: var(--key); }
.cs { color: var(--str); }

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .brand-name { font-size: 1.6rem; }
}
