/* Copyright 2026 Ari Sulistiono
   SPDX-License-Identifier: Apache-2.0 */
:root {
  color-scheme: light;
  --bg: #fbfdff;
  --surface: #ffffff;
  --surface-soft: #f4f8fb;
  --brand: #3d7f9c;
  --brand-2: #12a8c4;
  --brand-soft: #edf8fb;
  --brand-ink: #15536a;
  --ink: #102234;
  --ink-strong: #071827;
  --muted: #64758a;
  --muted-2: #8a98a8;
  --hairline: #dce7ee;
  --hairline-2: #cbdbe5;
  --shadow-soft: 0 18px 60px rgba(15, 34, 52, 0.08);
  --shadow-panel: 0 32px 90px rgba(15, 34, 52, 0.14);
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.22, 1.25, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(70% 52% at 52% 0%, rgba(61, 127, 156, 0.10), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfd 54%, #fbfdff 100%);
  color: var(--ink);
  font-family: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
section[id] { scroll-margin-top: 92px; }
code { border: 1px solid rgba(220, 231, 238, 0.86); border-radius: 7px; background: rgba(244, 248, 251, 0.88); color: var(--ink-strong); font-size: 0.92em; padding: 0.1em 0.35em; }
ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
li + li { margin-top: 5px; }

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(61, 127, 156, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 127, 156, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(55% 50% at 50% 18%, #000, transparent 78%);
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(220, 231, 238, 0.78);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(20px) saturate(1.14);
  box-shadow: 0 8px 28px rgba(15, 34, 52, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 34, 52, 0.14);
  transition: transform 520ms var(--spring), box-shadow 520ms var(--ease);
}
.brand:hover img { transform: translateY(-2px) rotate(-1.5deg); box-shadow: 0 16px 34px rgba(15, 34, 52, 0.18); }
.brand strong,
.brand small { display: block; white-space: nowrap; }
.brand strong { color: var(--ink-strong); font-size: 15px; font-weight: 620; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; font-weight: 450; }

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(220, 231, 238, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  padding: 4px;
}
.nav-links a {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  line-height: 1;
  text-decoration: none;
  transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}
.nav-links a:hover { background: var(--surface-soft); color: var(--ink); transform: translateY(-1px); }

main,
.site-footer { width: min(1180px, calc(100vw - 48px)); margin-inline: auto; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  min-height: 100vh;
  padding: 118px 0 76px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 76px -12vw auto;
  height: 56%;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 34%, rgba(18, 168, 196, 0.13), transparent 28%),
    radial-gradient(circle at 22% 26%, rgba(61, 127, 156, 0.10), transparent 32%);
  filter: blur(6px);
}
.hero-copy,
.hero-panel { min-width: 0; }
.hero-copy { max-width: 620px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--brand-2); box-shadow: 0 0 0 5px rgba(18, 168, 196, 0.12); }

h1,
h2,
h3,
p { margin-top: 0; }
h1,
h2,
h3 { color: var(--ink-strong); letter-spacing: 0; text-wrap: balance; }
h1 { max-width: 680px; margin-bottom: 22px; font-size: clamp(34px, 3.55vw, 50px); font-weight: 560; line-height: 1.08; }
h2 { margin-bottom: 16px; font-size: clamp(28px, 3vw, 36px); font-weight: 560; line-height: 1.16; }
h3 { margin-bottom: 10px; font-size: 18px; font-weight: 560; line-height: 1.28; }
p { color: var(--muted); }
.lead,
.section-heading p { max-width: 720px; color: var(--muted); font-size: 17px; font-weight: 400; line-height: 1.78; }

.hero-actions,
.doc-link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  gap: 9px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  transition: transform 260ms var(--spring), box-shadow 260ms var(--ease), border-color 260ms var(--ease), background 260ms var(--ease);
}
.button::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent); transition: transform 760ms var(--ease); }
.button:hover { transform: translateY(-2px); }
.button:hover::after { transform: translateX(120%); }
.button.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 16px 38px rgba(18, 168, 196, 0.24); }
.button.secondary { border-color: rgba(220, 231, 238, 0.96); background: rgba(255, 255, 255, 0.82); color: var(--ink); box-shadow: 0 10px 28px rgba(15, 34, 52, 0.06); }

