/* NightCoder — Dark terminal aesthetic with electric accents */

:root {
  --bg: #060812;
  --surface: #0c0f1a;
  --surface-2: #121626;
  --border: #1a2035;
  --text: #e8eaf0;
  --text-muted: #6b7280;
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.12);
  --amber: #ffb700;
  --amber-dim: rgba(255, 183, 0, 0.1);
  --green: #00ff9d;
  --red: #ff4d4d;
  --yellow: #ffd600;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(6, 8, 18, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-dot { color: var(--cyan); }
.nav-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 20% 80%, rgba(255, 183, 0, 0.03) 0%, transparent 70%);
  pointer-events: none;
}
.hero-split {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eyebrow-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-terminal-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.06), 0 20px 60px rgba(0,0,0,0.4);
}
.term-bar {
  background: var(--surface-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.term-label {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.term-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 2;
}
.term-line { display: flex; align-items: center; gap: 8px; }
.term-prompt { color: var(--cyan); }
.muted { color: var(--text-muted); }
.success { color: var(--green); }
.term-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--cyan);
  margin-top: 4px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.moon-glow {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 183, 0, 0.15) 0%, rgba(0, 229, 255, 0.05) 50%, transparent 70%);
  box-shadow: 0 0 120px rgba(255, 183, 0, 0.1), 0 0 200px rgba(0, 229, 255, 0.05);
  animation: glow 4s ease-in-out infinite alternate;
}
@keyframes glow {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.08); opacity: 1; }
}

/* How it works */
.how { padding: 100px 40px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 60px;
  font-weight: 500;
}
.how-steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 100px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}
.step:last-child::before { display: none; }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-top: 4px;
}
.step-body h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.step-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* Features */
.features { padding: 100px 40px; }
.features-inner { max-width: 1200px; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface-2); }
.feature-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 20px;
  background: var(--cyan-dim);
}
.feature-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.feature-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }

/* Manifesto */
.manifesto {
  padding: 120px 40px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner { max-width: 1200px; margin: 0 auto; }
.manifesto-text { max-width: 700px; }
.manifesto-text h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}
.manifesto-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.manifesto-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-top: 36px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Closing */
.closing {
  padding: 120px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 300px at 50% 100%, rgba(255, 183, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { max-width: 700px; margin: 0 auto; position: relative; }
.closing-moon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 183, 0, 0.3), rgba(255, 183, 0, 0.05) 60%, transparent 80%);
  box-shadow: 0 0 40px rgba(255, 183, 0, 0.15);
  margin: 0 auto 40px;
}
.closing h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.closing p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 16px; }
.closing-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--amber);
  margin-top: 32px;
  letter-spacing: 0.03em;
}

/* Footer */
.footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-muted);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; gap: 60px; }
  .hero-right { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step::before { display: none; }
  .navbar { padding: 16px 20px; }
  .hero, .how, .features, .manifesto, .closing { padding: 60px 20px; }
}