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

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-terminal: #0d1117;
  --border: #222;
  --text: #e6edf3;
  --text-muted: #7d8590;
  --green: #3fb950;
  --red: #f85149;
  --yellow: #d29922;
  --cyan: #58a6ff;
  --purple: #bc8cff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: -1rem auto 2rem;
  text-align: center;
  line-height: 1.6;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}
.nav-brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Sections */
main { max-width: 960px; margin: 0 auto; padding: 0 2rem; }

section { padding: 5rem 0; }

h2 {
  font-family: var(--font);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* Hero */
.hero { padding: 8rem 0 4rem; text-align: center; }

.hero h1 {
  font-family: var(--font);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.install-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
}
.install-bar code {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--green);
  user-select: all;
}
.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
}
.copy-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.copy-btn.copied { color: var(--green); }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: #cdd9e5; text-decoration: none; }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); text-decoration: none; }

.hero-note {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Terminal */
.terminal-section { text-align: center; }
.terminal-section h2 { margin-bottom: 1.5rem; }

.terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
}
.term-line { white-space: pre; }
.term-line.dim, .dim { color: var(--text-muted); }
.term-line.white, .white { color: var(--text); }
.term-line.bold, .bold { font-weight: 700; }
.t-red { color: var(--red); }
.t-yellow { color: var(--yellow); }
.t-green { color: var(--green); }
.t-cyan { color: var(--cyan); }
.t-purple { color: var(--purple); }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
}
.feature-card h3 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.feature-card a { color: var(--cyan); }

/* Urgency */
.urgency {
  border-top: 1px solid var(--border);
  padding-top: 5rem;
}
.urgency h2 { text-align: center; }

.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding-left: 120px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 108px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date {
  position: absolute;
  left: -120px;
  top: 0;
  width: 96px;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.timeline-dot {
  position: absolute;
  left: -16px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
}
.timeline-dot.done { background: var(--green); border-color: var(--green); }
.timeline-dot.warning { background: var(--yellow); border-color: var(--yellow); }
.timeline-dot.danger { background: var(--red); border-color: var(--red); }
.timeline-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1rem;
}
.timeline-text strong { color: var(--text); }

.urgency-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 3rem;
  font-style: italic;
}

/* CTA */
.cta {
  text-align: center;
  padding: 5rem 0 6rem;
  border-top: 1px solid var(--border);
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.cta .install-bar { margin-bottom: 1.5rem; }
.cta .btn-primary { font-size: 1rem; padding: 0.75rem 2rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}
.footer-brand {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text);
}
.footer-sep {
  color: var(--text-muted);
}
.footer-links {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
}
.footer-links a {
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  main { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }

  .hero { padding: 5rem 0 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }

  .feature-grid { grid-template-columns: 1fr; }

  .terminal-body { font-size: 0.6875rem; padding: 1rem; }

  .timeline { padding-left: 0; }
  .timeline::before { left: 4px; }
  .timeline-date {
    position: static;
    width: auto;
    text-align: left;
    margin-bottom: 0.25rem;
    padding-left: 1.5rem;
  }
  .timeline-dot {
    left: 0;
    top: 4px;
  }
  .timeline-text { padding-left: 1.5rem; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem;
  }
  .footer-links { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.625rem; }
  .install-bar code { font-size: 0.875rem; }
  .terminal-body { font-size: 0.625rem; }
}
