/* ============================================================
   Qumulo Cloud AI Accelerator — Page styles (dark command center)
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: 6px; }

h1,h2,h3,h4 { font-family: var(--font-display); color: var(--text-primary); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); font-weight: var(--fw-extrabold); }
strong { color: var(--text-primary); font-weight: var(--fw-semibold); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { position: relative; padding-block: clamp(72px, 11vw, 140px); }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }
.lede { max-width: 640px; }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent-electric);
  margin-bottom: var(--space-5);
}
.eyebrow::before { content:""; width: 28px; height: 1px; background: var(--gradient-accent-line); }
.eyebrow.center { display: flex; justify-content: center; }

.section-title { font-size: var(--text-h2); max-width: 18ch; }
.section-title.center { margin-inline: auto; }
.section-sub { margin-top: var(--space-5); font-size: var(--text-md); color: var(--text-secondary); max-width: 56ch; }
.section-sub.center { margin-inline: auto; }

.grad-text { background: linear-gradient(120deg, #fff 0%, #9fbbff 55%, #0AF1FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent-text { color: var(--light-blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding-inline: 26px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: var(--text-base);
  border: 1px solid transparent; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-normal) var(--ease-standard), box-shadow var(--dur-normal) var(--ease-standard), border-color var(--dur-normal);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(52,99,241,0.35); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(52,99,241,0.5); }
.btn--ghost { background: rgba(255,255,255,0.04); color: var(--text-primary); border-color: var(--surface-line-2); }
.btn--ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn--sm { height: 42px; padding-inline: 18px; font-size: var(--text-sm); }
.btn .arrow { transition: transform var(--dur-normal) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Cards & badges ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.022) 60%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl); padding: clamp(24px, 3vw, 36px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.11), var(--shadow-md);
  transition: transform var(--dur-normal) var(--ease-out), border-color var(--dur-normal), box-shadow var(--dur-normal), background var(--dur-normal);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 20px 48px rgba(0,0,0,0.52); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,0.05);
  border: 1px solid var(--surface-line); font-size: var(--text-sm); color: var(--text-secondary);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vibrant-green); box-shadow: 0 0 10px var(--vibrant-green); }

.icon-chip {
  width: 54px; height: 54px; flex: none; display: grid; place-items: center;
  border-radius: 14px; background: linear-gradient(160deg, rgba(52,99,241,0.22), rgba(10,241,255,0.06));
  border: 1px solid var(--surface-line-2);
}
.icon-chip img { width: 28px; height: 28px; object-fit: contain; }
/* Invert glyphs to white on accent/colored surfaces for contrast */
.pillar--feature .icon-chip { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.36); }
.pillar--feature .icon-chip img { filter: brightness(0) invert(1); }

