/* === Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #0a0a0f;
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  line-height: 1.6;
}
.page { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
.divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 60px 0; }
.accent { color: #a78bfa; }
.section-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #7c3aed; margin-bottom: 12px; font-weight: 600;
}

/* === Hero === */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; min-height: 80vh;
}
.tech-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.badge {
  background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3);
  border-radius: 4px; padding: 4px 10px; font-size: 11px;
  color: #60a5fa; font-weight: 600;
}
.hero h1 { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.subtitle { font-size: 15px; color: #94a3b8; line-height: 1.6; margin-bottom: 20px; }
.dare { color: #f59e0b; font-weight: 700; font-size: 15px; }

/* === Demo Form === */
.demo-form {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 28px;
}
.demo-form h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.form-sub { font-size: 13px; color: #64748b; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600; color: #94a3b8;
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.optional { color: #64748b; text-transform: none; font-weight: 400; letter-spacing: 0; }
.label-hint { display: block; font-size: 11px; color: #64748b; margin-bottom: 6px; text-transform: none; letter-spacing: 0; }
.form-group input {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  padding: 12px 14px; font-size: 14px; color: #e2e8f0; outline: none;
  font-family: inherit;
}
.form-group input::placeholder { color: #475569; }
.form-group input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.run-btn {
  width: 100%; background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff; border: none; border-radius: 8px; padding: 14px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.3px; font-family: inherit;
}
.run-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,0.4); }
.run-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.demo-count { text-align: center; margin-top: 12px; font-size: 11px; color: #475569; }
.rate-limit-msg { text-align: center; margin-top: 16px; font-size: 13px; color: #f59e0b; }

/* === Result Zone === */
.result-zone { max-width: 580px; margin: 0 auto; }
.source-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.source-tag {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 3px 8px; border-radius: 3px;
  opacity: 0; transition: opacity 0.5s;
}
.source-tag.visible { opacity: 1; }
.tag-tavily { background: rgba(52,211,153,0.15); color: #34d399; }
.tag-gpt { background: rgba(96,165,250,0.15); color: #60a5fa; }
.tag-dalle { background: rgba(167,139,250,0.15); color: #a78bfa; }

/* Status message */
.status-msg {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; font-size: 13px; color: #94a3b8;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #7c3aed;
  animation: pulse-anim 1.5s ease-in-out infinite;
}
@keyframes pulse-anim { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }

/* === LinkedIn Card === */
.li-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 20px rgba(0,0,0,0.3);
}
.li-header { padding: 12px 16px; display: flex; gap: 10px; }
.li-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: #0a66c2;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.li-meta {}
.li-name { font-weight: 600; font-size: 14px; color: rgba(0,0,0,0.9); }
.li-headline { font-size: 12px; color: rgba(0,0,0,0.6); margin-top: 1px; }
.li-time { font-size: 12px; color: rgba(0,0,0,0.6); margin-top: 1px; }
.li-body {
  padding: 0 16px 14px; font-size: 14px; line-height: 1.5;
  color: rgba(0,0,0,0.9); white-space: pre-line; min-height: 60px;
}

/* Streaming cursor */
.cursor {
  display: inline-block; width: 2px; height: 16px; background: #0a66c2;
  margin-left: 2px; vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Image area */
.li-image { width: 100%; position: relative; overflow: hidden; }
.shimmer {
  width: 100%; height: 220px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.li-image img { width: 100%; display: block; }
.img-label {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7); color: #a78bfa; font-size: 10px;
  padding: 4px 8px; border-radius: 4px; font-weight: 600;
}

.li-hashtags {
  padding: 8px 16px; font-size: 13px; color: #0a66c2; font-weight: 600;
  opacity: 0; transition: opacity 0.5s;
}
.li-hashtags.visible { opacity: 1; }
.li-actions {
  padding: 4px 16px 8px; display: flex; justify-content: space-around;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.li-action { padding: 10px 8px; font-size: 13px; font-weight: 600; color: rgba(0,0,0,0.6); }

/* Error */
.error-msg { text-align: center; margin-top: 20px; color: #f87171; font-size: 14px; }
.retry-btn {
  margin-top: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-size: 13px;
  font-family: inherit;
}

/* === Under the Hood === */
.hood h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.hood-sub { color: #94a3b8; font-size: 14px; margin-bottom: 32px; }
.pipelines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.pipeline-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 20px;
}
.p-num { font-size: 11px; font-weight: 700; color: #7c3aed; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.pipeline-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.pipeline-card p { font-size: 13px; color: #94a3b8; line-height: 1.5; }

.integrations { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.int-badge {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 10px 16px; font-size: 12px;
  color: #cbd5e1; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: #34d399; }
.dot-blue { background: #60a5fa; }
.dot-purple { background: #a78bfa; }
.dot-pink { background: #f472b6; }
.dot-orange { background: #fb923c; }
.dot-cyan { background: #38bdf8; }
.dot-teal { background: #2dd4bf; }
.dot-yellow { background: #fbbf24; }

.screenshot-placeholder {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 40px; text-align: center; color: #475569; font-size: 13px;
}
.screenshot-placeholder code { background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 3px; }

/* === Portfolio === */
.portfolio h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.portfolio-sub { color: #94a3b8; font-size: 14px; margin-bottom: 32px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portfolio-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 20px;
}
.portfolio-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.portfolio-card p { font-size: 13px; color: #94a3b8; line-height: 1.5; }

/* === CTA === */
.cta {
  text-align: center; padding: 48px 24px;
  background: rgba(124,58,237,0.06); border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px;
}
.cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.cta > p { color: #94a3b8; font-size: 15px; margin-bottom: 24px; }
.cta-btn {
  display: inline-block; background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff; padding: 14px 32px; border-radius: 8px; font-size: 15px;
  font-weight: 700; text-decoration: none; transition: all 0.2s;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,0.4); }
.cta-secondary { margin-top: 12px; font-size: 13px; color: #64748b; }
.cta-secondary a { color: #a78bfa; text-decoration: none; }
.cta-secondary a:hover { text-decoration: underline; }

/* === Examples (rate limit fallback) === */
.examples-zone { max-width: 900px; margin: 0 auto; }
.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.example-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.2);
}
.example-card .ex-body {
  padding: 14px 16px; font-size: 12px; line-height: 1.5; color: rgba(0,0,0,0.8);
  white-space: pre-line; max-height: 180px; overflow: hidden;
}
.example-card .ex-hashtags { padding: 6px 16px 12px; font-size: 11px; color: #0a66c2; font-weight: 600; }
.example-card .ex-topic {
  padding: 10px 16px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(0,0,0,0.4); border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 32px; min-height: auto; padding-top: 40px; }
  .hero h1 { font-size: 28px; }
  .pipelines, .portfolio-grid, .examples-grid { grid-template-columns: 1fr; }
  .result-zone { max-width: 100%; }
}
