:root {
  --bg: #142838;
  --bg-2: #183044;
  --page-end: #102433;
  --panel: rgba(28, 58, 76, 0.72);
  --panel-solid: #1c4054;
  --line: rgba(37, 99, 235, 0.28);
  --line-strong: rgba(232, 240, 244, 0.12);
  --text: #f4fafc;
  --muted: #d0dee6;
  --accent: #2f6bff;
  --accent-2: #5b8cff;
  --copper: #e09a4a;
  --danger: #ff7a7a;
  --ok: #2f6bff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(20, 40, 56, 0.94);
  --photo-well: #102433;
  --overlay: rgba(7, 16, 24, 0.78);
  --grid: rgba(47, 107, 255, 0.04);
  --nav-panel-bg: #173244;
  --input-bg: #122a3c;
  --caption-scrim: linear-gradient(transparent, rgba(7, 16, 24, 0.88));
  --fabric-bg: #0b2430;
  --video-frame-bg: #000;
  --vf-chrome: #0b141c;
  --vf-chrome-bar: #121c24;
  --vf-rail: #0e181f;
  --vf-canvas: #0b141c;
  --vf-plant: rgba(16, 32, 43, 0.92);
  --vf-p2p: rgba(7, 16, 24, 0.55);
  --vf-host: #1a2832;
  --vf-screen: #0d1820;
  --vf-hub: rgba(7, 16, 24, 0.92);
  --vf-chat: #0e181f;
  --vf-bubble-agent: rgba(14, 28, 38, 0.9);
  --vf-src: rgba(7, 16, 24, 0.45);
  --vf-live: #0b141c;
  --vf-live-card: rgba(16, 32, 43, 0.7);
  --vf-chrome-border: rgba(232, 240, 244, 0.14);
  --vf-inner-line: rgba(232, 240, 244, 0.08);
  --vf-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --nav-h: 76px;
  --max: 100%;
  --wide: 100%;
  --gutter: 5%;
  --title-gap: 1.12rem;
  --serif: "Avenir Next Demi Bold", "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}

.band-light {
  --bg: #c9d6e2;
  --bg-2: #bed0dc;
  --page-end: #b3c6d4;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --line: rgba(33, 88, 232, 0.22);
  --line-strong: rgba(18, 32, 43, 0.14);
  --text: #050b10;
  --muted: #0c151c;
  --accent: #2158e8;
  --accent-2: #1849c9;
  --shadow: 0 22px 50px rgba(18, 40, 70, 0.12);
  --header-bg: rgba(244, 247, 251, 0.9);
  --photo-well: #d5e0e8;
  --overlay: rgba(255, 255, 255, 0.9);
  --grid: rgba(33, 88, 232, 0.07);
  --nav-panel-bg: #ffffff;
  --input-bg: #ffffff;
  --caption-scrim: linear-gradient(transparent, rgba(19, 33, 44, 0.78));
  --fabric-bg: linear-gradient(180deg, #e7eef6, #d7e4ee 55%, #cfdce6);
  --video-frame-bg: #dce6ef;
  --vf-chrome: #ffffff;
  --vf-chrome-bar: #eef3f8;
  --vf-rail: #f4f7fb;
  --vf-canvas: #f7fafc;
  --vf-plant: #ffffff;
  --vf-p2p: #ffffff;
  --vf-host: #d5e2ee;
  --vf-screen: #f4f8fc;
  --vf-hub: #ffffff;
  --vf-chat: #f4f7fb;
  --vf-bubble-agent: #ffffff;
  --vf-src: #ffffff;
  --vf-live: #f7fafc;
  --vf-live-card: #ffffff;
  --vf-chrome-border: rgba(18, 32, 43, 0.12);
  --vf-inner-line: rgba(18, 32, 43, 0.08);
  --vf-shadow: 0 24px 50px rgba(18, 40, 70, 0.12);
  --band-lead: 640px;
  position: relative;
  color: var(--text);
  color-scheme: light;
  --band-ease: linear-gradient(
    180deg,
    transparent 0,
    rgba(20, 40, 56, 0.22) 160px,
    #1b3d52 320px,
    #3d6478 480px,
    #6a90a4 640px,
    #9eb6c6 800px,
    #c9d6e2 960px,
    #c9d6e2 calc(100% - 196px),
    #8fadbf calc(100% - 145px),
    #4a7084 calc(100% - 94px),
    #23485c calc(100% - 51px),
    rgba(20, 40, 56, 0.22) calc(100% - 17px),
    transparent 100%
  );
  background: none;
}
.band-light::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: calc(-1 * var(--band-lead));
  bottom: 0;
  background: var(--band-ease);
  pointer-events: none;
}
.band-light.section,
.band-light.kg-floor {
  padding-top: 181px;
  padding-bottom: 196px;
}
.band-light:not(.section):not(.fabric-action) {
  padding-top: 145px;
  padding-bottom: 87px;
}

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

html { scroll-behavior: smooth; }

body {
  isolation: isolate;
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(47, 107, 255, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(224, 154, 74, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 40%, var(--page-end));
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  z-index: -2;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

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

.wrap,
.wrap-wide {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin: 0 auto;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.nav { position: relative; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.brand-mark {
  height: 34px;
  width: auto;
  display: block;
}

.brand-edf {
  height: 22px;
  width: auto;
  display: block;
}

.brand-name {
  color: var(--text);
  font-weight: 650;
}

.product-wordmark {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--text);
}

.edf-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 28px;
}

.edf-lockup-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.edf-lockup-mark {
  height: 52px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.edf-lockup-word {
  height: 40px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.theme-light-only {
  display: none !important;
}

.band-light .vf-tabs {
  background: #dce6ef;
}
.band-light .vf-p2p-link {
  stroke: rgba(33, 88, 232, 0.32);
}

.band-light .theme-dark-only {
  display: none !important;
}

.band-light .theme-light-only {
  display: block !important;
}

.edf-lockup-tag {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.brand-footer {
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-bottom: 12px;
  width: max-content;
}

.brand-footer .brand-name {
  white-space: nowrap;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  flex-shrink: 1;
}

.nav-links a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(47, 107, 255, 0.08);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.nav-cta .btn {
  height: 42px;
  padding: 0 16px;
  white-space: nowrap;
  flex: 0 0 auto;
  width: max-content;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 560;
  cursor: pointer;
  transition: 0.18s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #4d7dff, #2f6bff);
  color: #f7f9ff;
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.28);
}

.btn-primary:hover { color: #ffffff; transform: translateY(-1px); }
.btn[disabled],
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-copper {
  background: linear-gradient(180deg, #efb066, #c97a2e);
  color: #2a1604;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.news-page main > .section:first-child > .kicker,
.page-lead > .kicker {
  color: #fff;
}
.kicker + h1,
.kicker + h2,
.kicker + h2 + .lede {
  margin-left: -0.08em;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(2.04rem, 4.25vw, 3.74rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin-bottom: var(--title-gap); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }

.hero .page-header h1 {
  font-size: clamp(2.04rem, 4.25vw, 3.74rem);
  margin-bottom: var(--title-gap);
}

.lede { color: var(--muted); font-size: 1.12rem; max-width: 42rem; margin-top: 0; }
.stories-lede { max-width: 45rem; }
.industries-lede { max-width: 48rem; }

.hero {
  --hero-pad-top: 70px;
  --hero-pad-bottom: 93px;
  padding-top: var(--hero-pad-top);
  padding-bottom: var(--hero-pad-bottom);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(180px, 2fr);
  gap: 40px;
  align-items: center;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero .hero-actions {
  flex-wrap: nowrap;
  align-items: center;
}
.hero .hero-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 11px 14px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.chips-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  max-width: 34rem;
}
.chips-hero .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  font-weight: 700;
}
.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--photo-well);
  align-self: center;
  transform: translateY(calc((var(--hero-pad-bottom) - var(--hero-pad-top)) / 2));
}

.hero-visual img,
.hero-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
  filter: saturate(0.85) contrast(1.05);
}
.band-light .hero-visual img,
.band-light .hero-visual video {
  filter: saturate(1.04) contrast(1.02);
}

.hero-visual .overlay {
  position: absolute;
  inset: auto 16px 16px 16px;
  background: var(--overlay);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 64px;
}

.stat {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px 12px;
  min-width: 0;
}

.stat b {
  display: block;
  font-size: clamp(0.95rem, 1.35vw, 1.35rem);
  color: var(--accent);
  font-family: var(--serif);
  line-height: 1.2;
  white-space: nowrap;
}
.stat span { color: var(--muted); font-size: 0.82rem; }

.section {
  padding-top: 64px;
  padding-bottom: 110px;
}
.product-page .section:not(.band-light):not(:last-child) {
  padding-bottom: 27px;
}
.product-page .section:not(.band-light):not(:first-child) {
  padding-top: 12px;
}
.product-page main > .section:first-child + .section.band-light {
  padding-top: calc((79px + 181px) * 0.85 * 0.9 * 0.8 - 27px);
}
.product-page .deploy-block {
  margin-top: 12px;
  margin-bottom: 27px;
}
.home-page .section:not(.band-light) {
  padding-top: 12px;
  padding-bottom: 27px;
}
.home-page .hero {
  --hero-pad-bottom: 27px;
}
.home-page .hero-visual {
  transform: none;
}
.home-page .band-light.fabric-action {
  padding-top: 132px;
}
.home-page .band-light:not(.section):not(.fabric-action) {
  padding-top: 181px;
  padding-bottom: 196px;
}
.home-page .band-light:not(.section):not(.fabric-action) > .cta-band {
  margin-top: 0;
  margin-bottom: 0;
}
.news-page main > .section:first-child {
  padding-bottom: 55px;
}
.news-page main > .section:first-child + .section.band-light {
  padding-top: calc(181px / 2);
}

.page-lead {
  padding-bottom: 0;
}
.page-lead .lede {
  margin-bottom: 0;
}
.page-lead + .section {
  padding-top: 75px;
}

.section-head,
.section > .kicker,
.section > h1,
.section > h2,
.deploy-head,
.kg-floor > .kicker,
.kg-floor > h2,
.fabric-action > .wrap > .kicker,
.fabric-action > .wrap > h2,
.fabric-action-lede {
  text-align: left;
}

.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 36px; }
.section-head:has(+ .lede) { margin-bottom: 0; }
.section-head h2,
.section > h1,
.section > h2,
.kg-floor > h2,
.cta-band h2,
.page-header h1 { margin-bottom: var(--title-gap); }
.deploy-head h2 { margin-bottom: 0; }

.grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.video-rail-nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.video-rail-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.video-rail-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.video-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 4px 4px 14px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
}
.video-rail .card {
  flex: 0 0 min(440px, 82vw);
  min-height: 0;
  scroll-snap-align: start;
}
.video-rail::-webkit-scrollbar {
  height: 8px;
}
.video-rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

.video-modal {
  width: min(920px, calc(100vw - 32px));
  padding: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-solid, var(--panel));
  color: var(--text);
  box-shadow: var(--shadow);
}
.video-modal::backdrop {
  background: rgba(6, 10, 18, 0.72);
}
.video-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}
.video-modal-head strong {
  font-size: 1rem;
}
.video-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.video-modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.video-modal .video-frame {
  margin: 0 16px;
}

.doc-modal {
  position: fixed;
  inset: 18px;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-solid, var(--panel));
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.doc-modal[open] {
  display: flex;
  flex-direction: column;
  animation: docExpand 0.22s ease;
}
.doc-modal::backdrop {
  background: rgba(6, 10, 18, 0.72);
}
.doc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.doc-modal-head strong {
  font-size: 1rem;
}
.doc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.doc-modal-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #0b1218;
}
.doc-page {
  padding-top: 88px;
  padding-bottom: 112px;
}
.doc-page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}
.doc-page-head h1 {
  margin: 0;
}
.doc-page-frame {
  height: min(80dvh, 920px);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--photo-well);
  box-shadow: var(--shadow);
}
.doc-page-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1218;
}
@keyframes docExpand {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .doc-modal[open] { animation: none; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 100%;
}

.card h3 { margin-bottom: var(--title-gap); }
.card p { margin: 0; color: var(--muted); }

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 52rem;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 620;
  padding: 18px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 500;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0 0 12px;
  color: var(--muted);
}
.faq-item p:last-of-type { margin-bottom: 18px; }
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { height: 180px; width: 100%; object-fit: cover; }
.card.photo img[src$=".svg"] {
  height: 240px;
  object-fit: contain;
  background: var(--photo-well);
}
.card.photo .coming-soon {
  height: 180px;
  display: grid;
  place-items: center;
  background: var(--photo-well);
  color: var(--text);
}
.card.photo .coming-soon strong {
  font-family: var(--sans);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.card.photo .pad { padding: 18px 20px 22px; }

.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  margin: 48px 0;
}

