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

:root {
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --bg-card: #16161a;
  --bg-code: #1a1a20;
  --border: #27272a;
  --border-subtle: #1e1e22;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #2563EB;
  --accent-dim: #1d4ed8;
  --accent-bright: #60a5fa;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --rose: #F43F5E;
  --rose-dim: #e11d48;
  --rose-glow: rgba(244, 63, 94, 0.12);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --yellow: #eab308;
  --yellow-dim: rgba(234, 179, 8, 0.12);
  --gold: #F59E0B;
  --gold-dim: #e8960c;
  --gold-glow: rgba(245, 158, 11, 0.15);
  --cyan: #60a5fa;
  --cyan-bright: #93c5fd;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NAV === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 10, 11, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-ref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-github {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}
.nav-github:hover { opacity: 1; color: var(--text) !important; }
.nav-cta {
  background: var(--rose);
  color: #fafafa !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--rose-dim); transform: translateY(-1px); }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* === CONTAINER === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; overflow: hidden; }

/* === HERO === */
.hero {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(244, 63, 94, 0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-tag-label {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 5px 14px;
  border-radius: 6px;
}
.hero-tag-rose {
  color: var(--rose);
  background: var(--rose-glow);
  border-color: rgba(244, 63, 94, 0.25);
}
.hero-tag-free {
  color: var(--gold);
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.25);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  display: block;
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.93;
  margin-bottom: 48px;
}
.ht-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.15em;
}
.ht-left {
  animation: htSlideLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ht-right {
  animation: htSlideRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.ht-line:last-child { animation-delay: 0.24s; }
@keyframes htSlideLeft {
  from { transform: translateX(-60px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes htSlideRight {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.hero-title .gradient {
  color: var(--text);
}
.install-platforms {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.hero-keymsg {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.hero-sub {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--rose);
  color: #fafafa;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.3);
}
.btn-primary:hover { background: var(--rose-dim); transform: translateY(-2px); box-shadow: 0 4px 32px rgba(244, 63, 94, 0.4); }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: #1a1a1e;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.3);
}
.btn-gold:hover { background: var(--gold-dim); transform: translateY(-2px); box-shadow: 0 4px 32px rgba(245, 158, 11, 0.4); }
.btn-blue {
  background: var(--accent);
  color: #fafafa;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.3);
}
.btn-blue:hover { background: var(--accent-dim); transform: translateY(-2px); box-shadow: 0 4px 32px rgba(37, 99, 235, 0.4); }

.hero-platforms {
  margin-top: 120px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.hero-platforms span { color: var(--text-secondary); }

/* === SECTION HEADERS === */
.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

/* === PROBLEM === */
.problem-bg {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(239,68,68,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--red-dim);
  border: 1px solid rgba(239,68,68,0.2);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--red);
}
.problem-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  background: var(--red-dim);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.problem-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.problem-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* === HOW IT WORKS === */
.how-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.how-step {
  background: var(--bg-card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.how-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: grid;
  place-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.how-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.how-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.how-tagline {
  text-align: center;
  margin: -1rem auto 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--text-muted);
}
.how-tagline span {
  color: var(--text);
  display: block;
}

.contrast-desc {
  text-align: center;
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.how-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}
.how-benefit {
  background: var(--bg-card);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.how-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.how-benefit-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.how-benefit-body p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .how-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-tagline { font-size: 1.2rem; margin: -0.5rem auto 0; }
  .how-benefits {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }
  .how-benefit {
    padding: 14px 16px;
    gap: 12px;
    cursor: pointer;
    align-items: center;
  }
  .how-benefit-icon { width: 30px; height: 30px; }
  .how-benefit-body h4 {
    font-size: 0.88rem;
    margin-bottom: 0;
  }
  .how-benefit-body p {
    font-size: 0.78rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
    margin: 0;
  }
  .how-benefit.open .how-benefit-body h4 {
    margin-bottom: 6px;
  }
  .how-benefit.open .how-benefit-body p {
    max-height: 80px;
    opacity: 1;
  }
}

/* === SOLUTION === */
#solution { border-bottom: 1px solid var(--border-subtle); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.p-card {
  padding: 32px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.p-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.2;
}
.p-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.p-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.p-card-head .marker {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.p-card.bad .p-card-head .marker { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.p-card.good .p-card-head .marker { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }

.p-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.p-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.p-step-t {
  font-family: 'DM Mono', monospace;
  font-size: 0.74rem;
  color: var(--text-muted);
  padding-top: 2px;
}
.p-step-body {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}
.p-step-body strong { color: var(--text); font-weight: 600; }
.p-step-body .fail { color: var(--red); font-weight: 600; }
.p-step-body .win { color: var(--green); font-weight: 600; }

.p-verdict {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 500;
}
.p-verdict.bad { background: var(--red-dim); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }
.p-verdict.good { background: var(--green-dim); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }

.solution-hint {
  text-align: center;
  margin-top: 56px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* === BENEFITS === */
.benefits-section {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  divide-x: 1px solid var(--border-subtle);
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 48px 40px;
  border-right: 1px solid var(--border-subtle);
}
.benefit-item:last-child { border-right: none; }
.benefit-num {
  font-family: 'DM Mono', monospace;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}
.benefit-body h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.benefit-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-item { border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 32px 24px; }
  .benefit-item:last-child { border-bottom: none; }
}

/* === HOW IT WORKS === */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}
.step {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
  counter-increment: step;
}
.step:last-child { border-bottom: none; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 14px;
  border-radius: 6px;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}
.step h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* === INTERACTIVE DEMO === */
.demo-section { overflow: hidden; }
.demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.demo-info { padding-top: 24px; }
.demo-info .section-desc { margin-bottom: 32px; }

.demo-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}
.demo-tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.demo-tab.active {
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 800;
}
.demo-tab:hover:not(.active) { color: var(--text-secondary); }

.demo-step-info {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.demo-step-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.demo-step-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.terminal {
  background: #0c0c0e;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #111114;
  border-bottom: 1px solid var(--border-subtle);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }
.terminal-title {
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.terminal-body {
  padding: 20px;
  min-height: 340px;
  position: relative;
}
.terminal-line {
  white-space: pre;
  overflow-x: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.terminal-line.visible {
  opacity: 1;
  transform: translateY(0);
}
.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-flag { color: var(--cyan); }
.t-str { color: var(--green); }
.t-muted { color: var(--text-muted); }
.t-green { color: var(--green); }
.t-red { color: var(--red); }
.t-yellow { color: var(--yellow); }
.t-cyan { color: var(--cyan); }
.t-accent { color: var(--accent); }

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.feature-icon.purple { background: var(--accent-glow); }
.feature-icon.green { background: var(--green-dim); }
.feature-icon.yellow { background: var(--yellow-dim); }
.feature-icon.red { background: var(--red-dim); }
.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === AGENTS === */
.agents-bg {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.agents-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.agent-chip {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.agent-chip:hover { border-color: var(--accent); color: var(--text); }

/* === INSTALL === */
.install-tip {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.install-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  min-width: 0;
}
.install-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.install-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.install-card > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.install-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.install-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.install-step-body {
  flex: 1;
  min-width: 0;
}
.install-step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.install-step-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.install-step-note code {
  color: var(--text-secondary);
  font-family: 'DM Mono', monospace;
}
.install-full-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
  transition: opacity 0.2s;
}
.install-full-link:hover { opacity: 0.7; }
.code-block {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--text-secondary);
  max-width: 100%;
  word-break: break-all;
}
.code-block code { color: var(--text); word-break: break-all; }
.code-block-scroll {
  max-height: 3.6em;
  overflow: hidden;
  cursor: pointer;
  transition: max-height 0.3s ease;
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
}
.code-block-scroll.expanded {
  max-height: 300px;
  overflow-y: auto;
  align-items: flex-start;
}
.code-block-scroll code {
  flex: 1;
  min-width: 0;
  order: -1;
  white-space: pre-wrap;
}
.code-block-scroll .copy-btn {
  position: relative;
  top: 0px;
  flex-shrink: 0;
  margin-left: 2px;
  z-index: 1;
  right: 0px;
}
.code-block .comment { color: var(--text-muted); }
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--text-muted); }

/* === INSTALL OPTIONAL === */
.install-optional {
  margin: 48px auto 0;
  max-width: 540px;
  padding: 24px 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  text-align: left;
}
.install-optional-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.install-optional-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
}
.install-optional-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.install-optional-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.install-optional-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}
.install-optional-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
}
.install-optional-option:first-child { padding-top: 0; }
.install-optional-option-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.install-optional-recommended {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.install-optional-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--border);
}
.install-optional-divider::before,
.install-optional-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.install-optional-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.install-optional-note code {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: var(--bg-code);
  padding: 1px 5px;
  border-radius: 3px;
}

/* === REWIND CONTROL PANEL === */
.control-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.cp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.cp-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.cp-file { color: var(--text); font-weight: 600; }
.cp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--green);
}
.cp-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.cp-body { padding: 32px; }

.tl-wrap { position: relative; margin: 16px 0 32px; }
.tl-base {
  position: absolute;
  left: 0; right: 0; top: 14px;
  height: 2px;
  background: var(--border-subtle);
  border-radius: 2px;
}
.tl-active {
  position: absolute;
  left: 0; top: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  box-shadow: 0 0 10px var(--accent);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tl-dots {
  display: flex;
  justify-content: space-between;
  position: relative;
}
.tl-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  max-width: 130px;
  padding-top: 6px;
}
.tl-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-subtle);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.tl-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.tl-node:hover .tl-dot { transform: scale(1.2); border-color: var(--text-muted); }
.tl-node.sel .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.tl-node.sel .tl-dot::after { border-color: rgba(37, 99, 235, 0.3); }
.tl-node.cur .tl-dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.tl-node.cur.sel .tl-dot { background: var(--green); border-color: var(--green); }
.tl-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}
.tl-node.sel .tl-lbl { color: var(--accent-bright); }
.tl-node.cur .tl-lbl { color: var(--green); }
.tl-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  color: rgba(113, 113, 122, 0.6);
  text-align: center;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  overflow: hidden;
}
.code-area {
  height: calc(7 * 0.82rem * 1.9);
  overflow: hidden;
}
.cp-preview-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cp-meta { color: var(--accent-bright); }

