/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #090909;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --fg: #e8e8e8;
  --fg-dim: #888888;
  --accent: #00E5CC;
  --accent-dim: rgba(0, 229, 204, 0.12);
  --border: rgba(255,255,255,0.06);
  --font: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9,9,9,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--fg-dim);
  font-family: var(--mono);
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,204,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,204,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-content {
  max-width: 760px;
  width: 100%;
  position: relative;
  z-index: 1;
  text-align: left;
}
.hero-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.hero-headline {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-dim);
  max-width: 520px;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.hero-terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.8rem;
  max-width: 560px;
}
.terminal-header {
  background: var(--bg-3);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}
.terminal-dot:first-child { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28ca41; }
.terminal-title {
  margin-left: 0.5rem;
  color: var(--fg-dim);
  font-size: 0.72rem;
}
.terminal-body {
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.7;
}
.terminal-line { color: var(--fg); }
.t-dim { color: var(--fg-dim); }
.t-cyan { color: var(--accent); }

/* === STATS === */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
  background: var(--bg-2);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.stat-item { padding: 0 3rem; text-align: center; }
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  font-family: var(--mono);
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

/* === HOW IT WORKS === */
.how { padding: 100px 2rem; }
.how-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
  line-height: 1.15;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.how-step {
  background: var(--bg-2);
  padding: 2rem 2.2rem;
  border: 1px solid var(--border);
}
.step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}
.how-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.how-step p {
  font-size: 0.88rem;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* === DASHBOARD === */
.dashboard-section { padding: 100px 2rem; background: var(--bg-2); }
.dashboard-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.dashboard-text .section-title { margin-bottom: 1rem; }
.dashboard-text > p {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.dashboard-features { display: flex; flex-direction: column; gap: 0.75rem; }
.df-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--fg-dim);
}
.df-icon { color: var(--accent); font-size: 0.7rem; }

/* Dashboard Visual */
.dash-monitor {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.dm-header {
  background: var(--bg-3);
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.dm-dots { display: flex; gap: 0.35rem; }
.dm-dots span { width: 8px; height: 8px; border-radius: 50%; background: #333; }
.dm-dots span:first-child { background: #ff5f57; }
.dm-dots span:nth-child(2) { background: #ffbd2e; }
.dm-dots span:nth-child(3) { background: #28ca41; }
.dm-title { color: var(--fg-dim); font-size: 0.7rem; margin-left: 0.5rem; }
.dm-body { display: flex; min-height: 240px; }
.dm-sidebar { width: 120px; background: var(--bg-2); border-right: 1px solid var(--border); padding: 1rem 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.dm-nav-item { padding: 0.35rem 0.6rem; color: var(--fg-dim); cursor: default; font-size: 0.7rem; }
.dm-nav-item.active { color: var(--accent); background: var(--accent-dim); border-radius: 3px; }
.dm-main { flex: 1; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.dm-task { }
.dm-task-header { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: var(--fg); margin-bottom: 0.25rem; }
.dm-task-status { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dm-task-status.running { background: var(--accent); animation: pulse 2s ease-in-out infinite; }
.dm-task-status.done { background: #28ca41; }
.dm-task-status.queued { background: #444; }
.dm-task-meta { font-size: 0.68rem; color: var(--fg-dim); margin-bottom: 0.4rem; }
.dm-progress-bar { height: 3px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.dm-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; }

/* === MANIFESTO === */
.manifesto {
  padding: 100px 2rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.manifesto-inner { max-width: 700px; margin: 0 auto; }
.manifesto-quote {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: var(--fg);
  font-style: italic;
}
.manifesto-body {
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.8;
}

/* === CLOSING === */
.closing { padding: 100px 2rem; text-align: center; }
.closing-inner { max-width: 600px; margin: 0 auto; }
.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* === FOOTER === */
.footer { padding: 3rem 2rem; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.footer-copy { font-size: 0.8rem; color: var(--fg-dim); font-family: var(--mono); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .how-steps { grid-template-columns: 1fr; }
  .dashboard-inner { grid-template-columns: 1fr; gap: 3rem; }
  .stats-inner { flex-wrap: wrap; gap: 1.5rem; }
  .stat-divider { display: none; }
  .stat-item { padding: 0 1.5rem; }
  .hero { padding-top: 100px; }
  .footer-inner { flex-direction: column; gap: 1rem; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .hero-terminal { font-size: 0.72rem; }
}