/* ============================================
   QuoteFlow AI — Theme CSS
   Dark terminal aesthetic with burnt orange
   ============================================ */

:root {
  --bg: #0F0F0F;
  --surface: #1A1A1A;
  --surface-2: #242424;
  --border: #2E2E2E;
  --fg: #F5F2EC;
  --fg-muted: #8A8680;
  --accent: #E8701A;
  --accent-dim: #B85A15;
  --accent-glow: rgba(232, 112, 26, 0.15);
  --green: #3DBB6A;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

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

/* ---- CTA Buttons ---- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232, 112, 26, 0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: #D05F12;
  box-shadow: 0 6px 28px rgba(232, 112, 26, 0.45);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Section shared ---- */
.section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 640px;
}
.section-sub.center { margin: 0 auto; text-align: center; }

/* ============================================
   TERMINAL HEADER
   ============================================ */
.terminal-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.terminal-bar-inner { max-width: 1100px; margin: 0 auto; }

.terminal-lines {
  margin-bottom: 14px;
  overflow: hidden;
}
.t-line {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  line-height: 1.8;
  opacity: 0;
  animation: t-appear 0.4s ease forwards;
}
.t-line:nth-child(1) { animation-delay: 0.1s; }
.t-line:nth-child(2) { animation-delay: 0.6s; }
.t-line:nth-child(3) { animation-delay: 1.1s; }
.t-line:nth-child(4) { animation-delay: 1.6s; }

@keyframes t-appear {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.orange-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  padding: 10px 18px;
  border-radius: 4px;
  width: fit-content;
}
.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  animation: blink 1.5s infinite;
  flex-shrink: 0;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}
.orange-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}
.bar-arrow { color: rgba(255,255,255,0.7); }

/* Hero */
.hero { padding: 80px 24px 72px; position: relative; overflow: hidden; }
.hero-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(12,12,15,0.85) 0%, rgba(12,12,15,0.60) 60%, rgba(12,12,15,0.30) 100%);
}
.hero .hero-layout { position: relative; z-index: 1; }
.hero-layout { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-content {}
.hero-headline {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.hero-img-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
}
.img-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ============================================
   PAIN
   ============================================ */
.pain { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pain-inner { max-width: 900px; margin: 0 auto; }
.pain-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}
.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--fg-muted);
}
.pain-item:nth-child(odd) { border-right: 1px solid var(--border); }
.pain-item:nth-last-child(-n+2) { border-bottom: none; }
.pain-x { color: var(--accent); font-family: var(--mono); font-size: 16px; flex-shrink: 0; width: 20px; }

.pain-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 18px 24px;
  border-radius: 6px;
}
.callout-bar { font-size: 24px; color: var(--accent); font-family: var(--mono); flex-shrink: 0; }
.pain-callout p { font-size: 16px; color: var(--fg); font-weight: 500; }

/* ============================================
   SYSTEM
   ============================================ */
.system {}
.system-inner { max-width: 1100px; margin: 0 auto; }
.system-header { margin-bottom: 48px; }
.system-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}
.role {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 30px;
  border-bottom: 1px solid var(--border);
}
.role:nth-child(odd) { border-right: 1px solid var(--border); }
.role:nth-last-child(-n+2) { border-bottom: none; }
.role-icon { font-family: var(--mono); font-size: 20px; color: var(--accent); flex-shrink: 0; width: 40px; text-align: center; padding-top: 2px; }
.role-body h3 { font-size: 16px; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.role-body p { font-size: 14px; color: var(--fg-muted); line-height: 1.5; }

.system-sub {
  font-size: 15px;
  color: var(--fg-muted);
  max-width: 640px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

/* ============================================
   OFFER
   ============================================ */
.offer { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.offer-inner { max-width: 1100px; margin: 0 auto; }
.offer-header { margin-bottom: 40px; }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}
.offer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--fg);
}
.oi-icon { color: var(--accent); font-size: 16px; flex-shrink: 0; }

