/* ============================================================
   VividCharts — Platform hub page
   Builds on styles.css tokens & components. Adds: hub hero with
   system pipeline, three pillar deep-dive rows, native band.
   ============================================================ */

/* ---------- Platform hero ---------- */
.plat-hero {
  position: relative;
  padding: 84px 0 56px;
  overflow: hidden;
}
.plat-hero .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.plat-hero .wrap { position: relative; z-index: 1; }
.plat-hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  max-width: 16ch;
  margin: 20px 0 0;
}
.plat-hero h1 .accent { color: var(--brand); }
.plat-hero .lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 22px 0 0;
  line-height: 1.55;
}
.plat-hero .hero-actions { margin-top: 30px; }

/* ---------- System pipeline diagram ---------- */
.plat-flow {
  margin: 64px auto 0;
  max-width: 1080px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.plat-flow-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px;
  background: var(--light-cream);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--ink-3);
}
.plat-flow-head .snow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-2); background: var(--white); border: 1px solid var(--line);
  padding: 3px 8px; border-radius: var(--r-sm); text-transform: none;
}
.plat-flow-head .secure {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  color: var(--brand-strong); text-transform: none; letter-spacing: .02em; font-size: 11.5px;
}
.plat-flow-head .secure svg { width: 14px; height: 14px; }
.plat-flow-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  padding: 26px 24px;
}
.flow-node {
  display: flex; flex-direction: column; gap: 9px;
  padding: 18px 16px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.flow-node:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.flow-node.is-data { background: var(--light-cream); }
.flow-node.is-out  { background: var(--light-cream); }
.flow-node .fn-ic {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.flow-node.is-data .fn-ic, .flow-node.is-out .fn-ic { background: var(--white); color: var(--ink-2); border: 1px solid var(--line); }
.flow-node .fn-k {
  font-size: 10.5px; font-weight: 700; letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--brand-strong);
}
.flow-node.is-data .fn-k, .flow-node.is-out .fn-k { color: var(--ink-3); }
.flow-node .fn-t { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.flow-node .fn-d { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.flow-arrow {
  display: grid; place-items: center; width: 40px; color: var(--line-strong);
}
.flow-arrow svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .plat-flow-body { grid-template-columns: 1fr; gap: 12px; padding: 22px 18px; }
  .flow-arrow { width: 100%; height: 30px; transform: rotate(90deg); }
}

/* ---------- Proof strip (copy spec VIV-3185) ---------- */
.plat-proof {
  margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px 22px; font-size: 14px; color: var(--ink-2);
}
.plat-proof .pp-logos { display: flex; align-items: center; gap: 22px; }
.plat-proof .pp-logo {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--ink); letter-spacing: -0.01em; opacity: .8;
}
.plat-proof .pp-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.plat-proof .pp-scale b { color: var(--ink); font-weight: 700; }
.plat-proof .pp-quote {
  color: var(--ink-2); border-bottom: 1px solid var(--line-strong);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.plat-proof .pp-quote:hover { color: var(--brand-strong); border-color: var(--brand-strong); }
@media (max-width: 560px) { .plat-proof .pp-sep { display: none; } }

/* ---------- Pillar feature tags ---------- */
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.p-tags span {
  display: inline-flex; align-items: center; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill, 999px);
  background: var(--brand-tint); color: var(--brand-strong);
  font-size: 12.5px; font-weight: 600;
}

/* ---------- Pillars (deep-dive rows) ---------- */
.pillars { margin-top: 60px; display: grid; gap: 0; }
.pillar {
  display: grid; grid-template-columns: 92px 1.05fr 1fr; gap: 40px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line);
}
.pillars .pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar .p-num {
  font-family: var(--font-display); font-size: 60px; font-weight: 500;
  color: var(--line-strong); line-height: 1; letter-spacing: -0.03em;
  transition: color .4s var(--ease);
}
.pillar.in .p-num { color: var(--brand); }
.pillar .p-copy .eyebrow { margin-bottom: 14px; }
.pillar .p-copy h2 { font-size: clamp(26px, 3vw, 36px); }
.pillar .p-copy > p { color: var(--ink-2); margin-top: 14px; font-size: 16px; line-height: 1.55; max-width: 46ch; }
.p-caps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.p-caps li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.p-caps li .ck {
  width: 22px; height: 22px; border-radius: var(--r-sm); flex: none; margin-top: 1px;
  background: var(--brand-tint); color: var(--brand); display: grid; place-items: center;
}
.p-caps li .ck svg { width: 13px; height: 13px; }
.deep-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  font-size: 13px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--ink);
  transition: color .18s var(--ease), gap .18s var(--ease);
}
.deep-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.deep-link:hover { color: var(--brand-strong); }
.deep-link:hover svg { transform: translateX(4px); }

