/* DevPilot v3 — Shared Design System */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --accent: #6366F1; --accent-light: #818CF8; --accent-dark: #4F46E5;
  --accent-glow: rgba(99,102,241,0.15); --accent-glow-strong: rgba(99,102,241,0.25);
  --text: #0F172A; --text-secondary: #475569; --text-tertiary: #94A3B8;
  --bg: #FAFAFA; --bg-white: #FFFFFF; --border: #E2E8F0; --border-light: #F1F5F9;
  --code-bg: #1E1E2E; --code-text: #CDD6F4; --success: #10B981;
  --warning: #F59E0B; --danger: #EF4444; --info: #06B6D4;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* Dot Grid */
.dot-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(circle, #CBD5E1 0.8px, transparent 0.8px); background-size: 32px 32px; opacity: 0.4; }

/* Announcement */
.announcement-bar { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: white; text-align: center; padding: 10px 20px; font-size: 0.85rem; font-weight: 500; position: relative; z-index: 100; }
.announcement-bar a { color: white; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; margin-left: 4px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 99; background: rgba(250,250,250,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 0 40px; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-logo-icon { width: 32px; height: 32px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; font-family: var(--font-mono); }
.nav-logo-text { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.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.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-cta { background: var(--accent); color: white; border: none; padding: 8px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }

/* Section headers */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-header h2 em { font-style: italic; color: var(--accent); }
.section-header p { font-size: 1rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }
.section-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }

/* Page header (used on sub-pages) */
.page-header { padding: 80px 0 48px; text-align: center; border-bottom: 1px solid var(--border); background: var(--bg-white); }
.page-header h1 { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.6rem); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.page-header h1 em { font-style: italic; color: var(--accent); }
.page-header p { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.page-breadcrumb { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 24px; }
.page-breadcrumb a { color: var(--text-tertiary); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--accent); }

/* Buttons */
.btn-primary { background: var(--accent); color: white; border: none; padding: 13px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow-strong); }
.btn-secondary { background: var(--bg-white); color: var(--text); border: 1px solid var(--border); padding: 13px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); }
.btn-secondary:hover { border-color: var(--text-tertiary); background: var(--bg); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: 8px; }

/* Cards */
.card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; transition: all 0.3s; }
.card:hover { border-color: var(--accent-light); box-shadow: 0 8px 32px var(--accent-glow); }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* SVG check icon */
.check-svg { flex-shrink: 0; width: 18px; height: 18px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-secondary); }

/* Data labels */
.data-mono { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }
.data-success { font-family: var(--font-mono); font-size: 0.75rem; color: var(--success); }

/* Gantt bars */
.gantt-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.gantt-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-tertiary); min-width: 100px; text-align: right; }
.gantt-track { flex: 1; height: 24px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.gantt-fill { height: 100%; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-family: var(--font-mono); font-size: 0.65rem; color: white; font-weight: 600; transition: width 1.2s ease; }
.gantt-fill.done { background: linear-gradient(90deg, var(--success), #34D399); }

/* Bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 16px; height: 140px; padding-top: 20px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-fill { width: 100%; border-radius: 6px 6px 0 0; transition: height 1s ease; }
.bar-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-tertiary); }
.bar-value { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--text); }

/* Badge / tag */
.badge { display: inline-block; font-family: var(--font-mono); font-size: 0.65rem; padding: 3px 10px; border-radius: 4px; font-weight: 600; }
.badge-accent { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(99,102,241,0.2); }
.badge-success { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.badge-info { background: rgba(6,182,212,0.08); color: var(--info); border: 1px solid rgba(6,182,212,0.2); }

/* Stat grid */
.stat-grid { display: grid; gap: 12px; }
.stat-grid-2 { grid-template-columns: 1fr 1fr; }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card { background: var(--bg); border-radius: 10px; padding: 16px; }
.stat-card-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.stat-card-label { font-size: 0.72rem; color: var(--text-tertiary); margin-top: 2px; }

/* CTA section */
.cta-section { padding: 80px 0; text-align: center; }
.cta-section h2 { font-family: var(--font-display); font-size: clamp(2rem,4vw,2.8rem); margin-bottom: 12px; }
.cta-section h2 em { font-style: italic; color: var(--accent); }
.cta-section p { font-size: 1rem; color: var(--text-secondary); max-width: 480px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 60px 0 40px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-brand p { font-size: 0.85rem; color: var(--text-tertiary); margin-top: 12px; max-width: 280px; }
.footer-cols { display: flex; gap: 80px; }
.footer-col h5 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-tertiary); }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 24px; }
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .stat-grid-3, .stat-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
@media (max-width: 600px) {
  .stat-grid-2, .stat-grid-3, .stat-grid-4 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
