/* ============================================================
   QuantHub — Decoding Markets
   Dark terminal-grade fintech aesthetic
   ============================================================ */

:root {
  --bg: #050810;
  --bg-grad: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91, 180, 255, 0.10), transparent 70%), #050810;
  --surface-1: #0A0F1F;
  --surface-2: #10182E;
  --surface-3: #18223D;
  --border: #1B2742;
  --border-bright: #2A3C66;
  --border-glow: rgba(91, 180, 255, 0.25);

  --text: #EAF0FC;
  --text-2: #A8B3CE;
  --text-3: #6B7896;
  --text-4: #4A5471;

  --accent: #5BB4FF;
  --accent-bright: #88CEFF;
  --accent-deep: #2E7BD6;
  --accent-glow: rgba(91, 180, 255, 0.18);

  --green: #00D89A;
  --green-dim: #007E5C;
  --amber: #FFC857;
  --red: #FF6B6B;
  --red-dim: #6B2828;

  --radius: 4px;
  --radius-lg: 10px;
  --radius-xl: 18px;

  --font-display: "Inter Tight", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", monospace;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 60px rgba(91, 180, 255, 0.18);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

/* selection */
::selection { background: var(--accent); color: var(--bg); }

/* scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-bright); }

/* ---------- layout ---------- */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.eyebrow.no-line::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 400; }
h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; font-weight: 400; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; font-weight: 500; }
h4 { font-size: 16px; line-height: 1.3; font-weight: 600; }

p { margin: 0; color: var(--text-2); }
.lede { font-size: 18px; color: var(--text-2); line-height: 1.55; max-width: 56ch; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* korean font weight tuning */
:root[lang="ko"] body { font-family: var(--font-body); letter-spacing: -0.01em; }
:root[lang="ko"] h1 { letter-spacing: -0.04em; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 16, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(91, 180, 255, 0.4) 30%,
    var(--accent) 50%,
    rgba(91, 180, 255, 0.4) 70%,
    transparent 100%);
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(91, 180, 255, 0.5);
  border-radius: 2px;
  pointer-events: none;
  animation: topbarSignal 5.5s cubic-bezier(.35,.08,.65,.92) infinite;
}
@keyframes topbarSignal {
  0%   { left: -60px; opacity: 0; }
  3%   { opacity: 1; }
  18%  { left: calc(100% + 60px); opacity: 1; }
  20%  { opacity: 0; }
  /* pause */
  45%  { left: -60px; opacity: 0; }
  48%  { opacity: 1; }
  58%  { left: calc(100% + 60px); opacity: 1; }
  60%  { opacity: 0; }
  /* longer pause */
  100% { left: -60px; opacity: 0; }
}
.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 30px;
  background: linear-gradient(90deg, transparent, var(--accent-bright) 50%, transparent);
  box-shadow: 0 0 10px var(--accent-bright);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  animation: topbarSignalAlt 7.2s cubic-bezier(.3,.05,.7,.95) infinite;
  animation-delay: 1.8s;
}
@keyframes topbarSignalAlt {
  0%   { left: -30px; opacity: 0; }
  2%   { opacity: 0.9; }
  10%  { left: calc(100% + 30px); opacity: 0.9; }
  12%  { opacity: 0; }
  100% { left: -30px; opacity: 0; }
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-q { color: var(--text); }
.brand-h { color: var(--text-2); }
.brand-cursor {
  display: inline-block;
  width: 5px;
  height: 15px;
  background: var(--accent);
  margin-left: 5px;
  align-self: center;
  transform: translateY(1px);
  animation: qh-cursor-blink 1.1s steps(2) infinite;
  box-shadow: 0 0 6px rgba(91, 180, 255, 0.45);
}
@keyframes qh-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.brand-mark {
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-block;
}
.brand-mark svg { display: block; }
.brand-by {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-left: 14px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  font-weight: 400;
  align-self: center;
  transform: translateY(0);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: 28px;
}
.nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface-1);
}
.lang-switch button {
  padding: 5px 12px;
  color: var(--text-3);
  border-radius: 999px;
  transition: all .15s;
  letter-spacing: 0.12em;
}
.lang-switch button.active {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #051022;
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-bright); box-shadow: 0 0 24px var(--accent-glow); }
.btn-ghost {
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface-1);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-bright); }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-arrow {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

@media (max-width: 980px) {
  .nav { display: none; }
  .brand-by { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  /* grid lines */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91,180,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,180,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 80%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 24px;
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}
.hero h1 .ns-in {
  font-family: var(--font-mono);
  font-size: 0.38em;
  letter-spacing: 0.04em;
  color: var(--text-3);
  font-style: italic;
  font-weight: 400;
  vertical-align: middle;
  display: inline-block;
  padding-left: 18px;
  padding-right: 14px;
}
.hero h1 .ns {
  font-family: var(--font-mono);
  font-size: 0.5em;
  letter-spacing: 0;
  color: var(--text-3);
  vertical-align: middle;
  display: inline-block;
}

.hero-lede {
  font-size: 19px;
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* hero side panel - live ticker */
.terminal {
  background: linear-gradient(180deg, rgba(16, 24, 46, 0.7), rgba(10, 15, 31, 0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}

/* hero side panel - image hero visual (replaces live ticker) */
.hero-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-1);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.04);
}
.hero-visual .hv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% center;
  filter: saturate(1.05) brightness(0.78) contrast(1.05);
  z-index: 0;
}
.hero-visual .hv-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 18% 28%, transparent 0%, rgba(5,8,16,0.0) 25%, rgba(5,8,16,0.55) 75%, rgba(5,8,16,0.95) 100%),
    linear-gradient(155deg, rgba(91,180,255,0.10) 0%, transparent 35%, rgba(5,8,16,0.55) 100%),
    linear-gradient(180deg, rgba(10,15,31,0.20) 0%, rgba(5,8,16,0.10) 35%, rgba(5,8,16,0.55) 100%);
}
.hero-visual .hv-grid {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91,180,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,180,255,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: screen;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 40%, transparent 90%);
}
.hero-visual .hv-scan {
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(91,180,255,0.10), transparent);
  animation: hvscan 6s linear infinite;
}
@keyframes hvscan {
  0% { transform: translateY(-10%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(110%); opacity: 0; }
}

.hero-visual .hv-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(91, 180, 255, 0.12);
  background: linear-gradient(180deg, rgba(5,8,16,0.65), rgba(5,8,16,0.15));
  backdrop-filter: blur(6px);
}
.hero-visual .hv-head .dots { display: flex; gap: 6px; }
.hero-visual .hv-head .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-bright);
}