/* ---------- Ambient background glows ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; z-index: 0; }
.glow--blue { background: radial-gradient(circle, rgba(52,99,241,0.55), transparent 70%); }
.glow--cyan { background: radial-gradient(circle, rgba(10,241,255,0.30), transparent 70%); }
.section > .container { position: relative; z-index: 1; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-normal) var(--ease-standard), backdrop-filter var(--dur-normal), border-color var(--dur-normal);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5,6,20,0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--surface-line); }
.nav__inner { width: 100%; max-width: var(--container); display: flex; align-items: center; gap: var(--space-8); padding: 16px clamp(20px,5vw,40px); }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: var(--space-6); margin-left: auto; }
.nav__links a { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-secondary); transition: color var(--dur-fast); }
.nav__links a:hover { color: var(--text-primary); }
.nav__cta { margin-left: var(--space-4); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--surface-line); align-items: center; justify-content: center; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after { content:""; display:block; width: 18px; height: 2px; background: var(--text-primary); position: relative; transition: transform var(--dur-fast); }
.nav__burger span::before { position: absolute; top: -6px; }
.nav__burger span::after { position: absolute; top: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(140px, 18vh, 220px); padding-bottom: clamp(60px, 8vw, 110px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hero .glow--blue { width: 720px; height: 720px; top: -300px; right: -160px; left: auto; transform: none; }
.hero .glow--cyan { width: 440px; height: 440px; top: 200px; right: -60px; opacity: 0.34; }

.hero__top { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.hero__copy { text-align: left; }
.hero h1 { font-size: var(--text-hero); font-weight: var(--fw-black); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.hero__sub { margin: var(--space-6) 0 0; max-width: 52ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-secondary); }
.hero__cta { display: flex; gap: var(--space-4); justify-content: flex-start; flex-wrap: wrap; margin-top: var(--space-10); }
.hero__visual { position: relative; width: 100%; max-width: 540px; margin-inline: auto; }
.hero__art { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.hero__art::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(52,99,241,0.40), rgba(10,241,255,0.10) 45%, transparent 70%);
  filter: blur(46px);
}
.hero__art canvas { position: relative; z-index: 1; display: block; width: 100% !important; height: 100% !important; }
.hero__art-fallback { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; }
.hero__art-fallback svg { width: 78%; height: 78%; filter: drop-shadow(0 0 22px rgba(10,241,255,0.30)); }
.hero__art.webgl-ready .hero__art-fallback { display: none; }
.hero__art-label {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(8,8,26,0.55); border: 1px solid var(--surface-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: var(--text-xs); font-weight: var(--fw-medium); color: var(--text-secondary);
}
.hero__art-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero__stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: clamp(48px, 7vw, 88px); }
.stat {
  text-align: center; padding: var(--space-6) var(--space-4); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.stat__label { margin-top: 12px; font-size: var(--text-sm); color: var(--text-muted); }

/* Unified metric lockup (hero ribbon + performance) — number dominant,
   prefix + unit secondary, baseline-aligned, never wraps. */
.metric {
  display: inline-flex; align-items: baseline; gap: 0.06em; white-space: nowrap;
  font-family: var(--font-display); font-weight: var(--fw-black); line-height: 1;
  letter-spacing: -0.03em; color: var(--text-primary);
}
.metric__pre { font-size: 0.46em; font-weight: var(--fw-bold); color: var(--text-muted); letter-spacing: 0; }
.metric__val { font-variant-numeric: tabular-nums; }
.metric__unit { font-size: 0.4em; font-weight: var(--fw-bold); letter-spacing: 0.01em; color: var(--light-blue); }
.metric--live .metric__unit { color: var(--cyan); }
.stat .metric { font-size: clamp(2rem, 3.6vw, 2.9rem); justify-content: center; }
.perf-card .metric { font-size: clamp(2.4rem, 4.6vw, 3.4rem); }

/* ============================================================
   PROBLEM — the first 100 miles
   ============================================================ */