.deploy-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--title-gap) 40px;
  align-items: center;
  text-align: left;
  margin: 64px auto 110px;
  max-width: none;
}
.deploy-head {
  grid-column: 1 / -1;
}
.deploy-copy .lede { max-width: none; }
.deploy-copy ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.deploy-copy li { padding: 5px 0; }
.deploy-diagram {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--photo-well);
  box-shadow: var(--shadow);
}
.deploy-diagram img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 0;
  aspect-ratio: 920 / 640;
}

.kg-floor .lede { max-width: 46rem; }

.kg-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kg-steps li {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
}
.kg-steps span {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.kg-steps strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: var(--title-gap);
}
.kg-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.kg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}
.kg-split-frame {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
}
.kg-demo .vf-chrome { height: auto; }

.kg-stack {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 22px 24px;
  background:
    linear-gradient(180deg, rgba(47, 107, 255, 0.08), transparent 42%),
    var(--panel-solid);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kg-stack-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.25;
}
.kg-layer {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--panel);
}
.kg-layer b {
  display: block;
  font-size: 0.92rem;
}
.kg-layer span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}
.kg-layer > span + span { margin-top: 8px; }
.kg-layer-graph {
  border-color: rgba(47, 107, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.12);
}
.kg-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}
.kg-uns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.kg-uns-row span {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--panel-solid);
}

