@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --fg: #e8e8e8;
  --fg-dim: #888888;
  --fg-muted: #555555;
  --accent: #00e676;
  --accent-dim: rgba(0, 230, 118, 0.12);
  --accent-glow: rgba(0, 230, 118, 0.25);
  --red: #ff5252;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --border: #222222;
  --radius: 12px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 10% 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 780px;
  margin-bottom: 28px;
}

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

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--fg-dim);
  max-width: 540px;
  line-height: 1.7;
}

/* === TERMINAL DEMO === */
.terminal-section {
  padding: 60px 10% 100px;
}

.terminal {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.r { background: #ff5f56; }
.terminal-dot.y { background: #ffbd2e; }
.terminal-dot.g { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 2;
  color: var(--fg-dim);
}

.terminal-body .line {
  display: flex;
  gap: 12px;
}

.terminal-body .prompt {
  color: var(--accent);
  user-select: none;
}

.terminal-body .highlight {
  color: var(--fg);
}

.terminal-body .saved {
  color: var(--accent);
  font-weight: 500;
}

.terminal-body .alert {
  color: var(--red);
  font-weight: 500;
}

.terminal-body .dim {
  color: var(--fg-muted);
}

/* === FEATURES === */
.features {
  padding: 80px 10% 100px;
}

.features-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.features h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* === COMPARISON === */
.comparison {
  padding: 80px 10% 100px;
}

.comparison h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
}

.comp-col {
  padding: 32px;
  border-radius: var(--radius);
}

.comp-col.old {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.comp-col.new {
  background: var(--accent-dim);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.comp-col h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.comp-col.old h3 { color: var(--fg-muted); }
.comp-col.new h3 { color: var(--accent); }

.comp-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-col ul li {
  font-size: 0.9rem;
  color: var(--fg-dim);
  padding-left: 20px;
  position: relative;
}

.comp-col.old ul li::before {
  content: '\2212';
  position: absolute;
  left: 0;
  color: var(--fg-muted);
}

.comp-col.new ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* === CLOSING === */
.closing {
  padding: 100px 10% 80px;
  text-align: center;
}

.closing h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.closing h2 .accent { color: var(--accent); }

.closing p {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 520px;
  margin: 0 auto;
}

/* === FOOTER === */
footer {
  padding: 40px 10%;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

footer .logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 100px 6% 60px; }
  .terminal-section { padding: 40px 6% 80px; }
  .features { padding: 60px 6% 80px; }
  .comparison { padding: 60px 6% 80px; }
  .comparison-row { grid-template-columns: 1fr; }
  .closing { padding: 80px 6% 60px; }
  footer { padding: 30px 6%; flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .features h2, .comparison h2, .closing h2 { font-size: 1.6rem; }
  .features-grid { grid-template-columns: 1fr; }
}