.hero-visual .hv-callout {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(5,8,16,0.72);
  border: 1px solid var(--border-bright);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.hero-visual .hv-callout .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.4s infinite;
}
.hero-visual .hv-callout .v { color: var(--accent); }
.hero-visual .hv-callout-a {
  top: 96px;
  left: 22px;
}
.hero-visual .hv-callout-b {
  top: 168px;
  right: 22px;
}

.hero-visual .hv-stats {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border-bright);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.hero-visual .hv-stat {
  background: rgba(5,8,16,0.78);
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
}
.hero-visual .hv-stat .k {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-visual .hv-stat .v {
  font-size: 16px;
  color: var(--text);
}
.hero-visual .hv-stat .v.green { color: var(--green); }

@media (max-width: 540px) {
  .hero-visual .hv-callout-a { top: 80px; left: 16px; font-size: 10px; }
  .hero-visual .hv-callout-b { top: 132px; right: 16px; font-size: 10px; }
  .hero-visual .hv-stat .v { font-size: 14px; }
}
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.terminal-head .dots { display: flex; gap: 6px; }
.terminal-head .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-3);
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-3);
  text-transform: uppercase;
}
.terminal-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.terminal-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.ticker-block {
  padding: 22px;
}
.ticker-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.ticker-rows {
  display: grid;
  gap: 8px;
}
.ticker-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(91, 180, 255, 0.06);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
}
.ticker-row .sym { color: var(--text); font-weight: 600; }
.ticker-row .name { color: var(--text-3); font-size: 11px; letter-spacing: 0.05em; }
.ticker-row .price { color: var(--text); font-variant-numeric: tabular-nums; }
.ticker-row .chg { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
.ticker-row .chg.up { color: var(--green); }
.ticker-row .chg.down { color: var(--red); }
.ticker-row .lat { color: var(--accent); font-size: 11px; }

.ticker-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.ticker-foot .stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ticker-foot .stat .k { color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.ticker-foot .stat .v { color: var(--text); font-size: 14px; }
.ticker-foot .stat .v.green { color: var(--green); }

/* ---------- metrics strip ---------- */
.metrics {
  position: relative;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10,15,31,0.6), rgba(5,8,16,0.6));
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
@media (max-width: 820px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.metric-value .unit {
  font-family: var(--font-mono);
  font-size: 0.36em;
  color: var(--text-3);
  margin-left: 6px;
  letter-spacing: 0.05em;
  font-weight: 400;
  vertical-align: 0.5em;
}
.metric-value.accent { color: var(--accent); }
.metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 8px;
}
.metric-sub { font-size: 12px; color: var(--text-4); margin-top: 2px; }

/* ---------- generic section ---------- */
section.block {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 720px) {
  section.block { padding: 80px 0; }
}
.block-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.block-head .eyebrow { margin-bottom: 20px; }
.block-head h2 { margin-bottom: 20px; }

/* ---------- problem section ---------- */
.problem {
  background: linear-gradient(180deg, transparent, rgba(10,15,31,0.4));
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 980px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pain-grid { grid-template-columns: 1fr; }
}
.pain {
  background: var(--surface-1);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pain-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.1em;
}
.pain-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pain-desc { font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* ---------- architecture / pipeline ---------- */
.pipeline {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.pipeline::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 200px at 20% 30%, rgba(91, 180, 255, 0.08), transparent 70%),
    radial-gradient(circle 200px at 80% 70%, rgba(0, 216, 154, 0.06), transparent 70%);
  pointer-events: none;
}
.pipe-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pipe-row { grid-template-columns: 1fr 1fr; }
}
.pipe-node {
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: all .2s;
  overflow: hidden;
}
/* sequential sweep highlight on each node */
.pipe-node::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(91, 180, 255, 0.10) 35%,
    rgba(91, 180, 255, 0.20) 50%,
    rgba(91, 180, 255, 0.10) 65%,
    transparent 100%);
  pointer-events: none;
  animation: pipeNodeSweep 4.5s cubic-bezier(.55,.08,.45,.92) infinite;
}
.pipe-node:nth-child(1)::after { animation-delay: 0s; }
.pipe-node:nth-child(2)::after { animation-delay: 0.45s; }
.pipe-node:nth-child(3)::after { animation-delay: 0.90s; }
.pipe-node:nth-child(4)::after { animation-delay: 1.35s; }
.pipe-node:nth-child(5)::after { animation-delay: 1.80s; }

