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

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #0f172a;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ── Nav ── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 60px;
  background: #ffffff; border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 100;
}
.nav-brand { font-weight: 700; font-size: 1rem; color: #0f172a; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 4px; }
.nav-link  { padding: 6px 12px; border-radius: 5px; font-size: 0.875rem; color: #64748b; text-decoration: none; transition: background 0.15s, color 0.15s; }
.nav-link:hover { background: #f1f5f9; color: #0f172a; }

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #0f172a;
}
.accent { color: #3b82f6; }
.hero-sub {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 0.875rem; font-weight: 500; font-family: inherit;
  border-radius: 5px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary   { background: #0f172a; color: #fff; border-color: #0f172a; }
.btn-primary:hover { background: #1e293b; }
.btn-secondary { background: #fff; color: #0f172a; border-color: #e2e8f0; }
.btn-secondary:hover { background: #f1f5f9; }
.btn-ghost     { background: transparent; color: #64748b; border-color: transparent; }
.btn-ghost:hover { background: #f1f5f9; color: #0f172a; }
.btn-lg        { padding: 13px 24px; font-size: 1rem; }

/* ── Sections ── */
.section     { padding: 80px 0; }
.section-alt { background: #ffffff; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 12px; }
.section-header p  { color: #64748b; max-width: 400px; margin: 0 auto; }

.label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #3b82f6;
}

/* ── Feature cards ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.07); transform: translateY(-2px); }
.feature-icon { font-size: 1.8rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p  { font-size: 0.875rem; color: #64748b; line-height: 1.6; }

/* ── Demo box ── */
.demo-box {
  max-width: 480px;
  margin: 0 auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
}
.counter-display {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.2s, transform 0.15s;
}
.counter-display.bump { transform: scale(1.12); }
.counter-display.positive { color: #16a34a; }
.counter-display.negative { color: #dc2626; }
#counterMsg { font-size: 0.875rem; color: #94a3b8; margin-bottom: 28px; }
.counter-controls { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; }

.counter-bar-wrap {
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.counter-bar {
  height: 100%;
  width: 50%;
  background: #3b82f6;
  border-radius: 99px;
  transition: width 0.3s ease, background 0.3s;
}

/* ── Text utils ── */
.text-muted   { color: #64748b; }
.text-subtle  { color: #94a3b8; font-size: 0.875rem; }

/* ── Footer ── */
.footer {
  padding: 28px 32px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #64748b;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 2.4rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .nav { padding: 0 16px; }
  .footer .container { flex-direction: column; gap: 8px; text-align: center; }
}