.project-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.project-badges a { display: inline-flex; align-items: center; min-height: 22px; line-height: 0; text-decoration: none; opacity: 0.94; transition: transform 220ms var(--ease), opacity 220ms var(--ease), filter 220ms var(--ease); }
.project-badges a:hover { transform: translateY(-1px); opacity: 1; filter: saturate(1.05); }
.project-badges img { height: 20px; max-width: 100%; border-radius: 5px; box-shadow: 0 8px 18px rgba(15, 34, 52, 0.05); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.trust-strip span,
.live-pill { display: inline-flex; align-items: center; border: 1px solid rgba(220, 231, 238, 0.96); border-radius: 999px; background: rgba(255, 255, 255, 0.76); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1; padding: 9px 12px; box-shadow: 0 8px 22px rgba(15, 34, 52, 0.045); }
.live-pill { color: var(--brand-ink); background: #e8f8fb; }
.live-pill::before { content: ""; width: 7px; height: 7px; margin-right: 8px; border-radius: 999px; background: var(--brand-2); animation: pulseDot 1.8s ease-in-out infinite; }

.hero-panel { position: relative; border: 1px solid rgba(220, 231, 238, 0.92); border-radius: 30px; padding: clamp(16px, 2.8vw, 28px); background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 252, 0.90)), var(--surface); box-shadow: var(--shadow-panel); }
.hero-panel::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(18,168,196,0.18), rgba(255,255,255,0.5)); }
.hero-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.panel-logo { width: 84px; max-width: 30%; height: auto; border-radius: 20px; filter: drop-shadow(0 16px 24px rgba(15, 34, 52, 0.10)); }
.screen-frame { appearance: none; position: relative; display: block; width: 100%; aspect-ratio: 5 / 3; overflow: hidden; border: 1px solid var(--hairline); border-radius: 20px; background: #fff; box-shadow: 0 18px 52px rgba(15, 34, 52, 0.14); cursor: zoom-in; line-height: 0; padding: 0; text-align: left; }
.screen-frame::after { content: "Click to enlarge"; position: absolute; right: 12px; top: 12px; z-index: 2; border: 1px solid rgba(255, 255, 255, 0.44); border-radius: 999px; background: rgba(7, 24, 39, 0.66); color: #fff; font-size: 11px; font-weight: 500; line-height: 1; opacity: 0; padding: 8px 10px; transform: translateY(-6px); transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.screen-frame:hover::after { opacity: 1; transform: translateY(0); }
.screen-frame img { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; transition: transform 760ms var(--spring), filter 420ms var(--ease); }
.screen-frame:hover img { transform: scale(1.012); filter: saturate(1.04) contrast(1.015); }
.screen-frame video { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.featured-screen { aspect-ratio: 16 / 9; cursor: default; }
.featured-screen::after { content: none; }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.metric-row div { min-height: 76px; border: 1px solid rgba(220, 231, 238, 0.94); border-radius: 17px; padding: 13px; background: rgba(255, 255, 255, 0.78); box-shadow: 0 12px 28px rgba(15, 34, 52, 0.045); }
.metric-row span,
.report-list span,
.notice span,
.evidence-card > span:not(.evidence-icon) { display: block; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.55; }
.metric-row strong { display: block; margin-top: 8px; color: var(--ink-strong); font-size: 15px; font-weight: 560; line-height: 1.4; }

.section { padding: 88px 0; border-top: 1px solid rgba(220, 231, 238, 0.80); }
.section-heading { max-width: 780px; margin-bottom: 38px; }
.value-grid,
.evidence-grid,
.screen-grid,
.proof-grid,
.doc-grid,
.faq-grid { display: grid; gap: 14px; }
.value-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.evidence-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.value-card,
.evidence-card,
.proof-card,
.doc-card,
.faq-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(220, 231, 238, 0.92); border-radius: 22px; padding: 22px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 253, 0.78)), var(--surface); box-shadow: 0 14px 40px rgba(15, 34, 52, 0.06); transition: transform 260ms var(--spring), border-color 260ms var(--ease), box-shadow 260ms var(--ease); }
.value-card:hover,
.evidence-card:hover,
.proof-card:hover,
.doc-card:hover,
.faq-card:hover { transform: translateY(-4px); border-color: rgba(18, 168, 196, 0.28); box-shadow: 0 24px 64px rgba(15, 34, 52, 0.10); }
.value-card { min-height: 244px; }
.evidence-card { min-height: 166px; }
.proof-card { min-height: 176px; border-color: rgba(18, 168, 196, 0.18); background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 248, 251, 0.82)), var(--surface); }
.doc-card { min-height: 190px; }
.faq-card { min-height: 150px; background: rgba(255, 255, 255, 0.84); }
.proof-card strong,
.evidence-card strong,
.report-list strong { display: block; margin-bottom: 10px; color: var(--ink-strong); font-weight: 560; }
.proof-card span { display: block; color: var(--muted); font-size: 13px; line-height: 1.62; }
.evidence-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border: 1px solid rgba(18, 168, 196, 0.16); border-radius: 13px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(232, 248, 251, 0.92)), var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 650; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 24px rgba(15, 34, 52, 0.055); }

.screen-card { min-width: 0; border: 1px solid transparent; border-radius: 24px; padding: 10px 10px 18px; background: rgba(255, 255, 255, 0.44); transition: transform 260ms var(--spring), background 260ms var(--ease), box-shadow 260ms var(--ease); }
.screen-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.80); box-shadow: var(--shadow-soft); }
.screen-card h3 { margin: 18px 8px 8px; }
.screen-card p { margin-inline: 8px; }

.split,
.compliance { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr); gap: clamp(28px, 5vw, 58px); align-items: start; }
.report-list { display: grid; gap: 12px; }
.report-list div,
.notice { border: 1px solid rgba(220, 231, 238, 0.92); border-radius: 18px; padding: 18px; background: rgba(255, 255, 255, 0.86); box-shadow: 0 12px 32px rgba(15, 34, 52, 0.055); }
.report-list strong { margin-bottom: 5px; }
.evidence-band { margin-inline: calc(50% - 50vw); padding-inline: max(24px, calc((100vw - 1180px) / 2)); background: radial-gradient(circle at 84% 16%, rgba(18, 168, 196, 0.14), transparent 28%), linear-gradient(180deg, rgba(248, 252, 253, 0.94), rgba(237, 248, 251, 0.70)); }
.notice { border-left: 4px solid var(--brand); box-shadow: 0 14px 40px rgba(15, 34, 52, 0.075); }
.notice strong { display: block; margin-bottom: 14px; color: var(--ink-strong); font-weight: 560; }
.notice a { display: block; border-top: 1px solid var(--hairline); padding: 9px 0; color: var(--ink); font-weight: 500; text-decoration: none; }
.notice a:hover { color: var(--brand-ink); }
.download-band { border-top: 0; }
.download-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; border: 1px solid rgba(18, 168, 196, 0.20); border-radius: 28px; padding: clamp(24px, 5vw, 42px); background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 248, 251, 0.86)), var(--surface); box-shadow: 0 24px 70px rgba(15, 34, 52, 0.12); }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.doc-main { padding-top: 112px; padding-bottom: 72px; }
.doc-hero { max-width: 900px; padding: 48px 0 40px; }
.doc-hero p { max-width: 740px; }
.doc-card h3,
.faq-card h3,
.value-card h3 { margin-bottom: 10px; }
.doc-card p,
.faq-card p,
.value-card p { margin-bottom: 0; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--brand-ink); }

