:root {
  color-scheme: light;
  --bg: #f3f3f3;
  --bg-panel: #ffffff;
  --bg-panel-2: #e4f3f6;
  --border: #dcdcdc;
  --accent: #08869c;
  --accent-dark: #066a7c;
  --accent-2: #8b8fe8;
  --text: #1e2224;
  --text-muted: #5d6466;
  --success: #2e9467;
  --warn: #f0b43c;
  --error: #d24a43;
  --accent-soft: #d3ecf0;
  --accent-2-soft: #e6e7fb;
  --warn-soft: #fbefd5;
  --chip-line: #c9e3e8;
  --ridge-far: #d2eaef;
  --ridge-mid: #bddfe6;
  --ridge-line: #a7d2db;
  --meadow: #d5eee8;
  --grass: #addfd2;
  --grass-deep: #8ccfc0;
  --grass-line: #84c5b7;
  --sand: #f3ead6;
  --sand-line: #dccaa4;
  --reed: #4fa392;
  --ripple: #8fd0da;
  --cloud: #ffffff;
  --post: #066a7c;
  --veil: #1e222466;
  --clear: transparent;

  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-xl: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-mark: 9px;
  --radius-pill: 999px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-caption: 13px;
  --fs-h1: clamp(34px, 3.4vw, 48px);
  --fs-h2: clamp(24px, 2.4vw, 32px);
  --fs-h3: clamp(20px, 1.8vw, 24px);
  --lh-body: 1.75;
  --tracking-tight: -0.02em;
  --gutter: clamp(24px, 8.33vw, 120px);
  --content-width: 1200px;
  --reading-width: 800px;
  --header-width: 1280px;
  --header-height: 76px;
  --line: 1.5px;
  --space-section: 128px;
  --space-card: clamp(24px, 4.45vw, 64px);
  --duration-fast: 200ms;
  --duration-reveal: 650ms;
  --ease-reveal: cubic-bezier(.2, .65, .25, 1);
  --layer-scene: 0;
  --layer-copy: 1;
  --layer-header: 30;
  --layer-veil: 1;
  --layer-drawer: 2;
  --layer-popover: 4;
  --layer-fab: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--clear); }
button { color: var(--text); }
.outline-tabs [role="tab"][aria-selected="false"] { background: var(--bg-panel); color: var(--text-muted); }
a { color: var(--accent-dark); text-decoration-thickness: var(--line); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { margin: 0; font-size: var(--fs-h1); line-height: 1.18; }
h2 { margin: 0 0 24px; font-size: var(--fs-h2); line-height: 1.3; }
h3 { margin: 0 0 16px; font-size: var(--fs-h3); line-height: 1.4; }
p { margin: 0 0 20px; }
strong { font-weight: 600; }
small, .small { font-size: var(--fs-small); }
.muted { color: var(--text-muted); }
.hl { color: var(--accent); }
.keep { white-space: nowrap; }
.mono, code, pre, kbd { font-family: var(--font-mono); }
code { font-size: .88em; overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  margin: 24px 0;
  padding: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--chip-line);
  border-radius: var(--radius-md);
  background: var(--bg-panel-2);
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  tab-size: 2;
}
pre code { font-size: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; }
hr { margin: 32px 0; border: 0; border-top: 1px solid var(--border); }
ul, ol { padding-inline-start: 1.4em; }
li + li { margin-top: .35em; }
figure { margin: 0; }
blockquote { margin-inline: 0; }
:where(section, article, aside, main, nav, header, footer, div) { min-width: 0; }
:where(.grid, .two-col, .footer-grid, .outline-tabs) > * { min-width: 0; }
:where(.icon, .kicker-dot, .brand-mark, .chip i, .btn svg, .devices svg) { flex-shrink: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: var(--reading-width); margin-inline: auto; }
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section + .section { padding-top: 0; }
.grid { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.stack > * + * { margin-top: 24px; }
.panel, .card {
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--radius-xl);
}
.panel { padding: 56px var(--space-card); }
.card { padding: 32px; border: 1px solid var(--border); }
.panel > :last-child, .card > :last-child { margin-bottom: 0; }
.panel h2 { margin: 16px 0 0; }
.panel p { margin: 16px 0 0; max-width: 720px; color: var(--text-muted); }
.tone-lagoon { background: var(--accent-soft); color: var(--text); }
.tone-periwinkle { background: var(--accent-2-soft); color: var(--text); }
.tone-pollen { background: var(--warn-soft); color: var(--text); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--warn);
  color: var(--text);
}
.prose { min-width: 0; }
.prose h2 { margin-top: 64px; scroll-margin-top: 32px; }
.prose h3 { margin-top: 36px; }
.prose p, .prose li { overflow-wrap: break-word; }
.prose :where(img, figure, div) { max-width: 100%; }
.prose a { overflow-wrap: anywhere; }
.prose li + li { margin-top: 10px; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  padding: 12px 26px;
  border: var(--line) solid var(--clear);
  border-radius: var(--radius-pill);
  background: var(--clear);
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  transition: background-color var(--duration-fast), color var(--duration-fast);
}
.btn-primary { background: var(--accent); color: var(--bg-panel); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--bg-panel); }
.btn-ghost { border-color: var(--accent); background: var(--clear); color: var(--accent-dark); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn:active { background: var(--accent-dark); color: var(--bg-panel); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
}
.btn svg { width: 18px; height: 18px; }
.btn .arrow { font-family: var(--font-mono); font-size: 15px; }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 4px; }

