/* ============================================================================
   QDI site styles. One typeface (Google Sans), five brand colours.

   Brand colours (from the supplied scheme)
     Ink   #003135   headlines, dark bands
     Deep  #024950   dark surfaces
     Teal  #0FA4AF   primary accent
     Mist  #AFDDE5   pale accent, tints
     Rust  #964734   warm accent, used sparingly (threats, small highlights)
   Everything else on the page is a tint of these five.
   ============================================================================ */

/* ── Google Sans, self hosted (SIL Open Font License, see fonts/OFL-LICENSE.txt) ── */
@font-face {
  font-family: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/google-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Google Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/google-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #003135;
  --deep: #024950;
  --teal: #0FA4AF;
  --mist: #AFDDE5;
  --rust: #964734;

  /* tints used for surfaces and text */
  --pearl: #F3FAFB;        /* page background (Mist at 15% on white) */
  --bone: #E7F3F6;         /* alternate section background (Mist at 30%) */
  --body: #1F4C50;         /* paragraph text (Ink, softened) */
  --muted: #4A7276;        /* captions */
  --teal-text: #0A7C84;    /* Teal darkened so it reads as text on light backgrounds */
  --hair: rgba(0, 49, 53, 0.14);
  --hair-soft: rgba(0, 49, 53, 0.09);

  /* names the long form pages (articles, legal) already use */
  --bg: var(--pearl);
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: #ffffff;
  --text: var(--ink);
  --text-soft: var(--body);
  --text-dim: var(--body);
  --text-muted: var(--muted);
  --accent: var(--teal);
  --accent-bright: var(--teal-text);
  --accent-dim: rgba(15, 164, 175, 0.12);
  --border: var(--hair);
  --border-soft: var(--hair-soft);
  --nav-bg: rgba(0, 49, 53, 0.94);
  --input-bg: #ffffff;
  --rule: var(--hair-soft);

  --maxw: 1200px;
  --gutter: 40px;
  --sec: 112px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; font-family: 'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pearl); color: var(--ink); overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 17px; line-height: 1.6; }
main { overflow-x: clip; }
h1, h2, h3, h4, p { margin: 0; }
button, input, textarea, select { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(15, 164, 175, 0.28); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
input:focus, textarea:focus, select:focus { border-color: var(--teal) !important; box-shadow: 0 0 0 3px rgba(15, 164, 175, 0.2); outline: none; }
select option { background: #fff; color: var(--ink); }
table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.q-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }
.q-sec { position: relative; padding: var(--sec) 0; }
.q-sec.alt { background: rgba(231, 243, 246, 0.62); }
.q-sec.tight { padding: 72px 0; }
.q-dark {
  position: relative; overflow: hidden; color: #eaf6f8;
  background: linear-gradient(165deg, var(--ink) 0%, #02404a 55%, var(--deep) 100%);
}
.q-dark > .q-wrap { position: relative; z-index: 1; }

.q-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.q-split.rev > :first-child { order: 2; }
.q-split > * { min-width: 0; }

.q-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-text); }
.q-eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; opacity: 0.7; }
.q-dark .q-eyebrow { color: var(--mist); }
.q-h1 { font-size: clamp(38px, 5.1vw, 66px); font-weight: 500; line-height: 1.05; letter-spacing: -0.028em; color: var(--ink); text-wrap: balance; }
.q-h2 { font-size: clamp(30px, 3.5vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -0.022em; color: var(--ink); text-wrap: balance; }
.q-h3 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.q-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--body); text-wrap: pretty; }
.q-p { font-size: 16.5px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.q-small { font-size: 14px; line-height: 1.6; color: var(--muted); }
.q-dark .q-h1, .q-dark .q-h2, .q-dark .q-h3 { color: #ffffff; }
.q-dark .q-lead, .q-dark .q-p { color: #cfe8ec; }
.q-dark .q-small { color: #9fc7cd; }
.q-accent { color: var(--teal-text); }
.q-dark .q-accent { color: var(--teal); }
.q-stack > * + *, div.q-stack > * + * { margin-top: 20px; }
.q-stack-lg > * + *, div.q-stack-lg > * + * { margin-top: 28px; }
.q-head { max-width: 720px; }
.q-head.center { margin: 0 auto; text-align: center; }
.q-head.center .q-eyebrow { justify-content: center; }

.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.q-list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; color: var(--body); }
.q-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--teal); background: rgba(15, 164, 175, 0.16); }
.q-dark .q-list li { color: #d9eef1; }
.q-list b { font-weight: 500; color: var(--ink); }
.q-dark .q-list b { color: #fff; }

.q-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.q-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 12px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: 0.005em; text-decoration: none; line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.q-btn:hover { background: var(--deep); border-color: var(--deep); }
.q-btn.ghost { background: transparent; color: var(--ink); border-color: rgba(0, 49, 53, 0.35); }
.q-btn.ghost:hover { background: rgba(0, 49, 53, 0.06); border-color: var(--ink); }
.q-dark .q-btn { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.q-dark .q-btn:hover { background: #3cc0c9; border-color: #3cc0c9; }
.q-dark .q-btn.ghost { background: transparent; color: #fff; border-color: rgba(175, 221, 229, 0.5); }
.q-dark .q-btn.ghost:hover { background: rgba(175, 221, 229, 0.12); border-color: var(--mist); }
.q-btn[disabled] { opacity: 0.6; cursor: default; }
.q-btn svg { flex: none; }

/* ── Cards, chips, rows ─────────────────────────────────────────────────── */
.q-card { background: rgba(255, 255, 255, 0.82); border: 1px solid var(--hair); border-radius: 16px; padding: 28px; transition: border-color 0.2s ease, background 0.2s ease; }
.q-card:hover { border-color: rgba(15, 164, 175, 0.55); background: #fff; }
.q-card.flat:hover { border-color: var(--hair); background: rgba(255, 255, 255, 0.82); }
.q-sec.alt .q-card { background: rgba(255, 255, 255, 0.7); }
.q-grid { display: grid; gap: 20px; }
.q-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.q-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.q-num { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; color: var(--teal-text); font-variant-numeric: tabular-nums; }
.q-card .q-h3 { margin: 10px 0 10px; }
.q-card .q-p { font-size: 15px; }

.q-kv { display: grid; gap: 0; }
.q-kv > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--hair-soft); }
.q-kv > div:first-child { border-top: 1px solid var(--hair-soft); }
.q-kv dt { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-text); font-weight: 500; padding-top: 2px; }
.q-kv dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }

.q-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 0.06em; background: rgba(15, 164, 175, 0.12); color: var(--teal-text); font-weight: 500; }

.q-rule { height: 1px; background: var(--hair-soft); border: 0; margin: 0; }

/* ── Reveal: a quiet fade and a few pixels of rise, once ────────────────── */

/* ── Smoke: slow soft light drifting behind dark bands ──────────────────── */
.q-smoke { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.q-smoke i { position: absolute; border-radius: 50%; will-change: transform; }
.q-smoke i:nth-child(1) { width: 70vmax; height: 70vmax; left: -22vmax; top: -34vmax; background: radial-gradient(closest-side, rgba(15, 164, 175, 0.30), rgba(15, 164, 175, 0) 70%); animation: q-drift-a 38s ease-in-out infinite alternate; }
.q-smoke i:nth-child(2) { width: 60vmax; height: 60vmax; right: -24vmax; bottom: -30vmax; background: radial-gradient(closest-side, rgba(175, 221, 229, 0.17), rgba(175, 221, 229, 0) 70%); animation: q-drift-b 46s ease-in-out infinite alternate; }
.q-smoke i:nth-child(3) { width: 46vmax; height: 46vmax; left: 38%; top: 10%; background: radial-gradient(closest-side, rgba(150, 71, 52, 0.15), rgba(150, 71, 52, 0) 70%); animation: q-drift-c 54s ease-in-out infinite alternate; }
@keyframes q-drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(9vmax, 6vmax, 0) scale(1.18); } }
@keyframes q-drift-b { from { transform: translate3d(0, 0, 0) scale(1.1); } to { transform: translate3d(-8vmax, -5vmax, 0) scale(0.95); } }
@keyframes q-drift-c { from { transform: translate3d(-4vmax, 2vmax, 0) scale(0.9); } to { transform: translate3d(5vmax, -4vmax, 0) scale(1.15); } }
.q-smoke::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(175, 221, 229, 0.10) 1px, transparent 1.2px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .q-smoke i { animation: none; } }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.q-nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100; background: var(--nav-bg); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(175, 221, 229, 0.14); color: #fff; }
.q-nav-in { max-width: 1280px; margin: 0 auto; height: 100%; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.q-brand { display: flex; align-items: center; gap: 12px; min-width: 0; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.q-brand img { height: 38px; width: 38px; border-radius: 9px; object-fit: cover; flex: none; }
.q-brand span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #cfe8ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-links { display: flex; gap: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
.q-link { position: relative; background: none; border: 0; padding: 26px 16px; cursor: pointer; font-size: 14.5px; color: #bfdde2; transition: color 0.2s ease; }
.q-link:hover, .q-link.on { color: #fff; }
.q-link::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 20px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.q-link.on::after { transform: scaleX(1); }
.q-nav-r { display: flex; align-items: center; gap: 8px; }
.q-burger { display: none; width: 44px; height: 44px; position: relative; background: none; border: 0; cursor: pointer; flex: none; }
.q-burger i { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: #fff; transition: top 0.2s ease, transform 0.2s ease, opacity 0.15s ease; }
.q-li { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; flex: none; transition: background 0.2s ease; }
.q-li:hover { background: rgba(175, 221, 229, 0.14); }
.q-mmenu { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99; background: var(--ink); border-bottom: 1px solid rgba(175, 221, 229, 0.16); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.2s ease; }
.q-mmenu.open { max-height: 520px; opacity: 1; }
.q-mmenu div { padding: 6px 24px 20px; display: flex; flex-direction: column; }
.q-mmenu button { text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(175, 221, 229, 0.12); padding: 16px 2px; font-size: 17px; color: #e5f4f6; cursor: pointer; }
.q-mmenu button.on { color: var(--teal); }
.q-mback { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 98; background: rgba(0, 20, 22, 0.5); }
.q-progress { position: fixed; top: 0; left: 0; height: 3px; z-index: 101; background: var(--teal); pointer-events: none; transition: width 0.1s linear; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

/* ── Closing call to action band ────────────────────────────────────────── */
.q-cta { padding: 96px 0; text-align: left; }
.q-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.q-cta h2 { max-width: 680px; }
.q-cta .q-actions { flex: none; }

/* ── Partner marquee (kept) ─────────────────────────────────────────────── */
.q-marq { padding: 44px 0 56px; background: rgba(243, 250, 251, 0.6); }
.q-marq-label { text-align: center; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; padding: 0 var(--gutter); }
.q-marq-wrap { overflow: hidden; border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); padding: 22px 0; background: rgba(255, 255, 255, 0.55); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%); }
.q-marq-track { display: flex; width: max-content; animation: q-marq 70s linear infinite; }
.q-marq-wrap:hover .q-marq-track { animation-play-state: paused; }
@keyframes q-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .q-marq-track { animation: none; } }
.q-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 28px; text-decoration: none; flex: none; }
.q-logo-img { height: 48px; min-width: 72px; display: flex; align-items: center; justify-content: center; }
.q-logo img { width: auto; max-width: 120px; object-fit: contain; filter: grayscale(100%) opacity(0.55); transition: filter 0.3s ease; }
.q-logo:hover img { filter: none; }
.q-logo b { font-weight: 400; font-size: 11px; letter-spacing: 0.04em; white-space: nowrap; color: var(--muted); }
.q-logo-badge { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(15, 164, 175, 0.12); font-size: 12px; font-weight: 600; color: var(--muted); }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.q-form { display: grid; gap: 16px; }
.q-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 8px; }
.q-input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--hair); background: #fff; color: var(--ink); font-size: 15px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
select.q-input { -webkit-appearance: none; appearance: none; padding-right: 46px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23003135' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 22px center / 12px 8px; }
textarea.q-input { padding: 12px 14px; min-height: 130px; resize: vertical; line-height: 1.5; }
.q-err { color: var(--rust); font-size: 12.5px; margin-top: 6px; }
.q-note { padding: 16px 18px; border-radius: 12px; background: rgba(15, 164, 175, 0.1); border: 1px solid rgba(15, 164, 175, 0.28); display: grid; gap: 8px; }

/* ── Long form pages (articles, legal) keep their own markup ────────────── */
.q-legacy { position: relative; z-index: 2; }
@media (max-width: 960px) {
  .q-legacy [style*="display: grid"] { grid-template-columns: 1fr !important; gap: 28px !important; }
  .q-legacy .qdi-article-number { display: none !important; }
  .q-legacy .qdi-article-meta { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; margin-top: 20px !important; }
  .q-legacy [style*="px 40px"], .q-legacy [style*="padding: 40px"], .q-legacy [style*="px 44px"], .q-legacy [style*="padding: 44px"],
  .q-legacy [style*="px 48px"], .q-legacy [style*="padding: 48px"], .q-legacy [style*="px 56px"], .q-legacy [style*="padding: 56px"] { padding: 28px 20px !important; }
}
@media (min-width: 641px) and (max-width: 960px) {
  .q-legacy [style*="repeat(3, 1fr)"], .q-legacy [style*="repeat(4, 1fr)"], .q-legacy [style*="repeat(5, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
}
.q-legacy h1 { text-wrap: balance; }
@media (max-width: 480px) {
  .q-legacy h1 { font-size: 34px !important; line-height: 1.15 !important; }
  .q-legacy h2 { font-size: 26px !important; line-height: 1.18 !important; }
  table, table th, table td { font-size: 12px !important; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  :root { --sec: 84px; }
  .q-split, .q-split.rev { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .q-split.rev > :first-child { order: 0; }
  .q-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-cta-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .q-links { display: none; }
  .q-burger { display: inline-flex; }
  .q-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --sec: 64px; }
  body { font-size: 16px; }
  .q-grid.c2, .q-grid.c3, .q-grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .q-brand span { display: none; }
  .q-card { padding: 22px; }
  .q-kv > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .q-actions .q-btn { flex: 1 1 100%; }
  .q-cta { padding: 64px 0; }
}

/* ── 3D panels ──────────────────────────────────────────────────────────── */
.q3 { display: flex; flex-direction: column; width: 100%; border-radius: 22px; overflow: hidden; border: 1px solid rgba(175, 221, 229, 0.22); background: radial-gradient(120% 90% at 50% 0%, #0b5a63 0%, #024950 42%, #003135 100%); box-shadow: 0 30px 60px -34px rgba(0, 49, 53, 0.55); color: #eaf6f8; }
.q3-wrap { position: relative; width: 100%; aspect-ratio: var(--ar, 1.25); overflow: hidden; }
.q3-host { position: absolute; inset: 0; }
.q3-host canvas { display: block; touch-action: pan-y; outline: none; }
.q3-skel { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; text-align: center; padding: 20px; pointer-events: none; }
.q3-skel span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #8fc4cb; }
.q3-hint { position: absolute; left: 14px; top: 14px; z-index: 3; pointer-events: none; max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #cfe8ec; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(175, 221, 229, 0.3); background: rgba(0, 49, 53, 0.7); transition: opacity 0.6s ease; animation: q3-hint-out 0.8s ease 5s forwards; }
.q3-hint.bl { top: auto; bottom: 14px; }
.q3-hint.off { opacity: 0; }
@keyframes q3-hint-out { to { opacity: 0; } }
.q3-tip { position: absolute; top: 0; left: 0; z-index: 6; pointer-events: none; width: max-content; max-width: min(260px, calc(100% - 16px)); padding: 10px 13px; border-radius: 10px; border: 1px solid rgba(175, 221, 229, 0.4); background: rgba(0, 38, 42, 0.96); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); opacity: 0; visibility: hidden; transition: opacity 0.14s ease; display: flex; flex-direction: column; gap: 3px; }
.q3-tip.on { opacity: 1; visibility: visible; }
.q3-tip b { font-size: 13px; font-weight: 500; color: #fff; line-height: 1.35; }
.q3-tip span { font-size: 12.5px; color: #bfdde2; line-height: 1.5; }

.q3-bar { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 18px; border-top: 1px solid rgba(175, 221, 229, 0.16); background: rgba(0, 31, 34, 0.55); }
.q3-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.q3-btn { min-height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(175, 221, 229, 0.45); background: transparent; color: #eaf6f8; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; }
.q3-btn:hover { background: rgba(175, 221, 229, 0.12); border-color: var(--mist); }
.q3-btn.solid { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.q3-btn.solid:hover { background: #3cc0c9; border-color: #3cc0c9; }
.q3-btn[disabled] { opacity: 0.4; cursor: default; }
.q3-stat { margin-left: auto; font-size: 14px; color: #bfdde2; }
.q3-stat b { color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 4px; }
.q3-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q3-chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(175, 221, 229, 0.35); background: transparent; color: #dff3f6; font-size: 13.5px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.q3-chip:hover { border-color: var(--mist); background: rgba(175, 221, 229, 0.1); }
.q3-chip.on { background: var(--teal); border-color: var(--teal); color: var(--ink); font-weight: 500; }
.q3-seg { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid rgba(175, 221, 229, 0.35); gap: 4px; max-width: 100%; }
.q3-seg button { min-height: 36px; padding: 0 16px; border-radius: 9px; border: 0; background: transparent; color: #dff3f6; font-size: 14px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.q3-seg button.on { background: var(--teal); color: var(--ink); font-weight: 500; }
.q3-slider { flex-wrap: nowrap; font-size: 13px; color: #9fc7cd; }
.q3-slider span { white-space: nowrap; }
.q3-slider input { flex: 1 1 auto; min-width: 0; accent-color: var(--teal); height: 28px; }
.q3-status { font-size: 14.5px; line-height: 1.55; color: #d9eef1; min-height: 3.1em; margin: 0; }
.q3-status b { color: #fff; font-weight: 500; }
.q3-note { font-size: 12.5px; line-height: 1.5; color: #8fc4cb; margin: 0; }
.q3-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.q3-steps button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 6px; border-radius: 10px; border: 1px solid rgba(175, 221, 229, 0.28); background: transparent; color: #bfdde2; font-size: 13px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.q3-steps button i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: rgba(175, 221, 229, 0.16); flex: none; }
.q3-steps button.on { background: var(--teal); border-color: var(--teal); color: var(--ink); font-weight: 500; }
.q3-steps button.on i { background: rgba(0, 49, 53, 0.2); }
.q3-steps button.done { color: #fff; border-color: rgba(15, 164, 175, 0.7); }

/* ── Timeline ───────────────────────────────────────────────────────────── */
.q-tl-card { border-radius: 20px; padding: 34px 36px 30px; border: 1px solid var(--hair); background: rgba(255, 255, 255, 0.75); }
.q-dark .q-tl-card { background: rgba(0, 31, 34, 0.45); border-color: rgba(175, 221, 229, 0.22); }
.q-tl-title { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 26px; font-weight: 500; }
.q-dark .q-tl-title { color: var(--mist); }
.q-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 24px; position: relative; }
.q-tl::before { content: ''; position: absolute; left: calc((100% - (var(--cols, 4) - 1) * 24px) / var(--cols, 4) / 2); right: calc((100% - (var(--cols, 4) - 1) * 24px) / var(--cols, 4) / 2); top: 6px; height: 2px; background: linear-gradient(90deg, var(--teal), rgba(15, 164, 175, 0.2)); }
.q-tl li { position: relative; padding-top: 28px; text-align: center; }
.q-tl-dot { position: absolute; left: 50%; margin-left: -7px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(15, 164, 175, 0.2); }
.q-tl-when { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.q-dark .q-tl-when { color: #fff; }
.q-tl-t { margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--teal-text); line-height: 1.35; }
.q-dark .q-tl-t { color: var(--mist); }
.q-tl-d { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.q-dark .q-tl-d { color: #bfdde2; }

/* ── Mac frame and the app inside it ────────────────────────────────────── */

@media (max-width: 1080px) {
  .q-tl { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-left: 4px; }
  .q-tl::before { left: 10px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal), rgba(15, 164, 175, 0.2)); }
  .q-tl li { padding: 0 0 0 36px; text-align: left; }
  .q-tl-dot { top: 4px; left: 4px; margin-left: 0; }
}
@media (max-width: 640px) {
  .q3 { border-radius: 18px; }
  .q3-wrap { aspect-ratio: 1 / 1; }
  .q3-bar { padding: 14px 14px 16px; }
  .q3-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .q3-steps button { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11px; min-height: 52px; }
  .q3-slider { font-size: 12px; gap: 8px; }
  .q-tl-card { padding: 24px 20px; }
  /* the laptop becomes a plain window so the app has room */
}
.q3-chips.light .q3-chip { border-color: rgba(0, 49, 53, 0.3); color: var(--ink); }
.q3-chips.light .q3-chip:hover { background: rgba(0, 49, 53, 0.06); border-color: var(--ink); }
.q3-chips.light .q3-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Pages ──────────────────────────────────────────────────────────────── */
.q-app { min-height: 100vh; }
.q-main { padding-top: var(--nav-h); position: relative; z-index: 1; }
.q-hero { position: relative; padding: 64px 0 var(--sec); background: radial-gradient(70% 60% at 85% 10%, rgba(175, 221, 229, 0.55), rgba(175, 221, 229, 0) 70%); }
.q-top { align-items: start; }
.q-sticky { position: sticky; top: calc(var(--nav-h) + 24px); }

.q-creds { list-style: none; margin: 8px 0 0; padding: 22px 0 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.q-creds li { display: grid; gap: 4px; align-content: start; }
.q-creds b { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.q-creds span { font-size: 13px; line-height: 1.45; color: var(--muted); }

.q-sel { min-height: 150px; }
.q-sel .q-p { font-size: 15px; }

.q-news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.q-news-form { display: flex; flex-wrap: wrap; gap: 12px; }
.q-news-form .q-input { flex: 1 1 220px; }

.q-glass { height: 100%; border-radius: 16px; padding: 28px; border: 1px solid rgba(175, 221, 229, 0.22); background: rgba(0, 31, 34, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.q-glass .q-num { color: var(--mist); }
.q-glass .q-h3 { margin: 10px 0 10px; }
.q-glass .q-p { font-size: 15px; }
.q-glass.q-open { border-style: dashed; }
.q-card-rv { height: 100%; }
.q-grid > .q-rv { height: 100%; }
.q-grid > .q-rv > .q-card { height: 100%; }

/* team */
.q-av { width: 48px; height: 48px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; }
.q-av.tbd { background: transparent; color: var(--teal-text); border: 1.5px dashed rgba(15, 164, 175, 0.6); font-size: 18px; }
.q-people { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: stretch; }
.q-plist { display: grid; gap: 10px; align-content: start; }
.q-prow { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--hair); background: rgba(255, 255, 255, 0.7); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.q-prow:hover { border-color: rgba(15, 164, 175, 0.6); background: #fff; }
.q-prow.on { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(15, 164, 175, 0.16); }
.q-prow .q-av { width: 42px; height: 42px; font-size: 13px; }
.q-prow span:last-child { display: grid; gap: 2px; min-width: 0; }
.q-prow b { font-weight: 500; font-size: 15.5px; color: var(--ink); }
.q-prow i { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.35; }
.q-pdetail { display: grid; border-radius: 20px; border: 1px solid var(--hair); background: #fff; }
.q-pcard { grid-area: 1 / 1; padding: 34px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; visibility: hidden; opacity: 0; transition: opacity 0.3s ease; }
.q-pcard.on { visibility: visible; opacity: 1; }
.q-pcard .q-av { width: 58px; height: 58px; font-size: 17px; margin-bottom: 8px; }
.q-ptitle { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-text); font-weight: 500; line-height: 1.5; margin-bottom: 8px; }
.q-pcard .q-p { font-size: 15.5px; }
.q-advs { display: grid; gap: 14px; }
.q-adv { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--hair); background: rgba(255, 255, 255, 0.75); }
.q-adv.tbd { border-style: dashed; background: transparent; align-items: center; }
.q-adv-n { font-size: 16px; font-weight: 500; color: var(--ink); }
.q-adv-t { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-text); margin: 3px 0 8px; font-weight: 500; }
.q-adv.tbd .q-adv-n { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); }

/* contact */
.q-formcard { padding: 28px; margin-top: 4px; }
.q-form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.q-req { color: var(--teal-text); }
.q-sent { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 48px 12px; color: var(--teal-text); }

@media (max-width: 1080px) {
  .q-news { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .q-people { grid-template-columns: minmax(0, 1fr); }
  .q-sticky { position: static; }
  .q-hero { padding-top: 40px; }
}
@media (max-width: 640px) {
  .q-creds { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .q-form-2 { grid-template-columns: minmax(0, 1fr); }
  .q-formcard { padding: 20px; }
  .q-pcard { padding: 24px 20px; }
}

.q-hero .q-h1 { font-size: clamp(36px, 3.7vw, 52px); }

.q3-chips.grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; }
.q3-chips.grid .q3-chip { padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
@media (max-width: 640px) { .q3-chips.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.q-card.q-open { border-style: dashed; background: transparent; }
@media (max-width: 1080px) {
  .q3, .mac-wrap, .q-sticky { max-width: 680px; margin-left: auto; margin-right: auto; }
}

/* ═══ Cursor ═══════════════════════════════════════════════════════════════ */
html.qdi-has-cursor, html.qdi-has-cursor * { cursor: none !important; }
html.qdi-has-cursor input, html.qdi-has-cursor textarea { cursor: text !important; }
html.qdi-has-cursor select, html.qdi-has-cursor input[type="range"] { cursor: pointer !important; }
.qdi-cursor-dot, .qdi-cursor-ring { position: fixed; top: 0; left: 0; z-index: 2147483647; pointer-events: none; opacity: 0; will-change: transform; transition: opacity 0.25s ease; }
.qdi-cursor-dot > span, .qdi-cursor-ring > span { position: absolute; display: block; border-radius: 50%; transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.28s ease, border-color 0.28s ease; }
.qdi-cursor-dot > span { width: 8px; height: 8px; left: -4px; top: -4px; background: var(--teal); box-shadow: 0 0 10px rgba(15, 164, 175, 0.8); }
.qdi-cursor-ring > span { width: 38px; height: 38px; left: -19px; top: -19px; border: 1.5px solid rgba(15, 164, 175, 0.7); background: rgba(15, 164, 175, 0.05); mix-blend-mode: normal; }
html.qdi-cursor-visible .qdi-cursor-dot, html.qdi-cursor-visible .qdi-cursor-ring { opacity: 1; }
html.qdi-cursor-native .qdi-cursor-dot, html.qdi-cursor-native .qdi-cursor-ring { opacity: 0; }
html.qdi-cursor-hover .qdi-cursor-ring > span { transform: scale(1.7); border-color: var(--teal); background: rgba(15, 164, 175, 0.14); }
html.qdi-cursor-hover .qdi-cursor-dot > span { transform: scale(0.5); }
html.qdi-cursor-down .qdi-cursor-ring > span { transform: scale(0.72); }
html.qdi-cursor-down.qdi-cursor-hover .qdi-cursor-ring > span { transform: scale(1.3); }
html.qdi-cursor-down .qdi-cursor-dot > span { transform: scale(1.5); }
@keyframes qdi-ripple { from { transform: translate(-50%, -50%) scale(0.2); opacity: 0.7; } to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.qdi-cursor-ripple { position: fixed; z-index: 2147483646; pointer-events: none; width: 90px; height: 90px; border-radius: 50%; border: 1.5px solid rgba(15, 164, 175, 0.7); animation: qdi-ripple 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }

/* ═══ Particle field ═══════════════════════════════════════════════════════ */
.q-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ═══ Mac, now a wide tablet with a full app inside ═══════════════════════ */
.mac-wrap { width: 100%; }
.mac { width: 100%; }
.mac-lid { position: relative; border-radius: 26px; padding: 14px; background: linear-gradient(160deg, #0d3d44, #04242a); border: 1px solid rgba(175, 221, 229, 0.3); box-shadow: 0 40px 80px -36px rgba(0, 49, 53, 0.65), inset 0 1px 0 rgba(175, 221, 229, 0.18); }
.mac-cam { position: absolute; left: 50%; top: 5px; width: 5px; height: 5px; border-radius: 50%; transform: translateX(-50%); background: #0a5a63; box-shadow: 0 0 0 2px #021d20; }
.mac-screen { border-radius: 14px; overflow: hidden; background: #f3fafb; aspect-ratio: 16 / 9; }
.mac-note { margin: 22px auto 0; max-width: 620px; font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }
.app { height: 100%; display: flex; flex-direction: column; color: var(--ink); font-size: 13px; }
.app-top { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #e3f0f3; border-bottom: 1px solid var(--hair); flex: none; }
.app-dots { display: inline-flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(0, 49, 53, 0.22); }
.app-dots i:first-child { background: var(--rust); opacity: 0.8; }
.app-dots i:nth-child(2) { background: #d9b45a; opacity: 0.8; }
.app-dots i:nth-child(3) { background: var(--teal); opacity: 0.85; }
.app-title { font-size: 12.5px; font-weight: 500; flex: 1; text-align: center; }
.app-tag { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); }
.app-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.app-side { display: flex; flex-direction: column; gap: 18px; padding: 16px 12px; background: var(--ink); color: #cfe8ec; min-height: 0; }
.app-brand { display: flex; align-items: center; gap: 9px; padding: 0 6px; color: #fff; font-size: 13.5px; }
.app-brand b { font-weight: 500; }
.app-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--teal); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.app-nav { display: grid; gap: 4px; }
.app-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: #a9cdd3; font-size: 13px; text-align: left; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.app-nav button:hover { background: rgba(175, 221, 229, 0.1); color: #fff; }
.app-nav button.on { background: rgba(15, 164, 175, 0.22); color: #fff; }
.app-nav button svg { flex: none; }
.app-nav button em { margin-left: auto; font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: rgba(175, 221, 229, 0.16); }
.app-user { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; background: rgba(175, 221, 229, 0.08); }
.app-av { width: 28px; height: 28px; border-radius: 50%; background: var(--deep); border: 1px solid rgba(175, 221, 229, 0.4); color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.app-user > span:last-child { display: grid; line-height: 1.25; min-width: 0; }
.app-user b { font-weight: 500; font-size: 12px; color: #fff; }
.app-user i { font-style: normal; font-size: 11px; color: #7fd6de; }
.app-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 16px 18px 18px; gap: 14px; animation: q-appin 0.35s ease both; }
@keyframes q-appin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: none; flex-wrap: wrap; }
.app-head h5 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.app-pill { font-size: 11px; padding: 3px 10px; border-radius: 99px; background: rgba(15, 164, 175, 0.14); color: var(--teal-text); font-weight: 500; }
.app-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.app-steps li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.app-steps li i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; background: rgba(0, 49, 53, 0.08); flex: none; transition: background 0.3s ease, color 0.3s ease; }
.app-steps li.on { color: var(--ink); font-weight: 500; }
.app-steps li.on i, .app-steps li.done i { background: var(--teal); color: #fff; }
.app-steps li.done { color: var(--teal-text); }
.app-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.app-card { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--hair); box-shadow: 0 6px 20px -16px rgba(0, 49, 53, 0.5); }
.app-card h4 { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-text); }
.app-to { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.app-to b { font-weight: 500; color: var(--ink); }
.app-to em { margin-left: auto; font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(15, 164, 175, 0.12); color: var(--teal-text); }
.app-ta { flex: 1; min-height: 0; width: 100%; resize: none; border-radius: 10px; border: 1px solid var(--hair); background: #f3fafb; padding: 10px 12px; font-size: 13px; line-height: 1.55; color: var(--ink); }
.app-row { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.app-btn { min-height: 34px; padding: 0 13px; border-radius: 9px; border: 1px solid rgba(0, 49, 53, 0.3); background: transparent; color: var(--ink); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background 0.2s ease, transform 0.15s ease; }
.app-btn:hover { background: rgba(0, 49, 53, 0.06); }
.app-btn:active { transform: scale(0.97); }
.app-btn.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.app-btn.solid:hover { background: var(--deep); }
.app-btn[disabled] { opacity: 0.4; cursor: default; }
.app-cipher { flex: 1 1 0; min-height: 0; overflow: hidden; border-radius: 10px; background: #012a2e; color: #7fd6de; padding: 10px 12px; font-size: 11.5px; line-height: 1.5; word-break: break-all; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; position: relative; }
.app-cipher::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: linear-gradient(180deg, transparent, #012a2e); }
.app-cipher.empty { color: #6aa5ac; letter-spacing: 0; }
.app-cipher.warn { color: #e6a28f; }
.app-out { flex: none; height: 66px; overflow: hidden; border-radius: 10px; border: 1px dashed var(--hair); padding: 8px 12px; font-size: 12px; line-height: 1.45; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.app-out b { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.app-out.ok { border: 1px solid rgba(15, 164, 175, 0.6); background: rgba(15, 164, 175, 0.1); color: var(--ink); }
.app-out.ok b { color: var(--teal-text); }
.app-out.bad { border: 1px solid rgba(150, 71, 52, 0.5); background: rgba(150, 71, 52, 0.08); color: var(--ink); }
.app-out.bad b { color: var(--rust); }
.app-fp { font-size: 19px; font-weight: 500; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--ink); padding: 16px 14px; border-radius: 10px; background: #012a2e; color: #7fd6de; word-break: break-all; animation: q-appin 0.5s ease both; }
.app-note { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.app-ciphers { display: grid; gap: 8px; }
.app-cp { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--hair); background: #f3fafb; color: var(--ink); font-size: 13px; text-align: left; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.app-cp:hover { border-color: rgba(15, 164, 175, 0.6); }
.app-cp.on { border-color: var(--teal); background: rgba(15, 164, 175, 0.08); }
.app-sw { width: 30px; height: 17px; border-radius: 99px; background: rgba(0, 49, 53, 0.2); position: relative; flex: none; transition: background 0.2s ease; }
.app-sw i { position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform 0.2s ease; }
.app-cp.on .app-sw { background: var(--teal); }
.app-cp.on .app-sw i { transform: translateX(13px); }
.app-log { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 0; flex: 1; min-height: 0; overflow: auto; align-content: start; }
.app-log li { display: grid; grid-template-columns: 62px 10px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--hair-soft); font-size: 12.5px; animation: q-appin 0.4s ease both; }
.app-log time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 11.5px; }
.app-log li i { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); }
.app-log li.ok i { background: var(--teal); }
.app-log li.warn i { background: #d9b45a; }
.app-log li.bad i { background: var(--rust); }

/* the software section gives the tablet room */
.q-split.wide { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.45fr); gap: 56px; }

@media (max-width: 1080px) {
  .q-split.wide { grid-template-columns: minmax(0, 1fr); }
  .mac-wrap { max-width: 820px; }
}
@media (max-width: 760px) {
  .mac-lid { padding: 8px; border-radius: 18px; }
  .mac-screen { aspect-ratio: auto; border-radius: 10px; }
  .app { height: auto; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { flex-direction: row; align-items: center; padding: 8px 10px; gap: 8px; overflow-x: auto; }
  .app-brand b, .app-user, .app-nav button svg { display: none; }
  .app-nav { display: flex; gap: 4px; }
  .app-nav button { padding: 8px 12px; width: auto; white-space: nowrap; }
  .app-main { padding: 14px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-ta { min-height: 96px; }
  .app-cipher { min-height: 90px; }
  .app-log { max-height: 280px; }
}

/* ═══ Motion ═══════════════════════════════════════════════════════════════ */
@keyframes q-fx { from { opacity: 0; transform: translate(var(--fx-x, 0), var(--fx-y, 34px)) scale(var(--fx-s, 1)); } to { opacity: 1; transform: none; } }
@keyframes q-wipe { from { opacity: 0; transform: translateY(26px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 -6% 0 -2%); } }
@keyframes q-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes q-pagein { from { opacity: 0; } to { opacity: 1; } }
@keyframes q-hl { from { opacity: 0; transform: translateX(-90px); } to { opacity: 1; transform: none; } }
@keyframes q-hr { from { opacity: 0; transform: translateX(90px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes q-hu { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes q-pop { from { transform: scale(0); } to { transform: scale(1); } }

.fx-on [data-fx="pre"] { opacity: 0; }
.fx-on [data-fx="in"] { animation: q-fx 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms) backwards; }
.fx-on [data-fxd="l"] { --fx-x: -64px; --fx-y: 0px; }
.fx-on [data-fxd="r"] { --fx-x: 64px; --fx-y: 0px; }
.fx-on [data-fxd="u"] { --fx-x: 0px; --fx-y: 34px; }
.fx-on [data-fxd="s"] { --fx-x: 0px; --fx-y: 20px; --fx-s: 0.9; }
.fx-on [data-fxd="up"] { --fx-x: 0px; --fx-y: 44px; }
.fx-on [data-fxd="left"] { --fx-x: -64px; --fx-y: 0px; }
.fx-on [data-fxd="right"] { --fx-x: 64px; --fx-y: 0px; }
.fx-on [data-fxd="scale"] { --fx-x: 0px; --fx-y: 20px; --fx-s: 0.9; }
.fx-on [data-fxd="wipe"][data-fx="in"] { animation: q-wipe 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms) backwards; }
.fx-on [data-fxd="eb"][data-fx="in"] { --fx-x: -40px; --fx-y: 0px; }
.fx-on .q-eyebrow[data-fx="in"]::before { transform-origin: left; animation: q-line 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--d, 0ms) + 150ms) backwards; }

/* splits: columns arrive from their own side, then drift against each other as you scroll */
.fx-on .q-split > [data-fx]:first-child { --fx-x: -80px; --fx-y: 0px; }
.fx-on .q-split > [data-fx]:last-child { --fx-x: 80px; --fx-y: 0px; --fx-s: 0.97; }
.fx-on .q-split.rev > [data-fx]:first-child { --fx-x: 80px; --fx-s: 0.97; }
.fx-on .q-split.rev > [data-fx]:last-child { --fx-x: -80px; --fx-s: 1; }
.fx-on .q-split > [data-fx="in"] { animation-duration: 1.15s; }
.fx-on .q-split:not(.q-top) > :first-child { translate: 0 calc(var(--p, 0) * -16px); }
.fx-on .q-split:not(.q-top) > :last-child { translate: 0 calc(var(--p, 0) * 24px); }

/* hero: loads in from both sides, text lines follow one after another */
.fx-on .q-hero .q-split > :first-child { animation: q-hl 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s backwards; }
.fx-on .q-hero .q-split > :last-child { animation: q-hr 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s backwards; }
.fx-on .q-hero .q-stack-lg > * { animation: q-hu 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.fx-on .q-hero .q-stack-lg > :nth-child(1) { animation-delay: 0.15s; }
.fx-on .q-hero .q-stack-lg > :nth-child(2) { animation-delay: 0.3s; }
.fx-on .q-hero .q-stack-lg > :nth-child(3) { animation-delay: 0.45s; }
.fx-on .q-hero .q-stack-lg > :nth-child(4) { animation-delay: 0.6s; }
.fx-on .q-hero .q-stack-lg > :nth-child(5) { animation-delay: 0.72s; }
.fx-on .q-hero .q-stack-lg > :nth-child(6) { animation-delay: 0.84s; }
.fx-on .q-main { animation: q-pagein 0.5s ease both; }
.fx-on .q-hero .q-accent { background: linear-gradient(100deg, var(--teal-text) 20%, #3cc0c9 45%, var(--teal-text) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: q-shine 6s ease-in-out infinite; }
@keyframes q-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* sections: soft glow that slides with the scroll */
.fx-on .q-sec { overflow: clip; }
.fx-on .q-sec::before { content: ''; position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; left: -16vmax; top: -12vmax; background: radial-gradient(closest-side, rgba(15, 164, 175, 0.13), rgba(15, 164, 175, 0) 70%); translate: calc(var(--sp, 0) * 70px) calc(var(--sp, 0) * -110px); pointer-events: none; z-index: 0; }
.fx-on .q-sec:nth-of-type(even)::before { left: auto; right: -16vmax; top: auto; bottom: -14vmax; background: radial-gradient(closest-side, rgba(175, 221, 229, 0.55), rgba(175, 221, 229, 0) 70%); translate: calc(var(--sp, 0) * -70px) calc(var(--sp, 0) * 110px); }
.q-sec > .q-wrap { position: relative; z-index: 1; }
.q-hero > .q-wrap { position: relative; z-index: 1; }

/* hover life */
.q-card { position: relative; overflow: hidden; transition: border-color 0.25s ease, background 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease; }
.q-card:not(.flat):hover { transform: translateY(-6px); box-shadow: 0 24px 40px -26px rgba(0, 49, 53, 0.45); }
.q-card::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.q-card:not(.flat):hover::after { animation: q-sheen 0.9s ease; }
@keyframes q-sheen { 0% { left: -60%; opacity: 0.9; } 100% { left: 130%; opacity: 0; } }
.q-btn { transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease; }
.q-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0, 49, 53, 0.7); }
.q-btn svg { transition: transform 0.25s ease; }
.q-btn:hover svg { transform: translateX(4px); }
.q-list li, .q-kv > div { transition: transform 0.25s ease; }
.q-list li:hover { transform: translateX(6px); }
.q3, .mac-lid { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.5s ease; }

/* timeline draws itself */
.fx-on .q-tl-card[data-fx="in"] .q-tl::before { transform-origin: left; animation: q-line 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s backwards; }
.fx-on .q-tl li[data-fx="in"] .q-tl-dot { animation: q-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--d, 0ms) + 350ms) backwards; }


/* ═══ Footer ═══════════════════════════════════════════════════════════════ */
.q-foot { position: relative; z-index: 1; overflow: hidden; color: #cfe8ec; background: linear-gradient(170deg, #001f22 0%, var(--ink) 50%, #02404a 100%); padding: 72px 0 0; }
.q-foot-in { position: relative; z-index: 1; }
.q-foot-cols { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 40px; }
.q-foot-logo { display: inline-block; background: none; border: 0; padding: 0; cursor: pointer; margin-bottom: 18px; }
.q-foot-logo img { width: 54px; height: 54px; border-radius: 14px; display: block; transition: transform 0.3s ease; }
.q-foot-logo:hover img { transform: rotate(-6deg) scale(1.06); }
.q-foot h4 { margin: 0 0 16px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); }
.q-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.q-foot-cols button, .q-foot-legal button, .q-foot-top-btn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: 15px; color: #bfdde2; transition: color 0.2s ease, transform 0.2s ease; }
.q-foot-cols button:hover, .q-foot-legal button:hover, .q-foot-top-btn:hover { color: #fff; }
.q-foot-cols li button:hover { transform: translateX(5px); }
.q-foot-cols p { font-size: 15px; line-height: 1.6; color: #bfdde2; }
.q-foot-cols .q-foot-small { margin-top: 6px; font-size: 13.5px; color: #8fb9c0; }
.q-foot-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; margin-top: 48px; padding: 22px 0 28px; border-top: 1px solid rgba(175, 221, 229, 0.16); font-size: 13.5px; color: #9fc7cd; position: relative; z-index: 1; }
.q-foot-legal { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.q-foot-legal button { font-size: 13.5px; color: #9fc7cd; }
.q-foot-top-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--mist); }
.q-foot-top-btn:hover svg { transform: translateY(-3px); }
.q-foot-top-btn svg { transition: transform 0.2s ease; }
@media (max-width: 1080px) {
  .q-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .fx-on .q-split:not(.q-top) > :first-child, .fx-on .q-split:not(.q-top) > :last-child { translate: none; }
  .fx-on .q-split > [data-fx]:first-child, .fx-on .q-split.rev > [data-fx]:first-child { --fx-x: -48px; }
  .fx-on .q-split > [data-fx]:last-child, .fx-on .q-split.rev > [data-fx]:last-child { --fx-x: 48px; }
}
@media (max-width: 640px) {
  .q-foot { padding-top: 56px; }
  .q-foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; margin-top: 44px; }
  .q-foot-bar { flex-direction: column; align-items: flex-start; }
  .fx-on [data-fxd="l"], .fx-on .q-split > [data-fx] { --fx-x: -34px; }
  .fx-on [data-fxd="r"] { --fx-x: 34px; }
  .fx-on .q-split > [data-fx]:last-child, .fx-on .q-split.rev > [data-fx]:last-child { --fx-x: 34px; }
}
