/* OnSpot QEStudio — marketing site theme (mirrors app brand tokens) */
:root {
  --background: #050811;
  --surface: #0a0f1c;
  --surface-2: #111827;
  --panel: rgba(12, 18, 34, 0.72);
  --panel-border: rgba(148, 163, 184, 0.14);
  --foreground: #e2e8f0;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #38bdf8;
  --teal: #2dd4bf;
  --emerald: #34d399;
  --violet: #a78bfa;
  --radius: 16px;
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id], div[id].cta { scroll-margin-top: 84px; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.container.narrow { width: min(820px, 92%); }
.center { text-align: center; }

/* Type */
h1, h2 { letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; }
h1 em, h2 em { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--accent); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin: 0.4rem 0 0.6rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}
.eyebrow.center { display: flex; justify-content: center; }
.sub { color: var(--muted); max-width: 640px; margin: 0 auto; }
.sub.center { text-align: center; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.92rem; border-radius: 12px; padding: 0.65rem 1.25rem;
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, #0ea5e9, #22d3ee); color: #04121f; box-shadow: 0 10px 30px rgba(56, 189, 248, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(56, 189, 248, .45); }
.btn-outline { border-color: rgba(148, 163, 184, .35); color: var(--foreground); background: rgba(255,255,255,.03); }
.btn-outline:hover { border-color: var(--accent); background: rgba(56,189,248,.08); transform: translateY(-2px); }
.btn-ghost { color: var(--muted); padding: 0.65rem 0.8rem; }
.btn-ghost:hover { color: var(--foreground); }

/* Announcement */
.announce { background: linear-gradient(90deg, rgba(14,165,233,.18), rgba(45,212,191,.12)); border-bottom: 1px solid var(--panel-border); font-size: 0.85rem; }
.announce p { width: min(1180px, 92%); margin: 0 auto; padding: 0.55rem 0; color: var(--muted); text-align: center; }
.announce-pill { background: var(--emerald); color: #04121f; font-weight: 800; font-size: 0.7rem; border-radius: 999px; padding: 0.1rem 0.55rem; margin-right: 0.5rem; text-transform: uppercase; letter-spacing: .06em; }
.announce a { color: var(--accent); font-weight: 700; text-decoration: none; margin-left: 0.4rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(5, 8, 17, .82); border-bottom: 1px solid var(--panel-border); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 600; }
.brand-name { font-size: 1.05rem; }
.brand-name strong { font-weight: 800; }
.nav-links { display: flex; gap: 1.4rem; margin-left: 1rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav-links a:hover { color: var(--foreground); }
.nav-cta { margin-left: auto; display: flex; gap: 0.4rem; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--panel-border); border-radius: 10px; padding: 0.55rem 0.6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--foreground); margin: 4px 0; border-radius: 2px; }
.mobile-menu { display: none; flex-direction: column; gap: 0.2rem; padding: 0.6rem 4% 1rem; border-top: 1px solid var(--panel-border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 0.6rem 0.2rem; border-bottom: 1px solid rgba(148,163,184,.08); }
.mobile-cta { display: flex; gap: 0.6rem; padding-top: 0.8rem; }

/* Hero */
.hero { position: relative; padding: 4.5rem 0 3.5rem; overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 560px; background: radial-gradient(600px 300px at 20% 20%, rgba(56,189,248,.16), transparent), radial-gradient(600px 300px at 80% 10%, rgba(45,212,191,.12), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.lede { color: var(--muted); font-size: 1.08rem; margin: 1.1rem 0 1.6rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-ticks { list-style: none; display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.4rem; color: var(--muted); font-size: 0.88rem; }
.hero-ticks li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-ticks svg { width: 16px; height: 16px; stroke: var(--emerald); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Product mockup */
.mock { position: relative; }
.mock-window { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; backdrop-filter: blur(14px); }
.mock-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--panel-border); background: rgba(0,0,0,.25); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.mock-bar span:first-child { background: #f87171; } .mock-bar span:nth-child(2) { background: #fbbf24; } .mock-bar span:nth-child(3) { background: #34d399; }
.mock-bar em { margin-left: 0.6rem; font-style: normal; font-size: 0.75rem; color: var(--faint); background: rgba(255,255,255,.05); padding: 0.15rem 0.7rem; border-radius: 999px; }
.mock-body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: 0.9rem; }
.mock-status { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--panel-border); border-radius: 999px; padding: 0.3rem 0.75rem; background: rgba(255,255,255,.03); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.chip-live { color: var(--foreground); border-color: rgba(52,211,153,.4); }
.chip-live i { background: var(--emerald); animation: pulse 2s infinite; }
.mock-pipeline { display: flex; align-items: stretch; gap: 0.4rem; }
.mock-step { flex: 1; background: rgba(255,255,255,.03); border: 1px solid var(--panel-border); border-radius: 12px; padding: 0.55rem 0.6rem; text-align: center; }
.mock-step b { display: block; font-size: 0.82rem; }
.mock-step small { color: var(--faint); font-size: 0.68rem; }
.mock-step.done { border-color: rgba(52,211,153,.35); }
.mock-step.active { border-color: rgba(56,189,248,.5); background: rgba(56,189,248,.07); }
.mock-arrow { align-self: center; color: var(--faint); font-size: 0.8rem; }
.mock-code { background: #020617; border: 1px solid rgba(148,163,184,.15); border-radius: 12px; padding: 0.9rem 1rem; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.76rem; line-height: 1.8; overflow-x: auto; }
.mock-code p { white-space: nowrap; color: #cbd5e1; }
.c-k { color: #c084fc; } .c-f { color: #38bdf8; } .c-s { color: #86efac; }
.mock-cov { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.mock-cov p { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.35rem; }
.mock-cov b { color: var(--foreground); }
.bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.bar.teal i { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.mock-float { position: absolute; font-size: 0.78rem; font-weight: 700; background: rgba(6,12,24,.92); border: 1px solid rgba(52,211,153,.4); color: #d1fae5; border-radius: 12px; padding: 0.55rem 0.9rem; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.mock-float.f1 { top: -16px; right: 6%; animation: float 5s ease-in-out infinite; }
.mock-float.f2 { bottom: -14px; left: 4%; border-color: rgba(56,189,248,.4); color: #e0f2fe; animation: float 6s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Strip */
.strip { border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); background: rgba(255,255,255,.015); padding: 1.6rem 0; }
.strip-label { text-align: center; color: var(--faint); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; }
.strip-logos { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; justify-content: center; color: var(--muted); font-weight: 700; font-size: 1rem; }
.strip-logos span { opacity: .75; }

/* Stats */
.stats { padding: 3rem 0 0.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 1.4rem; }
.stat b { font-size: 2rem; font-weight: 800; color: var(--foreground); }
.stat p { color: var(--muted); font-size: 0.88rem; margin-top: 0.3rem; }

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: rgba(255,255,255,.015); border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); }

/* Agents */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.agent-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; padding: 1.8rem; transition: transform .2s ease, border-color .2s ease; }
.agent-card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.4); }
.agent-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.agent-icon svg { width: 26px; height: 26px; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.agent-icon.sky { background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.3); } .agent-icon.sky svg { stroke: var(--accent); }
.agent-icon.teal { background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.3); } .agent-icon.teal svg { stroke: var(--teal); }
.agent-icon.violet { background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.3); } .agent-icon.violet svg { stroke: var(--violet); }
.agent-step { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.agent-card h3 { font-size: 1.5rem; margin: 0.3rem 0 0.6rem; }
.agent-card > p { color: var(--muted); font-size: 0.95rem; }
.agent-card ul { list-style: none; margin-top: 1rem; display: grid; gap: 0.45rem; }
.agent-card ul li { font-size: 0.88rem; color: var(--foreground); padding-left: 1.4rem; position: relative; }
.agent-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 800; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.bento-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; padding: 1.6rem; transition: transform .2s ease, border-color .2s ease; }
.bento-card:hover { transform: translateY(-3px); border-color: rgba(45,212,191,.35); }
.bento-card.wide { grid-column: span 2; }
.bento-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.bento-card p { color: var(--muted); font-size: 0.93rem; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.mini-tags span { font-size: 0.75rem; font-weight: 700; color: var(--accent); background: rgba(56,189,248,.09); border: 1px solid rgba(56,189,248,.25); padding: 0.25rem 0.7rem; border-radius: 999px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 2.5rem 0; }
.step { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; padding: 1.6rem; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: #04121f; background: linear-gradient(135deg, #38bdf8, #2dd4bf); margin-bottom: 0.9rem; }
.step h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* Split / integrations */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.int-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 1.6rem; }
.int { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; padding: 0.9rem 1rem; }
.int b { display: block; font-size: 0.95rem; }
.int small { color: var(--muted); }
.int-panel { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; padding: 1.8rem; }
.int-panel h3 { margin-bottom: 1.2rem; }
.cov-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.8rem; align-items: center; margin-bottom: 0.9rem; font-size: 0.85rem; color: var(--muted); }
.cov-row b { color: var(--foreground); }
.int-note { margin-top: 1.1rem; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--panel-border); padding-top: 1rem; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.quote { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; padding: 1.7rem; display: flex; flex-direction: column; gap: 1.2rem; }
.quote blockquote { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.55; }
.quote figcaption b { display: block; } .quote figcaption span { color: var(--muted); font-size: 0.85rem; }

/* Product tour (real screenshots) */
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.5rem; }
.shot { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.shot-wide { grid-column: span 2; }
.shot-frame { background: #020617; border-bottom: 1px solid var(--panel-border); }
.shot-frame img { width: 100%; height: auto; display: block; }
.shot figcaption { padding: 1.1rem 1.3rem 1.3rem; }
.shot figcaption b { display: block; font-size: 1rem; }
.shot figcaption span { color: var(--muted); font-size: 0.88rem; }
.shot-missing { display: none; }
.tour-note { margin-top: 1.2rem; text-align: center; color: var(--faint); font-size: 0.82rem; }
.tour-note code { background: rgba(255,255,255,.05); border: 1px solid var(--panel-border); border-radius: 6px; padding: 0.1rem 0.4rem; font-size: 0.78rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0.7rem; margin-top: 2rem; }
.faq-item { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; padding: 0 1.3rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); font-size: 0.93rem; padding-bottom: 1.2rem; }

/* CTA */
.cta { padding: 5rem 0; }
.cta-box { background: linear-gradient(150deg, rgba(14,165,233,.16), rgba(45,212,191,.08)), var(--surface); border: 1px solid rgba(56,189,248,.3); border-radius: 28px; padding: 3.5rem 2rem; text-align: center; }
.cta-box h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta-box > p { color: var(--muted); margin: 0.7rem 0 1.8rem; }
.cta-note { margin-top: 1rem; font-size: 0.82rem; color: var(--faint); }

/* Footer */
.footer { border-top: 1px solid var(--panel-border); padding: 3.5rem 0 1.5rem; background: rgba(0,0,0,.3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; max-width: 22rem; }
.footer nav h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.9rem; }
.footer nav a { display: block; color: var(--muted); text-decoration: none; font-size: 0.92rem; margin-bottom: 0.55rem; }
.footer nav a:hover { color: var(--foreground); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--panel-border); color: var(--faint); font-size: 0.85rem; }
.footer-bottom a { color: var(--muted); text-decoration: none; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .agents, .bento, .quotes, .tour-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .agents, .bento, .quotes, .tour-grid, .steps, .stats-grid { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: span 1; }
  .section { padding: 3.5rem 0; }
  .mock-float.f1 { right: 2%; } .mock-float.f2 { left: 2%; }
  .announce p { font-size: 0.78rem; }
}