.code-area { color: var(--text-secondary); }
.code-area .kw { color: #ff9f9f; }
.code-area .fn { color: #ffd080; }
.code-area .st { color: #8aecac; }
.code-area .cm { color: rgba(113, 113, 122, 0.5); }
.code-area .nb { color: #c4b8ff; }

.diff-line {
  display: flex;
  gap: 10px;
  padding: 1px 0;
  border-radius: 3px;
}
.diff-line > span:last-child {
  white-space: pre;
}
.diff-ln {
  width: 18px;
  flex-shrink: 0;
  text-align: right;
  color: rgba(113, 113, 122, 0.35);
  user-select: none;
  font-size: 0.75rem;
}
.diff-marker {
  width: 12px;
  flex-shrink: 0;
  font-weight: 700;
  user-select: none;
  opacity: 0.8;
}
.diff-add {
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}
.diff-add .diff-marker { color: var(--green); }
.diff-del {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}
.diff-del .diff-marker { color: var(--red); }
.diff-ctx { color: var(--text-secondary); }
.diff-ctx .diff-marker { color: transparent; }

.cp-action {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.cp-cmd {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-pr { color: var(--accent-bright); }
.cp-cmd .k { color: var(--text); font-weight: 600; }
.cp-cmd .sn { color: var(--green); font-weight: 600; }
.cp-cmd .fl { color: var(--yellow); }
.cp-cmd .ok { color: var(--green); font-weight: 600; }

.cp-btn {
  padding: 0 26px;
  background: var(--accent-dim);
  color: #fafafa;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px -4px rgba(37, 99, 235, 0.4);
}
.cp-btn:hover:not(:disabled) {
  background: var(--accent);
  transform: translateY(-1px);
}
.cp-btn:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}
.cp-flash {
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: cpFlash 0.7s ease-out;
}
@keyframes cpFlash {
  0% { opacity: 0; }
  15% { opacity: 0.12; }
  100% { opacity: 0; }
}

/* === PRICING MATRIX === */
.matrix {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}
.matrix-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.matrix-cell {
  padding: 24px 28px;
  border-right: 1px solid var(--border);
  position: relative;
}
.matrix-cell:last-child { border-right: none; }
.matrix-head-cell.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
}
.compare-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.plan-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.plan-price .amt {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
}
.plan-price .per {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
}
.matrix-head-cell.free .plan-price .per { color: var(--gold); }
.matrix-head-cell.pro .plan-price .per { color: var(--accent); }
.plan-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
}
.plan-sub .yearly-deal {
  color: var(--accent);
  font-weight: 700;
}
.plan-sub .save-badge {
  display: inline-block;
  padding: 2px 7px;
  background: var(--gold-glow);
  color: var(--gold);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: 0.02em;
}
.matrix-head-cell.pro {
  background: linear-gradient(145deg, var(--bg-elevated), rgba(37, 99, 235, 0.06));
  position: relative;
}
.matrix-head-cell.free .plan-name { color: var(--gold); }
.matrix-head-cell.pro .plan-name { color: var(--accent); }
.matrix-head-cell .plan-tag {
  position: absolute;
  top: 14px; right: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--gold);
  color: #1a1a1e;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.matrix-head-cell.pro .plan-tag {
  background: var(--accent-dim);
  color: #fafafa;
}
.matrix-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  border-top: 1px solid var(--border);
}
.matrix-row .matrix-cell {
  padding: 18px 28px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
}
.matrix-row .matrix-cell:first-child {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}
.matrix-row .matrix-cell.pro {
  background: linear-gradient(145deg, transparent, rgba(37, 99, 235, 0.04));
  color: var(--accent);
}
.matrix-cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.matrix-cta .matrix-cell { padding: 22px 28px; }
.matrix-cta .matrix-cell.intro {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex;
  align-items: center;
}
.matrix-cta .matrix-cell .btn { width: 100%; justify-content: center; }
.matrix-row .matrix-cell.dim { color: var(--text-muted); }
.matrix-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  opacity: 0.75;
}
.chk {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 5px;
  color: var(--green);
  flex-shrink: 0;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); transform: translateY(-2px); }

