/* Public qgenixai.com pages. Brand: navy #030621 (logo background),
   blue #2563EB and teal #0EA5A4 (same as the app's $primary / $secondary). */
:root {
  --navy: #030621;
  --navy-2: #0b1236;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff4ff;
  --teal: #0ea5a4;
  --teal-soft: #e6f7f7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --wrap: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 10px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.on-dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- header ---- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand img { display: block; height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: #cbd5e1; text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; }
  .nav-actions { margin: 12px 0 0; flex-direction: column; align-items: stretch; gap: 8px; }
  .nav-actions .btn { padding: .8em 1em; }
}

/* ---- sections ---- */
main { display: block; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #cbd5e1; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
/* Product names keep their own capitalisation inside uppercase labels. */
.eyebrow .brand-name { text-transform: none; letter-spacing: .02em; }
.lead { font-size: 1.18rem; color: var(--body); max-width: 46em; }
.section-dark .lead { color: #cbd5e1; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- hero ---- */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(37,99,235,.35), transparent 60%),
              radial-gradient(900px 420px at -10% 110%, rgba(14,165,164,.25), transparent 60%),
              var(--navy);
  color: #cbd5e1; padding: 88px 0 96px;
}
.hero h1 { color: #fff; max-width: 15em; }
.hero .lead { color: #cbd5e1; font-size: 1.22rem; }
.hero-note { margin-top: 18px; font-size: .92rem; color: #94a3b8; }
.page-hero { background: var(--navy); color: #cbd5e1; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); }
.page-hero .lead { color: #cbd5e1; }

/* ---- grids & cards ---- */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card.teal .icon { background: var(--teal-soft); color: var(--teal); }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--blue); color: inherit; transform: translateY(-2px); }
.card-meta { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--teal-soft); color: #0b7a79; margin-left: 6px; vertical-align: middle; }
.more { font-weight: 600; text-decoration: none; }

/* ---- stat / quote ---- */
.stat-block {
  display: grid; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow);
}
@media (min-width: 820px) { .stat-block { grid-template-columns: auto 1fr; padding: 40px 48px; } }
.stat-figure { font-size: clamp(3.2rem, 7vw, 4.8rem); font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -0.04em; }
.stat-source { font-size: .88rem; color: var(--muted); margin: 0; }
.metrics { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(5, 1fr); } }
.metric { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.metric strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.metric span { font-size: .9rem; color: var(--muted); }
.section-dark .metric { background: var(--navy-2); border-color: rgba(255,255,255,.08); }
.section-dark .metric strong { color: #fff; }
.section-dark .metric span { color: #94a3b8; }
.fineprint { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---- steps ---- */
.steps { counter-reset: step; display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 14px;
}
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; font-size: .97rem; }

/* ---- feature rows ---- */
.feature-row { display: grid; gap: 28px; align-items: start; padding: 36px 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; }
@media (min-width: 900px) { .feature-row { grid-template-columns: 5fr 7fr; gap: 56px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230ea5a4'%3E%3Cpath d='M8.1 13.6 4.6 10l-1.2 1.2 4.7 4.7 9-9-1.2-1.2z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---- prose (articles, policies) ---- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal); color: var(--ink); font-size: 1.08rem; }
.article-meta { color: #94a3b8; font-size: .95rem; margin-top: 10px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.toc a { color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: .92rem; }
.toc a:hover { border-color: #fff; }
.policy + .policy { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }

/* ---- FAQ ---- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, #1e40af 60%, var(--navy) 100%); color: #dbe6ff; border-radius: 20px; padding: 44px 32px; }
.cta-band h2 { color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--blue-dark); }
.cta-band .btn-primary:hover { background: #e8eefc; color: var(--blue-dark); }

/* ---- form ---- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .form-card { padding: 36px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink);
  padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; font-weight: 500; }
.form-status.ok { color: #047857; }
.form-status.err { color: #b91c1c; }
.form-done { text-align: center; padding: 24px 0; }
.form-done h2 { margin-bottom: .3em; }

/* ---- product demo video ---- */
.demo-section { background: var(--bg-soft); }
.demo-video {
  position: relative; margin: 0 auto; max-width: 1040px;
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 60px rgba(15, 23, 42, .14);
  aspect-ratio: 16 / 10;
}
.demo-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-toggle {
  position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(3, 6, 33, .72); color: #fff; backdrop-filter: blur(4px);
}
.demo-toggle svg { width: 20px; height: 20px; }
.demo-toggle .i-pause { display: none; }
.demo-video.playing .demo-toggle .i-pause { display: block; }
.demo-video.playing .demo-toggle .i-play { display: none; }
.demo-note { margin-top: 16px; }
@media (max-width: 599px) {
  .demo-video { border-radius: 10px; }
  .demo-toggle { width: 40px; height: 40px; right: 10px; bottom: 10px; }
}

/* ---- sign in ---- */
/* The app's login page fills the space under the site header; site.js sets
   the iframe height to the larger of that space and the page's own height. */
.signin-main { background: #0a1428; }
.signin-frame { display: block; width: 100%; height: calc(100vh - 68px); min-height: 560px; border: 0; background: #0a1428; }
.signin-note { margin: 0; padding: 10px 16px; background: #fff7ed; color: #9a3412; font-weight: 500; text-align: center; }

/* ---- footer ---- */
.site-footer { background: var(--navy); color: #94a3b8; padding: 56px 0 0; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand img { height: 40px; width: auto; display: block; margin-bottom: 14px; }
.site-footer h2 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer nav a { display: block; color: #cbd5e1; text-decoration: none; padding: 4px 0; }
.site-footer nav a:hover, .footer-brand a:hover { color: #fff; }
.footer-brand a { color: #cbd5e1; }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; padding-bottom: 28px; }
.footer-base p { margin: 0; font-size: .88rem; }