#site-header { position: relative; z-index: var(--layer-header); }
.masthead {
  position: relative;
  z-index: var(--layer-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius-mark);
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
}
.brand-name { font-family: var(--font-display); font-size: 16px; letter-spacing: var(--tracking-tight); }
.topnav { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.topnav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.topnav li { display: flex; align-items: center; margin: 0; font-size: 15px; line-height: 1; }
.topnav li + li::before { content: "·"; margin-inline: 13px; color: var(--text-muted); }
.topnav a { padding-block: 16px; white-space: nowrap; color: var(--text); text-decoration: none; transition: color var(--duration-fast); }
.topnav a:hover { color: var(--accent); }
.topnav a[aria-current="page"] { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: var(--line); text-underline-offset: 7px; }
.header-tools { position: relative; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: var(--clear);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}
.lang svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: var(--line); flex-shrink: 0; }
.lang-short { display: none; }
.language-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: var(--layer-popover);
  width: 200px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  color: var(--text);
}
.language-popover ul { list-style: none; padding: 0; margin: 0; }
.language-popover li { margin: 0; }
.language-popover a { display: block; min-height: 44px; padding: 10px 14px; color: var(--text); border-radius: var(--radius-sm); text-decoration: none; }
.language-popover a:hover, .language-popover a[aria-current="true"] { background: var(--bg-panel-2); color: var(--accent-dark); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--chip-line);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--accent-dark);
}
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: var(--line); }
.menu-veil { display: none; position: fixed; inset: var(--header-height) 0 0; z-index: var(--layer-veil); width: 100%; border: 0; background: var(--veil); color: var(--text); }
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: var(--layer-drawer);
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer li { margin: 0; }
.mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 8px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.mobile-drawer a[aria-current] { color: var(--accent-dark); }
.drawer-label { margin: 24px 8px 8px; color: var(--text-muted); font-size: var(--fs-caption); }
.skip-link { position: fixed; top: 8px; left: var(--gutter); z-index: var(--layer-header); padding: 10px 18px; transform: translateY(-160%); background: var(--bg-panel); color: var(--accent-dark); border-radius: var(--radius-sm); }
.skip-link:focus { transform: translateY(0); }

.sky {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(720px, calc(100vh - 56px), 860px);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-panel-2);
  color: var(--text);
}
.hero-visual { position: absolute; inset: 0; z-index: var(--layer-scene); overflow: hidden; pointer-events: none; }
.scene { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero {
  position: relative;
  z-index: var(--layer-copy);
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: clamp(36px, 8vh, 72px) var(--gutter) 0;
}
.hero-copy { width: 46%; max-width: 560px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: var(--fs-caption);
  line-height: 1.4;
}
.kicker-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--accent); color: var(--text); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { margin: 22px 0 0; font-size: clamp(30px, 3.4vw, 48px); }
.lede { margin: 28px 0 0; max-width: 520px; color: var(--text-muted); }
.lede strong { color: var(--text); }
.lede .term { font-family: var(--font-mono); font-size: 15px; color: var(--accent-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  max-width: 100%;
  margin: 0;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--chip-line);
  font-size: var(--fs-small);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chip i { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--accent); color: var(--text); }
.chip i.c2 { background: var(--accent-2); color: var(--text); }
.chip i.c3 { background: var(--warn); color: var(--text); }
.chip .mono { font-size: var(--fs-caption); }
.devices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 24px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px dashed var(--chip-line); }
.devices li { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: var(--fs-small); line-height: 1.4; }
.devices a { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; color: var(--text); text-decoration: none; }
.devices a:hover { color: var(--accent-dark); }
.devices svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-dark); stroke-width: var(--line); stroke-linecap: round; stroke-linejoin: round; }
.devices svg .solid { fill: var(--accent-dark); stroke: none; }
.devices .store { gap: 6px; min-height: 28px; padding: 3px 12px; border-radius: var(--radius-pill); border: var(--line) solid var(--accent); color: var(--accent-dark); }
.compat { margin: 10px 0 0; font-size: var(--fs-caption); line-height: 1.5; color: var(--text-muted); }
.next { padding: 20px var(--gutter) 120px; }
.next .panel { max-width: var(--content-width); margin-inline: auto; }