.problem { background: var(--bg-page-2); }
.problem__head { max-width: 760px; }
.pipeline { margin-top: clamp(40px,6vw,72px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: stretch; }
.pipe-step { position: relative; padding: var(--space-6); border-radius: var(--radius-lg); border: 1px dashed var(--surface-line-2); background: rgba(255,255,255,0.02); text-align: center; }
.pipe-step .n { font-family: var(--font-display); font-size: var(--text-sm); font-weight: var(--fw-bold); color: var(--text-muted); }
.pipe-step h4 { font-size: var(--text-md); margin-top: 6px; color: var(--text-primary); font-weight: var(--fw-bold); }
.pipe-step p { font-size: var(--text-sm); margin-top: 6px; }
.pipe-step--bad { border-color: rgba(229,72,77,0.4); }
.pipe-step--good { border-style: solid; border-color: rgba(52,99,241,0.5); background: var(--accent-soft); }
.pipe-arrow { align-self: center; color: var(--text-muted); display: grid; place-items: center; }
.problem__callout { margin-top: var(--space-10); display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap; padding: var(--space-6) var(--space-8); border-radius: var(--radius-lg); background: var(--gradient-blue); box-shadow: var(--glow-blue); }
.problem__callout .big { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(2.4rem,5vw,3.6rem); color: #fff; line-height: 1; }
.problem__callout p { color: rgba(255,255,255,0.92); font-size: var(--text-md); max-width: 52ch; }

/* ============================================================
   SOLUTION — GPU Liquidity (signature diagram)
   ============================================================ */
.solution { overflow: hidden; }
.solution .glow--blue { width: 620px; height: 620px; bottom: -260px; left: -160px; opacity: 0.4; }
.diagram { margin-top: clamp(40px,6vw,72px); position: relative; }
.diagram svg { width: 100%; height: auto; }
.diagram__legend { display: flex; gap: var(--space-6); flex-wrap: wrap; justify-content: center; margin-top: var(--space-8); }
.legend-item { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-sm); color: var(--text-secondary); }
.legend-item .swatch { width: 14px; height: 14px; border-radius: 4px; }

/* ============================================================
   HOW IT WORKS — bento
   ============================================================ */
.how__grid { margin-top: clamp(40px,6vw,72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.how-card h3 { font-size: var(--text-h3); margin: var(--space-5) 0 var(--space-3); }
.how-card .tag { font-size: var(--text-xs); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--accent-electric); }
.how-card p { font-size: var(--text-base); }

/* ============================================================
   PILLARS — bento grid
   ============================================================ */
.pillars { background: var(--bg-page-2); }
.pillars__grid { margin-top: clamp(40px,6vw,72px); display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: var(--space-5); }
.pillar { grid-column: span 2; display: flex; flex-direction: column; }
.pillar--wide { grid-column: span 3; }
.pillar--feature { grid-column: span 3; background: var(--gradient-blue); border-color: transparent; box-shadow: var(--glow-blue); }
.pillar--feature h3, .pillar--feature li, .pillar--feature p { color: #fff; }
.pillar h3 { font-size: var(--text-xl); margin: var(--space-4) 0 var(--space-3); color: var(--text-primary); }
.pillar p { font-size: var(--text-sm); }
.pillar ul { list-style: none; padding: 0; margin-top: auto; display: grid; gap: 10px; padding-top: var(--space-5); }
.pillar li { display: flex; gap: 10px; font-size: var(--text-sm); align-items: flex-start; }
.pillar li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent-electric); }
.pillar--feature li svg { color: var(--cyan); }

/* ============================================================
   PERFORMANCE — counters
   ============================================================ */
.perf__grid { margin-top: clamp(40px,6vw,72px); display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-5); }
.perf-card { text-align: center; padding-block: var(--space-10); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); }
.perf-card .cap { font-size: var(--text-sm); color: var(--text-muted); max-width: 22ch; }

/* ============================================================
   USE CASES — tabs
   ============================================================ */