.diagram {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(47, 107, 255, 0.06), transparent),
    var(--panel-solid);
}

.node-row { display: flex; justify-content: space-between; gap: 10px; margin: 18px 0; }
.node {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 8px;
  font-size: 0.82rem;
  background: var(--panel);
}
.node strong { display: block; color: var(--accent); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.bus {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--copper), var(--accent-2), transparent);
  margin: 8px 4px 18px;
  position: relative;
}

.theme-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 48px;
}
.theme-strip figure {
  margin: 0;
  position: relative;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--photo-well);
}
.theme-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.theme-strip figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 0.82rem;
  background: var(--caption-scrim);
  color: #e8f1f4;
}
.markets-stats { margin: 0 0 22px; }
.markets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.market {
  margin: 0;
  position: relative;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--photo-well);
}
.market img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}
.market figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  font-size: 0.88rem;
  background: var(--caption-scrim);
  color: #e8f1f4;
}

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.price {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: var(--panel);
}
.price .hero-actions {
  margin-top: auto;
}
.price.featured {
  border-color: rgba(47, 107, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.15), var(--shadow);
}
.price ul { padding: 0; margin: 16px 0 22px; list-style: none; color: var(--muted); }
.price li { padding: 7px 0 7px 22px; position: relative; }
.price li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

.cta-band {
  margin: 41px 0 109px;
  max-width: none;
  width: 100%;
  border-radius: 28px;
  padding: 36px 40px 36px 48px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(47, 107, 255, 0.14), rgba(224, 154, 74, 0.12)),
    var(--panel-solid);
  border: 1px solid var(--line);
}
.section > .cta-band {
  margin-top: 0;
  margin-bottom: 0;
}

.cta-band h2 {
  white-space: nowrap;
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
}

.cta-band .lede {
  max-width: none;
  white-space: nowrap;
}

.video-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--video-frame-bg);
  aspect-ratio: 16 / 9;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  margin-bottom: 10px;
}

.form-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  padding-top: 88px;
  padding-bottom: 112px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.88rem; color: var(--muted); }
input, select, textarea {
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(47, 107, 255, 0.35);
  border-color: var(--accent);
}

.consent { color: var(--muted); font-size: 0.9rem; }
.consent label { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }

