/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --bg-3: #18181f;
  --bg-4: #1e1e28;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text: #e8e8f0;
  --text-muted: #8888a8;
  --text-dim: #55556a;
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.15);
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.15);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.15);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.15);
  --purple: #a855f7;
  --purple-dim: rgba(168,85,247,0.15);
  --teal: #14b8a6;
  --teal-dim: rgba(20,184,166,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, #4ade80 50%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 15px;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  text-decoration: none; transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-sm  { padding: 8px 16px; font-size: 14px; }
.btn-lg  { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-xl  { padding: 18px 36px; font-size: 17px; border-radius: var(--radius); gap: 10px; }

.btn-primary {
  background: var(--green);
  color: #0a0a0f;
}
.btn-primary:hover { background: #16a34a; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34,197,94,0.3); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}
.btn-outline:hover { border-color: var(--text-muted); background: var(--bg-3); }

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600; font-size: 18px;
  color: var(--text); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(34,197,94,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  padding: 5px 14px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 600px; margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 13px; color: var(--text-dim);
  margin-bottom: 64px;
}

/* ─── Dashboard Mockup ─────────────────────────────────────── */
.hero-visual {
  display: flex; justify-content: center;
  padding-bottom: 0;
}

.dashboard-mock {
  width: 100%; max-width: 820px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 60px rgba(34,197,94,0.06), 0 0 0 1px rgba(255,255,255,0.04);
  font-size: 13px;
  text-align: left;
}

.mock-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.mock-logo {
  font-family: 'Lora', serif; font-size: 14px; font-weight: 600;
  margin-right: auto;
}
.mock-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.mock-btn { cursor: default; }

.mock-body { display: flex; min-height: 280px; }

.mock-sidebar {
  width: 160px; flex-shrink: 0;
  background: var(--bg-3);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.mock-nav-item {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: default;
}
.mock-nav-item.active {
  background: var(--green-dim);
  color: var(--green);
  font-weight: 600;
}
.mock-divider { height: 1px; background: var(--border); margin: 8px 4px; }
.mock-goal-card {
  padding: 8px 10px;
  background: var(--bg-4);
  border-radius: 8px;
  margin-top: 4px;
}
.mock-goal-label { font-size: 11px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.mock-goal-bar {
  height: 4px; background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden; margin-bottom: 4px;
}
.mock-goal-fill {
  height: 100%; background: var(--green); border-radius: 2px;
  transition: width 1s ease;
}
.mock-goal-fill.amber { background: var(--amber); }
.mock-goal-meta { font-size: 10px; color: var(--text-dim); }

.mock-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 16px; }

.mock-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-stat {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.mock-stat-val { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }
.mock-stat-label { font-size: 10px; color: var(--text-dim); margin-top: 2px; }

.mock-chart-label { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.mock-bars { display: flex; flex-direction: column; gap: 8px; }
.mock-bar-row { display: flex; align-items: center; gap: 8px; }
.mock-bar-cat { font-size: 11px; color: var(--text-muted); width: 96px; flex-shrink: 0; }
.mock-bar-track {
  flex: 1; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
}
.mock-bar-fill { height: 100%; border-radius: 3px; }
.mock-bar-fill.green  { background: var(--green); }
.mock-bar-fill.blue   { background: var(--blue); }
.mock-bar-fill.purple { background: var(--purple); }
.mock-bar-fill.amber  { background: var(--amber); }
.mock-bar-time { font-size: 11px; color: var(--text-dim); width: 44px; text-align: right; flex-shrink: 0; }

/* ─── Section Shared ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px; margin: 0 auto;
}

/* ─── Features ─────────────────────────────────────────────── */
.features {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

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

.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-icon.green  { background: var(--green-dim);  color: var(--green);  }
.feature-icon.amber  { background: var(--amber-dim);  color: var(--amber);  }
.feature-icon.blue   { background: var(--blue-dim);   color: var(--blue);   }
.feature-icon.red    { background: var(--red-dim);    color: var(--red);    }
.feature-icon.purple { background: var(--purple-dim); color: var(--purple); }
.feature-icon.teal   { background: var(--teal-dim);   color: var(--teal);   }

.feature-card h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.65;
}

/* ─── How It Works ─────────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex; align-items: center;
  justify-content: center;
  gap: 16px; flex-wrap: wrap;
}

.step {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  flex: 1; min-width: 220px; max-width: 280px;
}
.step-num {
  width: 36px; height: 36px;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 50%;
  font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-content p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-content code {
  background: var(--bg-4);
  padding: 1px 6px; border-radius: 4px;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 13px; color: var(--green);
}

.step-arrow {
  font-size: 22px; color: var(--text-dim);
  flex-shrink: 0;
}

/* ─── Details ──────────────────────────────────────────────── */
.details { padding: 100px 0; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.detail-block h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 8px;
}
.detail-block p {
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}

/* ─── Download CTA ─────────────────────────────────────────── */
.download-cta {
  padding: 80px 0 100px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.download-card {
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-4) 100%);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  box-shadow: 0 0 80px rgba(34,197,94,0.06);
}
.download-card h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.download-card p {
  font-size: 16px; color: var(--text-muted);
  margin-bottom: 36px;
}
.download-meta {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13px; color: var(--text-dim);
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.footer-logo {
  font-family: 'Lora', serif; font-weight: 600;
  font-size: 15px;
}
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 60px 20px 0; }
  .mock-sidebar { display: none; }
  .mock-stats-row { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .download-card { padding: 40px 20px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
