:root {
  --bg: #0A0F1E;
  --bg-alt: #0F1629;
  --fg: #E8EAF0;
  --fg-muted: #7A8499;
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --surface: #111827;
  --border: #1E293B;
}

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

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

h1, h2, h3 { font-family: 'Instrument Serif', serif; font-weight: 400; }

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(12px);
}
.wordmark {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* SECTION LABEL */
.section-label {
  font-size: 11px;
  font-weight: 600;
  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: 96px 48px 80px;
  min-height: 80vh;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(52px, 6vw, 80px);
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-headline em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 48px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 0;
}
.proof-stat {
  padding: 0 28px;
  border-right: 1px solid var(--border);
}
.proof-stat:first-child { padding-left: 0; }
.proof-stat:last-child { border-right: none; }
.proof-num {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  font-family: 'Instrument Serif', serif;
}
.proof-label {
  display: block;
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* HERO GRID */
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grid-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.raw-source {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.source-icon { flex-shrink: 0; }
.source-title { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.source-meta { font-size: 12px; color: var(--fg-muted); }
.arrow-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}
.path-label { font-size: 10px; color: var(--accent); letter-spacing: 0.06em; }

.output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.out-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}
.out-card:hover { border-color: var(--accent); }
.out-icon { color: var(--fg-muted); }
.out-count {
  font-size: 28px;
  font-weight: 600;
  color: var(--fg);
  font-family: 'Instrument Serif', serif;
}
.out-label { font-size: 11px; color: var(--fg-muted); }
.out-tiktok { border-top: 2px solid #FF0050; }
.out-linkedin { border-top: 2px solid #0A66C2; }
.out-threads { border-top: 2px solid #000000; }
.out-email { border-top: 2px solid #F59E0B; }
.out-blog { border-top: 2px solid #4F46E5; }
.out-carousel { border-top: 2px solid #8B5CF6; }

/* PROBLEM */
.problem { background: var(--bg-alt); padding: 96px 48px; }
.problem-inner { max-width: 1280px; margin: 0 auto; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.problem-heading {
  font-size: 40px;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--fg);
}
.problem-body { font-size: 16px; color: var(--fg-muted); line-height: 1.8; margin-bottom: 16px; }
.prob-stat { padding: 28px 0; border-bottom: 1px solid var(--border); }
.prob-stat:last-child { border-bottom: none; }
.prob-num { font-size: 52px; font-family: 'Instrument Serif', serif; color: var(--accent); margin-bottom: 8px; }
.prob-text { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* PIPELINE */
.pipeline { padding: 96px 48px; }
.pipeline-inner { max-width: 1280px; margin: 0 auto; }
.pipeline-heading { font-size: 40px; margin-bottom: 64px; color: var(--fg); }
.pipeline-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.pipe-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.pipe-connector {
  display: flex;
  align-items: center;
  padding-top: 32px;
  flex-shrink: 0;
}
.step-num { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--fg-muted); margin-bottom: 16px; }
.step-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.step-title { font-family: 'Instrument Serif', serif; font-size: 20px; margin-bottom: 10px; color: var(--fg); }
.step-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.7; }

/* OUTPUTS */
.outputs { background: var(--bg-alt); padding: 96px 48px; }
.outputs-inner { max-width: 1280px; margin: 0 auto; }
.outputs-heading { font-size: 40px; margin-bottom: 56px; color: var(--fg); }
.outputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.out-type { background: var(--bg-alt); padding: 32px; }
.out-type-wide { grid-column: span 3; }
.out-type-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.out-type-icon { color: var(--accent); }
.out-type-name { font-size: 15px; font-weight: 600; color: var(--fg); }
.out-type-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.7; margin-bottom: 12px; }
.out-type-format { font-size: 11px; color: var(--accent); font-weight: 500; letter-spacing: 0.04em; }

/* MANIFESTO */
.manifesto { padding: 96px 48px; }
.manifesto-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.manifesto-mark { display: flex; justify-content: center; margin-bottom: 32px; }
.manifesto-quote {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 40px;
  font-style: italic;
}
.quote-attr { font-style: normal; font-size: 13px; color: var(--fg-muted); font-family: 'DM Sans', sans-serif; }
.manifesto-body p { font-size: 15px; color: var(--fg-muted); line-height: 1.8; margin-bottom: 16px; }

/* CLOSING */
.closing { padding: 96px 48px; background: var(--bg-alt); }
.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.closing-badge { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.closing-headline { font-size: clamp(48px, 6vw, 72px); line-height: 1.05; margin-bottom: 28px; color: var(--fg); }
.closing-headline em { color: var(--accent); font-style: normal; }
.closing-body { font-size: 17px; color: var(--fg-muted); line-height: 1.7; max-width: 560px; margin: 0 auto 40px; }
.closing-value-prop { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 13px; color: var(--fg-muted); }
.cv-sep { color: var(--border); }

/* FOOTER */
.site-footer { padding: 40px 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-wordmark { font-family: 'Instrument Serif', serif; font-size: 18px; color: var(--accent); display: block; margin-bottom: 4px; }
.footer-tagline { font-size: 13px; color: var(--fg-muted); }
.footer-meta { font-size: 12px; color: var(--fg-muted); }

/* CTA BUTTON */
.cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #0A0F1E;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  margin-bottom: 40px;
}
.cta-button:hover { opacity: 0.88; transform: translateY(-1px); }

/* DEMO PAGE */
.demo-page { min-height: calc(100vh - 73px); padding: 64px 48px; }
.demo-inner { max-width: 900px; margin: 0 auto; }
.demo-title {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 12px;
}
.demo-sub {
  font-size: 17px;
  color: var(--fg-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}
.demo-form { margin-bottom: 48px; }
.url-input-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.url-input {
  flex: 1;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.url-input:focus { border-color: var(--accent); }
.url-input::placeholder { color: var(--fg-muted); }
.url-type-label { font-size: 12px; color: var(--fg-muted); margin-bottom: 8px; }
.demo-submit {
  padding: 16px 32px;
  background: var(--accent);
  color: #0A0F1E;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.demo-submit:hover { opacity: 0.88; }
.demo-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.input-hint { font-size: 12px; color: var(--fg-muted); }

/* PIPELINE STATUS */
.pipeline-status {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pipeline-step-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
}
.pipeline-step-status.done { color: var(--accent); }
.pipeline-step-status.active { color: var(--fg); }
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-muted);
}
.step-dot.done { background: var(--accent); }
.step-dot.active { background: var(--fg); box-shadow: 0 0 8px var(--accent); animation: pulse 1.5s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* OUTPUT CARDS GRID */
.output-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.output-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}
.output-card:hover { border-color: var(--accent); }
.output-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.output-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-clip { background: rgba(245, 158, 11, 0.12); color: var(--accent); }
.icon-linkedin { background: rgba(10, 102, 194, 0.12); color: #0A66C2; }
.icon-thread { background: rgba(0, 0, 0, 0.3); color: var(--fg); }
.icon-carousel { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }
.icon-email { background: rgba(245, 158, 11, 0.12); color: var(--accent); }
.output-card-type { font-size: 13px; font-weight: 600; color: var(--fg); }
.output-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.4;
}
.output-card-body {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.7;
  white-space: pre-wrap;
}
.output-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 12px;
}
.tag-platform { background: var(--accent-dim); color: var(--accent); }
.tag-draft { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.tag-format { background: rgba(100, 116, 139, 0.12); color: var(--fg-muted); }

/* ERROR STATE */
.demo-error {
  padding: 16px 20px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #F87171;
  font-size: 14px;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 24px; }
  .hero-grid { display: none; }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .pipeline-steps { flex-direction: column; align-items: center; gap: 40px; }
  .pipe-connector { display: none; }
  .outputs-grid { grid-template-columns: 1fr; }
  .out-type-wide { grid-column: 1; }
  .topbar { padding: 16px 24px; }
  .problem, .pipeline, .outputs, .manifesto, .closing { padding: 64px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
  .hero-proof { flex-wrap: wrap; gap: 16px; }
  .proof-stat { border-right: none; padding: 0; }
  .closing-value-prop { flex-direction: column; gap: 8px; }
  .cv-sep { display: none; }
}