.uc__tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: clamp(36px,5vw,56px); }
.uc__tab { padding: 12px 20px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.04); border: 1px solid var(--surface-line); color: var(--text-secondary); font-size: var(--text-sm); font-weight: var(--fw-medium); transition: all var(--dur-normal); }
.uc__tab[aria-selected="true"] { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(52,99,241,0.35); }
.uc__panels { margin-top: var(--space-8); position: relative; }
.uc__panel { display: none; }
.uc__panel.active { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-10); align-items: center; }
.uc__panel h3 { font-size: var(--text-h3); margin-bottom: var(--space-4); }
.uc__panel .industry { font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--accent-electric); font-weight: var(--fw-semibold); margin-bottom: var(--space-3); }
.uc__panel p { font-size: var(--text-md); }
.uc__metric { padding: var(--space-8); border-radius: var(--radius-xl); background: var(--gradient-blue); box-shadow: var(--glow-blue); text-align: center; }
.uc__metric .big { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(3rem,7vw,4.4rem); color: #fff; line-height: 1; letter-spacing: -0.03em; }
.uc__metric .lbl { color: rgba(255,255,255,0.9); margin-top: var(--space-3); font-size: var(--text-base); }

/* ============================================================
   DIFFERENTIATORS — comparison
   ============================================================ */
.compare { margin-top: clamp(40px,6vw,72px); border: 1px solid var(--surface-line); border-radius: var(--radius-xl); overflow: hidden; }
.compare__row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; }
.compare__row + .compare__row { border-top: 1px solid var(--surface-line); }
.compare__cell { padding: var(--space-5) var(--space-6); font-size: var(--text-sm); display: flex; align-items: center; gap: 10px; }
.compare__cell.head { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-base); color: var(--text-primary); }
.compare__cell.qumulo { background: var(--accent-soft); color: var(--text-primary); border-left: 1px solid var(--surface-line); border-right: 1px solid var(--surface-line); }
.compare__cell.legacy { color: var(--text-muted); }
.compare__cell.head.qumulo { color: #fff; background: var(--gradient-blue); }
.compare__cell svg { flex: none; width: 18px; height: 18px; }
.compare__cell .ok { color: var(--vibrant-green); }
.compare__cell .no { color: #E5484D; }

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.eco { background: var(--bg-page-2); }
.eco__groups { margin-top: clamp(40px,6vw,72px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.eco__group h4 { font-size: var(--text-md); color: var(--text-primary); margin-bottom: var(--space-2); }
.eco__group p { font-size: var(--text-sm); margin-bottom: var(--space-6); }
.eco__logos { display: flex; flex-wrap: wrap; gap: 12px; }
.eco__logo { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius-md); background: rgba(255,255,255,0.04); border: 1px solid var(--surface-line); font-size: var(--text-sm); color: var(--text-primary); font-weight: var(--fw-medium); }
.eco__logo img { width: 22px; height: 22px; object-fit: contain; }
.eco__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.eco__chip { padding: 10px 16px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.04); border: 1px solid var(--surface-line); font-size: var(--text-sm); color: var(--text-secondary); }

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing { position: relative; overflow: hidden; text-align: center; }
.closing .glow--blue { width: 720px; height: 720px; bottom: -380px; left: 50%; transform: translateX(-50%); opacity: 0.55; }
.closing__refrain { font-family: var(--font-display); font-weight: var(--fw-black); font-size: clamp(2.4rem,6vw,4.6rem); line-height: 1.04; letter-spacing: -0.03em; }
.closing__refrain span { display: block; }
.closing p { margin: var(--space-6) auto 0; max-width: 54ch; font-size: var(--text-md); }
.closing__cta { margin-top: var(--space-10); display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--surface-line); padding-block: var(--space-16) var(--space-10); }
.footer__top { display: flex; justify-content: space-between; gap: var(--space-10); flex-wrap: wrap; }
.footer__brand img { height: 30px; }
.footer__brand p { margin-top: var(--space-4); font-size: var(--text-sm); max-width: 34ch; }
.footer__cols { display: flex; gap: var(--space-16); flex-wrap: wrap; }
.footer__col h5 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-4); }
.footer__col a { display: block; font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 10px; transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--text-primary); }
.footer__bottom { margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid var(--surface-line); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: var(--text-muted); }
.footer__tag { color: var(--light-blue); font-weight: var(--fw-semibold); }

/* ============================================================
   REVEAL ANIMATIONS (JS-driven via .is-in)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   PAIN vs GAIN timeline (Problem section)
   ============================================================ */