@keyframes pipeNodeSweep {
  0%   { left: -40%; opacity: 0; }
  6%   { opacity: 1; }
  16%  { left: 100%; opacity: 1; }
  20%  { opacity: 0; }
  100% { left: 100%; opacity: 0; }
}

/* top border accent travels through too */
.pipe-node::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 1.5px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 8px var(--accent);
  pointer-events: none;
  animation: pipeNodeBorder 4.5s cubic-bezier(.55,.08,.45,.92) infinite;
}
.pipe-node:nth-child(1)::before { animation-delay: 0s; }
.pipe-node:nth-child(2)::before { animation-delay: 0.45s; }
.pipe-node:nth-child(3)::before { animation-delay: 0.90s; }
.pipe-node:nth-child(4)::before { animation-delay: 1.35s; }
.pipe-node:nth-child(5)::before { animation-delay: 1.80s; }

@keyframes pipeNodeBorder {
  0%   { width: 0; left: 0; opacity: 0; }
  6%   { opacity: 1; }
  16%  { width: 100%; left: 0; opacity: 1; }
  18%  { width: 100%; opacity: 1; }
  20%  { opacity: 0; }
  100% { width: 100%; opacity: 0; }
}
.pipe-node:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow);
  z-index: 2;
}
.pipe-node > * { position: relative; z-index: 1; }
.pipe-node .ico {
  width: 28px; height: 28px;
  color: var(--accent);
  margin-bottom: 8px;
}
.pipe-node .ttl {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.pipe-node .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.pipe-node .lat {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.pipe-arrow {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  color: var(--border-bright);
  z-index: 1;
  overflow: visible;
}
.pipe-arrow path {
  stroke-dasharray: 4 4;
  stroke-dashoffset: 0;
  animation: pipeArrowFlow 1.2s linear infinite;
}
@keyframes pipeArrowFlow {
  to { stroke-dashoffset: -16; }
}
@media (max-width: 900px) {
  .pipe-arrow { display: none; }
}

.pipeline-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pipeline-foot .stage { color: var(--green); }
.pipeline-foot .stage.mute { color: var(--text-4); }

/* ---------- hardware feature ---------- */
.hw-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hw-feature { grid-template-columns: 1fr; gap: 40px; }
}

.hw-image {
  position: relative;
  aspect-ratio: 9 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-lg);
}
.hw-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.55) contrast(1.15) hue-rotate(180deg);
}
.hw-image-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,16,0) 0%, rgba(5,8,16,0.4) 60%, rgba(5,8,16,0.9) 100%),
    linear-gradient(180deg, rgba(91,180,255,0.18) 0%, transparent 30%, rgba(5,8,16,0.5) 100%);
  pointer-events: none;
}
.hw-image-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91,180,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,180,255,0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
}
.hw-image-tag {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(5,8,16,0.65);
  border: 1px solid var(--border-bright);
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hw-content h2 { margin: 16px 0 24px; }
.hw-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}
@media (max-width: 540px) { .hw-specs { grid-template-columns: 1fr; } }
.hw-spec {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.015);
}
.hw-spec .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.hw-spec .v {
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-mono);
}

/* ---------- services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services { grid-template-columns: 1fr; } }

.service {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  overflow: hidden;
}
.service-icon {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 110px;
  height: 110px;
  color: var(--accent);
  opacity: 0.10;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.service-icon svg { width: 100%; height: 100%; display: block; }
.service:hover .service-icon {
  opacity: 0.20;
  transform: translate(-2px, 2px);
}
.service.featured .service-icon { opacity: 0.16; }
.service.featured:hover .service-icon { opacity: 0.26; }
.service:hover {
  border-color: var(--border-bright);
  background: var(--surface-2);
}
.service .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.1em;
}
.service h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.service p { font-size: 13px; line-height: 1.55; color: var(--text-3); }
.service .tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* Service layout: 4 + 3 rows, varied widths */
.service.s-1 { grid-column: span 4; }
.service.s-2 { grid-column: span 4; }
.service.s-3 { grid-column: span 4; }
.service.s-4 { grid-column: span 6; }
.service.s-5 { grid-column: span 6; }
.service.s-6 { grid-column: span 5; }
.service.s-7 { grid-column: span 7; }
@media (max-width: 900px) {
  .service.s-1, .service.s-2, .service.s-3,
  .service.s-4, .service.s-5, .service.s-6, .service.s-7 { grid-column: span 1; }
}

.service.featured {
  background: linear-gradient(180deg, rgba(91,180,255,0.08), rgba(91,180,255,0.02));
  border-color: var(--border-bright);
}
.service.featured .tag { color: var(--green); }

/* ---------- order session HA (DXTECH signature) ---------- */
.ha-feature {
  margin-top: 40px;
  background: var(--surface-1);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 400px at 100% 0%, rgba(91,180,255,0.07), transparent 60%),
    linear-gradient(180deg, rgba(91,180,255,0.04), rgba(10,15,31,0.4));
}
.ha-feature::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91,180,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,180,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.4;
}
.ha-feature > * { position: relative; }

.ha-head { max-width: 880px; margin-bottom: 32px; }
.ha-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 4px 10px;
  border: 1px solid rgba(91,180,255,0.3);
  border-radius: 999px;
  margin-bottom: 16px;
}
.ha-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.ha-lede { font-size: 15px; line-height: 1.55; color: var(--text-2); margin: 0; max-width: 760px; }