.lightbox { width: min(94vw, 1280px); max-width: 1280px; border: 0; border-radius: 26px; padding: 18px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34); }
.lightbox::backdrop { background: rgba(8, 17, 27, 0.68); backdrop-filter: blur(10px); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; max-height: 78vh; object-fit: contain; border: 1px solid var(--hairline); border-radius: 18px; background: #fff; }
.lightbox figcaption { margin-top: 12px; color: var(--ink); font-weight: 560; }
.lightbox-close { display: inline-flex; float: right; align-items: center; justify-content: center; min-height: 36px; margin-bottom: 12px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 500; padding: 8px 13px; }

.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 28px 0 42px; border-top: 1px solid rgba(220, 231, 238, 0.82); color: var(--muted); font-size: 13px; font-weight: 430; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 680ms var(--ease), transform 680ms var(--ease); transition-delay: 0ms; will-change: opacity, transform; }
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 180ms; }
.delay-3 { transition-delay: 260ms; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.kinetic-ready { --rx: 0deg; --ry: 0deg; --lift: 0px; transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; }
.kinetic-ready:hover { --lift: -2px; }
.click-ripple { position: absolute; z-index: 5; width: 12px; height: 12px; pointer-events: none; border-radius: 999px; background: rgba(18, 168, 196, 0.20); transform: translate(-50%, -50%) scale(0); animation: rippleOut 620ms var(--ease) forwards; }

@keyframes pulseDot { 0%, 100% { opacity: 0.55; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.13); } }
@keyframes rippleOut { to { opacity: 0; transform: translate(-50%, -50%) scale(34); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 980px) {
  .site-header { height: auto; min-height: 68px; align-items: flex-start; flex-wrap: wrap; padding: 14px 18px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  main,
  .site-footer { width: min(1180px, calc(100vw - 32px)); }
  .hero,
  .split,
  .compliance,
  .download-card { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 150px; }
  .download-actions { justify-content: flex-start; }
  .value-grid,
  .evidence-grid,
  .proof-grid,
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-grid,
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .site-header { padding: 12px 14px; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 11px; }
  main,
  .site-footer { width: calc(100vw - 28px); max-width: calc(100vw - 28px); }
  .hero { gap: 28px; padding-top: 154px; padding-bottom: 56px; }
  .hero-copy,
  .hero-panel { width: calc(100vw - 28px); max-width: calc(100vw - 28px); overflow: hidden; }
  h1 { max-width: 100%; font-size: 30px; line-height: 1.15; text-wrap: normal; }
  h2 { font-size: 27px; text-wrap: normal; }
  h3 { font-size: 17px; }
  .lead,
  .section-heading p { max-width: min(100%, 36ch); font-size: 16px; line-height: 1.68; }
  .hero-actions,
  .doc-link-row { flex-direction: column; align-items: flex-start; max-width: 330px; }
  .button { width: 100%; max-width: 330px; }
  .trust-strip { gap: 8px; }
  .hero-panel { border-radius: 24px; padding: 14px; }
  .panel-logo { width: 68px; }
  .hero-panel-top { align-items: flex-start; flex-direction: column; gap: 12px; }
  .metric-row,
  .value-grid,
  .evidence-grid,
  .proof-grid,
  .doc-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .doc-main { padding-top: 148px; }
  .evidence-band { padding-inline: 14px; }
  .site-footer { flex-direction: column; }
}


/* Field Wiki and bilingual landing polish */
.nav-links a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.card-link { display: inline-flex; margin-top: 18px; color: var(--brand-ink); font-size: 13px; font-weight: 560; text-decoration: none; }
.card-link::after { content: "→"; margin-left: 8px; transition: transform 220ms var(--ease); }
.card-link:hover::after { transform: translateX(3px); }
.wiki-grid .doc-card { min-height: 230px; }
.protocol-console { display: grid; gap: 10px; border: 1px solid rgba(18, 168, 196, 0.18); border-radius: 22px; padding: 18px; background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(237,248,251,0.86)); box-shadow: 0 18px 48px rgba(15, 34, 52, 0.08); }
.protocol-console div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 3px; align-items: center; border: 1px solid rgba(220, 231, 238, 0.9); border-radius: 14px; padding: 12px; background: rgba(255,255,255,0.78); }
.protocol-console span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 24px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.protocol-console .tx { color: #17506a; background: #e8f8fb; }
.protocol-console .rx { color: #37515e; background: #eef4f7; }
.protocol-console code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.protocol-console small { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.4; }
.hero .protocol-console { margin-top: 16px; }
@media (max-width: 620px) { .protocol-console div { grid-template-columns: 1fr; } .protocol-console small { grid-column: 1; } }


/* Material icon polish for public landing pages */
.material-icon { display: inline-block; width: 17px; height: 17px; flex: 0 0 auto; fill: currentColor; stroke: none; overflow: visible; vertical-align: middle; transform-origin: 50% 50%; }
.material-icon use { fill: currentColor; stroke: none; }
.nav-links a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; line-height: 1; }
.nav-links a span,
.button span { display: inline-flex; align-items: center; line-height: 1; }
.nav-links .material-icon { width: 15px; height: 15px; opacity: 0.82; }
.nav-links a:hover .material-icon,
.nav-links a[aria-current="page"] .material-icon { opacity: 1; }
.flag-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", system-ui, sans-serif; font-size: 15px; line-height: 1; transform: translateY(-0.5px); filter: drop-shadow(0 1px 1px rgba(15, 34, 52, 0.12)); }
.button { line-height: 1; }
.button .material-icon { width: 18px; height: 18px; opacity: 0.95; }
.button.primary .material-icon { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16)); }

