:root {
  --bg: #0a0a0f;
  --bg-2: #11111a;
  --fg: #e8e8f0;
  --muted: #6b6b80;
  --accent: #00ff9d;
  --accent-2: #ff2e63;
  --border: rgba(255,255,255,0.08);
}

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

html { scroll-behavior:smooth; }

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  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' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0,255,157,0.05);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

/* Title */
.title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 14vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.line {
  display: block;
  overflow: hidden;
}
.line-1 {
  color: var(--fg);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}
.line-2 {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  text-stroke: 2px var(--accent);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
}
.cursor {
  color: var(--accent);
  -webkit-text-stroke: 0;
  animation: blink 1s steps(1) infinite;
}

/* Subtitle */
.subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

/* CTA */
.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1s;
}
.cta-primary, .cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.cta-primary {
  background: var(--accent);
  color: var(--bg);
  border-radius: 4px;
  box-shadow: 0 0 0 0 rgba(0,255,157,0.4);
}
.cta-primary:hover {
  box-shadow: 0 0 30px 4px rgba(0,255,157,0.3);
  transform: translateY(-2px);
}
.cta-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.cta-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.4s;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ===== TERMINAL ===== */
.terminal {
  min-height: 50vh;
  background: var(--bg-2);
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.terminal > div { width: 100%; max-width: 700px; }

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1a1a26;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}
.term-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.term-dot.red { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green { background: #28c840; }
.term-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
}
.terminal-body {
  padding: 24px;
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--fg);
  min-height: 200px;
}
.terminal-body .prompt { color: var(--accent); }
.terminal-body .out { color: var(--muted); }
.terminal-body .str { color: var(--accent-2); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(30px); }
  to { opacity:1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
@keyframes pulse {
  0%, 100% { opacity:1; }
  50% { opacity:0.3; }
}
@keyframes blink {
  0%, 100% { opacity:1; }
  50% { opacity:0; }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity:1; }
  50% { transform: scaleY(0.5); opacity:0.5; }
}

@media (max-width: 600px) {
  .cta-group { flex-direction: column; align-items: stretch; }
  .cta-primary, .cta-ghost { justify-content: center; }
}