/* contrast strip */
.ha-contrast {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 36px;
}
@media (max-width: 820px) {
  .ha-contrast { grid-template-columns: 1fr; }
  .ha-vs { display: none; }
}
.ha-side {
  background: rgba(10,15,31,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.ha-side.accent {
  border-color: rgba(91,180,255,0.35);
  background: linear-gradient(180deg, rgba(91,180,255,0.08), rgba(10,15,31,0.4));
}
.ha-side-k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); margin-bottom: 8px; }
.ha-side.accent .ha-side-k { color: var(--blue); }
.ha-side-t { font-family: var(--font-display); font-size: 15px; color: var(--text-1); margin-bottom: 6px; letter-spacing: -0.01em; }
.ha-side-s { font-size: 13px; line-height: 1.55; color: var(--text-3); }
.ha-vs {
  align-self: center;
  justify-self: center;
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.1em;
}

/* timeline */
.ha-timeline { margin: 56px 8px 36px; padding: 0 0 24px; }.ha-tl-track {
  position: relative;
  height: 18px;
  border-radius: 4px;
  background: rgba(10,15,31,0.6);
  border: 1px solid var(--border);
}
.ha-tl-band {
  position: absolute; top: 0; bottom: 0;
  border-radius: 4px;
}
.ha-tl-band-1 {
  left: 0;
  background: linear-gradient(90deg, rgba(74,222,128,0.18), rgba(74,222,128,0.32));
  animation: haBand1Drift 7.3s ease-in-out infinite;
}
.ha-tl-band-2 {
  background: linear-gradient(90deg, rgba(255,170,87,0.20), rgba(255,107,107,0.28));
  animation: haBand2Drift 7.3s ease-in-out infinite;
}
.ha-tl-boundary {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 1px;
  background: rgba(91,180,255,0.55);
  box-shadow: 0 0 6px rgba(91,180,255,0.6);
  animation: haBoundaryDrift 7.3s ease-in-out infinite;
}
@keyframes haBand1Drift {
  0%   { width: calc(50% - 16px); }
  14%  { width: calc(50% - 4px); }
  27%  { width: calc(50% - 18px); }
  41%  { width: calc(50% + 7px); }
  56%  { width: calc(50% + 18px); }
  71%  { width: calc(50% + 3px); }
  84%  { width: calc(50% + 13px); }
  100% { width: calc(50% - 16px); }
}
@keyframes haBand2Drift {
  0%   { left: calc(50% - 16px); width: calc(50% + 16px); }
  14%  { left: calc(50% - 4px);  width: calc(50% + 4px); }
  27%  { left: calc(50% - 18px); width: calc(50% + 18px); }
  41%  { left: calc(50% + 7px);  width: calc(50% - 7px); }
  56%  { left: calc(50% + 18px); width: calc(50% - 18px); }
  71%  { left: calc(50% + 3px);  width: calc(50% - 3px); }
  84%  { left: calc(50% + 13px); width: calc(50% - 13px); }
  100% { left: calc(50% - 16px); width: calc(50% + 16px); }
}
@keyframes haBoundaryDrift {
  0%   { left: calc(50% - 16px); }
  14%  { left: calc(50% - 4px); }
  27%  { left: calc(50% - 18px); }
  41%  { left: calc(50% + 7px); }
  56%  { left: calc(50% + 18px); }
  71%  { left: calc(50% + 3px); }
  84%  { left: calc(50% + 13px); }
  100% { left: calc(50% - 16px); }
}
.ha-tl-mark {
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  white-space: nowrap;
}
.ha-tl-mark b { color: var(--text-2); font-weight: 500; }
.ha-tl-pin {
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--blue);
  white-space: nowrap;
  padding: 3px 8px;
  background: rgba(91,180,255,0.10);
  border: 1px solid rgba(91,180,255,0.35);
  border-radius: 4px;
}
.ha-tl-pin::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 5px; height: 5px;
  margin-top: 4px;
  background: rgba(91,180,255,0.55);
  border-radius: 50%;
  transform: translateX(-50%);
}

/* 4.6 annotated event labels on the same timeline */
.ha-tl-events {
  position: relative;
  margin-top: 60px;
  height: 100px;
}
.ha-tl-event {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  width: 130px;
  max-width: 16vw;
}
/* edge-anchor first and last so labels don't get cut off by the timeline edges */
.ha-tl-event:first-child {
  transform: translateX(0);
  align-items: flex-start;
  text-align: left;
}
.ha-tl-event:first-child::before { left: 0; transform: none; }
.ha-tl-event:last-child {
  transform: translateX(-100%);
  align-items: flex-end;
  text-align: right;
}
.ha-tl-event:last-child::before { left: auto; right: 0; transform: none; }
.ha-tl-event::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 1px;
  height: 18px;
  background: var(--border-bright);
  transform: translateX(-50%);
}
/* stagger close-set events to avoid label overlap (0s vs 1s, only 9% apart) */
.ha-tl-event:nth-child(2) {
  top: 36px;
}
.ha-tl-event:nth-child(2)::before {
  top: -58px;
  height: 54px;
}
.ha-tl-event-k {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-4);
}
.ha-tl-event-t {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-2);
  font-family: var(--font-display);
}
@media (max-width: 820px) {
  .ha-tl-events { display: none; }
  .ha-timeline { padding: 0 0 36px; }
}