.ways { margin-top: clamp(40px,6vw,72px); display: grid; gap: var(--space-8); }
.way__head { display: flex; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-4); flex-wrap: wrap; }
.way__label { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-lg); color: var(--text-primary); }
.way__verdict { font-size: var(--text-sm); font-weight: var(--fw-semibold); display: inline-flex; align-items: center; gap: 7px; }
.way__verdict svg { width: 16px; height: 16px; }
.way__verdict.bad { color: #FF8F6B; }
.way__verdict.good { color: var(--cyan); }
.track { display: flex; gap: 6px; height: 66px; }
.seg { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 18px; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--fw-semibold); color: #fff; overflow: hidden; }
.seg span, .seg small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg small { font-weight: var(--fw-regular); font-size: var(--text-xs); opacity: 0.82; margin-top: 2px; }
.seg--stage { background: linear-gradient(135deg, #E5484D 0%, #E8912B 130%); }
.seg--stage::after { content:""; position:absolute; inset:0; background: repeating-linear-gradient(135deg, rgba(0,0,0,0.10) 0 10px, transparent 10px 20px); pointer-events:none; }
.seg--idle { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px dashed var(--surface-line-2); }
.seg--connect { background: rgba(255,255,255,0.10); color: var(--text-secondary); padding: 0 12px; }
.seg--compute { background: var(--gradient-blue); box-shadow: var(--glow-blue), inset 0 1px 0 rgba(255,255,255,0.2); }
.way__note { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-secondary); }

/* ============================================================
   Section dividers + split intros (rhythm variation)
   ============================================================ */
.section-divider { display: flex; justify-content: center; padding-block: var(--space-4); }
.section-divider span { display: block; width: clamp(160px, 22vw, 280px); height: 2px; border-radius: 2px; background: var(--gradient-accent-line); box-shadow: 0 0 16px rgba(10,241,255,0.35); opacity: 0.7; }
.intro-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-10); align-items: end; }
.intro-split .section-sub { margin-top: 0; }
.live { color: var(--cyan); }

/* Grid children must be allowed to shrink (override min-width:auto) so wide
   non-wrapping content never expands a track past the viewport. */
.hero__stats > *, .pillars__grid > *, .how__grid > *, .perf__grid > *,
.compare__row > *, .eco__groups > *, .uc__panel.active > * { min-width: 0; }

/* ============================================================
   IMAGERY MOMENTS (custom Qumulo assets, treated to the art direction)
   ============================================================ */

/* Cursor spotlight — soft additive light tracking the pointer */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 500px; height: 500px; z-index: 90;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(52,99,241,0.16), rgba(10,241,255,0.05) 42%, transparent 70%);
  transition: opacity var(--dur-slow) var(--ease-standard);
  will-change: transform; mix-blend-mode: screen;
}
.cursor-glow.is-active { opacity: 1; }

/* Hero — high-res light-streak plate, screen-blended so only the light reads */
.hero__streaks {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../assets/images/bg-streaks.png") right -4% top 18% / 62% auto no-repeat;
  mix-blend-mode: screen; opacity: 0.7; will-change: transform;
}

/* Solution — generative geometry lattice behind the signature diagram
   (replaces the former bg-mesh image; pure SVG/CSS — slow counter-rotating
   polygons that complement the diagram's foreground pulses). */
