/* Quanta on the Melius layout. Orange -> indigo is swapped in by rebrand.js; this file adds the brand + sections. */
:root {
  --qt-indigo: #140d9e; --qt-indigo-2: #1f17c4; --qt-blue: #4a86ff; --qt-sky: #dfe5ff;
  --qt-ink: #0d0c1d; --qt-ink-2: #45435c; --qt-mute: #8b89a3; --qt-line: #e6e5f0; --qt-soft: #f4f4fa; --qt-bg: #ffffff;
  --qt-ok: #16a34a; --qt-bad: #dc2626;
}

/* ------------------------------------------------------------------ logo: Q mark + name */
a[aria-label="Quanta home"] { gap: 9px; }
a[aria-label="Quanta home"] > svg { display: none !important; }
a[aria-label="Quanta home"]::before { content: ""; width: 24px; height: 24px; flex: none; border-radius: 6px; background: url(/qt/mark-tile.png) center / cover no-repeat; }
a[aria-label="Quanta home"]::after { content: "Quanta"; color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
nav[aria-label="Main"] li:has(> button[aria-controls^="nav-menu-"]) { display: none !important; }

/* announcement bar */
a.group\/banner { cursor: pointer; }
a.group\/banner .rin-icon-tag { display: none; }

/* ------------------------------------------------------------------ hero */
#hero::after { /* soft Q behind the headline */
  content: ""; position: absolute; left: 50%; top: 50%; width: min(560px, 76vw); aspect-ratio: 1; transform: translate(-50%, -54%);
  background: url(/qt/mark-color.png) center / contain no-repeat; opacity: .10; filter: blur(1px) saturate(1.4); pointer-events: none; z-index: 1;
}
button[aria-controls="mcp-setup-prompt"] > span[aria-hidden="true"], button[aria-controls="mcp-setup-prompt"] > svg { display: none !important; }
button[aria-controls="mcp-setup-prompt"]::before { content: "𝕏"; font-weight: 700; margin-right: 2px; }