.faq-grid { grid-template-columns: 1fr; gap: 18px; }
.faq-card { min-height: 0; padding: 0; background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 253, 0.82)), var(--surface); }
.faq-accordion { overflow: hidden; }
.faq-toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; margin: 0; border: 0; padding: 24px 24px 18px; background: transparent; color: inherit; text-align: left; cursor: pointer; appearance: none; }
.faq-toggle::-moz-focus-inner { border: 0; }
.faq-toggle:hover .faq-question { color: var(--brand-ink); }
.faq-toggle:focus-visible { outline: none; }
.faq-toggle:focus-visible .faq-question,
.faq-toggle:focus-visible .faq-chevron { box-shadow: 0 0 0 4px rgba(18, 168, 196, 0.16); }
.faq-question { display: block; color: var(--ink-strong); font-size: clamp(19px, 2vw, 22px); font-weight: 560; line-height: 1.2; transition: color 220ms var(--ease); }
.faq-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--brand-ink); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.faq-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--brand-2); box-shadow: 0 0 0 5px rgba(18, 168, 196, 0.10); }
.faq-chevron { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid rgba(18, 168, 196, 0.16); border-radius: 999px; background: linear-gradient(145deg, rgba(255,255,255,0.84), rgba(232,248,251,0.92)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 10px 24px rgba(15, 34, 52, 0.06); transition: transform 320ms var(--spring), background 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease); }
.faq-chevron::before,
.faq-chevron::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 999px; background: var(--brand-ink); transform: translate(-50%, -50%); transition: transform 240ms var(--ease), opacity 220ms var(--ease); }
.faq-chevron::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-card.is-open .faq-chevron { transform: rotate(180deg); background: linear-gradient(145deg, rgba(232,248,251,0.96), rgba(255,255,255,0.9)); border-color: rgba(18, 168, 196, 0.28); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 12px 28px rgba(15, 34, 52, 0.08); }
.faq-card.is-open .faq-chevron::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scale(0.4); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--spring); }
.faq-card.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { min-height: 0; overflow: hidden; padding: 0 24px 0; }
.faq-answer p { margin: 0; padding: 0 0 24px; color: var(--muted); font-size: 17px; line-height: 1.72; }
.faq-answer::before { content: ""; display: block; height: 1px; margin: 0 24px; background: rgba(220, 231, 238, 0.92); opacity: 0; transform: scaleX(0.96); transition: opacity 220ms var(--ease), transform 280ms var(--ease); }
.faq-card.is-open .faq-answer::before { opacity: 1; transform: scaleX(1); }
@media (max-width: 620px) { .faq-toggle { padding: 22px 20px 16px; gap: 12px; } .faq-question { font-size: 18px; } .faq-chevron { width: 32px; height: 32px; } .faq-answer-inner { padding-inline: 20px; } .faq-answer::before { margin-inline: 20px; } .faq-answer p { padding-bottom: 20px; font-size: 16px; line-height: 1.68; } }

.card-top-icon,
.evidence-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 0; text-align: center; padding: 0; overflow: hidden; }
.card-top-icon { width: 40px; height: 40px; margin-bottom: 16px; border: 1px solid rgba(18, 168, 196, 0.17); border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,0.86), rgba(232,248,251,0.92)); color: var(--brand-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 12px 26px rgba(15, 34, 52, 0.055); }
.card-top-icon.subtle { width: 38px; height: 38px; margin-bottom: 14px; }
.card-top-icon .material-icon,
.evidence-icon .material-icon { position: absolute; left: 50%; top: 50%; display: block; width: 20px; height: 20px; margin: 0; transform: translate(-50%, -50%) translateZ(0); }
.card-top-icon.subtle .material-icon { width: 19px; height: 19px; }
.screen-card .card-top-icon { margin: 16px 8px 0; }
.screen-card h3 { margin-top: 12px; }
.card-link { align-items: center; gap: 7px; }
@media (max-width: 620px) { .nav-links a { gap: 5px; padding-inline: 10px; } .nav-links .material-icon { width: 14px; height: 14px; } .screen-card .card-top-icon { margin-top: 14px; } }