.flash { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.flash a { text-decoration: underline; text-underline-offset: 2px; }
.flash.error { background: rgba(255, 122, 122, 0.12); border: 1px solid rgba(255, 122, 122, 0.35); }
.flash.success { background: rgba(62, 224, 164, 0.12); border: 1px solid rgba(62, 224, 164, 0.35); }

.feature-event {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.feature-event-art {
  background: #050505;
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.band-light .feature-event-art {
  background: #ffffff;
  border: 1px solid var(--line);
}
.feature-event-art img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}
.feature-event-art.is-banner {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}
.feature-event-art.is-banner img {
  max-height: none;
  display: block;
}
.feature-event h2 a,
.news-item h3 a { color: inherit; }
.feature-event h2 a:hover,
.news-item h3 a:hover { color: var(--accent); }

.news-list + .news-list {
  margin-top: 56px;
}
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.news-item time { font-family: var(--mono); color: var(--accent); font-size: 0.78rem; }
.news-status {
  display: block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.64rem;
  margin-bottom: 4px;
}
.news-item.is-past {
  color: var(--muted);
}
.news-item.is-past time,
.news-item.is-past h3 {
  color: var(--muted);
}

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person { min-height: 220px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 28px;
  color: var(--muted);
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-grid a { color: var(--muted); display: block; padding: 4px 0; }
.footer-grid a.brand,
.footer-grid .brand-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  padding: 0;
  margin-bottom: 12px;
  color: var(--text);
}

.lede-nowrap {
  white-space: nowrap;
  max-width: none;
}
.legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; }

.hp { position: absolute; left: -9999px; }

@media (max-width: 980px) {
  .feature-row, .form-shell, .footer-grid, .grid-3, .pricing, .team, .kg-steps {
    grid-template-columns: 1fr 1fr;
  }
  .theme-strip { grid-template-columns: 1fr 1fr 1fr; }
  .markets { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band h2 { font-size: 1.45rem; }
  .cta-band .lede { white-space: normal; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--nav-h) - 4px);
    background: var(--nav-panel-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    z-index: 60;
  }
  body.nav-open .nav-panel { display: flex; }
  .nav-links, .nav-cta { flex-direction: column; align-items: stretch; }
  .hero, .form-shell, .footer-grid, .grid-2, .news-item, .feature-event, .deploy-block, .kg-split, .kg-steps {
    grid-template-columns: 1fr;
  }
  .hero { --hero-pad-top: 56px; }
  .hero-visual { transform: none; }
  .chips-hero .chip {
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    padding: 6px 8px;
  }
  .stats {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .stat { flex: 0 0 160px; }
  .theme-strip { grid-template-columns: 1fr 1fr; }
  .markets { grid-template-columns: 1fr 1fr; }
  .market { height: 140px; }
  .fabric-action { padding: 104px 0 120px; }
  .vf-panel, .vf-tabs-bar { grid-template-columns: 1fr; }
  .vf-chrome, .vf-caption, .vf-tabs-cluster { grid-column: auto; }
  .vf-caption { position: static; width: auto; margin-top: 4px; }
  .vf-ui { grid-template-columns: 1fr; }
  .vf-rail { display: none; }
  .vf-ui-engage { grid-template-columns: 1fr; }
  .vf-plants { grid-template-columns: 1fr; }
  .vf-live-grid { grid-template-columns: 1fr; }
  .vf-live-kpis { grid-template-columns: 1fr 1fr; }
  .vf-kg-body { grid-template-columns: 1fr; }
  .vf-kg-cards { grid-template-columns: 1fr; }
  .vf-kg-paths li { flex-wrap: wrap; gap: 4px 12px; }
  .vf-kg-paths em { flex: 0 0 100%; }
  .vf-tabs { max-width: 100%; }
}

/* Tabbed product video frames (Deploy / Engage) */
.fabric-action {
  background: var(--fabric-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 128px 0 156px;
  margin: 0;
  text-align: left;
}
.band-light.fabric-action {
  border-top: 0;
  border-bottom: 0;
  padding-top: 181px;
  padding-bottom: 196px;
  background: none;
}
@media (max-width: 820px) {
  .band-light,
  .band-light.fabric-action {
    --band-lead: 280px;
    --band-ease: linear-gradient(
      180deg,
      transparent 0,
      rgba(20, 40, 56, 0.22) 70px,
      #1b3d52 140px,
      #3a6276 210px,
      #6a90a4 280px,
      #9eb6c6 360px,
      #c9d6e2 440px,
      #c9d6e2 calc(100% - 109px),
      #8fadbf calc(100% - 80px),
      #4a7084 calc(100% - 51px),
      #23485c calc(100% - 26px),
      transparent 100%
    );
    background: none;
  }
  .band-light.section,
  .band-light.kg-floor,
  .fabric-action.band-light,
  .band-light:not(.section):not(.fabric-action) {
    padding-top: 101px;
    padding-bottom: 109px;
  }
  .product-page .section:not(.band-light):not(:first-child) {
    padding-top: 29px;
  }
  .product-page .section:not(.band-light):not(:last-child) {
    padding-bottom: 43px;
  }
  .product-page .deploy-block {
    margin-top: 29px;
    margin-bottom: 43px;
  }
  .product-page main > .section:first-child + .section.band-light {
    padding-top: calc((79px + 101px) * 0.85 * 0.9 * 0.8 - 43px);
  }
  .home-page .section:not(.band-light) {
    padding-top: 29px;
    padding-bottom: 43px;
  }
  .home-page .hero {
    --hero-pad-bottom: 43px;
  }
  .home-page .band-light.fabric-action {
    padding-top: 67px;
  }
  .home-page .band-light:not(.section):not(.fabric-action) {
    padding-top: 101px;
    padding-bottom: 109px;
  }
  .news-page main > .section:first-child + .section.band-light {
    padding-top: calc(101px / 2);
  }
}
.fabric-action h2 { margin-bottom: var(--title-gap); }
.fabric-action-lede {
  margin: 0 0 36px;
  max-width: 46rem;
}
.vf-tabs-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
}
.vf-tabs-cluster {
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 18px;
  width: 100%;
}
.vf-tabs-cluster .vf-try-me { grid-column: 1; justify-self: end; }
.vf-tabs-cluster .vf-tabs { grid-column: 2; }
.vf-try-me {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--copper);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: none;
  animation: vfKgTry 1.1s ease-in-out infinite;
  user-select: none;
}
.vf-try-me i {
  width: 58px;
  height: 22px;
  background: currentColor;
  clip-path: polygon(0 32%, 68% 32%, 68% 0, 100% 50%, 68% 100%, 68% 68%, 0 68%);
}
.vf-tabs {
  display: flex;
  width: fit-content;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
  background: #f4efe6;
  border-radius: 6px;
  padding: 4px;
  gap: 0;
}
.vf-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #2a3338;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
}
.vf-tab[aria-selected="true"] {
  background: #fff;
  box-shadow: 0 1px 0 #fff;
}
.vf-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  background: var(--copper);
  border-radius: 2px;
}
.vf-stage {
  position: relative;
  max-width: none;
  margin: 0 auto;
  text-align: left;
}
.vf-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 22px;
  align-items: center;
}
.vf-panel[hidden] {
  display: none;
}
.vf-chrome {
  grid-column: 1;
  justify-self: stretch;
  width: 100%;
  border: 1px solid var(--vf-chrome-border);
  border-radius: 18px 18px 8px 8px;
  overflow: hidden;
  background: var(--vf-chrome);
  box-shadow: var(--vf-shadow);
}
.vf-chrome-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--vf-chrome-bar);
  border-bottom: 1px solid var(--vf-inner-line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.vf-dots { display: flex; gap: 6px; }
.vf-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d4d58;
  display: block;
}
.vf-dots i:nth-child(1) { background: #ff7a7a; }
.vf-dots i:nth-child(2) { background: #e09a4a; }
.vf-dots i:nth-child(3) { background: #3ee0a4; }
.vf-chrome-title { flex: 1; text-align: center; }
.vf-chrome-badge {
  color: var(--accent-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.65rem;
}
.vf-ui {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 520px;
}
.vf-rail {
  border-right: 1px solid var(--vf-inner-line);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--vf-rail);
}
.vf-rail-item {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 6px;
  border-radius: 8px;
}
.vf-rail-item.is-on {
  color: var(--text);
  background: rgba(47, 107, 255, 0.16);
}
.vf-canvas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 12px;
  background:
    radial-gradient(500px 240px at 50% 110%, rgba(47, 107, 255, 0.12), transparent 70%),
    var(--vf-canvas);
}
.vf-plants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.vf-plant {
  background: var(--vf-plant);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.vf-plant header {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text);
}
.vf-plant p {
  margin: 2px 0 8px;
  font-size: 0.72rem;
  color: var(--muted);
}
.vf-node {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
  border: 1px solid rgba(62, 224, 164, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
}
.vf-stream { display: flex; gap: 4px; margin-top: 8px; height: 6px; }
.vf-stream span {
  flex: 1;
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.2), var(--accent-2));
  border-radius: 99px;
  transform-origin: left;
}
.vf-spine {
  position: relative;
  height: 18px;
  margin: 0 12%;
  background: linear-gradient(90deg, transparent, var(--accent), var(--copper), var(--accent-2), transparent);
  border-radius: 99px;
  opacity: 0.7;
}
.vf-spine .vf-pkt {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--accent-2);
}
.vf-lake {
  border: 1px dashed rgba(224, 154, 74, 0.55);
  background: rgba(224, 154, 74, 0.08);
  border-radius: 16px;
  padding: 10px 14px;
  text-align: center;
}
.vf-lake strong {
  display: block;
  color: var(--copper);
  font-size: 0.85rem;
}
.vf-lake span { color: var(--muted); font-size: 0.72rem; }
.vf-p2p {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px 6px;
  background: var(--vf-p2p);
}
.vf-p2p-svg {
  width: 100%;
  height: auto;
  min-height: 210px;
  display: block;
}
.vf-p2p-plant-label {
  fill: var(--muted);
  font-size: 13px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  font-weight: 650;
  text-anchor: middle;
}
.vf-p2p-fabric-label {
  fill: #3ee0a4;
  font-size: 11px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  text-anchor: middle;
}
.vf-p2p-wan { stroke-width: 2.2; }
.vf-p2p-orbits circle {
  stroke: rgba(47, 107, 255, 0.16);
  stroke-dasharray: 3 7;
}
.vf-p2p-link {
  stroke: rgba(47, 107, 255, 0.18);
  stroke-width: 1.15;
}
.vf-p2p-ring { stroke-width: 1.6; }
.vf-p2p-chord { stroke-width: 0.9; }
.vf-p2p-radial { stroke-width: 1.25; }
.vf-p2p-host {
  fill: var(--vf-host);
  stroke: rgba(91, 140, 255, 0.35);
  stroke-width: 1.1;
}
.vf-p2p-screen { fill: var(--vf-screen); }
.vf-p2p-node text { fill: var(--muted); }
.vf-p2p-hub-ring {
  fill: var(--vf-hub);
  stroke: rgba(91, 140, 255, 0.35);
  stroke-width: 1.4;
}
.vf-p2p-hub image { pointer-events: none; }
.vf-p2p-status {
  position: relative;
  height: 1.35em;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.vf-p2p-status span {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.vf-panel.is-playing .vf-p2p { animation: vfP2pGlow 14s ease-in-out infinite; }
.vf-panel.is-playing .vf-p2p-node { animation: vfP2pNode 14s ease-in-out infinite; animation-delay: calc(var(--i) * 0.28s); }
.vf-panel.is-playing .vf-p2p-link { animation: vfP2pLink 14s ease-in-out infinite; animation-delay: calc(var(--i) * 0.28s); }
.vf-panel.is-playing .vf-p2p-hub { animation: vfP2pHub 14s ease-in-out infinite; }
.vf-panel.is-playing .vf-p2p-host {
  animation: vfP2pDot 14s ease-in-out infinite;
  animation-delay: inherit;
}
.vf-panel.is-playing .vf-p2p-screen {
  animation: vfP2pScreen 14s ease-in-out infinite;
  animation-delay: inherit;
}
.vf-panel.is-playing .vf-p2p-node text {
  animation: vfP2pLabel 14s ease-in-out infinite;
  animation-delay: inherit;
}
.vf-panel.is-playing .vf-p2p-status span:nth-child(1) { animation: vfP2pCopy 14s ease-in-out both infinite; }
.vf-panel.is-playing .vf-p2p-status span:nth-child(2) { animation: vfP2pCopy 14s ease-in-out both infinite; animation-delay: 2.6s; }
.vf-panel.is-playing .vf-p2p-status span:nth-child(3) { animation: vfP2pCopy 14s ease-in-out both infinite; animation-delay: 5s; }
.vf-panel.is-playing .vf-p2p-status span:nth-child(4) { animation: vfP2pCopyHold 14s ease-in-out both infinite; }
.vf-caption {
  grid-column: 2;
  position: relative;
  top: auto;
  width: auto;
  background: #f6f1e8;
  color: #1b2428;
  padding: 18px 18px 16px;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  border-left: 4px solid var(--copper);
  align-self: center;
}
@media (max-width: 820px) {
  .vf-panel, .vf-tabs-bar { grid-template-columns: 1fr; }
  .vf-chrome, .vf-caption, .vf-tabs-cluster { grid-column: auto; }
  .vf-caption { position: static; }
}
.vf-caption p {
  margin: 0 0 10px;
  color: #1b2428;
  font-size: 0.92rem;
  line-height: 1.35;
}
.vf-caption a {
  color: #1b2428;
  font-weight: 650;
  font-size: 0.85rem;
}
.vf-caption a:hover { color: #0b3a8c; }

.vf-ui-engage {
  grid-template-columns: 1.35fr 0.85fr;
  min-height: 520px;
}
.vf-chat, .vf-dash, .vf-context {
  padding: 16px;
  min-width: 0;
}
.vf-dash {
  background: var(--vf-canvas);
}
.vf-chat {
  border-right: 1px solid var(--vf-inner-line);
  background: var(--vf-chat);
  overflow: auto;
}
.vf-chat header, .vf-dash header, .vf-context header, .vf-live-card header {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.vf-context {
  background: var(--vf-canvas);
  overflow: auto;
}
.vf-src-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vf-src {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--vf-src);
}
.vf-src summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text);
  list-style: none;
}
.vf-src summary::-webkit-details-marker { display: none; }
.vf-src summary::before {
  content: "▸";
  color: var(--accent-2);
  font-size: 0.7rem;
}
.vf-src[open] summary::before { content: "▾"; }
.vf-src summary b {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ok);
}
.vf-src ul {
  list-style: none;
  margin: 0;
  padding: 0 10px 8px 22px;
  max-height: 118px;
  overflow: auto;
}
.vf-src li {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  padding: 3px 0;
  border: 0;
}
.vf-bubble-result strong,
.vf-rec strong {
  display: block;
  color: var(--copper);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.vf-bubble-result code,
.vf-notify code {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ok);
}
.vf-notify {
  margin-top: 4px;
  border: 1px solid rgba(62, 224, 164, 0.35);
  background: rgba(62, 224, 164, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text);
}
.vf-notify-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
  margin-bottom: 4px;
}
.vf-notify code { display: block; margin-top: 4px; }
.vf-step { opacity: 0; }
.vf-panel.is-playing .vf-step:nth-of-type(1),
.vf-panel.is-playing .vf-bubble-user.vf-step { animation: vfChatIn 0.45s ease both; }
.vf-panel.is-playing .vf-bubble-agent.vf-step:not(.vf-bubble-result):not(.vf-rec) { animation: vfChatIn 0.45s ease both 0.7s; }
.vf-panel.is-playing .vf-sql.vf-step { animation: vfChatIn 0.45s ease both 1.3s; }
.vf-panel.is-playing .vf-bubble-result.vf-step { animation: vfChatIn 0.45s ease both 2.1s; }
.vf-panel.is-playing .vf-rec.vf-step { animation: vfChatIn 0.45s ease both 2.9s; }
.vf-panel.is-playing .vf-notify.vf-step { animation: vfChatIn 0.45s ease both 3.6s; }
.vf-bubble {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.vf-bubble-user {
  background: rgba(47, 107, 255, 0.18);
  color: var(--text);
}
.vf-bubble-agent {
  background: var(--vf-bubble-agent);
  border: 1px solid var(--line);
  color: var(--muted);
}
.vf-bubble-result { color: var(--text); }
.vf-sql {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ok);
  background: var(--photo-well);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 8px 0;
}
.vf-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vf-kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.vf-kpi b {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--accent);
}
.vf-kpi span { font-size: 0.68rem; color: var(--muted); }
.vf-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 88px;
  margin: 14px 0 10px;
  padding: 0 4px;
}
.vf-chart span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent-2), rgba(47, 107, 255, 0.25));
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
}
.vf-fanout {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.vf-fanout > span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.vf-fanout > b {
  flex: 1;
  min-width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.vf-sites { display: flex; gap: 8px; flex-wrap: wrap; }
.vf-site {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.vf-site i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  display: block;
}
.vf-api {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
}

.vf-panel.is-playing .vf-plant { animation: vfPulse 4.5s ease-in-out infinite; }
.vf-panel.is-playing .vf-plant:nth-child(2) { animation-delay: 0.4s; }
.vf-panel.is-playing .vf-plant:nth-child(3) { animation-delay: 0.8s; }
.vf-panel.is-playing .vf-stream span { animation: vfBar 2.4s ease-in-out infinite; }
.vf-panel.is-playing .vf-stream span:nth-child(2) { animation-delay: 0.2s; }
.vf-panel.is-playing .vf-stream span:nth-child(3) { animation-delay: 0.4s; }
.vf-panel.is-playing .vf-spine .vf-pkt:nth-child(1) { animation: vfRide 2.8s linear infinite; }
.vf-panel.is-playing .vf-spine .vf-pkt:nth-child(2) { animation: vfRide 2.8s linear infinite; animation-delay: 0.9s; }
.vf-panel.is-playing .vf-spine .vf-pkt:nth-child(3) { animation: vfRide 2.8s linear infinite; animation-delay: 1.8s; }
.vf-panel.is-playing .vf-lake { animation: vfLake 3.6s ease-in-out infinite; }
.vf-panel.is-playing .vf-chart span { animation: vfGrow 2s ease both; }
.vf-panel.is-playing .vf-api { animation: vfPulse 2.8s ease-in-out infinite; }

.vf-live {
  padding: 16px;
  background: var(--vf-live);
  min-height: 520px;
}
.vf-live-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.vf-live-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 10px;
}
.vf-live-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--vf-live-card);
  min-width: 0;
}
.vf-line {
  width: 100%;
  height: 110px;
  display: block;
}
.vf-line polyline {
  fill: none;
  stroke: #5b8cff;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.vf-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--muted);
  font-family: var(--mono);
}
.vf-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 118px;
  padding: 4px 6px 0;
}
.vf-bars > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}
.vf-bars i {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--accent-2), rgba(47, 107, 255, 0.25));
  transition: height 0.6s ease;
}
.vf-bars span { font-size: 0.68rem; color: var(--muted); }
.vf-alerts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vf-alerts li {
  font-size: 0.75rem;
  color: var(--text);
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--panel);
  border-left: 3px solid var(--accent);
}
.vf-alerts li.warn { border-left-color: var(--copper); }
.vf-alerts li.ok { border-left-color: var(--ok); }
.vf-alerts li b {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  margin-right: 6px;
}
.vf-alerts li.is-new { animation: vfChatIn 0.35s ease both; }
.vf-events {
  margin-top: 10px;
}
.vf-events ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 148px;
  overflow: hidden;
}
.vf-events li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 52px 1fr;
  gap: 8px;
  align-items: baseline;
  font-size: 0.75rem;
  color: var(--text);
  padding-left: 8px;
}
.vf-events li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}
.vf-events li.warn::before { background: var(--copper); }
.vf-events li.ok::before { background: var(--ok); }
.vf-events time {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.vf-events em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.vf-events li.is-new { animation: vfChatIn 0.35s ease both; }
.vf-live-badge {
  color: var(--ok);
  border-color: rgba(62, 224, 164, 0.4);
}
.vf-kg {
  padding: 12px 14px 14px;
  background: var(--vf-live);
  min-height: 520px;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.vf-kg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.vf-kg-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.35;
}
.vf-kg-toolbar b {
  color: var(--text);
  font-weight: 650;
}
.vf-kg-deps {
  appearance: none;
  border: 1px solid var(--copper);
  background: rgba(224, 154, 74, 0.12);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.vf-kg-deps[aria-pressed="true"] {
  background: var(--copper);
  color: #1b2428;
}
.vf-kg-find {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.vf-kg-toolbar .vf-kg-try {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--copper);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  animation: vfKgTry 1.1s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
}
.vf-kg-try i {
  width: 58px;
  height: 22px;
  background: currentColor;
  clip-path: polygon(0 32%, 68% 32%, 68% 0, 100% 50%, 68% 100%, 68% 68%, 0 68%);
}
.vf-kg.is-deps .vf-kg-try { visibility: hidden; }
@keyframes vfKgTry {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(7px); }
}
.vf-kg-card,
.vf-kg-paths,
.vf-kg-paths li,
.vf-kg-paths em {
  text-align: left;
}
.vf-kg-path-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: left;
}
.vf-kg-body {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
  min-height: 420px;
  align-items: stretch;
}
.vf-kg-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  text-align: left;
}
.vf-kg-tree {
  flex: 1 1 auto;
  border: 1px solid var(--vf-inner-line);
  border-radius: 10px;
  padding: 10px 10px 12px;
  overflow: visible;
  max-height: none;
  height: 100%;
}
.vf-kg-kicker {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}
.vf-kg-tree ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 10px;
}
.vf-kg-tree > ul { padding-left: 0; }
.vf-kg-tree li { margin: 2px 0; }
.vf-kg-tree button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  text-align: left;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}
.vf-kg-tree button:hover,
.vf-kg-tree button.is-walk {
  color: var(--text);
  background: rgba(47, 107, 255, 0.12);
}
.vf-kg-tree button.is-on {
  color: var(--text);
  background: rgba(224, 154, 74, 0.18);
}
.vf-kg-canvas {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto auto;
  gap: 10px;
  min-width: 0;
}
.vf-kg-svg {
  width: 100%;
  height: auto;
  min-height: 280px;
  border: 1px solid var(--vf-inner-line);
  border-radius: 10px;
  background: var(--vf-live-card);
}
.vf-kg-edges path {
  stroke: rgba(91, 140, 255, 0.42);
  stroke-width: 1.7;
}
.vf-kg-cards {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 8px;
}
.vf-kg-warns span {
  margin-bottom: 6px;
}
.vf-kg-spark {
  width: 100%;
  height: 46px;
  display: block;
  margin: 0 0 8px;
}
.vf-kg-spark polyline {
  fill: none;
  stroke: var(--copper);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.vf-kg-warns ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vf-kg-warns li {
  display: flex;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text);
  padding: 3px 0;
  border-top: 1px solid var(--vf-inner-line);
}
.vf-kg-warns li:first-child { border-top: 0; }
.vf-kg-warns time {
  font-family: var(--mono);
  color: var(--muted);
  flex: 0 0 42px;
}
.vf-kg-warns li.warn { color: var(--copper); }
.vf-kg-warns li.ok { color: var(--ok); }
.vf-kg-warns li.is-new { animation: vfChatIn 0.35s ease both; }
.vf-kg-node { cursor: pointer; }
.vf-kg-node circle {
  fill: var(--vf-host);
  stroke: rgba(91, 140, 255, 0.45);
  stroke-width: 1.4;
}
.vf-kg-node text {
  fill: var(--muted);
  font-size: 18px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  font-weight: 650;
  text-anchor: start;
  paint-order: stroke fill;
  stroke: var(--vf-live-card);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.vf-kg-node .vf-kg-label,
.vf-kg-node .vf-kg-label-up { text-anchor: middle; }
.vf-kg-node .vf-kg-label-left { text-anchor: end; }
.vf-kg-edge-caption {
  fill: var(--muted);
  font-size: 18px;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  font-weight: 650;
}
.vf-kg-node .vf-kg-live {
  fill: var(--ok);
  font-size: 16px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  opacity: 0.2;
}
.vf-kg-node.is-on circle {
  fill: #2a2118;
  stroke: var(--copper);
  filter: drop-shadow(0 0 8px rgba(224, 154, 74, 0.55));
}
.vf-kg-node.is-on text { fill: var(--text); }
.vf-kg-node.is-on .vf-kg-live { opacity: 1; }
.vf-kg-node.is-walk circle {
  stroke: var(--accent-2);
  filter: drop-shadow(0 0 8px rgba(91, 140, 255, 0.55));
}
.vf-kg.is-deps .vf-kg-edges path { opacity: 0.16; }
.vf-kg.is-deps .vf-kg-edges path.is-path-0,
.vf-kg.is-deps .vf-kg-edges path.is-path-1,
.vf-kg.is-deps .vf-kg-edges path.is-path-2 {
  opacity: 1;
  stroke-width: 2.4;
  stroke-dasharray: 7 6;
  animation: vfKgDash 1.2s linear infinite;
}
.vf-kg.is-deps .vf-kg-edges path.is-path-0 { stroke: #e09a4a; }
.vf-kg.is-deps .vf-kg-edges path.is-path-1 { stroke: #5b8cff; }
.vf-kg.is-deps .vf-kg-edges path.is-path-2 { stroke: #3ee0a4; }
.vf-kg.is-deps .vf-kg-node.is-path circle {
  stroke: var(--ok);
}
.vf-kg-card {
  border: 1px solid var(--vf-inner-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--vf-live-card);
}
.vf-kg-card b {
  display: block;
  font-size: 1.22rem;
  font-family: var(--mono);
  color: var(--text);
}
.vf-kg-card span {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vf-kg-capped span { margin: 0 0 6px; }
.vf-kg-capped p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  padding: 4px 0 2px;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vf-kg-capped b {
  display: block;
  font-size: 1.08rem;
  letter-spacing: 0;
  text-transform: none;
}
.vf-kg-paths {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  width: 100%;
  flex: 0 0 auto;
  text-align: left;
}
.vf-kg-paths[hidden] { display: none !important; }
.vf-kg-paths li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  border-left: 3px solid var(--copper);
  padding: 8px 12px;
  background: rgba(224, 154, 74, 0.08);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text);
  text-align: left;
}
.vf-kg-paths li:nth-child(2) { border-color: #5b8cff; background: rgba(91, 140, 255, 0.08); }
.vf-kg-paths li:nth-child(3) { border-color: #3ee0a4; background: rgba(62, 224, 164, 0.08); }
.vf-kg-paths em {
  display: inline;
  flex: 0 0 13.5rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
@keyframes vfKgDash {
  to { stroke-dashoffset: -26; }
}
.vf-panel.is-playing .vf-kg-node.is-on .vf-kg-live,
.kg-demo.is-playing .vf-kg-node.is-on .vf-kg-live,
.vf-kg.is-playing .vf-kg-node.is-on .vf-kg-live {
  animation: vfPulse 2.4s ease-in-out infinite;
}
.vf-bubble-result strong { color: var(--copper); }

@keyframes vfPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.4); }
}
@keyframes vfBar {
  0% { transform: scaleX(0.2); opacity: 0.45; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.25); opacity: 0.5; }
}
@keyframes vfRide {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}
@keyframes vfLake {
  0%, 100% { background: rgba(224, 154, 74, 0.08); }
  50% { background: rgba(224, 154, 74, 0.2); }
}
@keyframes vfP2pNode {
  0%, 4% { opacity: 0.4; }
  8%, 82% { opacity: 1; }
  92%, 100% { opacity: 0.4; }
}
@keyframes vfP2pDot {
  0%, 5% {
    fill: var(--vf-host);
    stroke: rgba(91, 140, 255, 0.35);
    filter: none;
  }
  9%, 78% {
    fill: #16382e;
    stroke: #3ee0a4;
    filter: drop-shadow(0 0 7px rgba(62, 224, 164, 0.9));
  }
  90%, 100% {
    fill: var(--vf-host);
    stroke: rgba(91, 140, 255, 0.35);
    filter: none;
  }
}
@keyframes vfP2pScreen {
  0%, 5% { fill: var(--vf-screen); }
  9%, 78% { fill: #2ee6a0; }
  90%, 100% { fill: var(--vf-screen); }
}
@keyframes vfP2pHub {
  0%, 48% { filter: none; opacity: 0.85; }
  58%, 82% { filter: drop-shadow(0 0 16px rgba(91, 140, 255, 0.65)); opacity: 1; }
  92%, 100% { filter: none; opacity: 0.85; }
}
@keyframes vfP2pLabel {
  0%, 5% { fill: var(--muted); }
  9%, 78% { fill: var(--ok); }
  90%, 100% { fill: var(--muted); }
}
@keyframes vfP2pLink {
  0%, 10% { stroke: rgba(47, 107, 255, 0.14); }
  18%, 78% { stroke: rgba(91, 140, 255, 0.75); }
  90%, 100% { stroke: rgba(47, 107, 255, 0.14); }
}
@keyframes vfP2pGlow {
  0%, 48% { box-shadow: none; }
  56%, 82% { box-shadow: 0 0 0 1px rgba(62, 224, 164, 0.35), 0 0 28px rgba(62, 224, 164, 0.18); }
  92%, 100% { box-shadow: none; }
}
@keyframes vfP2pCopy {
  0%, 16% { opacity: 1; }
  18%, 100% { opacity: 0; }
}
@keyframes vfP2pCopyHold {
  0%, 54% { opacity: 0; }
  58%, 82% { opacity: 1; color: var(--ok); }
  90%, 100% { opacity: 0; }
}
@keyframes vfGrow {
  from { transform: scaleY(0.15); }
  to { transform: scaleY(1); }
}
@keyframes vfChatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Phone and small-tablet layout. These rules sit after the component
   styles so they win the cascade — earlier max-width blocks are overridden
   by rules defined later in this file. */
@media (max-width: 820px) {
  .hero > * { min-width: 0; }
  .hero .hero-actions { flex-wrap: wrap; }
  .chips-hero .chip,
  .cta-band h2,
  .cta-band .lede,
  .lede-nowrap,
  .stat b,
  .edf-lockup-tag,
  .vf-kg-deps { white-space: normal; }

  .vf-ui,
  .vf-ui-engage,
  .vf-plants,
  .vf-live-grid,
  .vf-kg-body,
  .vf-kg-cards {
    grid-template-columns: 1fr;
  }
  .vf-ui,
  .vf-ui-engage,
  .vf-live,
  .vf-kg { min-height: 0; }
  .vf-rail { display: none; }
  .vf-live-kpis { grid-template-columns: 1fr 1fr; }
  .vf-chat {
    border-right: 0;
    border-bottom: 1px solid var(--vf-inner-line);
  }
  .vf-kg-paths li { flex-wrap: wrap; gap: 4px 12px; }
  .vf-kg-paths em { flex: 0 0 100%; }
  .vf-tabs { max-width: 100%; }
  .vf-chrome,
  .kg-demo,
  .kg-stack,
  .vf-kg,
  .vf-kg-toolbar,
  .vf-kg-find { min-width: 0; max-width: 100%; }
  .vf-kg-toolbar { flex-wrap: wrap; }
  .nav-panel {
    max-height: calc(100dvh - var(--nav-h) - 12px);
    overflow: auto;
    box-shadow: var(--shadow);
  }
  body.nav-open { overflow: hidden; }
  .menu-toggle { font-size: 1.35rem; line-height: 1; }
  body.nav-open .menu-toggle { font-size: 0; }
  body.nav-open .menu-toggle::after {
    content: "×";
    font-size: 1.75rem;
    line-height: 1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
    --nav-h: 64px;
    --radius: 16px;
  }

  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

  h1,
  .hero .page-header h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.3rem);
    text-wrap: balance;
  }
  h2 { font-size: clamp(1.55rem, 6.4vw, 2rem); text-wrap: balance; }
  .lede { font-size: 1.02rem; }

  .kicker {
    letter-spacing: 0.08em;
    line-height: 1.45;
  }

  .nav-links a {
    padding: 12px 14px;
    font-size: 1.02rem;
  }
  .nav-cta .btn {
    width: 100%;
    height: 46px;
  }
  body.nav-open .nav-panel {
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    top: 100%;
    min-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top));
    max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top));
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 8px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .hero {
    gap: 22px;
    --hero-pad-top: 28px;
  }
  .hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .hero .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    line-height: 1.25;
    text-align: center;
  }
  .chips-hero {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
  .chips-hero .chip {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
    min-height: 42px;
    padding: 8px 10px;
  }
  .hero-visual {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
    gap: 10px;
    margin-bottom: 22px;
  }
  .stat { flex: initial; padding: 14px 14px; }
  .stat b { font-size: 1.12rem; }
  .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .markets { gap: 8px; }
  .market { height: 128px; }
  .market figcaption { font-size: 0.8rem; padding: 10px 12px; }

  .grid-3,
  .pricing { grid-template-columns: 1fr; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }
  .section-head .btn { width: 100%; }

  .card { padding: 18px; }
  .video-rail .card { flex-basis: calc(100% - 36px); }

  .cta-band {
    padding: 22px 18px;
    border-radius: 20px;
    align-items: stretch;
  }
  .cta-band .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }
  .cta-band .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .faq-item summary {
    position: relative;
    padding-right: 28px;
  }
  .faq-item summary::after {
    float: none;
    position: absolute;
    right: 0;
    top: 18px;
  }

  .form-shell {
    gap: 22px;
    padding-top: 32px;
    padding-bottom: 72px;
  }
  .form-grid { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; }
  .price .hero-actions .btn { width: 100%; }

  .vf-tabs-bar { margin-bottom: 16px; }
  .vf-tabs-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .vf-tabs-cluster .vf-try-me,
  .vf-tabs-cluster .vf-tabs { grid-column: auto; justify-self: center; }
  .vf-try-me,
  .vf-kg-try {
    flex-direction: column;
    gap: 2px;
    font-size: 1rem;
  }
  .vf-try-me i,
  .vf-kg-try i {
    width: 34px;
    height: 14px;
    transform: rotate(90deg);
  }
  .vf-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .vf-tab {
    text-align: center;
    padding: 12px 4px;
  }
  .vf-chrome-bar { gap: 8px; padding: 8px 10px; }
  .vf-chrome-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.62rem;
  }
  .vf-plants { gap: 10px; }
  .vf-plant { padding: 14px 14px; }
  .vf-plant header { font-size: 1rem; }
  .vf-p2p { display: none; }
  .vf-kg { padding: 10px 10px 12px; }
  .vf-kg-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .vf-kg-toolbar p { font-size: 0.92rem; }
  .vf-kg-find {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .vf-kg-try { align-self: center; }
  .vf-kg-deps {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }
  .vf-kg-tree button {
    font-size: 0.92rem;
    padding: 8px 8px;
  }
  .vf-kg-svg { min-height: 200px; }
  .vf-kg-canvas { grid-template-rows: auto auto auto; }
  .vf-events li {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 6px;
  }
  .vf-live { padding: 12px; }

  .doc-modal {
    inset: 0;
    border-radius: 0;
    height: 100dvh;
    max-height: 100dvh;
  }
  .doc-modal-head {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: calc(12px + env(safe-area-inset-top));
  }
  .doc-modal-head strong { flex: 1 1 100%; }
  .doc-modal-actions { width: 100%; }
  .doc-modal-actions .btn {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 10px;
  }
  .video-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    margin: auto;
    border-radius: 14px;
  }
  .video-modal-head strong { min-width: 0; flex: 1; }
  .video-modal-close { flex: 0 0 auto; width: 40px; height: 40px; }
  .doc-page { padding-top: 36px; padding-bottom: 64px; }
  .doc-page-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .doc-page-frame { height: 70dvh; }

  .feature-event { padding: 16px; }
  .feature-event-art { min-height: 0; }
  .news-item { gap: 6px; }

  .legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-grid { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .vf-panel .vf-plant,
  .vf-panel .vf-node,
  .vf-panel .vf-stream span,
  .vf-panel .vf-link,
  .vf-panel .vf-lake,
  .vf-panel .vf-p2p-hub,
  .vf-panel .vf-p2p-link,
  .vf-panel .vf-p2p-status span,
  .vf-panel .vf-bubble,
  .vf-panel .vf-sql,
  .vf-panel .vf-kpi,
  .vf-panel .vf-chart span,
  .vf-panel .vf-site,
  .vf-panel .vf-notify,
  .vf-panel .vf-step,
  .vf-panel .vf-kg-edges path {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .vf-pkt { display: none; }
  .vf-kg-try,
  .vf-try-me { animation: none !important; transform: none !important; }
}
