/* Qurebit site
   Palette: phase #3DEBA4 · tint #A6F7D2 · ink #0A0B0D · paper #F1F1EC · white
   Spacing: 8 13 21 34 55 89 144 · Splits: 1.618 : 1 */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --phase: #3DEBA4;
  --tint: #A6F7D2;
  --deep: #0A9A62;
  --ink: #0A0B0D;
  --ink-2: #111316;
  --paper: #F1F1EC;
  --white: #FFFFFF;
  --mist: rgba(241, 241, 236, .64);
  --mist-2: rgba(241, 241, 236, .44);
  --line: rgba(241, 241, 236, .1);
  --ink-mist: rgba(10, 11, 13, .66);
  --ink-line: rgba(10, 11, 13, .12);
  --s1: 8px; --s2: 13px; --s3: 21px; --s4: 34px; --s5: 55px; --s6: 89px; --s7: 144px;
  --max: 1240px;
  --gutter: clamp(21px, 5vw, 55px);
  --r-sm: 13px; --r-md: 21px; --r-lg: 34px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --snap: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--phase); color: var(--ink); }
:focus-visible { outline: 2px solid var(--phase); outline-offset: 3px; border-radius: 8px; }
.s-phase :focus-visible, .s-paper :focus-visible { outline-color: var(--ink); }
.skip { position: fixed; left: 16px; top: -64px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--phase); color: var(--ink); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display { font-weight: 500; font-size: clamp(46px, 7.4vw, 112px); line-height: .98; letter-spacing: -0.045em; text-wrap: balance; }
.h2 { font-weight: 500; font-size: clamp(38px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.h3 { font-weight: 600; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--mist); max-width: 34em; }
.small { font-size: 14px; line-height: 1.5; color: var(--mist); }
.label { font-size: 14px; font-weight: 500; color: var(--mist); }
.s-phase .lead, .s-paper .lead, .s-phase .small, .s-paper .small, .s-phase .label, .s-paper .label { color: var(--ink-mist); }
.inline-mark { display: inline-block; height: .78em; width: .78em; vertical-align: -0.06em; margin: 0 .06em; }

/* ---------- layout ---------- */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; min-height: 100svh; display: flex; align-items: center; padding: var(--s7) 0; overflow: clip; }
.section > .wrap { position: relative; z-index: 2; }
.split { display: grid; grid-template-columns: 1.618fr 1fr; gap: var(--s6); align-items: center; }
.split.rev { grid-template-columns: 1fr 1.618fr; }
.stack { display: flex; flex-direction: column; gap: var(--s3); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s4); }
.head { display: flex; flex-direction: column; gap: var(--s3); max-width: 760px; margin-bottom: var(--s6); }
.head.center { margin-inline: auto; text-align: center; align-items: center; }
@media (max-width: 960px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: var(--s5); }
  .section { padding: var(--s6) 0; }
  .head { margin-bottom: var(--s5); }
}