/* pillar visual frame */
.p-vis {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.p-vis-top {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 15px; background: var(--light-cream); border-bottom: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
}
.p-vis-top .dots { display: flex; gap: 6px; }
.p-vis-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.p-vis-top .dots i:nth-child(1){ background:#e9b8b0; }
.p-vis-top .dots i:nth-child(2){ background:#f0dca6; }
.p-vis-top .dots i:nth-child(3){ background:#a9dcae; }
.p-vis-body { padding: 18px; }

/* real product screenshot inside the card frame */
.p-vis-body.shot {
  padding: 14px;
  background: var(--light-cream);
}
.p-shot {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1400 / 803;
  object-fit: cover; object-position: top center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

@media (max-width: 900px) {
  .pillar { grid-template-columns: 56px 1fr; gap: 26px; }
  .pillar .p-vis { grid-column: 1 / -1; }
  .pillar .p-num { font-size: 42px; }
}

/* ---------- Native architecture band (dark) ---------- */
.native { background: var(--dark-blue); color: var(--light-cream); overflow: hidden; }
.native .grid-dec {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 20% 30%, #000, transparent 70%);
}
.native .wrap { position: relative; z-index: 1; }
.native-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.native .eyebrow { color: var(--light-turq); }
.native .eyebrow::before { background: var(--brand); }
.native h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 44px); margin-top: 16px; }
.native p.lead { color: rgba(245,243,239,.74); font-size: 18px; margin-top: 18px; line-height: 1.55; max-width: 46ch; }
.native-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* instance boundary visual */
.boundary {
  border: 1.5px dashed rgba(63,193,199,.5); border-radius: var(--r-lg);
  padding: 22px; position: relative; background: rgba(63,193,199,.04);
}
.boundary .b-tag {
  position: absolute; top: -11px; left: 18px;
  background: var(--dark-blue); padding: 0 10px;
  font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--light-turq);
}
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.b-cell {
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md);
  background: rgba(255,255,255,.03); padding: 16px;
  display: flex; gap: 12px; align-items: flex-start;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.b-cell:hover { border-color: rgba(63,193,199,.45); background: rgba(255,255,255,.06); }
.b-cell .bc-ic { width: 32px; height: 32px; border-radius: var(--r-sm); flex: none;
  background: rgba(63,193,199,.16); color: var(--brand); display: grid; place-items: center; }
.b-cell .bc-ic svg { width: 17px; height: 17px; }
.b-cell b { color: var(--white); font-size: 14px; font-weight: 600; display: block; }
.b-cell span { color: rgba(245,243,239,.62); font-size: 12.5px; line-height: 1.45; display: block; margin-top: 3px; }
@media (max-width: 880px) {
  .native-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 460px) { .boundary-grid { grid-template-columns: 1fr; } }

/* ---------- Capabilities → Solutions (§3) ---------- */
.cap-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.cap-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--white); padding: 24px;
  text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.cap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.cap-card .cap-k {
  font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--brand);
}
.cap-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 10px 0 0; }
.cap-card p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 8px 0 0; }
.cap-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--ink);
}
.cap-more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.cap-card:hover .cap-more { color: var(--brand-strong); }
.cap-card:hover .cap-more svg { transform: translateX(4px); }
.cap-all { margin-top: 28px; }
@media (max-width: 880px) { .cap-grid { grid-template-columns: 1fr; } }