/* Premium FAQ accordion layout - final override */
.faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(460px, 1.22fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
  padding: 34px 0 88px;
}
.faq-intro { position: sticky; top: 132px; min-width: 0; }
.faq-intro h2 { max-width: 12ch; margin-bottom: 18px; font-size: clamp(32px, 4.2vw, 54px); font-weight: 560; line-height: 1.04; letter-spacing: -0.035em; }
.faq-intro p { max-width: 34ch; margin-top: clamp(80px, 16vh, 190px); color: var(--muted); font-size: 15px; line-height: 1.68; }
.faq-intro .button { width: auto; margin-top: 18px; padding-inline: 18px; }
.faq-grid { display: grid; grid-template-columns: 1fr !important; gap: 14px !important; min-width: 0; }
.faq-card,
.faq-card.faq-accordion { min-height: 0 !important; padding: 0 !important; overflow: hidden; border: 1px solid rgba(220, 231, 238, 0.86); border-radius: 18px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 253, 0.92)), var(--surface); box-shadow: 0 14px 38px rgba(15, 34, 52, 0.055); transform: none !important; transition: border-color 240ms var(--ease), box-shadow 260ms var(--ease), background 240ms var(--ease); }
.faq-card:hover,
.faq-card.faq-accordion:hover { transform: none !important; border-color: rgba(18, 168, 196, 0.24); box-shadow: 0 18px 54px rgba(15, 34, 52, 0.085); }
.faq-card.is-open { border-color: rgba(18, 168, 196, 0.58); box-shadow: 0 22px 62px rgba(15, 34, 52, 0.09), inset 0 0 0 1px rgba(18, 168, 196, 0.16); background: radial-gradient(circle at 96% 12%, rgba(18, 168, 196, 0.08), transparent 34%), linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 253, 0.94)), var(--surface); }
.faq-toggle { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 18px; align-items: center; width: 100%; min-height: 78px; margin: 0; border: 0; padding: 21px 22px; background: transparent; color: var(--ink-strong); text-align: left; cursor: pointer; appearance: none; }
.faq-toggle::-moz-focus-inner { border: 0; }
.faq-toggle:focus-visible { outline: none; }
.faq-toggle:focus-visible .faq-question,
.faq-toggle:focus-visible .faq-chevron { box-shadow: 0 0 0 4px rgba(18, 168, 196, 0.16); }
.faq-question { display: block; margin: 0; color: var(--ink-strong); font-size: clamp(16px, 1.45vw, 18px); font-weight: 570; line-height: 1.28; letter-spacing: -0.012em; }
.faq-chevron { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; justify-self: end; border: 1px solid rgba(15, 34, 52, 0.16); border-radius: 999px; background: rgba(255, 255, 255, 0.88); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 9px 22px rgba(15, 34, 52, 0.055); transition: border-color 240ms var(--ease), background 240ms var(--ease), box-shadow 240ms var(--ease), transform 330ms var(--spring); }
.faq-chevron::before,
.faq-chevron::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; border-radius: 999px; background: var(--ink-strong); transform: translate(-50%, -50%); transition: opacity 220ms var(--ease), transform 260ms var(--spring), background 220ms var(--ease); }
.faq-chevron::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-card.is-open .faq-chevron { border-color: rgba(18, 168, 196, 0.62); background: rgba(232, 248, 251, 0.94); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 28px rgba(18, 168, 196, 0.12); transform: rotate(180deg); }
.faq-card.is-open .faq-chevron::before,
.faq-card.is-open .faq-chevron::after { background: var(--brand-ink); }
.faq-card.is-open .faq-chevron::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scale(0.25); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--spring); }
.faq-card.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { min-height: 0; overflow: hidden; }
.faq-answer-inner p { margin: 0; padding: 0 22px 24px; max-width: 72ch; color: var(--muted); font-size: 15px; line-height: 1.68; }
.faq-answer-inner::before { content: ""; display: block; height: 1px; margin: 0 22px 18px; background: linear-gradient(90deg, rgba(18, 168, 196, 0.28), rgba(220, 231, 238, 0.76), transparent); opacity: 0; transform: scaleX(0.96); transform-origin: left; transition: opacity 240ms var(--ease), transform 300ms var(--ease); }
.faq-card.is-open .faq-answer-inner::before { opacity: 1; transform: scaleX(1); }
@media (max-width: 980px) { .faq-section { grid-template-columns: 1fr; gap: 28px; padding-bottom: 72px; } .faq-intro { position: static; } .faq-intro h2 { max-width: 16ch; } .faq-intro p { margin-top: 12px; } }
@media (max-width: 620px) { .faq-section { padding-top: 16px; gap: 24px; } .faq-intro h2 { max-width: 12ch; font-size: 34px; } .faq-toggle { grid-template-columns: minmax(0, 1fr) 34px; min-height: 70px; gap: 12px; padding: 18px 18px; } .faq-question { font-size: 16px; } .faq-chevron { width: 31px; height: 31px; } .faq-answer-inner p { padding: 0 18px 20px; font-size: 14.5px; line-height: 1.66; } .faq-answer-inner::before { margin-inline: 18px; margin-bottom: 16px; } }

/* Isolated premium FAQ accordion: avoids legacy card-grid rules */
.faq-layout,
.faq-home-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(480px, 1.22fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.faq-layout {
  padding: clamp(42px, 7vw, 74px) 0 88px;
}

.faq-home-layout {
  padding-block: 84px;
}

.faq-copy,
.faq-home-copy {
  min-width: 0;
}

.faq-copy {
  position: sticky;
  top: 132px;
}

.faq-copy h1,
.faq-home-copy h2 {
  max-width: 13ch;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.faq-home-copy h2 {
  font-size: clamp(30px, 3.2vw, 42px);
}

.faq-copy p:not(.eyebrow),
.faq-home-copy p {
  max-width: 34ch;
  margin-top: clamp(70px, 13vh, 160px);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.faq-home-copy p {
  margin-top: 0;
}

.faq-copy .button,
.faq-home-copy .button {
  width: auto;
  margin-top: 18px;
  padding-inline: 18px;
}

.faq-accordion-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.faq-accordion-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 231, 238, 0.86);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 253, 0.92)), var(--surface);
  box-shadow: 0 14px 38px rgba(15, 34, 52, 0.055);
  transition: border-color 240ms var(--ease), box-shadow 260ms var(--ease), background 240ms var(--ease), transform 260ms var(--spring);
}

