/* MQSolbot — shared styles */

:root {
  /* Backgrounds */
  --bg: #0A0612;
  --bg-card: #15102B;
  --bg-elevated: #1F1638;
  --bg-glow: #2A1F4D;

  /* Brand */
  --purple: #8B5CF6;
  --purple-bright: #A78BFA;
  --purple-deep: #6D28D9;
  --accent: #C4F542;
  --accent-dim: #9FCC22;

  /* Text */
  --text: #F4F0FF;
  --text-muted: #A39FB0;
  --text-dim: #6B6478;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(167, 139, 250, 0.25);

  /* Effects */
  --glow-purple: 0 0 80px rgba(139, 92, 246, 0.25);
  --glow-accent: 0 0 40px rgba(196, 245, 66, 0.35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Atmospheric background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(109, 40, 217, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(196, 245, 66, 0.04), transparent);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: overlay;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--text-muted); font-size: 1.0625rem; }

a { color: var(--purple-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

code, .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: var(--bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-weight: 500;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; position: relative; }

/* Ticker */
.ticker {
  background: linear-gradient(90deg, var(--bg-elevated), var(--bg-card), var(--bg-elevated));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.6rem 0;
  position: relative;
  z-index: 50;
}
.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: scroll 60s linear infinite;
  width: max-content;
}
.ticker-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.ticker-item::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}
.ticker-item strong { color: var(--text); font-weight: 600; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(10, 6, 18, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo img { width: 36px; height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.btn) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  position: relative;
}
.btn-primary {
  background: var(--accent);
  color: #0A0612;
  box-shadow: var(--glow-accent);
}
.btn-primary:hover {
  background: #D7FF52;
  transform: translateY(-1px);
  box-shadow: 0 0 60px rgba(196, 245, 66, 0.55);
  color: #0A0612;
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-secondary:hover {
  background: var(--bg-glow);
  color: var(--text);
  border-color: var(--purple-bright);
}
.btn-large {
  padding: 1.2rem 2.25rem;
  font-size: 1.1rem;
}
.btn-arrow {
  transition: transform 0.2s;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Hero */
.hero {
  padding: 5rem 0 6rem;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-mascot { order: -1; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 1.75rem;
  font-family: 'JetBrains Mono', monospace;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--purple-bright) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}
@media (max-width: 920px) {
  .hero-sub { margin-left: auto; margin-right: auto; }
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 920px) {
  .hero-cta { justify-content: center; }
}
.hero-meta {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
}
.hero-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-mascot::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
}
.hero-mascot img {
  width: 100%;
  max-width: 380px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Problem strip */
.strip {
  background: linear-gradient(90deg, transparent, var(--bg-card) 20%, var(--bg-card) 80%, transparent);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.strip p {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
}
.strip p strong {
  color: var(--accent);
  font-weight: 600;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
}
.step:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--glow-purple);
}
.step-num {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--purple);
  line-height: 1;
  opacity: 0.5;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { font-size: 0.97rem; }

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}
.feature {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
}
.feature:hover {
  border-color: var(--border-bright);
  background: var(--bg-elevated);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.feature h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.feature p { font-size: 0.97rem; }

/* Section header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
.section-header .eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.15rem; }

/* Briefing mockup */
.briefing-section { padding: 4rem 0 6rem; }
.briefing {
  max-width: 640px;
  margin: 3rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--glow-purple);
}
.briefing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.briefing-header .dots { display: flex; gap: 6px; }
.briefing-header .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-glow); }
.briefing-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
}
.briefing-body .label { color: var(--text-dim); }
.briefing-body .value { color: var(--purple-bright); }
.briefing-body .good { color: var(--accent); }
.briefing-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
}
.briefing-row:last-child { border-bottom: none; }
.briefing-title {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* CTA Band */
.cta-band {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border-top: 1px solid var(--border-bright);
  border-bottom: 1px solid var(--border-bright);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { margin-bottom: 2rem; font-size: 1.1rem; }
.cta-band .hero-meta { margin-top: 1.25rem; }

/* Pricing card */
.pricing-card {
  max-width: 560px;
  margin: 3rem auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--glow-purple);
}
.pricing-card .plan-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.pricing-card .price {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.pricing-card .price .per { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
.pricing-card .trial-line { color: var(--purple-bright); font-size: 1rem; margin-bottom: 2rem; }
.pricing-features {
  list-style: none;
  text-align: left;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  color: var(--text);
  font-size: 1rem;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
}
.pricing-card .fine-print {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

/* FAQ */
.faq { margin-top: 3rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-family: 'Bricolage Grotesque', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}
.faq-a { color: var(--text-muted); font-size: 1rem; }
.faq-a a { color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand img { width: 48px; height: 48px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: var(--text-dim); max-width: 360px; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 0.35rem 0; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.disclaimer {
  background: rgba(196, 245, 66, 0.04);
  border: 1px solid rgba(196, 245, 66, 0.15);
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.disclaimer strong { color: var(--text); }

/* Legal page styles */
.legal-page { padding: 4rem 0 6rem; }
.legal-page h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}
.legal-page .updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  display: block;
}
.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.legal-page h2 .num {
  color: var(--purple-bright);
  margin-right: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
}
.legal-page h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.legal-page p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1rem; }
.legal-page strong { color: var(--text); }
.legal-page ul, .legal-page ol {
  margin-bottom: 1rem;
  margin-left: 1.5rem;
  color: var(--text-muted);
}
.legal-page li { margin-bottom: 0.4rem; }
.legal-page .lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.legal-page .contact-block {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.97rem;
}
.legal-page .contact-block strong { display: block; margin-bottom: 0.3rem; }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
