/* PagePace — Dark amber theme */

:root {
  --bg: #0A0A0A;
  --bg-2: #111111;
  --bg-3: #1A1A1A;
  --accent: #FF9A3E;
  --accent-dim: rgba(255, 154, 62, 0.15);
  --text: #F5F5F0;
  --text-muted: #888888;
  --border: #222222;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.nav-tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── HERO ── */
.hero {
  padding: 80px 24px 60px;
}
.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--accent); }
}
.hero-headline {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Agent Scene (CSS illustration) */
.agent-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 20px;
}
.agent-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.agent-head {
  width: 120px;
  height: 120px;
  background: var(--bg-3);
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 20px rgba(255, 154, 62, 0.2);
  position: relative;
  overflow: hidden;
}
.agent-eyes {
  display: flex;
  gap: 20px;
}
.agent-eye {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: blink 4s ease-in-out infinite;
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}
.agent-scan-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
  animation: scan 3s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-80px); opacity: 0.1; }
}
.agent-waves {
  display: flex;
  gap: 6px;
  margin-top: -4px;
  z-index: 1;
}
.wave {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  animation: ripple 2s ease-in-out infinite;
}
.wave-2 { animation-delay: 0.3s; }
.wave-3 { animation-delay: 0.6s; }
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Pipes */
.input-pipe, .output-pipes {
  display: flex;
  align-items: center;
}
.input-pipe {
  width: 100%;
  margin-top: 20px;
  margin-bottom: 4px;
}
.pipe-label {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.pipe-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent));
}
.pipe-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}
.output-pipes {
  width: 100%;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.out-pipe {
  display: flex;
  align-items: center;
  gap: 8px;
}
.out-pipe .pipe-line {
  background: linear-gradient(90deg, var(--accent), var(--border));
}
.out-pipe.out-email { margin-left: 24px; }
.out-pipe.out-changelog { margin-left: 48px; }

/* ── HOW ── */
.how { padding: 60px 24px; border-top: 1px solid var(--border); }
.how-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  font-family: 'DM Sans', sans-serif;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step { flex: 1; padding: 0 32px 0 0; }
.step:first-child { padding-left: 0; }
.step-connector {
  padding-top: 24px;
  flex-shrink: 0;
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 12px;
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.step-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── FEATURES ── */
.features { padding: 60px 24px; }
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feat {
  background: var(--bg-2);
  padding: 28px;
}
.feat-wide { grid-column: span 1; }
.feat-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feat-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feat-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.feat-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.detail-tag {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ── WORKFLOW ── */
.workflow {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
}
.workflow-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.workflow-desc {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 12px 0 28px;
}
.workflow-blocks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.wb-icon { flex-shrink: 0; }

/* Log window */
.log-window {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.log-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.log-dots {
  display: flex;
  gap: 5px;
}
.log-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.log-dots span:first-child { background: #FF5F57; }
.log-dots span:nth-child(2) { background: #FEBC2E; }
.log-dots span:nth-child(3) { background: #28C840; }
.log-title {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'DM Sans', monospace;
}
.log-entries { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.log-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'DM Sans', monospace;
}
.log-entry.log-ok { background: rgba(255, 154, 62, 0.05); }
.log-time {
  color: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 1px;
}
.log-msg { color: var(--text-muted); line-height: 1.5; }

/* ── CLOSING ── */
.closing {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.closing-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.closing-statement {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}
.closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.c-tag {
  font-size: 12px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-right { order: -1; }
  .agent-scene { padding: 10px; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 22px; }
  .steps { flex-direction: column; gap: 24px; }
  .step-connector { display: none; }
  .step { padding: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .workflow-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 16px 40px; }
  .hero-headline { font-size: 32px; }
  .nav-tagline { display: none; }
  .closing { padding: 60px 16px; }
  .out-pipe.out-email { margin-left: 12px; }
  .out-pipe.out-changelog { margin-left: 24px; }
}