.faq-accordion-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 168, 196, 0.24);
  box-shadow: 0 18px 54px rgba(15, 34, 52, 0.085);
}

.faq-accordion-card.is-open {
  border-color: rgba(18, 168, 196, 0.58);
  box-shadow: 0 22px 62px rgba(15, 34, 52, 0.09), inset 0 0 0 1px rgba(18, 168, 196, 0.16);
  background: radial-gradient(circle at 96% 12%, rgba(18, 168, 196, 0.08), transparent 34%), linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 252, 253, 0.94)), var(--surface);
}

.faq-accordion-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  margin: 0;
  border: 0;
  padding: 20px 22px;
  background: transparent;
  color: var(--ink-strong);
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.faq-accordion-trigger::-moz-focus-inner { border: 0; }
.faq-accordion-trigger:focus-visible { outline: none; }
.faq-accordion-trigger:focus-visible .faq-accordion-question,
.faq-accordion-trigger:focus-visible .faq-accordion-icon { box-shadow: 0 0 0 4px rgba(18, 168, 196, 0.16); }

.faq-accordion-question {
  display: block;
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(16px, 1.45vw, 18px);
  font-weight: 570;
  line-height: 1.28;
  letter-spacing: -0.012em;
}

.faq-accordion-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  justify-self: end;
  border: 1px solid rgba(15, 34, 52, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 9px 22px rgba(15, 34, 52, 0.055);
  transition: border-color 240ms var(--ease), background 240ms var(--ease), box-shadow 240ms var(--ease), transform 330ms var(--spring);
}

.faq-accordion-icon::before,
.faq-accordion-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.8px;
  border-radius: 999px;
  background: var(--ink-strong);
  transform: translate(-50%, -50%);
  transition: opacity 220ms var(--ease), transform 260ms var(--spring), background 220ms var(--ease);
}

.faq-accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-accordion-card.is-open .faq-accordion-icon {
  border-color: rgba(18, 168, 196, 0.62);
  background: rgba(232, 248, 251, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 12px 28px rgba(18, 168, 196, 0.12);
  transform: rotate(180deg);
}

.faq-accordion-card.is-open .faq-accordion-icon::before,
.faq-accordion-card.is-open .faq-accordion-icon::after { background: var(--brand-ink); }
.faq-accordion-card.is-open .faq-accordion-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scale(0.25); }

.faq-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 360ms var(--spring), opacity 240ms var(--ease), visibility 0s linear 360ms;
}

.faq-accordion-card.is-open .faq-accordion-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows 380ms var(--spring), opacity 260ms var(--ease), visibility 0s linear 0s;
}

.faq-accordion-content {
  min-height: 0;
  overflow: hidden;
}

.faq-accordion-content::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 22px 18px;
  background: linear-gradient(90deg, rgba(18, 168, 196, 0.28), rgba(220, 231, 238, 0.76), transparent);
  transform: scaleX(0.96);
  transform-origin: left;
  opacity: 0;
  transition: transform 300ms var(--ease), opacity 240ms var(--ease);
}

.faq-accordion-card.is-open .faq-accordion-content::before {
  opacity: 1;
  transform: scaleX(1);
}