/* === FAQ === */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow {
  transition: transform 0.3s;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 24px; }
.faq-a p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.faq-a p:last-child { margin-bottom: 0; }

/* === WAITLIST === */
/* === CTA === */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .section-title { margin-bottom: 16px; }
.cta-section .section-desc { margin: 0 auto 16px; }
.cta-hook {
  font-size: 1.05rem;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 36px;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  text-align: center;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copyright {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}
.footer-center {
  text-align: center;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-email {
  font-size: 0.8rem;
  margin-top: 4px;
}
.footer-email a {
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-email a:hover {
  color: var(--accent);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; }
  .steps, .install-grid, .features-grid, .install-cols {
    grid-template-columns: 1fr;
  }
  .cp-body { padding: 20px 16px; }
  .cp-top { padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
  .cp-top-left { font-size: 0.72rem; gap: 8px; }
  .cp-file { word-break: break-all; }
  .tl-sub { display: none; }
  .tl-lbl { font-size: 0.62rem; }
  .cp-action { flex-direction: column; }
  .cp-btn { padding: 12px; }
  .cp-cmd { font-size: 0.75rem; overflow-x: auto; }
  .matrix-head, .matrix-row, .matrix-cta { grid-template-columns: 1fr 1fr; }
  .matrix-head-cell.intro, .matrix-row .matrix-cell:first-child, .matrix-cta .matrix-cell.intro { display: none; }
  .demo-wrapper {
    grid-template-columns: 1fr;
  }
  .demo-info { order: 2; }
  .terminal { order: 1; }
  .benefit-num { font-size: 2rem; }
  .benefit-item { gap: 16px; padding: 32px 24px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-links.open .nav-cta {
    text-align: center;
    display: block;
  }
  .nav-mobile-toggle { display: block; }
  section { padding: 80px 0; }
  .hero { padding: 100px 0 72px; }
  .container { padding: 0 16px; }
  .footer-inner { flex-direction: column; gap: 16px; }

  /* Hero */
  .hero-title { margin-bottom: 32px; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
  .hero-platforms { margin-top: 64px; }

  /* Problem / Solution */
  .problem-card { padding: 24px 20px; }
  .problem-card h3 { font-size: 1.15rem; }
  .p-card { padding: 24px 20px; }
  .p-card h3 { font-size: 1.15rem; }
  .p-step { grid-template-columns: 44px 1fr; gap: 10px; }
  .p-step-t { font-size: 0.68rem; }
  .p-step-body { font-size: 0.82rem; }
  .p-verdict { font-size: 0.82rem; padding: 14px 16px; }

  /* How steps */
  .how-step { padding: 24px 20px; }
  .how-body h4 { font-size: 0.95rem; }
  .how-body p { font-size: 0.82rem; }

  /* Benefits */
  .benefit-num { font-size: 1.6rem; }
  .benefit-body h4 { font-size: 1.05rem; }
  .benefit-body p { font-size: 0.82rem; }

  /* Install section */
  .install-card, .install-box { padding: 20px 16px; }
  .install-card h3 { font-size: 1.05rem; }
  .install-card > p { font-size: 0.82rem; }
  .install-grid { gap: 16px; }
  .install-step { gap: 10px; }
  .install-step-label { font-size: 0.78rem; }
  .install-step-note { font-size: 0.72rem; }

  /* Code blocks */
  .code-block {
    font-size: 0.7rem;
    padding: 12px 52px 12px 12px;
    overflow-x: auto;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .code-block code { word-break: break-word; overflow-wrap: break-word; }
  .code-block-scroll { padding: 10px 10px; }
  .copy-btn { font-size: 0.65rem; padding: 4px 8px; }

  /* Rewind control panel */
  .control-panel { border-radius: var(--radius); }
  .cp-preview { padding: 16px; font-size: 0.72rem; }
  .cp-preview-hdr { font-size: 0.62rem; padding-bottom: 10px; margin-bottom: 10px; }
  .tl-node { max-width: none; }
  .tl-dot { width: 14px; height: 14px; }
  .tl-lbl { font-size: 0.58rem; }
  .tl-base, .tl-active { top: 11px; }
  .diff-line { gap: 6px; font-size: 0.72rem; }
  .diff-ln { width: 14px; font-size: 0.65rem; }

  /* Pricing matrix */
  .matrix-cell { padding: 14px 12px; }
  .matrix-head-cell { padding: 16px 12px; }
  .matrix-row .matrix-cell { padding: 10px 12px; font-size: 0.82rem; }
  .matrix-cta .matrix-cell { padding: 14px 12px; }
  .plan-name { font-size: 1.1rem; }
  .plan-price .amt { font-size: 1.8rem; }
  .plan-sub { font-size: 0.68rem; }
  .matrix-cta .btn { padding: 10px 12px; font-size: 0.8rem; }

  /* Typography */
  .section-title { font-size: 1.6rem; }
  .section-desc { font-size: 0.92rem; }
  .section-header { margin-bottom: 40px; }

  /* Demo */
  .demo-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .demo-tab { font-size: 0.75rem; white-space: nowrap; padding: 8px 12px; }
  .terminal { font-size: 0.68rem; max-width: 100%; }
  .terminal-body { padding: 14px 12px; overflow-x: auto; min-height: 280px; }
  .terminal-line { white-space: pre-wrap; word-break: break-all; }

  /* Steps */
  .steps { gap: 16px; }
  .step { padding: 24px 0; gap: 16px; flex-wrap: wrap; }
  .step h3 { font-size: 1.2rem; }
  .step p { font-size: 0.82rem; }

  /* Features */
  .feature-card { padding: 24px 20px; }
  .feature-card h3 { font-size: 1.1rem; }

  /* FAQ */
  .faq-q { font-size: 0.9rem; }
  .faq-a p { font-size: 0.82rem; }

  /* CTA */
  .cta-hook { font-size: 0.9rem; }
}

/* === DEMO SECTION === */
.demo-section { padding: 80px 0 60px; }
.demo-outer { display: flex; justify-content: center; margin-top: 3rem; }
.demo-card {
  width: 100%;
  max-width: 660px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(37,99,235,0.07), 0 4px 48px rgba(0,0,0,0.45);
}
.demo-file-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  color: var(--text-secondary);
}
.demo-file-name {
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 7px rgba(244,63,94,0.55);
  flex-shrink: 0;
  transition: background 0.45s, box-shadow 0.45s;
}
.demo-dot.ok {
  background: var(--green);
  box-shadow: 0 0 7px rgba(34,197,94,0.55);
}
.demo-diff {
  font-family: 'DM Mono', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  padding: 8px 0;
  min-height: 178px;
}
.demo-dl {
  display: flex;
  align-items: baseline;
  padding: 2px 16px;
  gap: 10px;
  transition: background 0.5s, color 0.5s, opacity 0.4s;
}
.demo-dl.del {
  background: rgba(239, 68, 68, 0.07);
  color: #fca5a5;
}
.demo-dl.add {
  background: rgba(34, 197, 94, 0.07);
  color: #86efac;
}
.demo-dl.ctx { color: var(--text-muted); }
.demo-dl-ln {
  min-width: 22px;
  text-align: right;
  font-size: 10.5px;
  opacity: 0.4;
  user-select: none;
  flex-shrink: 0;
}
.demo-dl-m {
  width: 10px;
  flex-shrink: 0;
  user-select: none;
}
.demo-dl.del .demo-dl-m { color: #f87171; }
.demo-dl.add .demo-dl-m { color: #4ade80; }
.demo-dl.ctx .demo-dl-m { color: transparent; }
.demo-dl-c { white-space: pre; }
@keyframes demo-restored-pulse {
  0%   { background: rgba(34, 197, 94, 0.18); }
  100% { background: transparent; }
}
.demo-dl.rpulse { animation: demo-restored-pulse 0.8s ease forwards; }
.demo-bot {
  border-top: 1px solid var(--border);
  padding: 14px 16px 12px;
}
.demo-msgs {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  height: 80px;
  overflow: hidden;
}
.demo-msg-ai, .demo-msg-user, .demo-msg-ack {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
}
.demo-msg-user, .demo-msg-ack, .demo-msg-typing {
  animation: demo-fadein 0.45s ease;
}
@keyframes demo-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.demo-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 0;
}
.demo-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
  animation: demo-dot-bounce 1.1s infinite ease-in-out;
}
.demo-typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.demo-typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes demo-dot-bounce {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.4; }
  35% { transform: translateY(-5px); opacity: 1; }
}
.demo-tag-ai {
  background: var(--accent-glow);
  color: var(--accent-bright);
  border: 1px solid rgba(37,99,235,0.22);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.demo-tag-you {
  background: rgba(244,63,94,0.1);
  color: #fda4af;
  border: 1px solid rgba(244,63,94,0.22);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}
.demo-msg-body { color: var(--text-muted); font-size: 13px; }
.demo-msg-body code {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  background: var(--bg-code);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent-bright);
}
.demo-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  transition: border-color 0.2s;
}
.demo-input-row:focus-within { border-color: rgba(37,99,235,0.4); }
.demo-input-inner {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 1.4em;
}
.demo-caret {
  display: inline-block;
  animation: demo-blink 1s step-end infinite;
  color: var(--accent-bright);
  font-weight: 200;
  line-height: 1;
}
@keyframes demo-blink { 0%,100%{opacity:1} 50%{opacity:0} }
.demo-send-btn {
  background: var(--rose);
  color: #fafafa;
  border: none;
  border-radius: 7px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s, opacity 0.2s;
  box-shadow: 0 0 14px rgba(244,63,94,0.28);
}
.demo-send-btn:hover:not(:disabled) { background: var(--rose-dim); box-shadow: 0 0 22px rgba(244,63,94,0.4); }
.demo-send-btn:active:not(:disabled) { transform: scale(0.9); }
.demo-send-btn:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
@media (max-width: 680px) {
  .demo-diff { font-size: 11px; min-height: 150px; }
  .demo-dl-ln { display: none; }
  .demo-msg-body { font-size: 12px; }
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