/* 4.2 trigger event list */
.ha-trig {
  background: rgba(10,15,31,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ha-trig-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.ha-trig-row:last-child { border-bottom: 0; }
.ha-trig-name { color: var(--text-2); }
.ha-trig-time { font-family: var(--font-mono); font-size: 12px; color: var(--text-1); }
.ha-trig-note {
  margin-top: 14px;
  padding: 10px 16px;
  font-size: 11.5px;
  color: var(--blue);
  letter-spacing: 0.04em;
  background: rgba(91,180,255,0.06);
  border-left: 2px solid var(--blue);
  border-radius: 0 4px 4px 0;
}

/* 4.5 mode comparison */
.ha-cmp {
  background: rgba(10,15,31,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ha-cmp-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr;
  gap: 14px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.ha-cmp-row:last-child { border-bottom: 0; }
.ha-cmp-head {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-1);
  background: rgba(255,255,255,0.02);
}
.ha-cmp-head > div:nth-child(2) { color: var(--green); }
.ha-cmp-head > div:nth-child(3) { color: #ffaa57; }
.ha-cmp-k {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-4);
}
.ha-cmp-row .mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-1); }
@media (max-width: 820px) {
  .ha-cmp-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 14px; }
  .ha-cmp-head { display: none; }
  .ha-cmp-k { color: var(--text-2); font-size: 13px; margin-bottom: 2px; }
}

