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

:root {
  --bg: #0a0a12;
  --bg-card: #111120;
  --bg-card-hover: #171728;
  --violet: #7c3aed;
  --violet-bright: #a78bfa;
  --violet-dim: rgba(124, 58, 237, 0.15);
  --text: #e8e0d4;
  --text-muted: #8a8a9a;
  --text-dim: rgba(232, 224, 212, 0.4);
  --border: rgba(255,255,255,0.07);
  --green: #22c55e;
  --amber: #f59e0b;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-bright);
  background: var(--violet-dim);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 5px 12px;
  border-radius: 100px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 48px 100px;
  min-height: calc(100vh - 65px);
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.7;
}

/* Agent Dashboard Widget */
.agent-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.dash-dot.active { background: var(--green); box-shadow: 0 0 8px var(--green); }

.dash-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 400;
}

.dash-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }

.dash-task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.dash-task.running { border-color: rgba(124, 58, 237, 0.3); background: rgba(124, 58, 237, 0.05); }

.task-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.running .task-status { background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.done .task-status { background: var(--green); }
.queued .task-status { background: var(--text-dim); }

.task-info { flex: 1; min-width: 0; }

.task-name { display: block; font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.task-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
}

.task-badge { background: var(--violet-dim); color: var(--violet-bright); }
.task-badge.done { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.task-badge.queued { background: rgba(255,255,255,0.05); color: var(--text-muted); }

.dash-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 4px;
}

.meter-label { font-size: 11px; color: var(--text-muted); }

.meter-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--violet), var(--violet-bright));
  border-radius: 100px;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.6);
}

.meter-value { font-size: 11px; color: var(--violet-bright); font-weight: 600; }

/* Soundwave Section */
.soundwave {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.sw-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.sw-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 80px;
  margin-bottom: 48px;
}

.bar {
  flex: 1;
  height: calc(var(--h) * 1%);
  background: linear-gradient(to top, var(--violet), var(--violet-bright));
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  animation: pulse var(--d) ease-in-out infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.3; transform: scaleY(0.8); }
  to { opacity: 0.9; transform: scaleY(1); }
}

.bar:nth-child(odd) { animation-direction: alternate-reverse; }

.sw-categories {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.sw-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--violet-dim);
  border: 1px solid rgba(167,139,250,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-bright);
  flex-shrink: 0;
}

/* Workflow Section */
.workflow {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.wf-header {
  max-width: 520px;
  margin-bottom: 64px;
}

.wf-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.wf-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
}

.wf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.wf-card {
  padding: 40px;
  background: var(--bg-card);
  transition: background 0.2s;
}

.wf-card:hover { background: var(--bg-card-hover); }

.wf-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--violet);
  margin-bottom: 16px;
}

.wf-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 12px;
}

.wf-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Manifesto */
.manifesto {
  padding: 100px 48px 120px;
  border-top: 1px solid var(--border);
}

.man-inner { max-width: 680px; margin: 0 auto; }

.man-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 48px;
}

.man-divider {
  width: 48px;
  height: 2px;
  background: var(--violet);
  margin-bottom: 40px;
}

.man-outro p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
  border-top: 1px solid var(--border);
}

.footer-brand { display: flex; flex-direction: column; gap: 4px; }

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-muted);
}

.footer-desc {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 24px 80px; }
  .hero-visual { order: -1; }
  .nav { padding: 20px 24px; }
  .soundwave, .workflow, .manifesto { padding: 80px 24px; }
  .wf-grid { grid-template-columns: 1fr; }
  .sw-categories { gap: 24px; }
  .footer { flex-direction: column; gap: 16px; padding: 24px; }
}

@media (max-width: 480px) {
  .sw-bars { height: 50px; gap: 3px; }
  .bar { border-radius: 2px; }
}