/* orbit cards -> vault cards */
a[data-orbit-card] img, a[data-orbit-card] video { visibility: hidden !important; }
a[data-orbit-card] [data-orbit-label] svg { display: none; }
.qt-card {
  position: absolute !important; inset: 0; z-index: 2; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, #3d63ff 0%, rgba(61, 99, 255, 0) 55%), linear-gradient(160deg, #1a12b8 0%, #0e0880 100%);
  display: flex; flex-direction: column; justify-content: space-between; padding: .85em; box-sizing: border-box; text-align: left; line-height: 1.15;
}
.qt-card.alt { background: radial-gradient(120% 90% at 15% 100%, #4a86ff 0%, rgba(74, 134, 255, 0) 60%), linear-gradient(200deg, #0d0c1d 0%, #19157a 100%); }
.qt-card.light { background: linear-gradient(160deg, #fff 0%, #e9edff 100%); color: var(--qt-ink); }
.qt-card .r { display: flex; align-items: center; justify-content: space-between; gap: .4em; }
.qt-card .tag { font-size: .68em; border: 1px solid rgba(255, 255, 255, .28); border-radius: 99px; padding: .2em .55em; white-space: nowrap; }
.qt-card.light .tag { border-color: #cfd6ff; color: var(--qt-indigo); }
.qt-card .q { width: 1.6em; height: 1.6em; border-radius: .4em; background: url(/qt/mark-tile.png) center / cover; flex: none; }
.qt-card .big { font-size: 1.5em; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qt-card .sub { font-size: .72em; opacity: .72; margin-top: .2em; }
.qt-card .ok { font-size: .72em; display: flex; align-items: center; gap: .4em; white-space: nowrap; }
.qt-card .ok b { width: .55em; height: .55em; border-radius: 50%; background: #5df28f; box-shadow: 0 0 0 .2em rgba(93, 242, 143, .2); flex: none; }
.qt-card.light .ok b { background: var(--qt-ok); }
.qt-card .lat { position: absolute; right: -18%; bottom: -22%; width: 70%; aspect-ratio: 1; opacity: .16; background: url(/qt/mark-white.png) center / contain no-repeat; pointer-events: none; }
.qt-card.short .sub, .qt-card.short .lat { display: none; }

/* ------------------------------------------------------------------ Melius sections not used by Quanta */
#customers, #canvas, section[id^="canvas-showcase"], #solutions, #pricing { display: none !important; }

/* footer wordmark */
svg[viewBox="0 0 836 150"] { visibility: hidden; }
div:has(> svg[viewBox="0 0 836 150"])::after {
  content: "QUANTA"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: #1d1a52; font-size: 19vw;
}

/* ------------------------------------------------------------------ Quanta sections */
.qt-sec { position: relative; background: var(--qt-bg); color: var(--qt-ink); padding: clamp(64px, 9vw, 120px) 16px; }
.qt-sec.dark { background: #07061a; color: #fff; }
.qt-sec + .qt-sec:not(.dark) { border-top: 1px solid var(--qt-line); }
.qt-wrap { max-width: 1200px; margin: 0 auto; }
.qt-head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 6vw, 72px); }
.qt-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--qt-indigo); background: var(--qt-sky); border-radius: 99px; padding: 6px 12px 6px 6px; margin-bottom: 22px; }
.qt-eyebrow i { width: 18px; height: 18px; border-radius: 5px; background: url(/qt/mark-tile.png) center / cover; }
.dark .qt-eyebrow { background: rgba(74, 134, 255, .14); color: #b9c8ff; }
.qt-head h2 { margin: 0 0 18px; }
.qt-head p { color: var(--qt-ink-2); margin: 0; }
.dark .qt-head p { color: #a9a7c7; }

/* vault demo */
.qt-demo { display: grid; grid-template-columns: 1.35fr 1fr; border: 1px solid var(--qt-line); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -50px rgba(20, 13, 158, .45); }
.qt-vis { position: relative; padding: 26px; border-right: 1px solid var(--qt-line); background: linear-gradient(180deg, #fafaff, #f1f2ff); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.qt-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex: 1; }
.qt-box { border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.qt-box.old { background: #fff; border: 1px solid var(--qt-line); }
.qt-box.new { color: #fff; background: radial-gradient(120% 80% at 100% 0%, #3d63ff 0, rgba(61, 99, 255, 0) 60%), linear-gradient(160deg, #1a12b8, #0e0880); }
.qt-box .h { font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qt-box .h span { opacity: .7; }
.qt-pill { font-size: 12px; font-style: normal; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.qt-box > div:last-child { margin-top: auto; }
.qt-pill.bad { background: #fdecec; color: var(--qt-bad); }
.qt-pill.good { background: rgba(93, 242, 143, .16); color: #7ff5a6; }
.qt-box .amt { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: auto; }
.qt-box .usd { font-size: 14px; opacity: .65; font-variant-numeric: tabular-nums; }
.qt-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.qt-box li { display: flex; justify-content: space-between; gap: 8px; }
.qt-box li b { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.qt-box.old li b.bad { color: var(--qt-bad); }
.qt-bar { height: 6px; border-radius: 99px; background: var(--qt-line); overflow: hidden; }
.qt-bar i { display: block; height: 100%; border-radius: inherit; }
.qt-price { font-size: 13px; color: var(--qt-mute); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.qt-form { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.qt-field label { display: flex; justify-content: space-between; font-size: 13px; color: var(--qt-mute); margin-bottom: 8px; }
.qt-field label b { color: var(--qt-ink); font-weight: 500; }
.qt-in { width: 100%; box-sizing: border-box; border: 1px solid var(--qt-line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--qt-ink); outline: none; background: #fff; }
.qt-in:focus { border-color: var(--qt-indigo); box-shadow: 0 0 0 3px rgba(20, 13, 158, .1); }
.qt-schemes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.qt-schemes button { border: 1px solid var(--qt-line); background: #fff; color: var(--qt-ink-2); font: inherit; font-size: 12.5px; padding: 9px 4px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.qt-schemes button.on { background: var(--qt-indigo); border-color: var(--qt-indigo); color: #fff; }
.qt-rows { border-top: 1px solid var(--qt-line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.qt-rows div { display: flex; justify-content: space-between; gap: 10px; color: var(--qt-ink-2); }
.qt-rows div b { color: var(--qt-ink); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.qt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; border: 0; font: inherit; font-size: 15px; cursor: pointer; background: var(--qt-indigo); color: #fff; transition: transform .15s, background .2s; text-decoration: none; }
.qt-btn:hover { background: var(--qt-indigo-2); } .qt-btn:active { transform: scale(.98); }
.qt-btn.ghost { background: transparent; color: inherit; border: 1px solid rgba(255, 255, 255, .25); }
.qt-note { font-size: 12px; color: var(--qt-mute); line-height: 1.5; margin: 0; }

/* how it works */
.qt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qt-step { border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 28px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.qt-step .n { font-size: 13px; color: #8f8db3; font-variant-numeric: tabular-nums; }
.qt-step h3 { margin: auto 0 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; color: #fff; }
.qt-step p { margin: 0; color: #a9a7c7; font-size: 15px; line-height: 1.5; }
.qt-step .ic { width: 46px; height: 46px; border-radius: 13px; background: rgba(74, 134, 255, .15); color: #9db8ff; display: grid; place-items: center; }
.qt-step .ic svg { width: 22px; height: 22px; }
.qt-cta { display: flex; justify-content: center; gap: 10px; margin-top: 36px; flex-wrap: wrap; }

/* schemes table */
.qt-table { border: 1px solid var(--qt-line); border-radius: 22px; overflow: hidden; background: #fff; }
.qt-table table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.qt-table th { text-align: left; font-weight: 400; font-size: 13px; color: var(--qt-mute); padding: 14px 20px; border-bottom: 1px solid var(--qt-line); background: var(--qt-soft); white-space: nowrap; }
.qt-table td { padding: 16px 20px; border-bottom: 1px solid var(--qt-line); }
.qt-table tr:last-child td { border-bottom: 0; }
.qt-table tbody tr.pq { cursor: pointer; transition: background .15s; }
.qt-table tbody tr.pq:hover { background: var(--qt-soft); }
.qt-table .alg { display: flex; align-items: center; gap: 10px; font-weight: 500; white-space: nowrap; }
.qt-table .alg i { width: 28px; height: 28px; border-radius: 8px; background: url(/qt/mark-tile.png) center / cover; flex: none; }
.qt-table tr.legacy .alg i { background: #eee; }
.qt-table .alg small { display: block; font-weight: 400; font-size: 12px; color: var(--qt-mute); }
.qt-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.qt-badge b { width: 6px; height: 6px; border-radius: 50%; }
.qt-badge.good { background: #eaf8ef; color: #12803c; } .qt-badge.good b { background: var(--qt-ok); }
.qt-badge.bad { background: #fdecec; color: var(--qt-bad); } .qt-badge.bad b { background: var(--qt-bad); }
.qt-live { display: inline-flex; align-items: center; gap: 6px; }
.qt-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--qt-ok); animation: qt-pulse 1.6s infinite; }
@keyframes qt-pulse { 50% { opacity: .3; } }
.qt-more { display: flex; justify-content: center; margin-top: 28px; }

@media (max-width: 900px) {
  .qt-demo { grid-template-columns: 1fr; }
  .qt-vis { border-right: 0; border-bottom: 1px solid var(--qt-line); padding: 18px 16px; }
  .qt-form { padding: 18px 16px; }
  .qt-steps { grid-template-columns: 1fr; }
  .qt-step { min-height: 0; }
  .qt-table th:nth-child(3), .qt-table td:nth-child(3) { display: none; }
  .qt-table th, .qt-table td { padding: 12px; }
}
@media (max-width: 600px) {
  .qt-cmp { grid-template-columns: 1fr; }
  .qt-box { min-height: 0; }
  .qt-table th:nth-child(4), .qt-table td:nth-child(4) { display: none; }
}

.qt-toast { position: fixed; left: 50%; bottom: 24px; z-index: 2147483001; transform: translate(-50%, 20px); opacity: 0; background: var(--qt-indigo); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.qt-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Melius consent banner: this site sets no tracking cookies */
[data-testid="consent-banner-root"], [class*="c15t-ui-root"] { display: none !important; }

/* footer: one clean link column instead of Melius's sitemap */
.qt-foot { margin-top: 56px; display: flex; gap: clamp(40px, 8vw, 120px); flex: 1; justify-content: flex-end; }
.qt-foot > div { display: flex; flex-direction: column; gap: 14px; }
.qt-foot span { font-size: 14px; text-transform: uppercase; color: #e3e3e3; margin-bottom: 8px; }
.qt-foot a { color: #9c9996; text-decoration: none; font-size: 15px; transition: color .2s; }
.qt-foot a:hover { color: #fff; }
@media (max-width: 1023px) { .qt-foot { justify-content: flex-start; } }

/* mobile header: Melius's mobile menu (Product/Solutions/...) is not used */
.lg\:hidden > nav [data-slot="accordion-trigger"], .lg\:hidden > nav [data-slot="accordion-content"] { display: none !important; }
.lg\:hidden > nav { width: auto !important; }
.lg\:hidden > nav [data-slot="accordion-item"] > div { max-width: none !important; padding-right: 10px; }

/* footer bottom bar: no Melius status / consent links */
[data-testid="consent-dialog-link"], footer div:has(> .bg-green) { display: none !important; }