/* two modes */
.ha-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 820px) { .ha-modes { grid-template-columns: 1fr; } }
.ha-mode {
  background: rgba(10,15,31,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.ha-mode-2 {
  border-color: rgba(255,170,87,0.30);
  background: linear-gradient(180deg, rgba(255,170,87,0.05), rgba(10,15,31,0.4));
}
.ha-mode-tag {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.ha-mode-2 .ha-mode-tag { color: #ffaa57; }
.ha-mode-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.ha-mode-q { font-size: 13px; color: var(--text-3); font-style: italic; margin-bottom: 16px; }
.ha-mode ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.ha-mode li { display: flex; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.ha-mode li .k { color: var(--blue); flex-shrink: 0; }
.ha-mode-2 li .k { color: #ffaa57; }
.ha-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ha-kpi > div { display: flex; flex-direction: column; gap: 4px; }
.ha-kpi .k { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); }
.ha-kpi .v { font-family: var(--font-mono); font-size: 14px; color: var(--text-1); }

/* four pillars */
.ha-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 980px) { .ha-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ha-pillars { grid-template-columns: 1fr; } }
.ha-pillar {
  background: rgba(10,15,31,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
}
.ha-pillar-num { font-size: 11px; color: var(--text-4); letter-spacing: 0.12em; margin-bottom: 8px; }
.ha-pillar-t { font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; line-height: 1.3; }
.ha-pillar-d { font-size: 12.5px; color: var(--text-3); line-height: 1.55; }

.ha-takeaway {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: rgba(10,15,31,0.5);
  border-left: 2px solid var(--blue);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  line-height: 1.55;
}

/* ---------- ha sub-sections (3.4–3.9) ---------- */
.ha-sub {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.ha-sub-h { max-width: 820px; margin-bottom: 22px; }
.ha-sub-t {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 10px;
}
.ha-sub-d { font-size: 14px; line-height: 1.6; color: var(--text-3); margin: 0; }

/* 3.4 route table */
.ha-routes {
  background: rgba(10,15,31,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ha-route-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.2fr 1fr 1.2fr;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.ha-route-row:last-child { border-bottom: 0; }
.ha-route-head {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: rgba(255,255,255,0.02);
}
.ha-route-hot {
  background: linear-gradient(90deg, rgba(255,107,107,0.05), transparent);
  color: var(--text-1);
}
.ha-route-hot .mono { color: var(--text-1); }
.ha-route-row .mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
@media (max-width: 820px) {
  .ha-route-row { grid-template-columns: 1fr; gap: 4px; }
  .ha-route-head { display: none; }
}

/* 3.5 patterns */
.ha-patterns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 1100px) { .ha-patterns { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .ha-patterns { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .ha-patterns { grid-template-columns: 1fr; } }
.ha-pattern {
  background: rgba(10,15,31,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
}
.ha-pattern-n { font-size: 10.5px; color: var(--text-4); letter-spacing: 0.1em; margin-bottom: 8px; }
.ha-pattern-t { font-family: var(--font-display); font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em; line-height: 1.35; color: var(--text-1); margin-bottom: 8px; min-height: 36px; }
.ha-pattern-d { font-size: 12px; line-height: 1.55; color: var(--text-3); }

/* 3.6 techniques */
.ha-techs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 1100px) { .ha-techs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .ha-techs { grid-template-columns: 1fr; } }
.ha-tech {
  background: linear-gradient(180deg, rgba(91,180,255,0.08), rgba(10,15,31,0.4));
  border: 1px solid rgba(91,180,255,0.4);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ha-tech-key {
  border-color: rgba(91,180,255,0.4);
  background: linear-gradient(180deg, rgba(91,180,255,0.08), rgba(10,15,31,0.4));
}
.ha-tech-n { font-size: 10.5px; color: var(--blue); letter-spacing: 0.1em; }
.ha-tech-key .ha-tech-n { color: var(--blue); }
.ha-tech-name { font-family: var(--font-display); font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--text-1); }
.ha-tech-solves { font-size: 12px; color: var(--text-3); line-height: 1.5; flex: 1; }
.ha-tech-diff {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-4);
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* 3.7 reconciliation matrix */
.ha-matrix {
  background: rgba(10,15,31,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ha-matrix-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  gap: 12px;
}
.ha-matrix-row:last-child { border-bottom: 0; }
.ha-matrix-head {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: rgba(255,255,255,0.02);
}
.ha-matrix-row .mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-1); }
.ha-mx-na { color: var(--text-4) !important; }
.ha-matrix-hot {
  background: linear-gradient(90deg, rgba(255,107,107,0.05), transparent);
}
@media (max-width: 720px) {
  .ha-matrix-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
  .ha-matrix-head { display: none; }
}

/* 3.8 asset reuse */
.ha-reuse {
  background: rgba(10,15,31,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ha-reuse-row {
  display: grid;
  grid-template-columns: 1fr 32px 1.4fr;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.ha-reuse-row:last-child { border-bottom: 0; }
.ha-reuse-head {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: rgba(255,255,255,0.02);
}
.ha-reuse-arrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--blue);
  text-align: center;
}
.ha-reuse-head .ha-reuse-arrow { color: transparent; }
@media (max-width: 720px) {
  .ha-reuse-row { grid-template-columns: 1fr; gap: 2px; }
  .ha-reuse-head { display: none; }
  .ha-reuse-arrow { text-align: left; }
}

/* 3.9 architecture */
.ha-arch {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 24px;
}
@media (max-width: 980px) { .ha-arch { grid-template-columns: 1fr; } }
.ha-arch-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 0;
}
.ha-arch-left { align-items: flex-end; padding-right: 0; }
.ha-arch-right { align-items: flex-start; padding-left: 0; }
.ha-arch-node {
  background: rgba(10,15,31,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  min-width: 160px;
}
.ha-arch-k { font-size: 11px; color: var(--text-4); letter-spacing: 0.08em; margin-bottom: 4px; }
.ha-arch-v { font-family: var(--font-display); font-size: 13px; color: var(--text-2); }
.ha-arch-wire {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--blue);
  padding: 4px 10px;
  border: 1px dashed rgba(91,180,255,0.4);
  border-radius: 2px;
}
@media (min-width: 981px) {
  .ha-arch-left { flex-direction: row; align-items: center; }
  .ha-arch-right { flex-direction: row; align-items: center; }
  .ha-arch-left .ha-arch-wire { margin-left: 12px; }
  .ha-arch-right .ha-arch-wire { margin-right: 12px; }
}
.ha-arch-line {
  flex: 1;
  height: 1px;
  min-width: 16px;
  background: linear-gradient(90deg, transparent, var(--border-bright) 20%, var(--border-bright) 80%, transparent);
  align-self: center;
}
@media (max-width: 980px) {
  .ha-arch-line { display: none; }
}
.ha-arch-box {
  background: linear-gradient(180deg, rgba(91,180,255,0.06), rgba(10,15,31,0.5));
  border: 1px solid rgba(91,180,255,0.35);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ha-arch-box-head { text-align: center; }
.ha-arch-box-t { font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-1); margin-bottom: 4px; }
.ha-arch-box-s { font-size: 11px; color: var(--text-3); letter-spacing: 0.04em; }
.ha-arch-box-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
@media (max-width: 540px) { .ha-arch-box-list { grid-template-columns: 1fr; } }
.ha-arch-box-list li { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.ha-arch-box-list li .mono { color: var(--blue); flex-shrink: 0; }
.ha-arch-box-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.ha-arch-foot-arrow { font-size: 14px; color: var(--text-4); }
.ha-arch-foot-t { font-size: 11.5px; color: var(--text-3); }

.ha-diffs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 980px) { .ha-diffs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ha-diffs { grid-template-columns: 1fr; } }
.ha-diff {
  background: rgba(10,15,31,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.ha-diff-k { font-size: 10.5px; color: var(--text-4); letter-spacing: 0.1em; margin-bottom: 6px; }
.ha-diff-t { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: -0.005em; color: var(--text-1); margin-bottom: 6px; }
.ha-diff-d { font-size: 12.5px; color: var(--text-3); line-height: 1.55; }

/* ---------- risk comparison ---------- */
.risk-bench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 820px) { .risk-bench { grid-template-columns: 1fr; } }

.bench-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.bench-card.slow {
  background: linear-gradient(180deg, rgba(255,107,107,0.06), rgba(10,15,31,0.4));
}
.bench-card.fast {
  background: linear-gradient(180deg, rgba(91,180,255,0.10), rgba(10,15,31,0.4));
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
}
.bench-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.bench-card.slow .bench-label { color: var(--red); }
.bench-card.fast .bench-label { color: var(--accent); }
.bench-time {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
}
.bench-card.slow .bench-time { color: var(--text); }
.bench-card.slow .bench-time .gt { color: var(--red); }
.bench-card.fast .bench-time { color: var(--accent); }
.bench-time .unit {
  font-family: var(--font-mono);
  font-size: 0.28em;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-left: 6px;
  vertical-align: 0.7em;
  font-weight: 400;
}
.bench-headline {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text);
}
.bench-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.bench-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.bench-list li .check {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.bench-card.slow .bench-list li .check { color: var(--red); }
.bench-card.fast .bench-list li .check { color: var(--green); }

.bench-bar {
  margin-top: 28px;
  height: 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.bench-bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}
.bench-card.slow .bench-bar .fill {
  background: var(--red);
  width: 100%;
  animation: benchSlowBreath 8.7s ease-in-out infinite;
}
.bench-card.fast .bench-bar .fill {
  background: var(--accent);
  width: 1%;
  animation: benchFastBreath 6.1s ease-in-out infinite;
}
@keyframes benchSlowBreath {
  0%   { width: 100%; }
  13%  { width: 96%; }
  29%  { width: 99%; }
  44%  { width: 92%; }
  58%  { width: 98%; }
  73%  { width: 94%; }
  87%  { width: 100%; }
  100% { width: 100%; }
}
@keyframes benchFastBreath {
  0%   { width: 1%; }
  16%  { width: 3.2%; }
  31%  { width: 1.6%; }
  47%  { width: 4.1%; }
  62%  { width: 2%; }
  78%  { width: 3.6%; }
  100% { width: 1%; }
}
.bench-card.fast .bench-bar .fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-bright));
  filter: blur(8px);
}

/* ---------- appliance ---------- */
.appliance {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .appliance { grid-template-columns: 1fr; padding: 32px; align-items: start; }
}

.appliance-left {
  display: flex;
  flex-direction: column;
}

.appliance h3 { margin-bottom: 14px; }
.appliance-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  flex: 1;
  grid-auto-rows: 1fr;
}
.appliance-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.01);
  align-items: center;
}
.appliance-item .ico {
  width: 36px; height: 36px;
  color: var(--accent);
  background: rgba(91,180,255,0.08);
  border-radius: var(--radius);
  display: grid; place-items: center;
  padding: 7px;
}
.appliance-item .ttl {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.appliance-item .sub {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* device illustration */
.rack {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 30%, rgba(91,180,255,0.08), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
@media (max-width: 980px) {
  .rack { min-height: 360px; }
}
.rack::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 8px;
  pointer-events: none;
}
.rack-u {
  position: relative;
  flex: 1;
  min-height: 56px;
  background: linear-gradient(180deg, #14203B, #0D1528);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rack-u .leds {
  display: flex;
  gap: 5px;
}
.rack-u .led {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-4);
}
.rack-u .led.on {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: ledBlinkOn 2.4s ease-in-out infinite;
}
.rack-u .led.act {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: ledBlinkAct 0.65s steps(2) infinite;
}
.rack-u .led.amber {
  background: var(--amber);
  box-shadow: 0 0 4px var(--amber);
  animation: ledBlinkAmber 3.1s ease-in-out infinite;
}
/* stagger so the 4 rows don't blink in lockstep */
.rack-u:nth-child(1) .led { animation-delay: 0s; }
.rack-u:nth-child(2) .led.on { animation-delay: 0.6s; }
.rack-u:nth-child(2) .led.act { animation-delay: 0.18s; }
.rack-u:nth-child(2) .led.amber { animation-delay: 0.4s; }
.rack-u:nth-child(3) .led.on { animation-delay: 1.2s; }
.rack-u:nth-child(3) .led.act { animation-delay: 0.32s; }
.rack-u:nth-child(3) .led.amber { animation-delay: 1.1s; }
.rack-u:nth-child(4) .led.on { animation-delay: 1.7s; }
.rack-u:nth-child(4) .led.act { animation-delay: 0.05s; }
.rack-u:nth-child(4) .led.amber { animation-delay: 2.0s; }

@keyframes ledBlinkOn {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  48%      { opacity: 0.85; box-shadow: 0 0 8px var(--green); }
  50%      { opacity: 0.35; box-shadow: 0 0 2px var(--green); }
  52%      { opacity: 0.85; box-shadow: 0 0 8px var(--green); }
}
@keyframes ledBlinkAct {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}
@keyframes ledBlinkAmber {
  0%, 100% { opacity: 0.95; box-shadow: 0 0 4px var(--amber); }
  30%      { opacity: 0.4; box-shadow: 0 0 1px var(--amber); }
  60%      { opacity: 1; box-shadow: 0 0 6px var(--amber); }
}

/* port activity */
.rack-u .lbl { color: var(--text-2); }
.rack-u .port {
  width: 8px; height: 8px;
  background: var(--surface-3);
  border-radius: 1px;
  transition: background .15s, box-shadow .15s;
}
.rack-u .ports {
  display: flex; gap: 3px;
}
.rack-u .port.lit {
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent);
  animation: portFlicker 1.8s ease-in-out infinite;
}
.rack-u:nth-child(1) .port.lit:nth-child(1) { animation-delay: 0s; }
.rack-u:nth-child(1) .port.lit:nth-child(2) { animation-delay: 0.4s; }
.rack-u:nth-child(2) .port.lit:nth-child(1) { animation-delay: 0.15s; }
.rack-u:nth-child(2) .port.lit:nth-child(2) { animation-delay: 0.55s; }
.rack-u:nth-child(3) .port.lit:nth-child(1) { animation-delay: 0.7s; }
.rack-u:nth-child(3) .port.lit:nth-child(2) { animation-delay: 1.0s; }
.rack-u:nth-child(4) .port.lit { animation-delay: 0.3s; }

@keyframes portFlicker {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--accent); }
  20%      { opacity: 0.3; box-shadow: 0 0 1px var(--accent); }
  40%      { opacity: 1; box-shadow: 0 0 6px var(--accent); }
  60%      { opacity: 0.6; }
  80%      { opacity: 1; }
}

/* ---------- customers ---------- */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .customers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .customers-grid { grid-template-columns: 1fr; } }
.customer {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}
.customer .seg {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.customer .need {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  line-height: 1.6;
}
.customer .delivers {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- customers section with bg image ---------- */
.customers-section { position: relative; overflow: hidden; }
.cust-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cust-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.4) brightness(0.35) contrast(1.1) hue-rotate(190deg);
  opacity: 0.45;
}
.cust-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(5,8,16,0.5) 30%, rgba(5,8,16,0.5) 70%, var(--bg) 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(91,180,255,0.10), transparent 70%);
}

