:root {
  --bg: #06070a;
  --text: #eef1f5;
  --muted: #8a93a3;
  --faint: #5b6372;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(20, 23, 30, 0.62);
  --glass-hi: rgba(255, 255, 255, 0.035);
  --accent: #3d8bff;
  --accent-hi: #7db4ff;
  --accent-ink: #ffffff;
  --ok: #4ade80;
  --warn: #facc15;
  --bad: #f87171;
  --radius: 18px;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hi); text-decoration: none; }
h1, h2, h3 { margin: 0 0 16px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(40px, 5.6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 50px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; }
.small { font-size: 13px; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; position: relative; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Pills, buttons and chips */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: rgba(255, 255, 255, 0.02); margin-bottom: 22px; }
.pill i, .live i, .foot-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); display: inline-block; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 500; font-size: 15px; border: 1px solid transparent; transition: background 0.2s, transform 0.2s; }
.btn:hover { background: #5a9cff; transform: translateY(-1px); }
.btn.ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn.sm { padding: 9px 18px; font-size: 14px; }
.play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); font-size: 14px; }
.arrow { width: 14px; height: 1px; background: var(--faint); position: relative; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--faint); border-right: 0; }

/* Top bar */
.top { position: fixed; inset: 0 0 auto; z-index: 20; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(6, 7, 10, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; color: var(--text); letter-spacing: -0.01em; }
.mark { width: 28px; height: 28px; }
.brand-product { margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--line-strong); font-weight: 500; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .top .brand-product { display: none; } }
.nav { display: flex; gap: 30px; margin: 0 auto; }
.nav a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a[href="/flow/"] { font-weight: 600; background: linear-gradient(90deg, #ff6b6b, #ffb347, #ffe66d, #5dfc8d, #4dd4ff, #8c7bff, #ff6b6b) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }
.top-end { display: flex; align-items: center; gap: 10px; }
@media (max-width: 900px) {
  .top { background: rgba(6, 7, 10, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
  .top-row { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 10px 16px; }
  .nav { order: 3; flex-basis: 100%; margin: 0; overflow-x: auto; padding-bottom: 12px; gap: 14px; scrollbar-width: none; }
  .nav a { white-space: nowrap; font-size: 13.5px; }
  .top-end { margin-left: auto; }
  }

/* Glass panels */
.panel { position: relative; background: linear-gradient(180deg, rgba(28, 32, 41, 0.7), rgba(14, 16, 21, 0.78)); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 22px 24px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-hi); }
.live i { animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* Reveal on scroll */
.rise { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s; transition-delay: calc(var(--i, 0) * 80ms); }
.rise.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 32px; }
.foot-status { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-status span { display: inline-flex; align-items: center; gap: 8px; }
.foot-row { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 32px; }
.foot-row p { margin-top: 14px; max-width: 360px; font-size: 15px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot-col a { color: var(--text); }
.foot-col a:hover { color: var(--accent-hi); }
.foot-col .mono { margin-bottom: 4px; }
.foot-note { margin: 40px 0 0; }
@media (max-width: 820px) { .foot-row { grid-template-columns: 1fr 1fr; } .foot-row > div:first-child { grid-column: 1 / -1; } }

/* A picture opened bigger */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; border-radius: 10px; }
.lightbox button { position: absolute; top: 16px; right: 16px; font: 14px var(--sans); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.08); color: var(--text); cursor: pointer; }
