/* ═══════════════════════════════════════════════════════════════
   QUBEX ADVANCED SYSTEMS — design system (light)
   Apple-style: white canvas with #f5f5f7 interludes, ink text,
   tight tracking, generous space, GPU-only animation.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* canvas */
  --white: #ffffff;
  --alt: #f5f5f7;
  --panel-dark: #0b0b0f;

  /* ink */
  --ink: #1d1d1f;
  --mute: #56565c;
  --mute-soft: #86868b;

  /* brand (from the Qubex logo) */
  --blue: #0071e3;        /* buttons / interactive */
  --blue-link: #0066cc;   /* text links (AA on white) */
  --blue-brand: #1a4db5;  /* logo blue, gradients */
  --orange: #f07820;
  --red: #d0453e;

  /* hairlines */
  --line: rgba(0, 0, 0, 0.10);
  --line-soft: rgba(0, 0, 0, 0.06);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.9s;

  --radius: 22px;
  --nav-h: 52px;
  --shadow-card: 0 4px 24px -8px rgba(0, 0, 0, 0.10);
  --shadow-card-hover: 0 22px 44px -16px rgba(0, 0, 0, 0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI Variable Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
  letter-spacing: -0.016em;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection { background: rgba(0, 113, 227, 0.22); }

img, svg { display: block; max-width: 100%; }

/* ─── a11y ─── */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  padding: 10px 18px; border-radius: 999px;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 600;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════ TYPE SCALE ═══════════════ */

.eyebrow {
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.title-xl {
  font-size: clamp(2.9rem, 8vw, 6rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}

.title-lg {
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.title-xl em, .title-lg em, .hero-title em { font-style: normal; }

.body-lg {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--mute);
  font-weight: 400;
}

.measure { max-width: 46em; margin-inline: auto; }

/* gradient display text (tuned for white canvas) */
.grad-blue {
  background: linear-gradient(100deg, #0a63d8, var(--blue-brand) 55%, #5b3df0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-orange {
  background: linear-gradient(100deg, #e8681a, var(--orange) 45%, #d8451f);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-red {
  background: linear-gradient(100deg, #e0574f, var(--red) 55%, #b03060);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ═══════════════ LAYOUT PRIMITIVES ═══════════════ */

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.center { text-align: center; }

section { position: relative; }

.section-white {
  background: var(--white);
  padding: clamp(96px, 14vh, 170px) 0;
}

.section-alt {
  background: var(--alt);
  padding: clamp(96px, 14vh, 170px) 0;
}

/* ═══════════════ REVEAL SYSTEM ═══════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: calc(var(--rd, 0) * 110ms);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* hero load-in (plays once on page load) */
[data-load] {
  opacity: 0;
  transform: translateY(28px);
  animation: loadIn 1s var(--ease-out) forwards;
}
[data-load="1"] { animation-delay: 0.15s; }
[data-load="2"] { animation-delay: 0.30s; }
[data-load="3"] { animation-delay: 0.42s; }
[data-load="4"] { animation-delay: 0.60s; }
[data-load="5"] { animation-delay: 0.75s; }
[data-load="6"] { animation-delay: 1.15s; }
@keyframes loadIn { to { opacity: 1; transform: none; } }

/* ═══════════════ NAV ═══════════════ */

nav#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(4vw, 22px);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
nav#nav.scrolled {
  background: rgba(251, 251, 253, 0.85);
  border-bottom-color: var(--line-soft);
}

.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em;
}
.nav-logo-img { height: 34px; width: auto; }
.footer-logo-img { height: 44px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px);
  list-style: none;
}
.nav-links a {
  color: rgba(29, 29, 31, 0.78); text-decoration: none;
  font-size: 0.86rem; font-weight: 500;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 7px 16px; border-radius: 999px;
  background: var(--blue); color: #fff !important;
  transition: transform 0.25s var(--ease-out), background 0.25s ease;
}
.nav-cta:hover { background: #0077ed; transform: scale(1.04); }

#nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
#nav-toggle span {
  width: 20px; height: 1.8px; background: var(--ink);
  transition: transform 0.35s var(--ease-out);
}
#nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.4px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.4px) rotate(-45deg); }

/* ═══════════════ HERO ═══════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 64px) 0 90px;
  background: var(--white);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.hero-glow-a {
  width: 44vw; height: 44vw; min-width: 380px; min-height: 380px;
  left: 8%; top: 6%;
  background: radial-gradient(circle, rgba(26, 77, 181, 0.16), transparent 65%);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.hero-glow-b {
  width: 36vw; height: 36vw; min-width: 320px; min-height: 320px;
  right: 4%; bottom: 4%;
  background: radial-gradient(circle, rgba(240, 120, 32, 0.13), transparent 65%);
  animation: drift-b 20s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(9vw, 7vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-8vw, -6vh, 0) scale(1.08); } }

.hero-inner { position: relative; width: min(1100px, 94vw); }

.hero-text { position: relative; width: min(980px, 100%); margin-inline: auto; }

.hero-eyebrow {
  font-size: clamp(0.9rem, 1.6vw, 1.08rem);
  font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-brand);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3.1rem, 9.6vw, 7.2rem);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.04em;
  margin-bottom: 30px;
  color: var(--ink);
}
.hero-title .line { display: block; }
.hero-title em {
  background: linear-gradient(95deg, #0a63d8 5%, var(--blue-brand) 45%, var(--orange) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-sub {
  font-size: clamp(1.06rem, 2.1vw, 1.4rem);
  color: var(--mute);
  max-width: 42em; margin: 0 auto 40px;
}

.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-size: 1.02rem; font-weight: 500; text-decoration: none;
  transition: transform 0.3s var(--ease-out), background 0.3s ease, color 0.3s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0077ed; transform: scale(1.045); }
.btn-ghost { color: var(--blue-link); }
.btn-ghost:hover { transform: translateX(3px); }


/* ═══════════════ WHAT WE BUILD (plain words) ═══════════════ */

.explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(44px, 7vh, 72px);
}
.explain-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(30px, 3.6vw, 48px);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.explain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.explain-num {
  display: inline-block;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.explain-card h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.2;
  margin-bottom: 12px;
}
.explain-card p { color: var(--mute); font-size: 1.04rem; }

/* ═══════════════ PROBLEM ═══════════════ */

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.problem-sticky {
  position: sticky; top: calc(var(--nav-h) + 12vh);
}

.problem-list {
  list-style: none;
  display: flex; flex-direction: column;
  padding: 8vh 0;
}

.problem-item {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
  color: #c7c7cc;
  padding: clamp(26px, 5vh, 46px) 0;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 22px; align-items: baseline;
  transition: color 0.6s ease, transform 0.6s var(--ease-out);
  transform: translateX(0);
}
.problem-item:first-child { border-top: 1px solid var(--line); }
.problem-item.is-active {
  color: var(--ink);
  transform: translateX(10px);
}
.problem-num {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.08em;
  color: var(--red);
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════ TRANSITION ═══════════════ */

.transition-rows {
  margin-top: clamp(48px, 8vh, 80px);
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}

.transition-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) 60px minmax(0, 3fr) minmax(0, 5fr);
  gap: clamp(14px, 2.4vw, 30px);
  align-items: center;
  padding: clamp(28px, 4.5vh, 42px) 0;
  border-bottom: 1px solid var(--line);
}
.t-from {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 600; color: var(--mute-soft);
}
.t-to {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 700; color: var(--ink);
}
.t-arrow {
  height: 1.6px; background: linear-gradient(90deg, var(--blue-brand), var(--orange));
  position: relative;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1s var(--ease-out) 0.35s;
}
.t-arrow::after {
  content: ""; position: absolute; right: -1px; top: 50%;
  width: 8px; height: 8px;
  border-top: 1.6px solid var(--orange); border-right: 1.6px solid var(--orange);
  transform: translateY(-50%) rotate(45deg);
}
.transition-row.is-in .t-arrow { transform: scaleX(1); }
.transition-row p {
  color: var(--mute); font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* ═══════════════ MISSION COMPUTER / CHIP ═══════════════ */

/* Apple-style black feature panel on a white page */
.chip-canvas {
  background: var(--panel-dark);
  border-radius: 36px;
  margin: clamp(40px, 7vh, 80px) auto;
  padding: clamp(30px, 5vw, 70px);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(10, 15, 40, 0.45);
}

.chip-stage {
  position: relative;
  width: min(480px, 76vw);
  margin: 0 auto;
}

.chip-bloom {
  position: absolute; inset: -18%;
  background:
    radial-gradient(circle at 42% 42%, rgba(26, 77, 181, 0.42), transparent 55%),
    radial-gradient(circle at 62% 62%, rgba(240, 120, 32, 0.22), transparent 55%);
  filter: blur(46px);
  animation: bloom 7s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
@keyframes bloom {
  from { opacity: 0.65; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1.03); }
}

.chip { position: relative; }

.chip-die { animation: dieGlow 5.5s ease-in-out infinite alternate; }
@keyframes dieGlow { from { opacity: 0.85; } to { opacity: 1; } }

.trace {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.5s;
}
.is-in .trace { stroke-dashoffset: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(30px, 5vh, 60px);
}

.feature-card {
  background: var(--alt);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(26, 77, 181, 0.12), rgba(0, 113, 227, 0.18));
  color: var(--blue-brand);
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feature-card p { color: var(--mute); font-size: 0.98rem; }

/* ═══════════════ GCS ═══════════════ */

.gcs-mock-wrap {
  margin: clamp(44px, 7vh, 80px) auto;
  perspective: 1400px;
  max-width: 980px;
}

.gcs-mock {
  background: #0d0d11;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow:
    0 40px 90px -30px rgba(13, 20, 60, 0.40),
    0 12px 30px -14px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  color: #e8e8ec;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}

.gcs-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
}
.gcs-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.gcs-mission { margin-left: 12px; color: rgba(255,255,255,0.72); font-weight: 500; letter-spacing: 0; }

.gcs-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 218px;
}

.gcs-map { position: relative; background: #0a0e18; min-height: 300px; }
.gcs-map svg { width: 100%; height: 100%; position: absolute; inset: 0; }

.gcs-route { animation: routeFlow 2.4s linear infinite; }
@keyframes routeFlow { to { stroke-dashoffset: -14; } }

.gcs-wp { fill: #0a0e18; stroke: rgba(41,151,255,.8); stroke-width: 2; }

.gcs-drone circle:first-child { fill: var(--orange); }
.gcs-drone .ring {
  fill: none; stroke: rgba(240, 120, 32, 0.5); stroke-width: 1.5;
  animation: ring 2.6s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.gcs-drone { will-change: transform; }
.gcs-drone-1 { animation: fly1 13s ease-in-out infinite alternate; }
.gcs-drone-2 { animation: fly2 17s ease-in-out infinite alternate; }
.gcs-drone-3 { animation: fly3 15s ease-in-out infinite alternate; }
@keyframes fly1 {
  0% { transform: translate(90px, 290px); }
  35% { transform: translate(205px, 128px); }
  70% { transform: translate(370px, 95px); }
  100% { transform: translate(520px, 185px); }
}
@keyframes fly2 {
  0% { transform: translate(540px, 200px); }
  45% { transform: translate(462px, 292px); }
  100% { transform: translate(210px, 132px); }
}
@keyframes fly3 {
  0% { transform: translate(380px, 100px); }
  50% { transform: translate(250px, 210px); }
  100% { transform: translate(120px, 280px); }
}

.gcs-side {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.gcs-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 13px 14px;
}
.gcs-panel-label {
  display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45); margin-bottom: 4px;
}
.gcs-panel-value { font-size: 0.92rem; font-weight: 600; }
.gcs-meter {
  margin-top: 9px; height: 3.5px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.gcs-meter span {
  display: block; height: 100%; width: var(--w, 50%);
  border-radius: 99px;
  background: linear-gradient(90deg, #2997ff, #7cc0ff);
  transform: translateX(-101%);
  transition: transform 1.4s var(--ease-out) 0.6s;
}
.is-in .gcs-meter span { transform: translateX(0); }

.gcs-cmd {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.95rem;
}
.gcs-cmd-icon { color: var(--orange); }
.gcs-cmd-text { color: rgba(255, 255, 255, 0.85); min-height: 1.4em; }
.gcs-caret {
  width: 1.6px; height: 1.15em; background: #2997ff;
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.trio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.trio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.trio-card h3 {
  font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px;
}
.trio-card p { color: var(--mute); font-size: 0.99rem; }

/* ═══════════════ TECH GRID ═══════════════ */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(40px, 7vh, 70px);
}
.tech-card {
  background: var(--alt);
  border-radius: 18px;
  padding: 26px 22px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.tech-tag {
  display: inline-block;
  font-size: 1.28rem; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(95deg, #0a63d8, var(--blue-brand) 60%, #5b3df0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 12px;
}
.tech-card p { color: var(--mute); font-size: 0.92rem; line-height: 1.5; }

/* ═══════════════ MARKET ═══════════════ */

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
  margin-bottom: clamp(60px, 10vh, 110px);
}

.market-copy .title-lg em { white-space: nowrap; }
[data-count] { font-variant-numeric: tabular-nums; }

.market-note {
  margin-top: 18px;
  font-size: 0.85rem; color: var(--mute-soft);
  letter-spacing: 0.01em;
}

.market-chart {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3vw, 38px);
}
.chart-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  height: 240px;
  align-items: end;
}
.chart-group { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; justify-content: flex-end; }
.bar-pair { display: flex; gap: 7px; align-items: flex-end; height: 100%; }
.bar {
  width: clamp(16px, 2.4vw, 26px);
  height: var(--h, 40%);
  border-radius: 6px 6px 2px 2px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1.2s var(--ease-out);
}
.is-in .bar { transform: scaleY(1); }
.bar:nth-child(2) { transition-delay: 0.25s; }
.bar-25 { background: #d2d2d7; }
.bar-30 { background: linear-gradient(180deg, #4aa3ff, var(--blue-brand) 85%); }
.chart-label {
  font-size: 0.76rem; color: var(--mute);
  text-align: center; letter-spacing: 0.01em;
}
.chart-legend {
  display: flex; gap: 22px; justify-content: center;
  margin-top: 22px;
  font-size: 0.8rem; color: var(--mute);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.key { width: 11px; height: 11px; border-radius: 3.5px; display: inline-block; }
.key-25 { background: #d2d2d7; }
.key-30 { background: var(--blue-brand); }

.whynow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.whynow-card {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.whynow-card h3 {
  font-size: 1.06rem; font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 9px;
}
.whynow-card p { color: var(--mute); font-size: 0.93rem; }

/* ═══════════════ CUSTOMERS ═══════════════ */

.customer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(44px, 7vh, 72px) 0 26px;
}
.customer-col {
  background: var(--alt);
  border-radius: var(--radius);
  padding: clamp(28px, 3.4vw, 44px);
}
.customer-col h3 {
  font-size: 1.32rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.pill-list {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 9px;
}
.pill-list li {
  padding: 8px 17px; border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
}

.adopt-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 40px;
  margin-top: 34px;
}
.adopt-list li {
  position: relative;
  padding: 14px 0 14px 36px;
  color: var(--mute);
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line-soft);
}
.adopt-list li strong { color: var(--ink); font-weight: 600; }
.adopt-list li::before {
  content: "✓";
  position: absolute; left: 4px; top: 13px;
  color: #1e9e56; font-weight: 700;
}

/* ═══════════════ PLATFORM ═══════════════ */

.product-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(44px, 7vh, 80px) 0;
}
.product-card {
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 52px);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.product-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.product-card p { color: var(--mute); }
.product-code {
  display: inline-block;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(95deg, #0a63d8, var(--blue-brand));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 12px;
}

/* featured card goes dark — the one black anchor on the light page */
.product-card-featured {
  background:
    radial-gradient(120% 130% at 85% 0%, rgba(26, 77, 181, 0.45), transparent 60%),
    var(--panel-dark);
  color: #f5f5f7;
}
.product-card-featured h3 { color: #f5f5f7; }
.product-card-featured p { color: #a1a1a6; }
.product-card-featured .product-code {
  background: linear-gradient(95deg, #ffd7ae, var(--orange));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.pillar-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(52px, 9vh, 90px);
}
.pillar {
  text-align: center;
  padding: 26px 14px;
  border-top: 1px solid var(--line);
}
.pillar-word {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.pillar p { color: var(--mute); font-size: 0.9rem; }

/* comparison table */
.compare-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(10px, 2vw, 26px);
}
.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.compare th, .compare td {
  padding: 17px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th {
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--mute-soft); font-weight: 600;
}
.compare tbody th {
  text-align: left; font-weight: 500; color: var(--ink);
}
.compare .compare-qubex {
  background: rgba(0, 113, 227, 0.07);
  color: var(--ink);
}
.compare thead .compare-qubex {
  color: var(--blue-link); font-weight: 700;
  border-radius: 12px 12px 0 0;
}
.mark-yes { color: #1e9e56; font-weight: 700; font-size: 1.1rem; }
.mark-no { color: #b8b8bd; }
.mark-part { color: #c05e10; font-size: 0.84rem; font-weight: 500; }

/* ═══════════════ TEAM ═══════════════ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(44px, 7vh, 72px) 0 0;
}
.team-card {
  background: var(--alt);
  border-radius: var(--radius);
  padding: clamp(30px, 3.6vw, 48px);
  text-align: left;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 22px;
}
.team-avatar-blue { background: linear-gradient(135deg, #2f6fe4, var(--blue-brand)); }
.team-avatar-orange { background: linear-gradient(135deg, #ff9a4d, #e8681a); }
.team-card h3 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 5px;
}
.team-role {
  color: var(--blue-link); font-weight: 500; font-size: 0.95rem;
  margin-bottom: 14px;
}
.team-bio { color: var(--mute); font-size: 1rem; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(44px, 7vh, 72px);
  border-top: 1px solid var(--line);
  padding-top: clamp(30px, 5vh, 48px);
  text-align: center;
}
.stat-num {
  display: block;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(100deg, #0a63d8, var(--blue-brand) 55%, #5b3df0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 6px;
}
.stat p { color: var(--mute); font-size: 0.95rem; }

.team-quote {
  margin: clamp(48px, 8vh, 80px) auto 0;
  max-width: 46em;
  text-align: center;
}
.team-quote blockquote {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.35;
  color: var(--ink);
}
.team-quote figcaption {
  margin-top: 18px;
  color: var(--mute-soft);
  font-size: 0.98rem;
}

/* ═══════════════ DUAL USE ═══════════════ */

.dual-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(44px, 7vh, 72px);
}
.dual-panel {
  border-radius: var(--radius);
  padding: clamp(34px, 4.4vw, 56px);
  min-height: 340px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
.dual-panel:hover { transform: scale(1.018); box-shadow: var(--shadow-card-hover); }
.dual-defence {
  background:
    radial-gradient(130% 120% at 20% 0%, rgba(26, 77, 181, 0.10), transparent 62%),
    var(--white);
}
.dual-civil {
  background:
    radial-gradient(130% 120% at 80% 0%, rgba(240, 120, 32, 0.10), transparent 62%),
    var(--white);
}
.dual-panel h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.dual-panel p { color: var(--mute); margin-bottom: 22px; }
.dual-panel ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dual-panel li {
  padding-left: 22px; position: relative;
  color: var(--ink); font-size: 0.98rem;
}
.dual-panel li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 9px; height: 1.6px;
}
.dual-defence li::before { background: var(--blue-brand); }
.dual-civil li::before { background: var(--orange); }

/* ═══════════════ CTA + FOOTER ═══════════════ */

.cta {
  background:
    radial-gradient(90% 70% at 50% 115%, rgba(26, 77, 181, 0.08), transparent 65%),
    var(--white);
}

.cta-mail { margin-top: 26px; font-size: 1.02rem; }
.cta-mail a {
  color: var(--blue-link); text-decoration: none;
}
.cta-mail a:hover { text-decoration: underline; }
.cta-sep { color: var(--mute-soft); margin: 0 12px; }
.footer-addr { line-height: 1.6; }

.footer {
  background: var(--alt);
  border-top: 1px solid var(--line-soft);
  padding: clamp(52px, 8vh, 80px) 0 36px;
  color: var(--mute);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: clamp(28px, 4vw, 60px);
  margin-bottom: 48px;
}
.footer-brand p { margin-top: 16px; max-width: 30em; }
.footer-col h3 {
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mute-soft); font-weight: 600;
  margin-bottom: 15px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--mute); text-decoration: none; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  font-size: 0.82rem;
  color: var(--mute-soft);
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whynow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-layout { grid-template-columns: 1fr; gap: 44px; }
  .transition-row {
    grid-template-columns: minmax(0, 3fr) 44px minmax(0, 3fr);
  }
  .transition-row p { grid-column: 1 / -1; margin-top: 4px; }
}

@media (max-width: 760px) {
  #nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 18px max(4vw, 22px) 26px;
    background: rgba(251, 251, 253, 0.97);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out), visibility 0s 0.35s;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: none;
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
  }
  .nav-links a { display: block; padding: 11px 0; font-size: 1.05rem; }
  .nav-cta { margin-top: 10px; }

  .problem-layout { grid-template-columns: 1fr; }
  .problem-sticky { position: static; }
  .problem-list { padding: 4vh 0 0; }
  .problem-item.is-active { transform: none; }

  .feature-grid, .trio-grid, .customer-cols, .adopt-list,
  .product-lines, .dual-split, .team-grid, .explain-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .nav-logo-img { height: 30px; }

  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whynow-grid { grid-template-columns: 1fr; gap: 26px; }
  .pillar-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .gcs-body { grid-template-columns: 1fr; }
  .gcs-side {
    flex-direction: row; border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    overflow-x: auto;
  }
  .gcs-panel { min-width: 150px; flex: 1 0 auto; }
  .gcs-map { min-height: 230px; }

  .transition-row { grid-template-columns: 1fr; gap: 10px; }
  .t-arrow { width: 44px; }

  .chip-canvas { border-radius: 26px; }
  .chart-bars { height: 190px; }
}

@media (max-width: 420px) {
  .tech-grid { grid-template-columns: 1fr; }
  .pillar-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════ REDUCED MOTION ═══════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal], [data-load] { opacity: 1; transform: none; }
  .t-arrow, .bar, .gcs-meter span { transform: none; }
  .trace { stroke-dashoffset: 0; }
}