/* ---------- competitive matrix ---------- */
.comp-matrix {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-1);
}
.comp-mrow {
  display: grid;
  grid-template-columns: 1.3fr repeat(5, 1fr);
  border-bottom: 1px solid var(--border);
}
.comp-mrow:last-child { border-bottom: none; }
.comp-mrow > div {
  padding: 18px 18px;
  border-right: 1px solid var(--border);
  font-size: 14px;
  display: flex;
  align-items: center;
}
.comp-mrow > div:last-child { border-right: none; }

.comp-cell-label {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  background: rgba(255,255,255,0.015);
}
.comp-cell-h {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: rgba(255,255,255,0.02);
  justify-content: center;
  text-align: center;
}
.comp-cell-h.qh {
  color: var(--accent);
  background: rgba(91, 180, 255, 0.07);
  font-weight: 600;
}
.comp-mrow-head { border-bottom: 1px solid var(--border-bright); }

.comp-cell {
  justify-content: center;
  gap: 10px;
}
.comp-cell.qh {
  background: rgba(91, 180, 255, 0.04);
}
.comp-cell .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid rgba(91, 180, 255, 0.3);
  border-radius: 999px;
  background: rgba(91, 180, 255, 0.06);
}

/* status dots */
.comp-cell .dot,
.comp-legend .dot {
  position: relative;
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comp-cell .dot::before,
.comp-legend .dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.comp-cell .dot.full,
.comp-legend .dot.full { color: var(--green); }
.comp-cell .dot.full::after,
.comp-legend .dot.full::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.comp-cell .dot.partial,
.comp-legend .dot.partial { color: var(--amber); }
.comp-cell .dot.partial::after,
.comp-legend .dot.partial::after {
  content: "";
  position: absolute;
  width: 8px; height: 1.5px;
  background: var(--amber);
}
.comp-cell .dot.none,
.comp-legend .dot.none { color: var(--text-4); }
.comp-cell .dot.none::after,
.comp-legend .dot.none::after {
  content: "";
  position: absolute;
  width: 7px; height: 1px;
  background: var(--text-4);
  transform: rotate(45deg);
}

/* TCO chips */
.comp-cell .tco {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.comp-cell .tco.tco-high { color: var(--green); background: rgba(0, 216, 154, 0.08); }
.comp-cell .tco.tco-mid { color: var(--amber); background: rgba(255, 200, 87, 0.08); }
.comp-cell .tco.tco-low { color: var(--text-3); background: rgba(168, 179, 206, 0.04); }

.comp-legend {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.comp-legend-items {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.comp-legend .leg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.comp-note {
  font-size: 13px;
  color: var(--text-2);
  max-width: 60ch;
  line-height: 1.55;
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 14px;
}

@media (max-width: 980px) {
  .comp-matrix { overflow-x: auto; display: block; }
  .comp-mrow { grid-template-columns: 200px repeat(5, 150px); min-width: 950px; }
  .comp-legend { flex-direction: column; }
}

/* ---------- positioning ---------- */
.compare-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-1);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div {
  padding: 18px 20px;
  font-size: 14px;
  color: var(--text-2);
  border-right: 1px solid var(--border);
}
.compare-row > div:last-child { border-right: none; }

.compare-row.head > div {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-3);
  background: rgba(255,255,255,0.02);
}
.compare-row.head > div.qh {
  color: var(--accent);
  background: rgba(91,180,255,0.06);
}
.compare-row > div.label {
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-display);
}
.compare-row > div.qh {
  color: var(--text);
  background: rgba(91,180,255,0.03);
  font-weight: 500;
}
.compare-row > div .mono { font-size: 12px; color: var(--text-3); display: block; margin-top: 4px; }

@media (max-width: 820px) {
  .compare-table { overflow-x: auto; }
  .compare-row { grid-template-columns: 180px repeat(4, 160px); }
}

/* ---------- vision / values ---------- */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 820px) { .vision-grid { grid-template-columns: 1fr; } }
.vision-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--surface-1);
  position: relative;
}
.vision-card .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.vision-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.vision-card p { font-size: 14px; }

