/* =========================================
   PagePilot — theme.css
   ========================================= */

:root {
  --bg: #0c0c0e;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --border: #2a2a2e;
  --fg: #f0f0f0;
  --fg-muted: #8a8a8e;
  --accent: #c8ff00;
  --accent-dim: #c8ff0020;
  --accent-text: #0c0c0e;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
}

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

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

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

/* ---- Navigation ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---- Section label ---- */
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 48px 96px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 24px;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proof-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.proof-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- Hero visual ---- */
.hero-visual {
  display: flex;
  justify-content: center;
}

.activity-feed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 360px;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 1.5s infinite;
}

.feed-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.feed-row--active {
  background: var(--accent-dim);
  border-radius: 6px;
  padding: 10px 8px;
  margin: -4px -8px 0;
}

.feed-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.feed-icon--mail { color: #60a5fa; }
.feed-icon--send { color: var(--accent); }
.feed-icon--signal { color: #a78bfa; }

.feed-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg);
  display: block;
}

.feed-meta {
  font-size: 0.7rem;
  color: var(--fg-muted);
  display: block;
  margin-top: 2px;
}

.feed-time {
  font-size: 0.68rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* ---- Problem ---- */
.problem {
  padding: 96px 48px;
  border-bottom: 1px solid var(--border);
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 56px;
  max-width: 600px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.problem-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.pstat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.pstat-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ---- Agent ---- */
.agent {
  padding: 96px 48px;
  border-bottom: 1px solid var(--border);
}

.agent-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.agent-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 16px;
  max-width: 600px;
}

.agent-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.65;
}

.agent-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.agent-feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.feat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.agent-feat h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.agent-feat p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- Workflow ---- */
.workflow {
  padding: 96px 48px;
  border-bottom: 1px solid var(--border);
}

.workflow-inner {
  max-width: 900px;
  margin: 0 auto;
}

.workflow-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 56px;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.step:last-child {
  border-bottom: 1px solid var(--border);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}

.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- Manifesto ---- */
.manifesto {
  padding: 96px 48px;
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-quote { }

.mq-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.mq-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 32px;
}

.mq-cta p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Footer ---- */
.footer {
  padding: 64px 48px 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-head {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 4px;
}

.footer-col span:not(.footer-col-head) {
  font-size: 0.85rem;
  color: var(--fg-muted);
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.footer-build strong { color: var(--fg); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 32px 72px; gap: 48px; }
  .hero-visual { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-stats { grid-template-columns: 1fr; }
  .agent-features { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 16px 32px; }
  .problem, .agent, .workflow, .manifesto { padding: 64px 32px; }
  .footer { padding: 48px 32px 32px; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 24px 56px; }
  .problem, .agent, .workflow, .manifesto { padding: 48px 24px; }
  .nav { padding: 16px 24px; }
  .footer { padding: 40px 24px 24px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-proof { flex-direction: column; align-items: flex-start; gap: 12px; }
  .proof-divider { display: none; }
}