/*
 * q-shared.css
 * Shared design tokens and components for all QuantLens landing pages.
 * Load AFTER landing.css so these definitions take precedence where needed.
 */

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
  --q-primary:      #4f46e5;
  --q-primary-dark: #4338ca;
  --q-dark:         #1f2937;
  --q-muted:        #6b7280;
  --q-ok:           #10b981;
  --q-warn:         #f59e0b;
  --q-bad:          #ef4444;
  --q-border:       #e5e7eb;
}

[data-bs-theme='dark'] {
  --q-dark:   #f1f5f9;
  --q-muted:  #94a3b8;
  --q-border: #334155;
}

/* ── Bootstrap primary override (indigo) ────────────────────────── */
.btn-primary {
  --bs-btn-bg:                  #4f46e5;
  --bs-btn-border-color:        #4f46e5;
  --bs-btn-hover-bg:            #4338ca;
  --bs-btn-hover-border-color:  #4338ca;
  --bs-btn-active-bg:           #3730a3;
  --bs-btn-active-border-color: #3730a3;
  --bs-btn-font-weight:         500;
  border-radius: 8px;
}

/* ── Section typography ─────────────────────────────────────────── */
/*
 * Note: landing.css defines .section-title for old-style sections
 * (container div with nested h2). Here we override for modern usage
 * where .section-title is applied directly to a heading element.
 */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--q-primary);
  margin-bottom: 0.4rem;
}

/* Applied directly to <h1>/<h2> — overrides landing.css block-level .section-title */
h1.section-title,
h2.section-title,
h3.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-bottom: 0;     /* reset landing.css padding */
  position: static;      /* reset landing.css position */
}
h1.section-title::before,
h2.section-title::before,
h1.section-title::after,
h2.section-title::after {
  display: none;         /* remove landing.css decorators */
}

[data-bs-theme='dark'] h1.section-title,
[data-bs-theme='dark'] h2.section-title,
[data-bs-theme='dark'] h3.section-title {
  color: #f1f5f9;
}

[data-bs-theme='dark'] .section-eyebrow {
  color: #818cf8;
}

@media (max-width: 768px) {
  h1.section-title,
  h2.section-title,
  h3.section-title {
    font-size: 1.7rem;
  }
}

/* ── Shared button variants ─────────────────────────────────────── */

/* Hero primary — gradient pill */
.btn-primary-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.75rem;
  border: none;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary-hero:hover,
.btn-primary-hero:focus {
  background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
  box-shadow: 0 6px 24px rgba(79, 70, 229, 0.5);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Hero outline — pill */
.btn-outline-hero {
  background: transparent;
  color: var(--q-primary);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.75rem;
  border: 2px solid var(--q-primary);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-hero:hover,
.btn-outline-hero:focus {
  background: var(--q-primary);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Soft — neutral bordered */
.btn-soft {
  border: 1px solid var(--q-border);
  background: #fff;
  border-radius: 8px;
  font-weight: 500;
}
[data-bs-theme='dark'] .btn-soft {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

/* CTA block buttons (on dark gradient bg) */
.cta-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6d28d9 100%);
  color: #fff;
  border-radius: 24px;
  padding: 4rem 2rem;
}
@media (max-width: 768px) {
  .cta-gradient {
    padding: 2.5rem 1.25rem;
  }
}

.btn-cta-white {
  background: #fff;
  color: #4f46e5;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 2rem;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-cta-white:hover {
  background: #f0f0ff;
  color: #3730a3;
  transform: translateY(-2px);
}

.btn-cta-ghost {
  background: transparent;
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 2rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s, background 0.2s;
}
.btn-cta-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
