:root {
  --bg: #0B0D14;
  --bg-card: #11141C;
  --bg-card-hover: #161A24;
  --fg: #E8ECF2;
  --fg-dim: #7A8496;
  --fg-faint: #4A5568;
  --accent: #F5A623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --success: #34D399;
  --border: rgba(255,255,255,0.07);
  --radius: 14px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(11,13,20,0.92);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: 8px;
  padding: 7px 16px;
  transition: all 0.15s;
}
.nav-cta:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* ── HERO ── */
.hero { padding: 80px 24px 64px; }
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 22px;
  transition: all 0.15s;
}
.btn-ghost {
  color: var(--fg-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--fg-dim); color: var(--fg); }
.btn-amber {
  background: var(--accent);
  color: #0B0D14;
  font-weight: 600;
}
.btn-amber:hover { background: #FBB84A; }

/* ── DRAFT CARD (hero visual) ── */
.hero-visual { display: flex; justify-content: center; }
.draft-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  width: 100%;
  max-width: 380px;
  font-size: 14px;
}
.draft-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.draft-label { color: var(--fg-dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.draft-status {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 20px;
  padding: 3px 10px;
}
.draft-to {
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.draft-body { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.draft-line { height: 13px; background: var(--fg); border-radius: 4px; }
.draft-line-dim { background: var(--fg-dim); opacity: 0.35; }
.draft-sources {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--fg-dim);
  background: rgba(245,166,35,0.07);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 6px;
  padding: 6px 10px;
}

/* ── HERO STATS ── */
.hero-stats {
  max-width: 1100px;
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.stat { text-align: center; }
.stat-value { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--fg); }
.stat-label { display: block; font-size: 13px; color: var(--fg-dim); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── SOCIALPROOF ── */
.socialproof { padding: 0 24px 72px; }
.socialproof-inner { max-width: 1100px; margin: 0 auto; }
.testimonial-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 16px; }
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial-accent {
  border-color: rgba(245,166,35,0.2);
  background: rgba(245,166,35,0.04);
}
.testimonial-quote {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg);
  margin-bottom: 20px;
}
.testimonial-meta { display: flex; align-items: center; gap: 12px; }
.testimonial-attr {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fg-dim);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-info { flex: 1; }
.testimonial-name { display: block; font-size: 13px; font-weight: 600; }
.testimonial-role { display: block; font-size: 12px; color: var(--fg-dim); }
.testimonial-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ── SECTION SHARED ── */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 48px;
}

/* ── FEATURES ── */
.features { padding: 80px 24px; border-top: 1px solid var(--border); }
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-header { margin-bottom: 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature {
  background: var(--bg-card);
  padding: 32px 28px;
  transition: background 0.15s;
}
.feature:hover { background: var(--bg-card-hover); }
.feature-icon { color: var(--accent); margin-bottom: 16px; }
.feature-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--fg-dim); line-height: 1.6; }

/* ── DRAFT DEMO ── */
.draft-demo { padding: 80px 24px; border-top: 1px solid var(--border); }
.draft-demo-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.draft-demo-desc { font-size: 16px; color: var(--fg-dim); line-height: 1.65; margin-bottom: 36px; }
.draft-steps { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.draft-step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0B0D14;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.draft-step strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.draft-step span { font-size: 14px; color: var(--fg-dim); }

/* ── DEMO CARD ── */
.demo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.demo-header { margin-bottom: 14px; }
.demo-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  background: var(--accent-dim);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 6px;
  padding: 5px 12px;
}
.demo-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.demo-label { font-size: 12px; color: var(--fg-dim); }
.demo-value { font-size: 14px; color: var(--fg); font-weight: 500; flex: 1; }
.demo-contact-tag {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 20px;
  padding: 2px 8px;
}
.demo-body p { font-size: 14px; line-height: 1.7; color: var(--fg); margin-bottom: 8px; }
.demo-pii { font-size: 12px; color: var(--success); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.demo-footer { margin-top: 12px; }
.demo-tone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--success);
}