.diagram > svg { position: relative; z-index: 1; }
.solution__geo {
  position: absolute; inset: 0; margin: auto; z-index: 0; pointer-events: none;
  width: min(560px, 72%); aspect-ratio: 1; opacity: 0.20; will-change: transform;
  -webkit-mask: radial-gradient(circle, #000 36%, transparent 72%);
          mask: radial-gradient(circle, #000 36%, transparent 72%);
}
.solution__geo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.solution__geo .geo-rot { stroke: url(#geoStroke); fill: none; }
.geo-rot { transform-origin: 300px 300px; transform-box: fill-box; }
.geo-rot--slow { animation: geoSpin 80s linear infinite; }
.geo-rot--rev  { animation: geoSpin 120s linear infinite reverse; }
.geo-hi {
  transform-origin: 300px 300px; transform-box: fill-box;
  stroke: var(--cyan); opacity: 0.85; animation: geoSpin 14s linear infinite;
}
@keyframes geoSpin { to { transform: rotate(360deg); } }

/* Generative canvas motifs (replace photography — see js/motifs.js) */
canvas.motif { display: block; width: 100%; height: 100%; }

/* "Three engines" cards — animated motif banner that melts into the card */
.how-card { overflow: hidden; }
.how-card__media {
  position: relative; height: 158px; margin: calc(-1 * clamp(24px, 3vw, 36px)) calc(-1 * clamp(24px, 3vw, 36px)) var(--space-5);
  background: radial-gradient(125% 150% at 72% -10%, rgba(52,99,241,0.20), transparent 62%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  transition: filter var(--dur-slow) var(--ease-out);
}
.how-card:hover .how-card__media { filter: brightness(1.25); }

/* Use-case metric — number over a subtle animated motif, re-revealed on tab switch */
.uc__metric { position: relative; overflow: hidden; }
.uc__metric-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.95; mix-blend-mode: screen; filter: brightness(1.4) contrast(1.1); pointer-events: none; }
.uc__metric::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(110% 120% at 50% 46%, rgba(4,18,61,0.5), rgba(4,18,61,0) 72%);
}
.uc__metric .big, .uc__metric .lbl { position: relative; z-index: 2; }
.uc__panel.active .uc__metric-bg { animation: ucReveal 0.9s var(--ease-out) both; }
@keyframes ucReveal { from { opacity: 0; } to { opacity: 0.95; } }

/* Closing — ambient particle field behind the refrain */
.closing__wash {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.7;
  -webkit-mask-image: radial-gradient(115% 95% at 50% 48%, #000 22%, transparent 78%);
          mask-image: radial-gradient(115% 95% at 50% 48%, #000 22%, transparent 78%);
}

/* ============================================================
   MOBILE-ONLY DIAGRAM (desktop SVG is illegible when shrunk)
   ============================================================ */
.diagram-m { display: none; margin-top: clamp(36px, 7vw, 56px); }
.diagram-m__row, .diagram-m__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.diagram-m__node, .diagram-m__core, .diagram-m__gpu {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  border-radius: var(--radius-md); padding: 14px 16px; font-family: var(--font-display);
  font-weight: var(--fw-bold); font-size: var(--text-sm); color: var(--text-primary);
  background: rgba(255,255,255,0.05); border: 1px solid var(--surface-line-2);
}
.diagram-m__node small, .diagram-m__core small { font-family: var(--font-body); font-weight: var(--fw-regular); font-size: var(--text-xs); color: var(--text-muted); }
.diagram-m__core { background: var(--gradient-blue); border-color: transparent; box-shadow: var(--glow-blue); text-align: center; align-items: center; color: #fff; }
.diagram-m__core small { color: var(--blue-300); }
.diagram-m__gpu { text-align: center; align-items: center; background: var(--accent-soft); }
.diagram-m__pipe { display: block; width: 2px; height: 30px; margin: 8px auto; background: var(--gradient-accent-line); position: relative; }
.diagram-m__pipe:has(em) { height: 44px; }
.diagram-m__pipe em {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  font-style: normal; font-size: var(--text-2xs); color: var(--text-muted);
  background: var(--bg-page); padding: 4px 12px; border-radius: var(--radius-pill); border: 1px solid var(--surface-line);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__top { grid-template-columns: 1fr; gap: var(--space-10); text-align: center; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__visual { order: 2; max-width: 400px; }
  .intro-split { grid-template-columns: 1fr; gap: var(--space-4); align-items: start; }
  .pillars__grid { grid-template-columns: repeat(4, 1fr); }
  .pillar, .pillar--wide, .pillar--feature { grid-column: span 2; }
  .uc__panel.active { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-arrow { transform: rotate(90deg); height: 28px; }
  .how__grid { grid-template-columns: 1fr; }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar, .pillar--wide, .pillar--feature { grid-column: span 1; }
  .perf__grid { grid-template-columns: repeat(2, 1fr); }
  .perf-card { padding-block: var(--space-6); }
  .eco__groups { grid-template-columns: 1fr; }
  .compare__cell { padding: var(--space-4); font-size: var(--text-xs); }
  .problem__callout { flex-direction: column; align-items: flex-start; }
  .footer__top { flex-direction: column; }
  .way__head { margin-bottom: var(--space-3); }
  /* Timeline keeps its PROPORTION on mobile — the whole point is "most of the
     bar is wasted." Stack vertically but let segment heights stay relative. */
  .track { height: auto; flex-direction: column; }
  .seg { padding: 14px 16px; min-height: 52px; }
  .seg--stage { flex: 0 0 132px !important; }
  .seg--idle   { flex: 0 0 44px !important; }
  .seg--connect{ flex: 0 0 44px !important; }
  .seg--compute{ flex: 0 0 132px !important; }
  /* Swap the desktop SVG flow for the legible mobile version */
  .diagram { display: none; }
  .diagram-m { display: block; }
  /* Tame full-bleed washes on small screens */
  .hero__streaks { background-size: 120% auto; background-position: right -10% top 14%; opacity: 0.5; }
  .how-card__media { height: 132px; }
}
@media (max-width: 520px) {
  .perf__grid { grid-template-columns: 1fr; }
}

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

/* ============================ DEMO REQUEST MODAL ============================ */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4, 6, 20, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: modalFade 0.2s ease; }

/* Glassy gradient surface to match .card, plus a blue glow. */
.modal__dialog {
  position: relative; width: 100%; max-width: 440px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(52,99,241,0.18) 0%, rgba(52,99,241,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.022) 60%),
    var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-xl);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), var(--shadow-lg), 0 0 70px rgba(52,99,241,0.28);
  padding: clamp(26px, 4vw, 38px); color: var(--text-primary);
  animation: modalPop 0.26s cubic-bezier(0.2, 0.8, 0.3, 1);
}
/* Brand accent line across the top edge. */
.modal__dialog::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-accent-line);
}
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent;
  color: var(--text-muted); font-size: 22px; line-height: 1; cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
}
.modal__close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); border-color: var(--surface-line-2); }
.modal__title { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--text-3xl); line-height: 1.05; margin: 0 0 8px; }
.modal__sub { color: var(--text-secondary); margin: 0 0 24px; font-size: var(--text-sm); max-width: 34ch; }

