:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: 1000px; margin: 0 auto; padding: 24px 20px; }

/* Hero — two column layout */
header { margin-bottom: 32px; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 0 8px;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.logo { font-size: 2.4rem; }
h1 { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; }

.tagline { font-size: 1rem; color: var(--muted); margin-bottom: 14px; }

.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--card); padding: 5px 12px; border-radius: 20px;
  font-size: 0.8rem; color: var(--muted);
}
.badge.green { color: var(--green); }
.badge.blue { color: var(--accent); }

/* CTA Buttons */
.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 7px; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.btn-primary { background: var(--accent); color: white; }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid #334155; }
.btn-pypi { background: #3775a9; color: white; }

/* Version banner (right column top) */
.version-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
  border-radius: 10px; padding: 16px 20px; text-align: center; margin-bottom: 12px;
}
.version-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.version-number { font-size: 2rem; font-weight: 700; }
.version-date { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-top: 4px; }

/* Terminal */
.terminal {
  background: #0d1117;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #30363d;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.terminal-bar {
  background: #161b22;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #30363d;
}

.dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: #8b949e;
  font-family: inherit;
}

.terminal-body {
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--green);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.prompt { color: #8b949e; margin-right: 4px; }

.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--green);
  margin-left: 1px;
}

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

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.feature {
  background: var(--card); padding: 18px; border-radius: 10px;
  border: 1px solid #334155;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 8px; }
.feature h3 { font-size: 0.95rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }

/* Changelog */
.changelog { margin-bottom: 40px; }
.changelog h2 { margin-bottom: 16px; font-size: 1.2rem; }
.changelog-item {
  background: var(--card); padding: 16px 20px; border-radius: 8px;
  margin-bottom: 10px; border-left: 4px solid var(--accent);
}
.changelog-item .version { font-weight: 700; color: var(--accent); }
.changelog-date { font-size: 0.8rem; color: var(--muted); margin-left: 10px; }
.changelog-item ul { margin: 8px 0 0 18px; color: var(--muted); }
.changelog-item li { margin: 3px 0; font-size: 0.88rem; }

/* Footer */
footer {
  text-align: center; padding: 28px 0; margin-top: 20px;
  border-top: 1px solid #334155; color: var(--muted); font-size: 0.88rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; }
}