/* ── INTEGRATIONS ── */
.integrations { padding: 80px 24px; border-top: 1px solid var(--border); }
.integrations-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.integrations-header { margin-bottom: 0; }
.integrations-header .section-label,
.integrations-header .section-heading { text-align: center; }
.integration-grid { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.integration-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.integration-card-more { color: var(--fg-dim); border-style: dashed; }

/* ── CLOSING ── */
.closing { padding: 100px 24px; border-top: 1px solid var(--border); }
.closing-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.closing-desc { font-size: 17px; color: var(--fg-dim); line-height: 1.7; }

/* ── FOOTER ── */
.footer { padding: 32px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.footer-links a { font-size: 13px; color: var(--fg-dim); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--fg); }
.footer-legal { font-size: 13px; color: var(--fg-faint); }

/* ── INTERACTIVE DEMO (hero) ── */

/* Hero layout now uses left prompt + right panel */
.hero-inner {
  align-items: flex-start;
}

/* Prompt area */
.demo-prompt-wrap { margin-top: 28px; }

.demo-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.demo-chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.demo-chip:hover, .demo-chip.active {
  color: var(--accent);
  border-color: rgba(245,166,35,0.4);
  background: var(--accent-dim);
}

.demo-input-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.demo-input-area:focus-within { border-color: rgba(245,166,35,0.4); }

.demo-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px 10px;
  resize: none;
}
.demo-textarea::placeholder { color: var(--fg-faint); }

.demo-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--border);
}
.demo-char-count { font-size: 11px; color: var(--fg-faint); }

/* Right panel: stacked sources + draft */
.demo-right-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Sources panel */
.demo-sources-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.demo-sources-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.demo-sources-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 20px;
  padding: 2px 8px;
}
.demo-source-list { display: flex; flex-direction: column; gap: 7px; }