/* ---------- scenes ---------- */
.s-ink { background: var(--ink); color: var(--paper); }
.s-ink.glow::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 90%; background: radial-gradient(closest-side, rgba(61, 235, 164, .16), rgba(61, 235, 164, 0)); pointer-events: none; }
.s-phase { background: radial-gradient(120% 140% at 70% -10%, #A6F7D2 0%, #6EF2BE 35%, #3DEBA4 68%, #2CD996 100%); color: var(--ink); }
.s-paper { background: var(--paper); color: var(--ink); }
.shells { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.shells svg { position: absolute; width: 100%; height: 100%; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; transition: transform .35s var(--spring), background .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--phase); color: var(--ink); box-shadow: 0 0 0 0 rgba(61, 235, 164, .0); }
.btn-primary:hover { box-shadow: 0 10px 34px -8px rgba(61, 235, 164, .55); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(241, 241, 236, .08); }
.s-phase .btn-primary, .s-paper .btn-primary { background: var(--ink); color: var(--paper); }
.s-phase .btn-ghost:hover, .s-paper .btn-ghost:hover { background: rgba(10, 11, 13, .06); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .35s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.link { color: inherit; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.link:hover span { background-size: 100% 1.5px; }
.link svg { width: 15px; height: 15px; }

/* ---------- cards & mini UI ---------- */
.card { position: relative; background: rgba(241, 241, 236, .035); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); }
.s-phase .card, .s-paper .card { background: rgba(255, 255, 255, .55); border-color: var(--ink-line); }
.card-ink { background: var(--ink); color: var(--paper); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--r-md); box-shadow: 0 34px 89px -34px rgba(10, 11, 13, .55); }
.ui { font-size: 15px; line-height: 1.45; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 14px 0; border-bottom: 1px solid var(--line); }
.ui-row:last-child { border-bottom: 0; }
.ui-k { color: var(--mist); font-size: 14px; }
.ui-v { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap; background: rgba(241, 241, 236, .08); color: var(--paper); }
.pill.on { background: var(--phase); color: var(--ink); }
.pill.out { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 10px; background: rgba(241, 241, 236, .06); font-size: 14px; font-weight: 500; }
.hex { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* segmented toggle */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(241, 241, 236, .07); gap: 4px; position: relative; }
.s-phase .seg, .s-paper .seg { background: rgba(10, 11, 13, .08); }
.seg button { position: relative; z-index: 1; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 14.5px; color: inherit; opacity: .7; transition: opacity .2s, color .25s; }
.seg button[aria-pressed="true"] { opacity: 1; color: var(--ink); }
.seg .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--phase); transition: transform .45s var(--spring), width .45s var(--spring); }
.s-phase .seg .thumb, .s-paper .seg .thumb { background: var(--ink); }
.s-phase .seg button[aria-pressed="true"], .s-paper .seg button[aria-pressed="true"] { color: var(--paper); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: background .35s, box-shadow .35s, color .35s, backdrop-filter .35s; color: var(--paper); }
.nav.solid { background: rgba(10, 11, 13, .78); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav.light { color: var(--ink); }
.nav.light.solid { background: rgba(241, 241, 236, .72); box-shadow: 0 1px 0 var(--ink-line); }
.nav.on-phase.light.solid { background: rgba(110, 242, 190, .72); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.logo { display: inline-flex; align-items: center; text-decoration: none; height: 30px; flex: none; }
.logo svg { height: 100%; width: auto; overflow: visible; }
.logo .lk-word, .logo .lk-ring { fill: currentColor; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { position: relative; text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 10px 14px; border-radius: 999px; opacity: .78; transition: opacity .2s, background .2s; }
.nav-links a:hover { opacity: 1; background: rgba(127, 127, 127, .1); }
.nav-links a[aria-current="page"] { opacity: 1; }
/* active page: the icon's state bar, set like a Q's tail on the link */
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; right: 4px; bottom: 7px; width: 11px; height: 3.6px; border-radius: 0 2px 2px 0; background: var(--phase); transform: rotate(45deg); transform-origin: left center; }
.nav.light .nav-links a[aria-current="page"]::after { background: var(--ink); }
.nav-social { display: flex; align-items: center; gap: 2px; }
.nav-social a, .icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; opacity: .78; transition: opacity .2s, background .2s; }
.nav-social a:hover { opacity: 1; background: rgba(127, 127, 127, .12); }
.nav-social svg { width: 17px; height: 17px; }
.nav-right { display: flex; align-items: center; gap: var(--s3); }
.toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 50%; padding: 0; margin-right: -8px; }
.toggle svg { width: 48px; height: 48px; overflow: visible; }
.toggle .t-ring { fill: none; stroke: currentColor; stroke-width: 2.6; transform-origin: 21px 21px; transition: transform .5s var(--spring), opacity .3s; }
.toggle .t-a, .toggle .t-b { stroke: var(--phase); stroke-width: 3; stroke-linecap: round; transition: transform .55s var(--spring), opacity .3s, stroke .3s; transform-box: view-box; }
.nav.light .toggle .t-a, .nav.light .toggle .t-b { stroke: currentColor; }
.toggle .t-b { opacity: 0; transform: rotate(-90deg); transform-origin: 24px 24px; }
.toggle .t-a { transform-origin: 24px 24px; }
.menu-open .toggle .t-ring { transform: scale(0); opacity: 0; }
.menu-open .toggle .t-a { stroke: var(--paper); }
.menu-open .toggle .t-b { opacity: 1; transform: rotate(0deg); stroke: var(--paper); }
@media (max-width: 960px) {
  .nav-links, .nav-social { display: none; }
  .toggle { display: block; }
}