.demo-form { display: flex; flex-direction: column; gap: 18px; }
.demo-form__field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.demo-form__field > span, .demo-form__field legend {
  font-size: var(--text-xs); font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); padding: 0;
}
.demo-form input[type="text"], .demo-form input[type="email"], .demo-form input[type="tel"] {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--surface-line-2);
  color: var(--text-primary); font: inherit; font-size: var(--text-base);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.demo-form input::placeholder { color: var(--text-muted); }
.demo-form input:focus { outline: none; border-color: var(--accent); background: rgba(52,99,241,0.06); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Email / Phone as a segmented pill control. */
.demo-form__methods { gap: 10px; }
.demo-form__methods .demo-form__choices { display: flex; gap: 10px; }
.demo-form__radio {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; border-radius: var(--radius-pill); cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--surface-line-2);
  font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-secondary);
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.demo-form__radio:hover { border-color: var(--surface-line-2); background: rgba(255,255,255,0.07); color: var(--text-primary); }
.demo-form__radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.demo-form__radio::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--surface-line-2); transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.demo-form__radio:has(input:checked) {
  color: var(--text-primary); border-color: var(--accent);
  background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(52,99,241,0.4);
}
.demo-form__radio:has(input:checked)::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 5px, transparent 6px); }
.demo-form__radio:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }

.demo-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-form__submit { margin-top: 2px; width: 100%; }
.demo-form__submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: 0 8px 24px rgba(52,99,241,0.35); }
.demo-form__status { margin: -6px 0 0; font-size: var(--text-sm); color: var(--text-secondary); }
.demo-form__status:empty { display: none; }
.demo-form__status.is-error { color: var(--orange); }
.demo-form__status.is-success { color: var(--vibrant-green); }
.demo-form__fallback { margin: 2px 0 0; font-size: var(--text-xs); color: var(--text-muted); text-align: center; }
.demo-form__fallback a { color: var(--light-blue); }
.demo-form__fallback a:hover { color: var(--cyan); }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__dialog { max-width: none; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
}