.faq-accordion-content p {
  margin: 0;
  max-width: 72ch;
  padding: 0 22px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

@media (max-width: 980px) {
  .faq-layout,
  .faq-home-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-copy {
    position: static;
  }

  .faq-copy h1,
  .faq-home-copy h2 {
    max-width: 16ch;
  }

  .faq-copy p:not(.eyebrow),
  .faq-home-copy p {
    margin-top: 12px;
  }
}

@media (max-width: 620px) {
  .faq-layout,
  .faq-home-layout {
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 64px;
  }

  .faq-copy h1,
  .faq-home-copy h2 {
    max-width: 13ch;
    font-size: 34px;
  }

  .faq-accordion-trigger {
    grid-template-columns: minmax(0, 1fr) 34px;
    min-height: 68px;
    gap: 12px;
    padding: 18px;
  }

  .faq-accordion-question { font-size: 16px; }
  .faq-accordion-icon { width: 31px; height: 31px; }
  .faq-accordion-content::before { margin-inline: 18px; margin-bottom: 16px; }
  .faq-accordion-content p { padding: 0 18px 20px; font-size: 14.5px; line-height: 1.66; }
}

/* Video hero and professional demo page polish */
.hero-panel {
  overflow: hidden;
  border-color: rgba(18, 168, 196, 0.18);
  padding: clamp(18px, 2.4vw, 24px);
  background:
    radial-gradient(circle at 76% 8%, rgba(18, 168, 196, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 252, 0.88)), var(--surface);
  box-shadow: 0 30px 86px rgba(15, 34, 52, 0.13);
}

.hero-panel-top,
.demo-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-brand-mark {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.panel-brand-mark .panel-logo {
  width: 58px;
  max-width: none;
  height: 58px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(15, 34, 52, 0.15);
  filter: none;
}

.panel-brand-mark strong,
.panel-brand-mark span {
  display: block;
  min-width: 0;
}

.panel-brand-mark strong {
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 590;
  line-height: 1.2;
}

.panel-brand-mark span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 430;
  line-height: 1.35;
}

.featured-screen {
  border-radius: 22px;
  border-color: rgba(203, 219, 229, 0.92);
  background: linear-gradient(180deg, #fff, #f7fbfd);
  box-shadow: 0 20px 54px rgba(15, 34, 52, 0.16);
}

.featured-screen video {
  object-position: center center;
}

.metric-row {
  gap: 12px;
}

.metric-row div {
  min-height: 84px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(15, 34, 52, 0.055);
}

.demo-page {
  width: min(1180px, calc(100vw - 48px));
  margin-inline: auto;
}

.demo-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: 128px 0 34px;
}

.demo-hero::before {
  content: "";
  position: absolute;
  inset: 86px -14vw auto;
  z-index: -1;
  height: 360px;
  background:
    radial-gradient(circle at 18% 28%, rgba(61, 127, 156, 0.12), transparent 28%),
    radial-gradient(circle at 74% 12%, rgba(18, 168, 196, 0.14), transparent 34%);
  filter: blur(8px);
}

.demo-hero h1 {
  max-width: 860px;
  font-size: clamp(40px, 5.2vw, 70px);
  font-weight: 560;
  line-height: 1.02;
}

.demo-hero .lead {
  max-width: 760px;
}

.demo-hero-proof {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.demo-hero-proof div {
  border: 1px solid rgba(220, 231, 238, 0.92);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 38px rgba(15, 34, 52, 0.06);
}

.demo-hero-proof span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.demo-hero-proof strong {
  display: block;
  margin-top: 5px;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 570;
  line-height: 1.35;
}

.demo-stage-section {
  padding: 6px 0 92px;
}

.demo-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 168, 196, 0.18);
  border-radius: 34px;
  padding: clamp(15px, 2vw, 22px);
  background:
    radial-gradient(circle at 88% 12%, rgba(18, 168, 196, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 248, 251, 0.86)), var(--surface);
  box-shadow: 0 36px 100px rgba(15, 34, 52, 0.16);
}

.demo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 127, 156, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 127, 156, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(65% 62% at 50% 24%, #000, transparent 80%);
  opacity: 0.6;
}

.demo-stage-bar {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.demo-video-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(203, 219, 229, 0.96);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 34, 52, 0.18);
}

.demo-video-frame video,
.demo-video-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.demo-stage-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.demo-stage-footer a {
  flex: 0 0 auto;
  color: var(--brand-ink);
  font-weight: 560;
  text-decoration: none;
}

.demo-stage-footer a:hover {
  text-decoration: underline;
}

.demo-story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.demo-story-card {
  min-width: 0;
  min-height: 246px;
  border: 1px solid rgba(220, 231, 238, 0.92);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at 90% 10%, rgba(18, 168, 196, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.86)), var(--surface);
  box-shadow: 0 16px 44px rgba(15, 34, 52, 0.065);
  transition: transform 260ms var(--spring), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.demo-story-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 168, 196, 0.28);
  box-shadow: 0 24px 64px rgba(15, 34, 52, 0.10);
}

.demo-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 30px;
  margin-bottom: 18px;
  border: 1px solid rgba(18, 168, 196, 0.20);
  border-radius: 999px;
  background: rgba(232, 248, 251, 0.88);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.demo-story-card p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
}

.demo-gallery-section .screen-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .demo-page {
    width: min(1180px, calc(100vw - 32px));
  }

  .demo-hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .demo-hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .demo-page {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .hero-panel-top,
  .demo-stage-bar,
  .demo-stage-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-brand-mark .panel-logo {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .demo-hero {
    gap: 24px;
    padding-top: 154px;
    padding-bottom: 24px;
  }

  .demo-hero h1 {
    font-size: 34px;
    line-height: 1.1;
    text-wrap: normal;
  }

  .demo-hero-proof,
  .demo-story-grid,
  .demo-gallery-section .screen-grid {
    grid-template-columns: 1fr;
  }

  .demo-stage-section {
    padding-bottom: 64px;
  }

  .demo-stage {
    border-radius: 26px;
    padding: 14px;
  }

  .demo-video-frame {
    border-radius: 20px;
  }

  .demo-story-card {
    min-height: 0;
  }
}

/* IEC 60870 wiki learning hub */
.wiki-main {
  width: min(1180px, calc(100vw - 48px));
}

.wiki-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: end;
  padding: 48px 0 60px;
}

.wiki-hero::before {
  content: "";
  position: absolute;
  inset: 20px -12vw auto;
  z-index: -1;
  height: 360px;
  background:
    radial-gradient(circle at 22% 24%, rgba(61, 127, 156, 0.12), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(18, 168, 196, 0.14), transparent 34%);
  filter: blur(8px);
}

.wiki-hero h1 {
  max-width: 860px;
  font-size: clamp(40px, 5.1vw, 68px);
  font-weight: 560;
  line-height: 1.02;
}

.wiki-hero .lead {
  max-width: 780px;
}

.wiki-hero-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(18, 168, 196, 0.18);
  border-radius: 28px;
  padding: 18px;
  background:
    radial-gradient(circle at 96% 8%, rgba(18, 168, 196, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 248, 251, 0.84)), var(--surface);
  box-shadow: 0 24px 70px rgba(15, 34, 52, 0.12);
}