/* Source item */
.demo-source-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s;
  cursor: default;
}
.demo-source-item.cited {
  background: rgba(245,166,35,0.06);
  border-color: rgba(245,166,35,0.2);
}
.demo-source-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}
.demo-source-icon.drive   { background: #1a73e826; }
.demo-source-icon.notion  { background: #ffffff14; }
.demo-source-icon.hubspot { background: #ff7a5926; }
.demo-source-icon.kb      { background: #34d39926; }
.demo-source-label {
  font-size: 12px;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.demo-source-type-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.demo-source-type-tag.drive   { color: #4285f4; background: #4285f41a; }
.demo-source-type-tag.notion  { color: #b0b0b0; background: #ffffff12; }
.demo-source-type-tag.hubspot { color: #ff7a59; background: #ff7a591a; }
.demo-source-type-tag.kb      { color: var(--success); background: rgba(52,211,153,0.1); }

/* Skeleton loading */
.demo-source-skeleton {
  height: 36px;
  border-radius: 8px;
  background: var(--border);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Draft area */
.demo-draft-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.demo-draft-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--fg-faint);
  font-size: 13px;
}

/* Loading dots */
.demo-draft-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.demo-loading-dots {
  display: flex;
  gap: 6px;
}
.demo-loading-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.2s ease-in-out infinite;
}
.demo-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.demo-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
.demo-loading-label { font-size: 13px; color: var(--fg-dim); }

/* Draft result */
.demo-draft-result { display: flex; flex-direction: column; gap: 12px; height: 100%; }

.demo-draft-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.demo-subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-dim);
  flex: 1;
}
.demo-subject strong { color: var(--fg); font-weight: 600; }

.demo-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.demo-copy-btn:hover { color: var(--fg); border-color: var(--fg-dim); }
.demo-copy-btn.copied { color: var(--success); border-color: var(--success); }

.demo-body-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--fg);
  overflow-y: auto;
  max-height: 300px;
  padding-right: 4px;
}
.demo-body-text::-webkit-scrollbar { width: 4px; }
.demo-body-text::-webkit-scrollbar-track { background: transparent; }
.demo-body-text::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── DRAFT PARAGRAPHS ── */
.draft-para {
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 10px;
}
.draft-para:last-of-type { margin-bottom: 0; }

/* ── CITATION CHIP (numbered inline badge) ── */
.cite-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.12s, transform 0.1s, box-shadow 0.12s;
  vertical-align: middle;
  margin: 0 2px;
  white-space: nowrap;
  line-height: 1;
  position: relative;
}
.cite-chip:hover, .cite-chip:focus {
  opacity: 0.85;
  transform: scale(1.12);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
  outline: none;
}
.cite-chip--drive   { color: #4285f4; background: #4285f41a; border: 1px solid #4285f430; }
.cite-chip--notion  { color: #b0b0b0; background: #ffffff12; border: 1px solid #ffffff18; }
.cite-chip--hubspot { color: #ff7a59; background: #ff7a591a; border: 1px solid #ff7a5930; }
.cite-chip--kb      { color: var(--success); background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2); }

/* Unverified pill — distinct muted style so it's clearly different */
.cite-chip--unverified {
  color: var(--fg-faint);
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  cursor: default;
  font-style: italic;
}
.cite-chip--unverified:hover { opacity: 1; transform: none; box-shadow: none; }

/* ── CITATION LEGEND ── */
.cite-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-faint);
  line-height: 1.4;
}

/* ── SOURCE NUM BADGE in sidebar ── */
.source-num-badge {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  order: -1;
}

/* Source item pulse highlight when side panel opens */
@keyframes sourcePulse {
  0%   { background: rgba(245,166,35,0.15); border-color: rgba(245,166,35,0.4); }
  60%  { background: rgba(245,166,35,0.08); border-color: rgba(245,166,35,0.25); }
  100% { background: rgba(245,166,35,0.06); border-color: rgba(245,166,35,0.2); }
}
.demo-source-item.pulse {
  animation: sourcePulse 1.8s ease-out forwards;
}

/* ── HOVER POPOVER ── */
.cite-popover {
  position: absolute;
  z-index: 9999;
  width: 272px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: popoverIn 0.15s ease-out;
  pointer-events: auto;
}
@keyframes popoverIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cite-popover-header {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cite-popover-num {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cite-popover-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}
.cite-popover-type.drive   { color: #4285f4; background: #4285f41a; }
.cite-popover-type.notion  { color: #b0b0b0; background: #ffffff12; }
.cite-popover-type.hubspot { color: #ff7a59; background: #ff7a591a; }
.cite-popover-type.kb      { color: var(--success); background: rgba(52,211,153,0.1); }
.cite-popover-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}
.cite-popover-snippet {
  font-size: 11.5px;
  color: var(--fg-dim);
  line-height: 1.6;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  max-height: 80px;
  overflow: hidden;
}
.cite-popover-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.12s;
}
.cite-popover-link:hover { opacity: 0.75; }

/* Legacy cite-badge kept for backward compat (extension may still produce them) */
.cite-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  vertical-align: middle;
  margin: 0 1px;
  white-space: nowrap;
}
.cite-badge:hover { opacity: 0.8; transform: scale(1.04); }
.cite-badge.drive   { color: #4285f4; background: #4285f41a; }
.cite-badge.notion  { color: #b0b0b0; background: #ffffff12; }
.cite-badge.hubspot { color: #ff7a59; background: #ff7a591a; }
.cite-badge.kb      { color: var(--success); background: rgba(52,211,153,0.1); }

/* Citation side panel */
.citation-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}
.citation-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 92vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  animation: slideIn 0.2s ease-out;
}
@keyframes slideIn {
  from { transform: translateX(24px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.citation-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.citation-source-type-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.citation-source-type-badge.drive   { color: #4285f4; background: #4285f41a; }
.citation-source-type-badge.notion  { color: #b0b0b0; background: #ffffff12; }
.citation-source-type-badge.hubspot { color: #ff7a59; background: #ff7a591a; }
.citation-source-type-badge.kb      { color: var(--success); background: rgba(52,211,153,0.1); }

.citation-panel-close {
  background: transparent;
  border: none;
  color: var(--fg-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.citation-panel-close:hover { color: var(--fg); background: var(--border); }
.citation-source-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
}
.citation-snippet {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.7;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  flex: 1;
}
.citation-view-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
.citation-view-link:hover { opacity: 0.8; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner, .draft-demo-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .footer-inner { flex-wrap: wrap; }
  .footer-links { margin-left: 0; }
  .nav-links { display: none; }
  .demo-chips { gap: 6px; }
  .demo-chip { font-size: 11px; padding: 5px 11px; }
  .demo-body-text { max-height: 220px; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 20px 40px; }
  .features, .draft-demo, .integrations, .closing { padding: 56px 20px; }
  .socialproof { padding: 0 20px 48px; }
  .citation-panel { width: 100vw; border-left: none; border-top: 1px solid var(--border); top: auto; border-radius: var(--radius) var(--radius) 0 0; }
}

/* ── WAITLIST SECTION ── */
.waitlist-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(245,166,35,0.04) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}
.waitlist-section-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.waitlist-section-desc {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
}
.waitlist-form {
  width: 100%;
}
.waitlist-input-row {
  display: flex;
  gap: 10px;
  width: 100%;
}
.waitlist-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--fg);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
  min-width: 0;
}
.waitlist-input::placeholder { color: var(--fg-faint); }
.waitlist-input:focus { border-color: rgba(245,166,35,0.5); }
.waitlist-btn { white-space: nowrap; flex-shrink: 0; border: none; cursor: pointer; font-family: var(--font-body); }
.waitlist-msg {
  margin-top: 12px;
  font-size: 13px;
  text-align: left;
  padding: 0 4px;
}
.waitlist-msg.success { color: var(--success); }
.waitlist-msg.error { color: #fc8181; }

/* ── WAITLIST STICKY BAR ── */
.waitlist-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(17,20,28,0.97);
  border-top: 1px solid rgba(245,166,35,0.2);
  backdrop-filter: blur(12px);
  padding: 14px 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.waitlist-bar.visible {
  transform: translateY(0);
}
.waitlist-bar.hidden { display: none; }
.waitlist-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.waitlist-bar-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
}
.waitlist-bar-form {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}
.waitlist-bar-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
}
.waitlist-bar-msg {
  font-size: 13px;
  flex: 1;
  margin: 0;
  padding: 0 4px;
}
.waitlist-bar-close {
  background: none;
  border: none;
  color: var(--fg-faint);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  flex-shrink: 0;
  margin-left: auto;
}
.waitlist-bar-close:hover { color: var(--fg-dim); }

/* ── WELCOME PAGE ── */
.welcome-hero {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}
.welcome-inner {
  max-width: 520px;
  text-align: center;
}
.welcome-icon { margin-bottom: 28px; display: flex; justify-content: center; }
.welcome-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.welcome-desc {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.65;
  margin-bottom: 16px;
}
.welcome-sub {
  font-size: 15px;
  color: var(--fg-faint);
  margin-bottom: 32px;
  line-height: 1.6;
}
.welcome-cta { border: none; cursor: pointer; font-family: var(--font-body); }

@media (max-width: 600px) {
  .waitlist-input-row { flex-direction: column; }
  .waitlist-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .waitlist-bar-form { min-width: unset; }
  .waitlist-bar-label { text-align: center; }
  .waitlist-bar-close { position: absolute; top: 10px; right: 14px; }
  .waitlist-bar { position: fixed; }
}