/* =============================================
   RELAY — AI Agents Landing Page
   Design: Dark mode, electric chartreuse accent
   Typography: Syne (headings) + DM Sans (body)
   ============================================= */

:root {
  --bg: #08090D;
  --surface: #0F1117;
  --surface-2: #141720;
  --border: #1C1F2E;
  --border-light: #252836;
  --accent: #E8FF5B;
  --accent-dim: rgba(232, 255, 91, 0.12);
  --accent-glow: rgba(232, 255, 91, 0.25);
  --indigo: #6366F1;
  --indigo-dim: rgba(99, 102, 241, 0.15);
  --text: #F4F5F7;
  --text-2: #A0A3B1;
  --text-muted: #6B6E7B;
  --online: #22C55E;
  --online-dim: rgba(34, 197, 94, 0.15);
  --warning: #F59E0B;
  --warning-dim: rgba(245, 158, 11, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
  padding: 80px 24px 96px;
  max-width: 1140px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--online);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

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

.headline-accent {
  color: var(--accent);
}

.hero-lede {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-light);
}

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

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-stat {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.proof-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

/* ===== AGENT DASHBOARD ===== */
.hero-visual {
  display: flex;
  justify-content: center;
}

.agent-dashboard {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  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(232,255,91,0.06);
}

.dashboard-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}

.dash-status.online { color: var(--online); }

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--online);
  border-radius: 50%;
}

.agent-card {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.agent-card:last-of-type { border-bottom: none; }
.agent-card:hover { background: var(--surface-2); }

.agent-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agent-icon svg {
  width: 20px;
  height: 20px;
}

.agent-icon.social { background: var(--accent-dim); color: var(--accent); }
.agent-icon.lead { background: var(--indigo-dim); color: #818CF8; }
.agent-icon.support { background: var(--online-dim); color: var(--online); }
.agent-icon.reports { background: rgba(245,158,11,0.12); color: var(--warning); }

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

.agent-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.agent-task {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.agent-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}

.agent-badge.online {
  background: var(--online-dim);
  color: var(--online);
}

.agent-badge.idle {
  background: var(--border);
  color: var(--text-muted);
}

.dashboard-pulse {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

.pulse-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.5;
  position: relative;
  flex-shrink: 0;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: pulse-ring-anim 2s ease-out infinite;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ===== PROOF BAR ===== */
.proof-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.proof-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.proof-label-text {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.proof-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.proof-logo-item {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.proof-logo-sep {
  color: var(--border-light);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 96px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-2);
}

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

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--border-light);
  line-height: 1;
}

.step-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.step-icon-wrap svg { width: 22px; height: 22px; }

.step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.how-quote {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.how-quote blockquote {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.how-quote cite {
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
}

/* ===== AGENT CATALOG ===== */
.agent-catalog {
  padding: 96px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.agent-catalog .section-header {
  max-width: 560px;
}

.agents-grid {
  max-width: 1140px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.agent-product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.agent-product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.agent-product-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface), var(--accent-dim));
}

.agent-product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.agent-product-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: var(--bg);
  padding: 3px 8px;
  border-radius: 100px;
}

.agent-product-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-product-icon svg { width: 22px; height: 22px; }

.agent-product-card.featured .agent-product-icon { background: var(--accent); color: var(--bg); }
.agent-product-card:not(.featured) .agent-product-icon.social { background: var(--accent-dim); color: var(--accent); }
.agent-product-card:not(.featured) .agent-product-icon.lead { background: var(--indigo-dim); color: #818CF8; }
.agent-product-card:not(.featured) .agent-product-icon.support { background: var(--online-dim); color: var(--online); }
.agent-product-card:not(.featured) .agent-product-icon.reports { background: rgba(245,158,11,0.12); color: var(--warning); }

.agent-product-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.agent-product-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 20px;
}

.agent-features {
  list-style: none;
  margin-bottom: 24px;
}

.agent-features li {
  font-size: 12px;
  color: var(--text-2);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.agent-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}

.agent-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.agent-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.price-period {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.agent-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: opacity 0.2s;
}

.agent-cta:hover { opacity: 0.85; }

.agent-cta-outline {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.agent-cta-outline:hover {
  color: var(--text);
  border-color: var(--border-light);
}

.catalog-note {
  text-align: center;
  max-width: 1140px;
  margin: 0 auto;
}

.catalog-note p {
  font-size: 14px;
  color: var(--text-muted);
}

.catalog-note a {
  color: var(--accent);
  text-decoration: none;
}

.catalog-note a:hover { text-decoration: underline; }

/* ===== DIFFERENT ===== */
.different {
  padding: 96px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.different-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.different-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.comparison-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.compare-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.compare-col-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-col-label.accent-col { color: var(--accent); }

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.compare-row:last-child { border-bottom: none; }

.compare-row:hover { background: var(--surface); }

.compare-feature {
  font-size: 13px;
  color: var(--text-2);
}

.compare-val {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.compare-val.check { color: var(--online); }
.compare-val.x { color: var(--text-muted); }
.compare-val.dash { color: var(--text-muted); }

/* ===== ORBIT DIAGRAM ===== */
.different-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit-diagram {
  width: 320px;
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-center {
  width: 72px;
  height: 72px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 40px var(--accent-glow);
}

.orbit-center-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--bg);
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-light);
}

.orbit-ring-1 { width: 140px; height: 140px; }
.orbit-ring-2 { width: 220px; height: 220px; border-style: dashed; border-color: var(--border); }
.orbit-ring-3 { width: 300px; height: 300px; }

.orbit-node {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  z-index: 3;
}

.node-1 { top: 0; left: 50%; transform: translateX(-50%); }
.node-2 { right: 0; top: 50%; transform: translateY(-50%); }
.node-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.node-4 { left: 0; top: 50%; transform: translateY(-50%); }

/* ===== MANIFESTO ===== */
.manifesto {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 24px;
}

.manifesto-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.manifesto-quote-block {
  max-width: 680px;
  margin: 0 auto 80px;
  text-align: center;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 20px;
}

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

.manifesto-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.mstat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.mstat-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
  padding: 64px 24px 32px;
  max-width: 1140px;
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 260px;
}

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

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

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }

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

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

.footer-tag {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .steps-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .different-inner { grid-template-columns: 1fr; }
  .different-visual { display: none; }
  .manifesto-stats { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .proof-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-proof { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 16px 64px; }
  .hero-headline { font-size: 36px; }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .how-it-works, .agent-catalog, .different, .manifesto { padding: 64px 16px; }
  .footer-links { grid-template-columns: 1fr; }
  .agent-product-card { padding: 20px; }
}