.wiki-kpi,
.source-link,
.wiki-ladder-step,
.wiki-anatomy-card,
.wiki-sequence-card,
.wiki-term {
  border: 1px solid rgba(220, 231, 238, 0.92);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 38px rgba(15, 34, 52, 0.055);
}

.wiki-kpi {
  border-radius: 18px;
  padding: 14px 16px;
}

.wiki-kpi span,
.source-link span,
.wiki-term span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

.wiki-kpi strong,
.source-link strong,
.wiki-term strong {
  display: block;
  color: var(--ink-strong);
  font-weight: 570;
  line-height: 1.35;
}

.wiki-kpi strong {
  margin-top: 5px;
  font-size: 15px;
}

.source-link-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.source-link {
  min-width: 0;
  border-radius: 18px;
  padding: 16px;
  text-decoration: none;
  transition: transform 260ms var(--spring), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.source-link:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 168, 196, 0.28);
  box-shadow: 0 20px 54px rgba(15, 34, 52, 0.09);
}

.wiki-source-note {
  padding-top: 70px;
}

.wiki-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(220, 231, 238, 0.94);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 54px rgba(15, 34, 52, 0.08);
}

.wiki-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.wiki-table th,
.wiki-table td {
  padding: 17px 18px;
  border-bottom: 1px solid rgba(220, 231, 238, 0.82);
  text-align: left;
  vertical-align: top;
}

.wiki-table th {
  background: rgba(237, 248, 251, 0.78);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wiki-table tr:last-child td {
  border-bottom: 0;
}

.wiki-table td strong,
.wiki-table td span {
  display: block;
}

.wiki-table td strong {
  color: var(--ink-strong);
  font-weight: 590;
}

.wiki-table td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.wiki-table a {
  color: var(--brand-ink);
  font-weight: 570;
  text-decoration: none;
}

.wiki-table a:hover {
  text-decoration: underline;
}

.wiki-ladder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.wiki-ladder-step {
  position: relative;
  min-width: 0;
  min-height: 220px;
  border-radius: 20px;
  padding: 20px;
  background:
    radial-gradient(circle at 90% 10%, rgba(18, 168, 196, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.88)), var(--surface);
}

.wiki-ladder-step span,
.demo-step {
  font-variant-numeric: tabular-nums;
}

.wiki-ladder-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(232, 248, 251, 0.94);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 650;
}

.wiki-ladder-step strong {
  display: block;
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 590;
  line-height: 1.28;
}

.wiki-ladder-step p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.62;
}

.wiki-anatomy-grid,
.wiki-sequence-grid,
.wiki-primer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wiki-anatomy-card,
.wiki-sequence-card,
.wiki-primer-card,
.wiki-story-panel {
  min-width: 0;
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at 94% 12%, rgba(18, 168, 196, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.88)), var(--surface);
}

.wiki-flow-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.wiki-flow-list li {
  margin: 0;
  border: 1px solid rgba(220, 231, 238, 0.84);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.wiki-flow-list strong,
.wiki-flow-list span {
  display: block;
}

.wiki-flow-list strong {
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 590;
}

.wiki-flow-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.wiki-sequence-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wiki-sequence-card {
  min-height: 230px;
  transition: transform 260ms var(--spring), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.wiki-sequence-card:hover,
.wiki-primer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 168, 196, 0.28);
  box-shadow: 0 24px 64px rgba(15, 34, 52, 0.10);
}

.wiki-sequence-card p,
.wiki-primer-card p {
  font-size: 14px;
  line-height: 1.64;
}

.wiki-primer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wiki-primer-card {
  min-height: 236px;
  border: 1px solid rgba(220, 231, 238, 0.92);
  box-shadow: 0 16px 44px rgba(15, 34, 52, 0.065);
  transition: transform 260ms var(--spring), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.wiki-story-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
  border: 1px solid rgba(18, 168, 196, 0.18);
  box-shadow: 0 22px 62px rgba(15, 34, 52, 0.09);
}

.wiki-story-panel h3 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.12;
}

.wiki-glossary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wiki-term {
  min-width: 0;
  border-radius: 18px;
  padding: 16px;
}

.wiki-term strong {
  margin-bottom: 8px;
  font-size: 15px;
}

.wiki-card p strong {
  color: var(--ink-strong);
  font-weight: 590;
}

@media (max-width: 1100px) {
  .wiki-ladder,
  .wiki-sequence-grid,
  .wiki-glossary-grid,
  .wiki-primer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-link-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .wiki-main {
    width: min(1180px, calc(100vw - 32px));
  }

  .wiki-hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .wiki-hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wiki-table-wrap {
    overflow-x: auto;
  }

  .wiki-table {
    min-width: 860px;
  }
}

@media (max-width: 620px) {
  .wiki-main {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .wiki-hero {
    padding-bottom: 48px;
  }

  .wiki-hero h1 {
    font-size: 34px;
    line-height: 1.1;
    text-wrap: normal;
  }

  .wiki-hero-panel,
  .source-link-row,
  .wiki-ladder,
  .wiki-anatomy-grid,
  .wiki-sequence-grid,
  .wiki-glossary-grid,
  .wiki-primer-grid,
  .wiki-story-panel {
    grid-template-columns: 1fr;
  }

  .wiki-table th,
  .wiki-table td {
    padding: 14px;
  }
}

@media (max-width: 620px) {
  html {
    overflow-x: hidden;
  }

  .site-header {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .nav-links {
    flex: 1 1 calc(100vw - 28px);
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    min-width: 0;
  }
}