/* menu sheet */
.sheet { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; padding: calc(var(--nav-h) + var(--s4)) var(--gutter) var(--s5); clip-path: circle(0 at calc(100% - 44px) 36px); transition: clip-path .7s var(--snap); visibility: hidden; }
.menu-open .sheet { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
.sheet::before { content: ""; position: absolute; inset: auto -30% -30% -30%; height: 70%; background: radial-gradient(closest-side, rgba(61, 235, 164, .18), transparent); pointer-events: none; }
.sheet nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.sheet nav a { font-size: clamp(34px, 9vw, 44px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.25; text-decoration: none; padding: 6px 0; display: flex; align-items: center; justify-content: space-between; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease); }
.sheet nav a[aria-current="page"]::after { content: ""; width: 22px; height: 6px; border-radius: 0 3px 3px 0; background: var(--phase); transform: rotate(45deg); }
.menu-open .sheet nav a { opacity: 1; transform: none; }
.menu-open .sheet nav a:nth-child(2) { transition-delay: .04s; } .menu-open .sheet nav a:nth-child(3) { transition-delay: .08s; }
.menu-open .sheet nav a:nth-child(4) { transition-delay: .12s; } .menu-open .sheet nav a:nth-child(5) { transition-delay: .16s; } .menu-open .sheet nav a:nth-child(6) { transition-delay: .2s; }
.sheet-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s4); position: relative; }
.sheet-foot .actions .btn { flex: 1 1 160px; }
.sheet-social { display: flex; gap: var(--s2); }
.sheet-social a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(241, 241, 236, .07); }
.sheet-social svg { width: 19px; height: 19px; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--ink); color: var(--paper); padding: var(--s6) 0 0; overflow: clip; border-top: 1px solid var(--line); }
.f-top { display: grid; grid-template-columns: 1.618fr repeat(3, 1fr); gap: var(--s5); padding-bottom: var(--s6); }
.f-brand { display: flex; flex-direction: column; gap: var(--s3); max-width: 320px; }
.f-col h3 { font-size: 14px; font-weight: 600; color: var(--mist-2); margin-bottom: var(--s3); }
.f-col ul { display: flex; flex-direction: column; gap: var(--s2); }
.f-col a { text-decoration: none; opacity: .82; transition: opacity .2s; }
.f-col a:hover { opacity: 1; }
.f-base { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--mist-2); }
.f-giant { padding: var(--s4) 0 0; }
.f-giant svg { width: 100%; height: auto; display: block; fill: rgba(241, 241, 236, .07); margin-bottom: -1.2%; }
@media (max-width: 960px) {
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(21px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; } .rv.d5 { transition-delay: .4s; }

/* ---------- page hero (product pages) ---------- */
.p-hero { min-height: 100svh; padding-top: calc(var(--nav-h) + var(--s6)); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s3); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); padding: var(--s4); border-radius: var(--r-lg); background: rgba(241, 241, 236, .035); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: inherit; min-height: 300px; transition: border-color .3s, background .3s; }
a.tile:hover { border-color: rgba(61, 235, 164, .4); background: rgba(61, 235, 164, .04); }
.tile .viz { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 140px; }
.tile .h3 { margin-bottom: 6px; }
.tile p { color: var(--mist); font-size: 15.5px; line-height: 1.5; }
.s-phase .tile, .s-paper .tile { background: rgba(255, 255, 255, .5); border-color: var(--ink-line); }
.s-phase .tile p, .s-paper .tile p { color: var(--ink-mist); }
.t-4 { grid-column: span 4; } .t-3 { grid-column: span 3; } .t-2 { grid-column: span 2; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .t-4, .t-3 { grid-column: 1 / -1; } .t-2 { grid-column: span 1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .t-2 { grid-column: 1 / -1; }
  .tile { min-height: 0; padding: var(--s3); border-radius: var(--r-md); }
}

/* ---------- code-like request cards (sans by design) ---------- */
.req { font-size: 15px; line-height: 1.75; font-variant-numeric: tabular-nums; }
.req .k { color: var(--tint); }
.req .s { color: var(--paper); }
.req .c { color: var(--mist-2); }
.req .m { display: inline-block; padding: 1px 9px; border-radius: 7px; background: var(--phase); color: var(--ink); font-weight: 600; font-size: 13px; margin-right: 8px; }
.req pre { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- faq / details ---------- */
.qa { border-bottom: 1px solid var(--line); }
.s-paper .qa, .s-phase .qa { border-color: var(--ink-line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; letter-spacing: -0.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa .qi { position: relative; width: 28px; height: 28px; flex: none; }
.qa .qi::before, .qa .qi::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.4px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .45s var(--spring); }
.qa .qi::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qi::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa[open] .qi::before { transform: translate(-50%, -50%) rotate(180deg); }
.qa .qb { padding: 0 0 var(--s3); color: var(--mist); max-width: 46em; }
.s-paper .qa .qb, .s-phase .qa .qb { color: var(--ink-mist); }
.qa[open] .qb { animation: qaIn .45s var(--ease); }
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- misc ---------- */
.note { font-size: 13.5px; color: var(--mist-2); }
.s-phase .note, .s-paper .note { color: rgba(10, 11, 13, .55); }
.divider { height: 1px; background: var(--line); }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
