/* DevPilot v3 — Shared Design System */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --accent: #E8820C; --accent-light: #F5A623; --accent-dark: #C66A00;
  --accent-glow: rgba(232,130,12,0.15); --accent-glow-strong: rgba(232,130,12,0.25);
  --sun-gold: #FFD700; --sun-orange: #FF8C00; --sun-deep: #FF4500;
  --node-blue: #60A5FA; --node-green: #22C55E; --node-purple: #A855F7; --node-amber: #F59E0B;
  --text: #0F172A; --text-secondary: #334155; --text-tertiary: #64748B;
  --bg: #FAFAFA; --bg-white: #FFFFFF; --border: #E2E8F0; --border-light: #F1F5F9;
  --code-bg: #0A0A14; --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 — Mega Menu */
.nav { position: sticky; top: 0; z-index: 99; background: rgba(250,250,250,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); 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: conic-gradient(from 0deg, #ff8c00, #ffd700, #ff4500, #ff8c00); 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: 6px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-link-trigger { color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; padding: 8px 14px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; background: none; border: none; font-family: var(--font-body); }
.nav-links > li > a:hover, .nav-link-trigger:hover, .nav-links > li:hover > .nav-link-trigger { color: var(--text); background: rgba(232,130,12,0.06); }
.nav-links > li > a.active, .nav-link-trigger.active { color: var(--accent); }
.nav-chevron { width: 12px; height: 12px; transition: transform 0.2s; color: var(--text-tertiary); }
.nav-links > li:hover .nav-chevron { transform: rotate(180deg); color: var(--accent); }

/* Mega Dropdown */
.nav-mega { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px); opacity: 0; pointer-events: none; transition: all 0.25s ease; min-width: 540px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03); z-index: 100; }
.nav-links > li:hover .nav-mega { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-mega::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nav-mega-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; min-width: 660px; }
.nav-mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); transition: all 0.2s; }
.nav-mega-item:hover { background: rgba(232,130,12,0.06); }
.nav-mega-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-size: 0.7rem; color: white; }
.nav-mega-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.nav-mega-desc { font-size: 0.72rem; color: var(--text-tertiary); line-height: 1.4; }
.nav-mega-badge { font-family: var(--font-mono); font-size: 0.55rem; padding: 1px 6px; border-radius: 3px; font-weight: 600; margin-left: 6px; vertical-align: middle; }
.nav-mega-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); display: flex; gap: 16px; }
.nav-mega-footer a { font-size: 0.78rem; color: var(--accent); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.nav-mega-footer a:hover { text-decoration: underline; }
.nav-cta { background: var(--accent); color: white; border: none; padding: 8px 20px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-gh { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: all 0.2s; }
.nav-gh:hover { border-color: var(--text-tertiary); color: var(--text); }

/* 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); }

/* Mobile Hamburger Menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Futurism Design Tokens ───────────────────── */
:root {
  --space-dark: #06061a;
  --space-mid: #0a0a2e;
  --space-light: #111128;
  --space-glow: rgba(99,102,241,0.15);
  --gradient-hero: linear-gradient(135deg, #06061a 0%, #0d1033 50%, #1a0a2e 100%);
  --gradient-accent: linear-gradient(135deg, #6366F1, #8B5CF6, #06B6D4);
  --gradient-warm: linear-gradient(135deg, #F59E0B, #EF4444);
  --gradient-cool: linear-gradient(135deg, #06B6D4, #10B981);
}

/* Space dots overlay */
.space-dots {
  position: relative;
}
.space-dots::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(232,130,12,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Glow border on hover */
.glow-border {
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s;
}
.glow-border:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 0 20px rgba(99,102,241,0.1), 0 8px 32px rgba(0,0,0,0.2);
}

/* Glass card */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
}

/* Gradient text */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulse ring animation */
.pulse-ring {
  position: relative;
}
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(99,102,241,0.3);
  animation: pulse-ring-anim 2s ease-out infinite;
}
@keyframes pulse-ring-anim {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Futurism section base */
.futurism-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.futurism-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(99,102,241,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Section divider — gradient line */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  border: none;
  margin: 0;
}

/* Floating particles container (for JS particle effects) */
.particle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Scroll reveal enhancement */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Dark section text helpers */
.dark-text { color: #F1F5F9; }
.dark-text-secondary { color: #94A3B8; }
.dark-text-tertiary { color: #64748B; }

/* Terminal chrome (reusable) */
.terminal-chrome {
  background: var(--code-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 20px 60px rgba(0,0,0,0.3);
}
.terminal-chrome-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-chrome-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-chrome-dot.red { background: #FF5F57; }
.terminal-chrome-dot.yellow { background: #FFBD2E; }
.terminal-chrome-dot.green { background: #28CA42; }
.terminal-chrome-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}
.terminal-chrome-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--code-text);
}

/* Responsive */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 24px; }
  .nav { padding: 0 24px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250,250,250,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    z-index: 100;
    padding: 80px 24px 40px;
    overflow-y: auto;
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .nav-links > li {
    width: 100%;
    text-align: center;
  }
  .nav-links > li > a,
  .nav-link-trigger {
    font-size: 1.1rem;
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .nav-mega {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    min-width: unset !important;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--border-light);
    padding: 12px;
    margin-top: 4px;
    border-radius: 12px;
    display: none;
  }
  .nav-links > li.mega-open .nav-mega {
    display: block !important;
  }
  .nav-mega-grid { grid-template-columns: 1fr !important; }
  .nav-mega-grid.cols-3 { grid-template-columns: 1fr !important; min-width: unset !important; }
  .nav-mega::before { display: none; }
  .nav-right { display: flex; }
  .nav-gh { 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; }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
}
@media (max-width: 600px) {
  .stat-grid-2, .stat-grid-3, .stat-grid-4 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}
