/* ═══════════════════════════════════
   QueryOne — Plain-English Analytics
   Clean, professional, Main Street
   ═══════════════════════════════════ */

:root {
  --bg: #F7F8FA;
  --bg-card: #FFFFFF;
  --bg-panel: #F0F2F5;
  --border: #E4E7ED;
  --border-light: #D0D5E0;
  --fg: #1A1D2E;
  --fg-muted: #5C6178;
  --fg-dim: #8A8FA8;
  --teal: #0D7CFF;
  --teal-dark: #0960D4;
  --teal-dim: rgba(13,124,255,0.08);
  --teal-mid: rgba(13,124,255,0.15);
  --green: #16A34A;
  --orange: #EA580C;
}

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

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

a { text-decoration: none; color: inherit; }

/* ─── NAV ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.nav-logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ─── HERO ─── */
.hero {
  padding: 80px 48px 100px;
  background: var(--bg-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(13,124,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(13,124,255,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.hero-headline {
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-headline em {
  font-style: normal;
  color: var(--teal);
}

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

.hero-image-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26,29,46,0.10), 0 2px 8px rgba(26,29,46,0.06);
  border: 1px solid var(--border);
}

.hero-image-wrap img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

/* ─── SECTION COMMONS ─── */
section { padding: 80px 48px; }

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

.section-heading {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-body {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.section-center { text-align: center; }
.section-center .section-body { margin-left: auto; margin-right: auto; }

/* ─── CTA BUTTONS ─── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13,124,255,0.28);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.cta-btn-secondary:hover { border-color: var(--teal); background: var(--teal-dim); }

/* ─── PROBLEM SECTION ─── */
.problem { background: var(--bg); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}

.problem-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
  border-color: rgba(13,124,255,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,29,46,0.08);
}

.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-dim);
  border: 1px solid rgba(13,124,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

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

.problem-quote {
  margin-top: 64px;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.problem-quote-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.6;
  font-style: italic;
}

.problem-quote-attr {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 8px;
}

/* ─── PRODUCT SECTION ─── */
.product { background: var(--bg-card); }

.product-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin-top: 0;
}

.flow-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.flow-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--teal-dim);
  border: 1px solid rgba(13,124,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.flow-step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--fg-dim);
}

/* Product demo panel */
.product-demo {
  margin-top: 56px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

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

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

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

.demo-dot.red { background: #FF5F57; }
.demo-dot.yellow { background: #FEBC2E; }
.demo-dot.green { background: #28C840; }

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

.demo-body { padding: 32px; }

.demo-question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--teal-dim);
  border: 1px solid rgba(13,124,255,0.2);
  border-radius: 10px;
  margin-bottom: 24px;
}

.demo-question-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}

.demo-answer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.demo-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.chart-label {
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-weight: 600;
}

.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; }

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.bar {
  width: 100%;
  background: var(--teal);
  border-radius: 4px 4px 0 0;
  transition: opacity 0.2s;
}

.bar:hover { opacity: 0.8; }

.bar-label {
  font-size: 10px;
  color: var(--fg-dim);
  font-weight: 500;
}

.demo-explanation {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.exp-text {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.exp-text strong { color: var(--fg); }

/* ─── USE CASES ─── */
.use-cases { background: var(--bg); }

.personas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
}

.persona-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s, transform 0.2s;
}

.persona-card:hover { border-color: rgba(13,124,255,0.3); transform: translateY(-2px); }

.persona-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-dim);
  border: 1px solid rgba(13,124,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.persona-content { flex: 1; }

.persona-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.persona-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.persona-content p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.persona-example {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--fg);
  font-style: italic;
}

.persona-example::before { content: '"'; }
.persona-example::after { content: '"'; }

/* ─── PRICING ─── */
.pricing { background: var(--bg-card); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover { transform: translateY(-3px); }

.pricing-card.featured {
  border-color: var(--teal);
  border-width: 2px;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-dollars { font-size: 48px; font-weight: 800; color: var(--fg); letter-spacing: -0.03em; }
.price-period { font-size: 16px; color: var(--fg-dim); }

.pricing-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--teal-dim);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6L5 9L10 3' stroke='%230D7CFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.pricing-card .cta-btn { width: 100%; justify-content: center; }

/* ─── FINAL CTA ─── */
.final-cta {
  padding: 100px 48px;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(13,124,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

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

.final-cta h2 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.final-cta p {
  font-size: 18px;
  color: var(--fg-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ─── FOOTER ─── */
.footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  section { padding: 60px 24px; }
  .hero { padding: 60px 24px 80px; }
  .hero-headline { font-size: 36px; }
  .problem-grid { grid-template-columns: 1fr; }
  .personas-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .flow-step { padding: 20px; }
  .product-flow { grid-template-columns: 1fr; gap: 16px; }
  .flow-arrow { transform: rotate(90deg); padding: 8px 0; }
  .demo-answer { grid-template-columns: 1fr; }
  .footer { padding: 20px 24px; flex-direction: column; gap: 8px; }
}