/* ========================================
   ClawAgents.dev — Main Stylesheet
   Dark theme, single-page landing
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1e2d42;
  --surface: #263750;
  --surface-2: #2e415c;
  --surface-3: #374b68;
  --border: #4a5f7a;
  --text: #e4e4e7;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f59e0b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-w: 1100px;
  --section-pad: 80px 0;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

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

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #a5b4fc;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: #fff;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   1. URGENCY BANNER
   ======================================== */
.urgency-banner {
  background: linear-gradient(90deg, var(--accent) 0%, #4f46e5 100%);
  text-align: center;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.urgency-banner strong {
  font-weight: 700;
}

/* ========================================
   2. HERO
   ======================================== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero h1 .highlight {
  color: var(--accent-light);
}

.hero .subhead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero .trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 32px;
}

.trust-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

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

/* ========================================
   3. COMPARISON (Them vs Us)
   ======================================== */
.comparison {
  background: var(--surface);
  padding: var(--section-pad);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.comparison-col {
  padding: 32px;
  border-radius: 12px;
}

.comparison-col.them {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.comparison-col.us {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.02) 100%);
  border: 1px solid var(--accent);
}

.comparison-col h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.comparison-col.them h3 {
  color: var(--text-dim);
}

.comparison-col.us h3 {
  color: var(--accent-light);
}

.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-col ul li {
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}

.comparison-col.them ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
}

.comparison-col.us ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
}

.comparison-callout {
  text-align: center;
  margin-top: 40px;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ========================================
   4. PROOF OF WORK
   ======================================== */
.proof {
  padding: var(--section-pad);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
  font-family: var(--mono);
  display: block;
  margin-bottom: 8px;
}

.stat-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.proof-quote {
  margin-top: 40px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
}

.proof-quote em {
  color: var(--accent-light);
  font-style: normal;
}

/* ========================================
   5. THE 9 ARCHETYPES
   ======================================== */
.archetypes {
  background: var(--surface);
  padding: var(--section-pad);
}

.archetype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.archetype-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s;
}

.archetype-card:hover {
  border-color: var(--accent);
}

.archetype-card .role-number {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.archetype-card h4 {
  margin-bottom: 4px;
}

.archetype-card .agent-name {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.archetype-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.arch-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.arch-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.arch-feature .icon {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================================
   6. THE DAILY LOOP
   ======================================== */
.daily-loop {
  padding: var(--section-pad);
}

.timeline {
  margin-top: 40px;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-item .time {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-item.sleep {
  opacity: 0.6;
}

/* ========================================
   7. NICHE SHOWCASES (Tabbed)
   ======================================== */
.showcases {
  background: var(--surface);
  padding: var(--section-pad);
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.showcase-tab {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.showcase-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}

.showcase-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.showcase-panel {
  display: none;
}

.showcase-panel.active {
  display: block;
}

.showcase-content {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}

.showcase-stat {
  font-size: 1.1rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--accent-glow);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.showcase-agents {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.showcase-agents th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.showcase-agents td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(42, 45, 58, 0.5);
  color: var(--text-muted);
}

.showcase-agents td:first-child {
  color: var(--accent-light);
  font-weight: 500;
  width: 50px;
  text-align: center;
}

.showcase-agents td:nth-child(2) {
  color: var(--text);
  font-weight: 500;
}

.showcase-morning {
  background: var(--surface-3);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
  border-left: 3px solid var(--green);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.showcase-morning strong {
  color: var(--text);
}

.showcase-why {
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.showcase-why strong {
  color: var(--text);
}

.showcase-cta {
  margin-top: 28px;
}

/* ========================================
   8. PLAYBOOK (Lead Magnet)
   ======================================== */
.playbook {
  padding: var(--section-pad);
}

.playbook-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.playbook-box h2 {
  margin-bottom: 12px;
}

.playbook-box p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.playbook-box .kit-form {
  margin-top: 24px;
}

/* ========================================
   9. FOUNDING CLIENT PROGRAM
   ======================================== */
.founding {
  background: var(--surface);
  padding: var(--section-pad);
}

.founding-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(99, 102, 241, 0.02) 100%);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.founding-card .spots {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.founding-card h2 {
  margin-bottom: 8px;
}

.founding-price {
  font-size: 1.3rem;
  margin: 20px 0;
}

.founding-price .amount {
  font-weight: 800;
  color: var(--accent-light);
  font-family: var(--mono);
}

.founding-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

.founding-details h4 {
  margin-bottom: 12px;
  color: var(--text);
}

.founding-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.founding-details ul li {
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.founding-details ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.founding-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 24px;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ========================================
   10. FAQ
   ======================================== */
.faq {
  padding: var(--section-pad);
}

.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  line-height: 1.5;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 0 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   11. FOOTER
   ======================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  section { padding: 48px 0; }

  .hero { padding: 60px 0 48px; }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archetype-grid {
    grid-template-columns: 1fr;
  }

  .arch-features {
    grid-template-columns: 1fr;
  }

  .founding-details {
    grid-template-columns: 1fr;
  }

  .showcase-content {
    padding: 24px;
  }

  .founding-card {
    padding: 32px 24px;
  }

  .playbook-box {
    padding: 32px 24px;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .showcase-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .showcase-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .urgency-banner {
    font-size: 0.8rem;
    padding: 10px 16px;
  }
}
