/* Quantum Amplitude AI - public site */
:root {
  --ink: #0F1B2D;
  --ink-2: #33415A;
  --muted: #64708A;
  --line: #E3E7EF;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --teal: #0E9F95;
  --teal-d: #0A7C74;
  --violet: #6B4FD8;
  --dark: #0B1424;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 27, 45, .07);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8ECF4; --ink-2: #C3CBDA; --muted: #95A0B6; --line: #253247;
    --bg: #0D1525; --bg-alt: #111C30; --dark: #070D19;
    --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img, svg { max-width: 100%; }
a { color: var(--teal-d); }
@media (prefers-color-scheme: dark) { a { color: #3CC9BE; } }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { display: flex; align-items: baseline; gap: 6px; font-size: 1.1rem; }
.brand em { font-style: normal; font-weight: 700; background: linear-gradient(90deg, var(--teal), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--teal-d); }
.nav-links a:not(.btn):hover { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-links .btn { text-align: center; margin-top: 8px; }
}

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; background: linear-gradient(90deg, var(--teal), var(--violet)); color: #fff !important; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(107, 79, 216, .25); }
.btn-sm { padding: 8px 16px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); box-shadow: none; }
.btn-light { background: #fff; color: var(--dark) !important; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Hero */
.hero { padding: 80px 0 64px; background:
  radial-gradient(800px 400px at 85% 10%, rgba(107, 79, 216, .12), transparent 60%),
  radial-gradient(700px 400px at 10% 90%, rgba(14, 159, 149, .12), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--teal-d); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 360px; } .hero { padding: 48px 0; } }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { margin-bottom: 32px; }
.page-head { padding: 64px 0 40px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { color: var(--ink-2); flex: 1; }
.card a { font-weight: 600; text-decoration: none; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--teal), var(--violet)); margin-bottom: 16px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 56px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal-d); display: grid; place-items: center; font-weight: 700; }
.steps strong { display: block; }
.steps span { color: var(--ink-2); }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel h3:not(:first-child) { margin-top: 22px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .9rem; }
.cta-band { background: linear-gradient(120deg, var(--dark), #1B2347); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner p { color: #C7CEE0; margin: 0; }
.cta-inner h2 { margin-bottom: 8px; }

/* Prose / services */
.prose h2 { margin-top: 1.4em; font-size: 1.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.narrow { max-width: 780px; }
.service { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.service-head .num { font-size: 3rem; font-weight: 800; background: linear-gradient(90deg, var(--teal), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1; margin-bottom: 12px; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 12px; } }
.checks { list-style: none; padding: 0; columns: 2; column-gap: 28px; }
.checks li { position: relative; padding-left: 26px; margin-bottom: 10px; break-inside: avoid; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
@media (max-width: 560px) { .checks { columns: 1; } }
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--teal); padding-left: 12px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 500; }
.people { list-style: none; padding: 0; margin: 0; }
.people li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.people small { display: block; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--teal), var(--violet)); }

/* Form */
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--bg); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 159, 149, .15); }
.form .invalid { border-color: #D64545; }
.form .err { display: block; color: #D64545; font-weight: 500; font-size: .85rem; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; gap: 0; } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--teal-d); }
.form-status.bad { color: #D64545; }

/* Footer */
.site-footer { background: var(--dark); color: #C7CEE0; padding: 56px 0 0; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: #8FE3DC; }
.site-footer .muted { color: #8C96AD; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1.2fr .8fr; gap: 32px; }
.brand-footer { color: #fff; margin-bottom: 10px; }
.footer-links a { display: block; text-decoration: none; margin-bottom: 6px; }
.legal { border-top: 1px solid #1E2A40; margin-top: 36px; padding: 18px 20px; color: #8C96AD; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Insights / industries */
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-row a { font-weight: 600; text-decoration: none; }
.card-link { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.card-link:hover { transform: translateY(-2px); border-color: var(--teal); }
.tag { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); background: rgba(107, 79, 216, .1); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.chips a:hover { border-color: var(--teal); color: var(--teal-d); }
.insights { display: grid; gap: 24px; margin-bottom: 24px; }
.insight { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--bg); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.insight h2 { font-size: 1.45rem; }
.insight > p { color: var(--ink-2); max-width: 900px; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.insight-grid > div { background: var(--bg-alt); border-radius: 10px; padding: 18px 20px; }
.insight-grid h3 { font-size: .95rem; color: var(--teal-d); margin-bottom: 6px; }
.insight-grid p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .insight-grid { grid-template-columns: 1fr; } .insight { padding: 22px; } }
.checks.one { columns: 1; }

/* About - vision/mission + quote */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.vm-card:last-child { border-top-color: var(--violet); }
.vm-card h2 { font-size: 1.4rem; }
.vm-card p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .vm { grid-template-columns: 1fr; } }
.quote { border-left: 4px solid var(--teal); }
.quote p:first-child { font-size: 1.2rem; line-height: 1.5; font-style: italic; color: var(--ink); }