/* Lead Tracker */
.lead-tracker {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.lt-header {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.lt-stages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 20px;
}
.lt-stage {
  font-family: var(--mono);
  font-size: 10px;
  padding: 7px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  text-align: center;
  white-space: nowrap;
}
.lt-won { border-color: var(--green); color: var(--green); }
.lt-lost { border-color: var(--accent); color: var(--accent); }
.lt-arrow { color: var(--fg-muted); padding: 0 6px; font-size: 12px; }

/* ============================================
   TRUST
   ============================================ */
.trust { background: var(--bg); }
.trust-inner { max-width: 860px; margin: 0 auto; }
.trust-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--fg);
}
.trust-list .check { color: var(--accent); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.trust-footer {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  text-align: center;
}

/* ============================================
   PROFIT / RESULTS
   ============================================ */
.profit { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.profit-inner { max-width: 860px; margin: 0 auto; }
.profit-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.profit-disclaimer {
  font-size: 13px;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  background: var(--surface-2);
  line-height: 1.6;
  font-style: italic;
}

/* ============================================
   PRICING
   ============================================ */
.pricing { padding: 80px 24px; }
.pricing-inner { max-width: 1100px; margin: 0 auto; }
.pricing-header { text-align: center; margin-bottom: 56px; }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
}
.price-card-featured { border-color: var(--accent); position: relative; }
.price-card-featured::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 12px 12px 0 0;
}
.pc-tier {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pc-price {
  font-size: 40px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}
.pc-per { font-size: 14px; color: var(--fg-muted); font-weight: 400; }
.pc-month { font-size: 18px; font-weight: 600; color: var(--fg-muted); display: block; margin-top: 4px; }
.pc-tag {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 28px;
  font-family: var(--mono);
}
.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pc-features li {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 18px;
  position: relative;
}
.pc-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.price-card-featured .pc-features li { color: var(--fg); }

/* ============================================
   DEMO
   ============================================ */
.demo { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.demo-inner { max-width: 860px; margin: 0 auto; }

.demo-exchange { display: grid; gap: 16px; margin-bottom: 28px; }
.demo-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.demo-msg { padding: 18px 22px; border-radius: 8px; font-size: 16px; line-height: 1.6; }
.customer-msg { background: var(--surface-2); border: 1px solid var(--border); color: var(--fg-muted); }
.ai-msg { background: var(--accent); color: #fff; }

.demo-captured {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.dc-label { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.dc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-tag { font-family: var(--mono); font-size: 12px; padding: 4px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; color: var(--fg-muted); }

.demo-outro { font-size: 17px; color: var(--fg-muted); text-align: center; }
.demo-outro strong { color: var(--fg); }

/* ============================================
   FAQ
   ============================================ */
.faq { }
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 48px; }

.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.faq-q::before { content: 'Q.'; font-family: var(--mono); color: var(--accent); flex-shrink: 0; }
.faq-a {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  padding-left: 36px;
}

/* ============================================
   CLOSING
   ============================================ */
.closing { background: var(--surface); border-top: 1px solid var(--border); text-align: center; }
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing h2 {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.3;
}
.closing p { font-size: 16px; color: var(--fg-muted); margin-bottom: 32px; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 48px 24px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-logo { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.footer-tagline { font-size: 14px; color: var(--fg-muted); margin-bottom: 20px; }
.footer-copy { font-size: 12px; color: var(--fg-muted); }
.footer-disclaimer {
  margin-top: 16px;
  font-size: 11px;
  color: #5A5A5A;
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-img-wrap { order: -1; }

  .pain-grid { grid-template-columns: 1fr; }
  .pain-item:nth-child(odd) { border-right: none; padding-right: 0; }
  .pain-item:nth-child(even) { padding-left: 0; }
  .pain-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .pain-item:last-child { border-bottom: none; }

  .system-roles { grid-template-columns: 1fr; }
  .role:nth-child(odd) { border-right: none; }
  .role:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .role:last-child { border-bottom: none; }

  .pricing-cards { grid-template-columns: 1fr; }

  .offer-grid { grid-template-columns: 1fr; }

  .faq-a { padding-left: 0; }
  .lt-stages { gap: 6px; }
  .lt-arrow { display: none; }
}