/* ═══════════════════════════════════════
   Rfps.ai — Dark Premium SaaS Theme
   Typography: Fraunces (display) + DM Sans (body)
   Palette: Near-black #0d0d0d, Amber #f59e0b, Off-white #e8e6e1
   ═══════════════════════════════════════ */

:root {
  --bg: #0d0d0d;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #202020;
  --fg: #e8e6e1;
  --fg-muted: #7a7a7a;
  --fg-dim: #4a4a4a;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --accent-glow: rgba(245, 158, 11, 0.3);
  --border: #252525;
  --border-bright: #333333;
  --success: #22c55e;
  --ai-blue: #60a5fa;
  --text-primary: #f0ede8;
  --text-secondary: #9a9a9a;
}

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

html { scroll-behavior: smooth; }

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

/* ── Navigation ── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
}

.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.brand-dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #0d0d0d;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #e09000; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--border-bright);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover { color: var(--fg); border-color: var(--fg-muted); }

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

.hero-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  top: -100px; left: -100px;
}

.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(96,165,250,0.05) 0%, transparent 70%);
  bottom: -100px; right: -100px;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.hero-inner {
  flex: 0 0 480px;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.label-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: 62px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-line-1 {
  display: block;
  color: var(--fg-muted);
  font-weight: 300;
}

.hero-line-2 {
  display: block;
  font-style: normal;
}

.hero-line-2 em {
  font-style: italic;
  color: var(--accent);
}

.hero-line-3 {
  display: block;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 400px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 12px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item i { color: var(--fg-muted); font-size: 11px; }

.trust-sep { color: var(--fg-dim); font-size: 12px; }

/* ── Hero Product Mockup ── */
.hero-product {
  flex: 1;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.product-frame {
  background: #111111;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(245,158,11,0.05),
    0 24px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(245,158,11,0.04);
}

.frame-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.frame-dots {
  display: flex;
  gap: 6px;
}

.frame-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-bright);
}

.frame-dots span:first-child { background: #ff5f57; }
.frame-dots span:nth-child(2) { background: #febc2e; }
.frame-dots span:nth-child(3) { background: #28c840; }

.frame-title {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}

.frame-status { }

.status-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-live {
  background: rgba(34,197,94,0.15);
  color: var(--success);
}

.frame-body {
  display: flex;
  height: 380px;
}

.frame-sidebar {
  flex: 0 0 180px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--fg-muted);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}

.sidebar-item:hover { background: rgba(255,255,255,0.03); color: var(--fg); }

.sidebar-active {
  background: var(--accent-dim);
  color: var(--fg);
  border-left-color: var(--accent);
}

.sidebar-icon { color: var(--fg-dim); font-size: 11px; }
.sidebar-active .sidebar-icon { color: var(--accent); }

.sidebar-count {
  margin-left: auto;
  font-size: 11px;
  background: var(--border);
  padding: 1px 6px;
  border-radius: 10px;
  color: var(--fg-muted);
}

.sidebar-count-done { background: rgba(34,197,94,0.15); color: var(--success); }
.sidebar-count-ai { background: rgba(96,165,250,0.15); color: var(--ai-blue); }
.sidebar-count-review { background: rgba(245,158,11,0.15); color: var(--accent); }
.sidebar-count-deadline { background: rgba(239,68,68,0.15); color: #ef4444; }

.frame-main {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.frame-question {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}

.question-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.question-text {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.question-meta { }

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

.tag-ai {
  background: rgba(96,165,250,0.12);
  color: var(--ai-blue);
}

.frame-response {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

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

.response-actions { display: flex; gap: 8px; }

.resp-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.resp-btn:hover { background: var(--accent-dim); color: var(--fg); border-color: var(--accent); }
.resp-btn i { font-size: 10px; }

.response-text {
  padding: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.response-sources {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 10.5px;
  color: var(--fg-dim);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.response-sources i { color: var(--fg-muted); font-size: 10px; }

.frame-progress {
  padding: 10px 0 0;
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  border-radius: 2px;
  transition: width 1s ease;
}

.progress-label {
  font-size: 11px;
  color: var(--fg-dim);
}

/* ── Proof Section ── */
.proof-section {
  padding: 0 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.proof-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.proof-stat { text-align: center; flex: 1; }

.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 52px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

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

/* ── Section Common ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

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

.section-title {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── How It Works ── */
.hiw-section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.hiw-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.hiw-step {
  flex: 1;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s;
}

.hiw-step:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(245,158,11,0.05);
}

.step-number {
  font-family: 'Fraunces', serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.step-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--accent);
}

.hiw-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.hiw-step p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hiw-connector {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding-top: 48px;
}

.connector-line {
  flex: 1;
  width: 1px;
  background: var(--border);
}

.connector-arrow {
  color: var(--fg-dim);
  font-size: 14px;
}

/* ── Features ── */
.features-section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 16px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Pricing ── */
.pricing-section {
  padding: 80px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.pricing-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(245,158,11,0.04) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 40px rgba(245,158,11,0.08);
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0d0d0d;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
}

.card-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.card-price {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.price-period {
  font-size: 18px;
  color: var(--fg-muted);
}

.card-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.card-features {
  list-style: none;
  margin-bottom: 28px;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.card-features li i {
  color: var(--success);
  font-size: 12px;
}

.card-cta {
  display: block;
  text-align: center;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.card-cta:hover { border-color: var(--fg-muted); }

.card-cta-featured {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0d0d;
}

.card-cta-featured:hover { background: #e09000; border-color: #e09000; }

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Manifesto ── */
.manifesto-section {
  padding: 80px 48px;
  max-width: 900px;
  margin: 0 auto;
}

.manifesto-inner { }

.manifesto-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.manifesto-quote {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 32px;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
}

.manifesto-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.manifesto-highlight {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 500;
  margin-top: 32px;
}

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

.closing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner { position: relative; z-index: 1; }

.closing-headline {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

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

.footer-inner {
  display: flex;
  gap: 80px;
  margin-bottom: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  flex: 0 0 280px;
}

.footer-brand .brand-mark,
.footer-brand .brand-name { display: inline; }

.footer-tagline {
  margin-top: 16px;
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 80px;
  flex: 1;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--fg-dim);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-dim);
}

.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--fg-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--fg-muted); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero { flex-direction: column; padding: 120px 32px 60px; gap: 48px; }
  .hero-inner { flex: unset; }
  .hero-headline { font-size: 48px; }
  .hero-product { width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .hiw-steps { flex-direction: column; gap: 16px; }
  .hiw-connector { display: none; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-brand { flex: unset; }
}

@media (max-width: 640px) {
  .top-nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 48px; }
  .hero-headline { font-size: 38px; }
  .hero-actions { flex-direction: column; }
  .section-title { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .proof-inner { flex-direction: column; gap: 24px; padding: 28px 24px; }
  .proof-divider { width: 100%; height: 1px; }
  .proof-stat { text-align: left; }
  .stat-value { font-size: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
