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

:root {
  --bg: #0E0E14;
  --surface: #16161F;
  --surface-2: #1E1E2A;
  --fg: #F0EDE6;
  --fg-muted: #8A8698;
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --accent-glow: rgba(245, 158, 11, 0.08);
  --border: rgba(240, 237, 230, 0.08);
}

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: var(--bg); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 460px;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Document Card */
.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(245, 158, 11, 0.06);
}

.doc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245,158,11,0.3) 0%, transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.doc-header {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.doc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.doc-dot.amber { background: var(--accent); }

.doc-body { display: flex; flex-direction: column; gap: 10px; }

.doc-line {
  height: 10px;
  border-radius: 4px;
  background: var(--surface-2);
}

.doc-line.long { width: 85%; }
.doc-line.medium { width: 60%; }
.doc-line.short { width: 40%; }

.doc-divider { height: 1px; background: var(--border); margin: 4px 0; }

.doc-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 4px;
}

.doc-ai-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.ai-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Follow-up Stack */
.follow-up-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.follow-up-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}

.follow-up-card.active {
  border-color: rgba(245, 158, 11, 0.4);
  background: var(--accent-dim);
}

.fu-day {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  min-width: 40px;
}

.fu-text {
  font-size: 13px;
  color: var(--fg-muted);
  flex: 1;
}

.fu-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.fu-status.sent { background: rgba(52, 211, 153, 0.15); color: #34D399; }
.fu-status.pending { background: rgba(148, 163, 184, 0.15); color: #94A3B8; }
.fu-status.urgent { background: var(--accent-dim); color: var(--accent); }

/* Manifesto */
.manifesto {
  padding: 120px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.manifesto-label, .how-label, .outcomes-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.manifesto-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.manifesto-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-muted);
}

.manifesto-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
}

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

/* How */
.how { padding: 120px 48px; }

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.how-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 72px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.step {
  padding: 32px 28px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.step:hover { border-color: rgba(245, 158, 11, 0.3); }

.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 20px;
}

.step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
}

/* Outcomes */
.outcomes {
  padding: 120px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.outcomes-inner { max-width: 1200px; margin: 0 auto; }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.outcome {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.outcome-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.outcome h3 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.outcome p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
}

/* Closing */
.closing {
  padding: 160px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }

.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.closing-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Proposal Generator */
.generator {
  padding: 120px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.generator-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.generator-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.generator-form h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.generator-form p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.form-group input,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--fg);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #0E0E14;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary:hover { background: #fbbf24; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Proposal Preview */
.generator-preview {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.preview-header {
  background: var(--surface);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-header-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.preview-header-dot.muted { background: var(--border); }

.preview-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.preview-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  text-align: center;
  color: var(--fg-muted);
  gap: 12px;
}

.preview-placeholder-icon {
  font-size: 48px;
  opacity: 0.3;
}

.preview-placeholder p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 260px;
}

/* Generated doc markdown styles */
.proposal-doc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg);
}

.proposal-doc h1 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.proposal-doc h2 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 28px;
  margin-bottom: 12px;
}

.proposal-doc p { margin-bottom: 14px; color: var(--fg-muted); }

.proposal-doc ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.proposal-doc ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--fg-muted);
}

.proposal-doc ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

.proposal-doc strong { color: var(--fg); }

/* Status states */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 12px;
}

.status-badge.generating {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
}

.status-badge.ready {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
}

.status-badge.error {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

/* Footer */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}

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

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

/* Mobile */
@media (max-width: 900px) {
  .hero { padding: 80px 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 40px; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .manifesto, .how, .outcomes, .closing { padding: 80px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .hero-visual { display: none; }
}

@media (max-width: 600px) {
  .how-steps { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .manifesto-stats { flex-direction: column; gap: 20px; }
  .stat-divider { display: none; }
}