.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 820px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .values { grid-template-columns: 1fr; } }
.value {
  background: var(--surface-1);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.value .ico {
  width: 28px; height: 28px;
  color: var(--accent);
  margin-bottom: 10px;
}
.value .ttl { font-size: 16px; font-weight: 600; color: var(--text); }
.value .desc { font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* ---------- CTA ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(91,180,255,0.20), transparent 60%),
    radial-gradient(ellipse 50% 80% at 90% 50%, rgba(0,216,154,0.10), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border-bright);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 820px) { .cta-banner { grid-template-columns: 1fr; padding: 40px; } }
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91,180,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,180,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.cta-banner > *:not(.cta-bg-img) { position: relative; z-index: 2; }
.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.3) brightness(0.35) contrast(1.1) hue-rotate(180deg);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 14px; }
.cta-banner p { font-size: 16px; max-width: 56ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer.foot {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { font-size: 13px; color: var(--text-3); max-width: 36ch; }
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--text-2); font-size: 14px; transition: color .15s; }
.foot-col a:hover { color: var(--text); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-4);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-bottom-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-dxtech-logo {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.foot-dxtech-logo:hover { opacity: 1; }
.foot-dxtech-logo img {
  height: 22px;
  width: auto;
  display: block;
}

/* ---------- utilities ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ascii hairlines for sections */
.hairline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--text-4);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hairline::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
