:root {
  --bg: #0a0a0f;
  --fg: #e8e6e3;
  --muted: #6b6b76;
  --accent: #c4f56f;
  --accent-dim: rgba(196, 245, 111, 0.12);
  --border: rgba(255, 255, 255, 0.08);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ── Gradient Mesh ── */
.gradient-mesh {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 25% 30%, rgba(196, 245, 111, 0.06), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(120, 80, 200, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(200, 120, 80, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Grain Overlay ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  padding: 0 32px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Preamble ── */
.preamble {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.preamble-sep {
  color: rgba(255,255,255,0.15);
}

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

/* ── Title ── */
.hero-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(56px, 12vw, 128px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  overflow: hidden;
}

.hero-title .line {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.hero-title .hello {
  font-style: italic;
  color: var(--fg);
}

.hero-title .world {
  color: var(--accent);
}

/* ── Subtitle ── */
.hero-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.5s forwards;
}

.inline-code {
  display: inline-block;
  padding: 2px 7px;
  background: var(--accent-dim);
  border: 1px solid rgba(196, 245, 111, 0.2);
  border-radius: 4px;
  color: var(--accent);
  font-size: 13px;
}

/* ── CTA Buttons ── */
.cta-row {
  display: flex;
  gap: 14px;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.7s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 24px var(--accent-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: rgba(255,255,255,0.03);
}

/* ── Footer Meta ── */
.hero-footer {
  display: flex;
  gap: 40px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.9s forwards;
}

.footer-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.footer-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.footer-value {
  font-size: 12px;
  color: var(--fg);
  font-weight: 500;
}

.footer-value.online {
  color: var(--accent);
}

/* ── Animation ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-footer {
    flex-direction: column;
    gap: 20px;
  }
  .cta-row {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    justify-content: center;
  }
}
