/* q2 visual language, applied to the existing pages and content. */
:root {
  color-scheme: dark;
  --p: #4f7cff;
  --p2: #3a5fd9;
  --g: #00d4ff;
  --bg: #080c17;
  --card: #0f1830;
  --card2: #132448;
  --txt: #eaf0ff;
  --muted: #b5c1d6;
  --line: rgba(255, 255, 255, .12);
  --grad: linear-gradient(135deg, #4f7cff, #3a5fd9);
  --header-height: 80px;
}
html { scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}
button, select { font: inherit; }
[hidden] { display: none !important; }
img { height: auto; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #00d4ff; outline-offset: 4px; }
.container { width: 100%; max-width: 1280px; padding-inline: 24px; }
.hero-grid > *, .article-layout > *, .footer-grid > * { min-width: 0; }
.section { padding: 88px 0; }
.section.alt { background: #0a1122; }
[id] { scroll-margin-top: calc(var(--header-height) + 24px); }

/* Black header, blue branding and rounded download control from q2. */
.nav, .nav.scrolled {
  background: #05070d;
  border-bottom: 1px solid rgba(255,255,255,.04);
  backdrop-filter: none;
  box-shadow: none;
}
.nav .nav-inner { width: 95%; max-width: none; padding-inline: 0; }
.nav-inner { height: var(--header-height); gap: 24px; }
.nav-logo { gap: 9px; flex-shrink: 0; font-size: 28px; letter-spacing: -.045em; }
.nav-logo img { width: 34px; height: 34px; object-fit: contain; border-radius: 0; }
.nav-logo b { background: none; color: #4385ff; }
.nav-menu { gap: 12px; }
.nav-item { display: flex; align-items: center; }
.nav-item > a { padding: 12px 14px; border-radius: 8px; color: #eaf0ff; font-size: 15px; }
.nav-item > a:hover { color: #8fb2ff; background: transparent; }
.nav-item > a .arrow { display: none; }
.nav-subtoggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  width: 24px;
  min-height: 44px;
  margin-left: -10px;
  background: none;
  border: 0;
  color: #a1b2cf;
  cursor: pointer;
  border-radius: 6px;
}
.nav-subtoggle::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav-subtoggle[aria-expanded="true"]::before { transform: rotate(225deg); }
.nav-subtoggle:hover { color: #8fb2ff; background: rgba(79,124,255,.1); }
.nav-cta .btn { min-height: 38px; padding: 8px 22px; border-radius: 999px; font-size: 13px; background: var(--grad); box-shadow: 0 4px 16px rgba(79,124,255,.2); }
.dropdown {
  top: 100%;
  min-width: 240px;
  background: #0f1830;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
  transform: translateY(6px);
}
.dropdown a { color: #eaf0ff; min-height: 48px; border-radius: 8px; }
.dropdown a small { color: #a1b2cf; }
.dropdown a:hover { background: #172b50; color: #8fb2ff; }
.nav-item.expanded .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Clear hero, large white title and blue-to-cyan emphasis. */
.hero, .dl-hero { padding: 136px 0 64px; background: #080c17; overflow: visible; }
.hero {
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  --hero-overlay:
    linear-gradient(90deg, rgba(8,12,23,.62) 0%, rgba(8,12,23,.32) 42%, rgba(8,12,23,.03) 100%),
    linear-gradient(0deg, #080c17 0%, transparent 16%);
  background-image: url('../images/quickq-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; pointer-events: none; z-index: 0; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-overlay); pointer-events: none; z-index: 1; }
.hero > .hero-grid { z-index: 2; }
.hero::after { display: none; }
.hero-grid, .dl-hero .hero-grid { grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: 56px; }
.hero > .hero-grid {
  width: 95%;
  max-width: none;
  padding-inline: 0;
  margin-inline: auto;
  text-align: left;
}
.hero > .hero-grid > div {
  max-width: 684px;
  padding-left: clamp(8px, 4vw, 64px);
}
@media (min-width: 993px) {
  .hero > .hero-grid {
    padding-left: 7.2vw;
    grid-template-columns: minmax(0, 620px);
  }
  .hero > .hero-grid > div { max-width: 620px; padding-left: 0; }
}
.hero-product { display: flex; justify-content: flex-end; align-items: center; min-width: 0; margin: 0; }
.hero-product img { display: block; width: 100%; max-width: 442px; height: auto; aspect-ratio: 442 / 508; object-fit: contain; object-position: right center; margin-left: auto; }
.hero h1, .dl-hero h1 { font-size: clamp(36px,4.1vw,54px); font-weight: 800; line-height: 1.16; letter-spacing: -.04em; margin-bottom: 24px; color: #fff; }
.hero h1 em, .dl-hero h1 em, .sec-head h2 em, .cta h2 em { font-style: normal; background: linear-gradient(90deg,#6f9dff,#22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-badge { color: #a9c4ff; background: rgba(79,124,255,.08); border-color: rgba(79,124,255,.25); font-size: 12px; padding: 7px 14px; }
.hero-sub { max-width: 620px; font-size: 17px; line-height: 1.85; color: #bdc9dd; margin-bottom: 32px; }
.hero-actions { gap: 12px; margin-bottom: 28px; }
.btn { min-height: 52px; padding: 14px 24px; border-radius: 10px; font-size: 15px; line-height: 1.4; }
.btn-primary, .btn-green { background: #365fdf; color: #fff; box-shadow: none; }
.btn-primary:hover, .btn-green:hover { background: #4374ef; box-shadow: none; transform: none; }
.btn-ghost { background: transparent; border: 1px solid #586984; color: #eaf0ff; }
.btn-ghost:hover { background: rgba(79,124,255,.08); border-color: #8fb2ff; }
.hero-stats { gap: 32px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); }
.hero-stat b, .dl-meta .item b { font-size: 25px; }
.hero-stat b i { background: none; color: #8fb2ff; }
.hero-stat span, .dl-meta .item span { color: #a1b2cf; }
.demo { width: 100%; background: #0f1830; border: 1px solid #28416b; border-radius: 18px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.24); }
.demo-head { gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.demo-brand { color: #a1b2cf; }
.demo-brand b { color: #d9e5f7; font-weight: 500; }
.gauge-wrap { margin-top: 10px; }
.connect-btn { background: var(--grad); box-shadow: 0 0 0 8px rgba(79,124,255,.09); }
.connect-btn:hover { box-shadow: 0 0 0 12px rgba(79,124,255,.15); }
.demo-speed { margin-top: 24px; gap: 14px; }
.demo-speed .box { padding: 12px; background: #0b1427; border-color: #20365c; border-radius: 10px; }
.demo-select { min-height: 44px; background: #0b1427; border-color: #20365c; border-radius: 10px; }
.switch-item { background: #0b1427; border-color: #20365c; border-radius: 10px; }
.switch-item.on { border-color: #3b60a0; background: #132448; }
.switch-item:focus-visible { outline-offset: 2px; }

/* Existing content sections retain their order and all their copy. */
.sec-head { max-width: 780px; margin-bottom: 44px; }
.sec-tag { color: #8fb2ff; font-size: 12px; letter-spacing: .14em; }
.sec-head h2 { font-size: clamp(30px,3.2vw,48px); line-height: 1.2; letter-spacing: -.025em; margin-bottom: 18px; }
.sec-head p { color: #b5c1d6; line-height: 1.85; }
.metrics-title { color: #fff; font-size: 26px; margin-bottom: 12px; }
.card-title { display: block; color: #fff; font-size: 19px; font-weight: 700; margin: 0 0 12px; }
.node-card .card-title { font-size: 17px; margin-bottom: 6px; }
.version .card-title { font-size: 17px; margin-bottom: 4px; }
.req .card-title { font-size: 15px; margin-bottom: 6px; }
.install-step .card-title { font-size: 16px; margin-bottom: 8px; }
.news-title { display: block; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.6; margin: 0 0 10px; }
.faq-title { margin: 0; font: inherit; }
.article-faq-question { color: #fff; font-size: 17px; line-height: 1.7; margin: 20px 0 10px; }
.comments .auxiliary-title, .related .auxiliary-title { color: #fff; font-size: 20px; margin-bottom: 22px; }
.side-card .auxiliary-title { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-heading { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.nodes-grid, .features, .protos, .scenarios, .steps, .tests, .news-grid, .versions, .install-steps { gap: 24px; }
.node-card, .proto-card, .feature, .scenario, .step, .plan, .faq, .test, .news-card, .version, .install-step, .side-card {
  min-width: 0;
  background: #0f1830;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: none;
  transition: border-color .2s, background-color .2s;
}
.node-card:hover, .proto-card:hover, .feature:hover, .scenario:hover, .step:hover, .plan:hover, .test:hover, .news-card:hover, .version:hover, .install-step:hover {
  transform: none;
  border-color: rgba(79,124,255,.5);
  box-shadow: none;
}
.proto-card, .feature, .scenario, .step, .test { padding: 28px; }
.proto-ico, .feature .f-ico { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg,rgba(79,124,255,.18),rgba(34,211,238,.08)); border: 1px solid rgba(79,124,255,.25); }
.feature b, .proto-card b, .scenario b, .step b { font-size: 19px; margin-bottom: 12px; }
.feature p, .proto-card p, .scenario p, .step p, .install-step p, .version li { color: #b5c1d6; font-size: 15px; line-height: 1.85; }
.speed-panel, .sysreq { background: #0f1830; border-radius: 14px; border-color: var(--line); }
.speed-row .meta { color: #bdc9dd; }
.speed-row .bar { height: 8px; background: #20365c; }
.plan { padding: 34px 30px; }
.plan.hot { background: #132448; border: 1px solid #5278e7; box-shadow: none; }
.plan .hot-tag { box-shadow: none; }
.plan .price { letter-spacing: -.04em; }
.plan li { color: #bdc9dd; }
.faq-list { max-width: 900px; gap: 16px; }
.faq.open { border-color: #5278e7; }
.faq-q { padding: 24px; line-height: 1.65; }
.faq-q .faq-icon { background: #172b50; color: #8fb2ff; }
.faq-a-inner { color: #b5c1d6; line-height: 1.9; }
.news-card .body { padding: 24px; }
.news-card b { font-size: 18px; line-height: 1.6; }
.news-card p { color: #b5c1d6; font-size: 14px; line-height: 1.8; }
.news-card .more { color: #8fb2ff; }
.news-card:hover .thumb img { transform: none; }
.news-card .thumb { background: #0b1427; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.version .v-ver { color: #a9c4ff; background: rgba(79,124,255,.12); }
.install-step .num { color: #8fb2ff; }
.cta { padding: 80px 0; background: #102044; border-color: rgba(79,124,255,.22); }
.cta h2 { font-size: clamp(28px,3vw,42px); letter-spacing: -.03em; line-height: 1.35; }
.cta p { color: #b5c1d6; }
.footer { background: #05070d; padding-top: 64px; border-color: rgba(255,255,255,.08); }
.footer h4 { font-size: 15px; }
.footer ul a, .footer .f-brand p { color: #a1b2cf; }
.footer ul a:hover { color: #8fb2ff; }
.footer-grid { gap: 48px; }
.footer-bottom { border-color: rgba(255,255,255,.08); color: #8fa2c0; }

/* Listing and article pages share q2's quieter editorial layout. */
.news-hero, .article-hero { padding: 132px 0 40px; background: #080c17; border-bottom: 1px solid rgba(255,255,255,.07); }
.news-hero h1, .sitemap-section h1 { font-size: clamp(30px,3.6vw,44px); letter-spacing: -.035em; }
.news-hero p { color: #b5c1d6; }
.news-cats a { border-radius: 8px; padding: 10px 16px; background: #0f1830; }
.news-cats a:hover, .news-cats a.on { background: #365fdf; border-color: #5278e7; }
.news-cats button { color: var(--muted); background: #0f1830; border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; font-size: 13px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.news-cats button:hover, .news-cats button.on { background: #365fdf; border-color: #5278e7; color: #fff; }
.article-hero h1 { font-size: clamp(30px,3.2vw,44px); line-height: 1.35; letter-spacing: -.035em; }
.breadcrumb a { color: #a9c4ff; }
.article-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 32px; padding-top: 8px; }
.article-body { color: #bdc9dd; font-size: 16px; overflow-wrap: anywhere; }
.article-body h2 { border: 0; padding-left: 0; font-size: 26px; letter-spacing: -.02em; }
.article-body .lead { color: #d9e5f7; }
.article-body .data-box { background: #132448; border-color: #334f81; border-radius: 12px; }
.article-body .data-box p { color: #bdc9dd; }
.article-body figure { border-radius: 12px; }
.article-cover { border-radius: 14px; }
.article-cover img { width: 100%; height: auto; }
.article-body .comment p { color: #bdc9dd; }
.article-nav a { background: #0f1830; border-radius: 10px; }
.article-back { color: #8fb2ff; }
.side-card { padding: 22px; }
.side-card h3 { border: 0; padding-left: 0; }
.sidebar { top: 104px; }
.toc-item { color: #a1b2cf; }
.toc-item.active { color: #8fb2ff; }
.hot-item .rank { background: #172b50; color: #8fb2ff; border-radius: 6px; }
.hot-item:nth-child(1) .rank, .hot-item:nth-child(2) .rank, .hot-item:nth-child(3) .rank { background: #172b50; }
.hot-item:hover .rank { transform: none; }
.sitemap-section { padding-top: 132px; }
.sitemap-group a { gap: 16px; background: #0f1830; }
.sitemap-group a:hover { transform: none; color: #8fb2ff; }
.sitemap-group a .url { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 1100px) and (min-width: 993px) {
  .nav-inner { gap: 16px; }
  .nav-menu { gap: 2px; }
  .nav-item > a { padding-inline: 10px; }
  .hero-grid, .dl-hero .hero-grid { gap: 32px; }
}
@media (max-width: 992px) {
  .hero {
    background-position: 68% center;
    --hero-overlay: linear-gradient(180deg, rgba(8,12,23,.7) 0%, rgba(8,12,23,.46) 48%, rgba(8,12,23,.1) 75%, #080c17 100%);
  }
  .hero-video { object-position: 68% center; }
  .nav-inner { height: 72px; }
  :root { --header-height: 72px; }
  .nav-logo { font-size: 26px; }
  .nav-toggle { display: flex; width: 44px; height: 44px; justify-content: center; align-items: center; border-radius: 8px; padding: 10px; }
  .nav-toggle.active span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu { top: 72px; background: #080f20; padding: 0 24px; gap: 0; max-height: 0; border-color: transparent; }
  .nav-menu.open { max-height: calc(100dvh - 72px); padding-top: 12px; padding-bottom: 20px; border-bottom-color: #253552; }
  .nav-item { flex-wrap: wrap; justify-content: space-between; }
  .nav-item > a { width: auto; flex: 1; min-height: 52px; padding: 14px 12px; }
  .nav-subtoggle { width: 48px; min-height: 52px; margin: 0; }
  .dropdown { width: 100%; flex: 0 0 100%; background: #0f1830; border: 0; box-shadow: none; border-radius: 8px; padding: 0; max-height: 0; visibility: hidden; }
  .nav-item:hover .dropdown, .nav-item:focus-within .dropdown { visibility: hidden; }
  .nav-item.expanded .dropdown, .nav-item .dropdown.open { max-height: 360px; visibility: visible; padding: 6px; }
  .dropdown a { padding: 12px 16px; }
  .nav-cta .btn { display: inline-flex; }
  .hero, .dl-hero { padding-top: 112px; }
  .hero-grid, .dl-hero .hero-grid { grid-template-columns: minmax(0,1fr); gap: 36px; }
  .hero-product { width: 100%; max-width: 360px; margin-left: auto; }
  .hero .demo, .dl-hero .demo { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-sub { max-width: 720px; }
  .features, .nodes-grid, .protos { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-layout { grid-template-columns: minmax(0,1fr); }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .hero {
    background-color: #060b18;
    --hero-overlay: linear-gradient(180deg, rgba(6,11,24,.76) 0%, rgba(6,11,24,.62) 48%, rgba(6,11,24,.36) 78%, #080c17 100%);
  }
  .hero .hero-sub { color: #d3ddef; }
  .hero .hero-badge { color: #c5dcff; background: rgba(16,32,60,.88); border-color: #34527c; }
  .hero .hero-stat span { color: #bacbe4; }
  .hero .btn-ghost { background: rgba(8,18,36,.8); border-color: #7186a8; color: #f0f5ff; }
  .hero .hero-stats { border-top-color: rgba(186,203,228,.24); }
  .container { padding-inline: 24px; }
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head h2 { font-size: 30px; }
  .hero h1, .dl-hero h1 { font-size: 40px; }
  .hero-product { max-width: 300px; }
  .hero-sub { font-size: 16px; line-height: 1.8; }
  .features, .nodes-grid, .protos, .scenarios, .steps, .versions, .install-steps, .news-grid, .related-grid, .sysreq { grid-template-columns: minmax(0,1fr); }
  .proto-card, .feature, .scenario, .step, .test { padding: 24px; }
  .footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
  .footer .f-brand { grid-column: 1/-1; }
  .news-hero, .article-hero { padding-top: 108px; }
  .article-hero h1 { font-size: 30px; }
  .article-body { font-size: 16px; }
  .sitemap-group a { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (max-width: 520px) {
  .container { width: 100%; padding-inline: 16px; }
  .nav-logo { font-size: 24px; gap: 6px; }
  .nav-logo img { width: 28px; height: 28px; }
  .nav-inner { gap: 8px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 9px 14px; min-height: 38px; font-size: 12px; }
  .nav-menu { padding-inline: 16px; }
  .hero, .dl-hero { padding-top: 104px; padding-bottom: 40px; }
  .hero h1, .dl-hero h1 { font-size: clamp(28px,7.5vw,36px); line-height: 1.22; margin-bottom: 20px; }
  .hero-product { max-width: 270px; }
  .hero-badge { font-size: 11px; padding: 6px 10px; }
  .hero-sub { margin-bottom: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 16px; justify-content: space-between; padding-top: 20px; }
  .hero-stat b { font-size: 22px; }
  .hero-stat span { font-size: 11px; }
  .demo { padding: 18px; }
  .demo-head { gap: 6px; }
  .demo-brand { font-size: 10px; }
  .demo-dots { gap: 4px; }
  .demo-dots i { width: 7px; height: 7px; }
  .demo-switches { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .switch-item { padding: 8px 4px; }
  .switch-item span { font-size: 11px; }
  .sec-head h2 { font-size: 27px; }
  .sec-head p { font-size: 15px; }
  .news-card .body { padding: 22px; }
  .faq-q { padding: 20px; font-size: 15px; }
  .faq-a-inner { padding-inline: 20px; font-size: 15px; }
  .plan { padding: 30px 24px; }
  .speed-panel, .sysreq { padding: 24px; }
  .cta { padding: 56px 0; }
  .footer-grid { gap: 28px; }
  .footer-bottom { padding-block: 24px; }
  .article-hero h1 { font-size: 28px; overflow-wrap: anywhere; }
  .article-body h2 { font-size: 23px; }
  .article-body .data-box { padding: 20px; }
  .article-nav { flex-direction: column; }
  .article-nav a { width: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