.scene .cloud { fill: var(--cloud); }
.scene .ridge-far { fill: var(--ridge-far); }
.scene .ridge-mid { fill: var(--ridge-mid); stroke: var(--ridge-line); stroke-width: var(--line); stroke-linejoin: round; }
.scene .meadow { fill: var(--meadow); }
.scene .lobe { fill: var(--sand); stroke: var(--sand-line); stroke-width: var(--line); }
.scene .bank { fill: none; stroke: var(--accent-dark); stroke-linecap: round; }
.scene .bank-fill { fill: var(--accent-dark); }
.scene .water { fill: none; stroke: var(--accent); stroke-linecap: round; }
.scene .water-fill { fill: var(--accent); }
.scene .mask-line { fill: none; stroke: var(--bg-panel); stroke-linecap: round; }
.scene .ripple { fill: none; stroke: var(--ripple); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 16 44; }
.scene .ripples { animation: river-flow 12s linear infinite; }
.scene .link { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 2 4; }
.scene .hub, .scene .pebble { fill: var(--bg-panel); stroke: var(--accent); stroke-width: var(--line); }
.scene .pebble-dot { fill: var(--warn); }
.scene .tag { font-family: var(--font-mono); font-size: 12px; fill: var(--text); letter-spacing: .02em; }
.scene .board { fill: var(--bg-panel); stroke: var(--accent); stroke-width: var(--line); }
.scene .board-reject { stroke: var(--accent-2); }
.scene .post { fill: var(--post); }
.scene .sign { font-family: var(--font-mono); font-size: 13px; font-weight: 500; fill: var(--text); letter-spacing: .08em; }
.scene .reed { fill: none; stroke: var(--reed); stroke-width: 2.2; stroke-linecap: round; }
.scene .reed-head { fill: var(--warn); }
.scene .grass { fill: var(--grass); stroke: var(--grass-line); stroke-width: var(--line); }
.scene .grass-deep { fill: var(--grass-deep); }
.scene .wave { fill: var(--bg); }
@keyframes river-flow { from { transform: translateX(0); } to { transform: translateX(60px); } }

.wave-section { position: relative; overflow-x: clip; padding-top: var(--space-section); padding-bottom: var(--space-section); background: var(--bg-panel); color: var(--text); }
.section-wave { display: block; width: 100%; height: 70px; fill: var(--bg-panel); }
.site-footer { padding-top: 72px; padding-bottom: 28px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-brand p { max-width: 340px; margin: 20px 0 0; color: var(--text-muted); font-size: var(--fs-small); }
.footer-title { margin: 0 0 18px; font-size: 16px; font-weight: 400; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-block; padding-block: 6px; color: var(--text-muted); font-size: var(--fs-small); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--accent-dark); text-decoration: underline; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--fs-caption); }
.copyright p { margin: 0; }
.copyright a { color: var(--text-muted); }

.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--duration-reveal) var(--ease-reveal), transform var(--duration-reveal) var(--ease-reveal); }
.reveal-ready .reveal.shown { opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }

@media (max-width: 1100px) {
  .masthead { gap: 20px; }
  .topnav:not(.preview-nav) { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .masthead.is-open .mobile-drawer, .masthead.is-open .menu-veil { display: block; }
}
@media (max-width: 1100px) {
  .preview-nav { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .sky { height: auto; min-height: 0; }
  .hero { padding-top: 28px; padding-bottom: 62vw; }
  .hero-copy { width: auto; max-width: 600px; }
  .hero-visual { top: auto; bottom: 0; height: 72vw; }
  .panel { padding: 40px 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --fs-h1: clamp(24px, 4vw, 30px); --space-section: 120px; }
  .hero h1 { font-size: clamp(24px, 4vw, 30px); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 100%; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --space-card: 24px; }
  .masthead { gap: 10px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 13px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-tools { gap: 6px; margin-left: auto; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang { min-width: 46px; }
  .lang svg { display: none; }
  .grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { gap: 32px; }
  .card, .panel { padding: 28px 24px; }
  .hero { padding-top: 28px; padding-bottom: 70vw; }
  .hero h1 { line-height: 1.25; }
  .hero .cta { margin-top: 24px; gap: 10px; }
  .btn { padding-inline: 20px; font-size: 15px; }
  .lede { margin-top: 24px; font-size: 16px; }
  .chips { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .chip { padding-inline: 10px; font-size: 12px; }
  .chip .mono { font-size: 12px; }
  .devices { gap: 8px 16px; }
  .devices li { font-size: 12px; }
  .hero-visual { height: 80vw; }
  .next { padding-top: 20px; padding-bottom: 120px; }
  .tilt, [data-tilt] { transform: none !important; }
  .copyright { display: block; }
  .copyright p + p { margin-top: 12px; }
  pre { padding: 18px; font-size: 13px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 12px; }
  .brand { gap: 6px; }
  .masthead { gap: 6px; }
  .header-tools { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene .ripples { animation: none; }
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .topnav a { transition: none; }
}