:root {
  --bg: #ffffff;
  --bg-panel: #f6f7fb;
  --bg-panel-2: #eef0f8;
  --border: #e4e6ef;
  --accent: #1a47f2;
  --accent-dark: #1236c2;
  --accent-a08: rgba(26, 71, 242, 0.08);
  --accent-a30: rgba(26, 71, 242, 0.3);
  --text: #0e1020;
  --text-muted: #5c6175;
  --text-faint: #62687c;
  --success: #1f9d6b;
  --success-ink: #166b49;
  --success-a18: rgba(31, 157, 107, 0.18);
  --warn: #c4860f;
  --warn-ink: #795108;
  --error: #d6383f;
  --error-ink: #af252c;
  --canvas: #fafbfe;
  --glow-pink: #f7cfe6;
  --glow-lilac: #d6cdf8;
  --glow-blue: #c4d6ff;
  --tint-blue: #8ea4f6;
  --violet: #9d8ff4;
  --violet-deep: #6a55e8;
  --caption-blue: #455dad;
  --caption-violet: #6551ad;
  --violet-a35: rgba(157, 143, 244, 0.35);
  --lilac-a35: rgba(214, 205, 248, 0.35);
  --lilac-a55: rgba(214, 205, 248, 0.55);
  --graphite: #3a3d4a;
  --bezel: #15161d;
  --white: #ffffff;
  --white-a55: rgba(255, 255, 255, 0.55);
  --white-a70: rgba(255, 255, 255, 0.7);
  --white-a90: rgba(255, 255, 255, 0.9);
  --veil: rgba(14, 16, 32, 0.24);
  --clear: transparent;

  --font-display: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-light: 300;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lead: 17px;
  --text-subtitle: 20px;
  --text-h3: 24px;
  --text-h2: clamp(28px, 3.34vw, 48px);
  --text-h1: clamp(34px, 3.4vw, 48px);
  --track-tight: -0.02em;

  --r-canvas: 36px;
  --r-card: 32px;
  --r-tile: 24px;
  --r-phone: 30px;
  --r-phone-screen: 25px;
  --r-pad-screen: 17px;
  --r-mark: 9px;
  --r-shot: 10px;
  --r-small: 8px;
  --r-mini: 2px;
  --r-round: 50%;
  --r-pill: 999px;

  --wrap: 1440px;
  --reading: 840px;
  --header-content: 1280px;
  --gutter: 64px;
  --header-h: 76px;
  --section-gap: 160px;
  --card-pad: 40px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --focus-width: 2px;
  --focus-offset: 3px;
  --time-fast: 180ms;
  --time-enter: 500ms;
  --ease: ease;
  --layer-veil: 30;
  --layer-header: 40;
  --layer-tools: 45;
  --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(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--accent-a08); }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; }
svg { display: block; flex-shrink: 0; }
button svg, a svg { width: 18px; height: 18px; }
[hidden] { display: none !important; }
:focus-visible {
  outline: var(--focus-width) solid var(--accent);
  outline-offset: var(--focus-offset);
}
::selection { background: var(--glow-blue); color: var(--text); }
h1, h2, h3, h4 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  letter-spacing: var(--track-tight);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--text-h1); line-height: 1.2; }
h2 { font-size: var(--text-h2); line-height: 1.25; }
h3 { font-size: var(--text-h3); line-height: 1.4; }
p { margin: 0 0 20px; }
strong { font-weight: var(--weight-medium); }
code, pre, kbd { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  margin: 24px 0;
  padding: 24px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--r-small);
  font-size: var(--text-sm);
  line-height: 1.9;
  -webkit-overflow-scrolling: touch;
}
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
figure { margin: 0; }
ul, ol { padding-left: 1.5em; }
li + li { margin-top: 6px; }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading {
  width: 100%;
  max-width: calc(var(--reading) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-top: var(--section-gap); }
.section-end { padding-bottom: var(--section-gap); }
.section-heading {
  margin: 0 auto 64px;
  color: var(--accent);
  text-align: center;
  font-size: var(--text-h2);
}
.section-intro {
  max-width: 42em;
  margin: -36px auto 56px;
  color: var(--text-muted);
  text-align: center;
}
.prose, .article-body { min-width: 0; }
.prose h2, .article-body h2 { margin-top: 64px; font-size: clamp(26px, 2.5vw, 36px); }
.prose h3, .article-body h3 { margin-top: 36px; }
.prose p, .article-body p { line-height: 1.9; }
.prose a, .article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.prose :not(pre) > code, .article-body :not(pre) > code {
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--r-mini);
  padding: 2px 5px;
  font-size: 0.88em;
}
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }
.small { font-size: var(--text-sm); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-two > *, .grid-three > *, .hero > *, .footer-grid > * { min-width: 0; }
.card, .panel {
  min-width: 0;
  padding: var(--card-pad);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
}
.card-white { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.panel-soft { background: var(--bg-panel-2); color: var(--text); }
.decorated { position: relative; isolation: isolate; overflow-x: clip; }
.soft-field {
  background:
    radial-gradient(ellipse at 12% 85%, var(--glow-pink), var(--clear) 52%),
    radial-gradient(ellipse at 55% 100%, var(--glow-lilac), var(--clear) 58%),
    radial-gradient(ellipse at 95% 80%, var(--glow-blue), var(--clear) 54%),
    var(--bg-panel);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid var(--clear);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-align: center;
  transition: transform var(--time-fast) var(--ease), background-color var(--time-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--accent-dark); color: var(--white); border-color: var(--accent-dark); }
.btn-primary:active, .btn-primary.is-active { transform: translateY(1px); background: var(--accent-dark); color: var(--white); }
.btn-ghost { background: var(--bg); color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--accent-a08); color: var(--accent-dark); }
.btn.is-focus { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border-color: var(--border);
  transform: none;
  cursor: not-allowed;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.text-link { color: var(--accent); text-underline-offset: 4px; }
.text-link:hover { text-decoration: underline; }

#site-header { position: relative; z-index: var(--layer-header); }
.topbar {
  position: relative;
  z-index: var(--layer-header);
  width: 100%;
  max-width: min(100%, calc(var(--header-content) + var(--gutter) * 2));
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg);
  color: var(--text);
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-logo { display: block; width: 34px; height: 34px; border-radius: var(--r-round); flex-shrink: 0; }
.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--r-mark);
  background: linear-gradient(150deg, var(--glow-pink), var(--glow-lilac) 50%, var(--glow-blue));
  color: var(--text);
  border: 1px solid var(--border);
}
.mainnav { margin-left: auto; min-width: 0; }
.mainnav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}
.mainnav li { margin: 0; }
.mainnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding-block: 6px;
  color: var(--text-muted);
  font-size: 14.5px;
  white-space: nowrap;
}
.mainnav svg { width: 16px; height: 16px; }
.mainnav a:hover { color: var(--text); }
.mainnav a[aria-current="page"] { color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language-control { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.lang svg { width: 15px; height: 15px; color: var(--text-muted); }
.lang-caret { color: var(--text-faint); font-size: 11px; }
.lang-short { display: none; }
.language-menu {
  position: absolute;
  z-index: var(--layer-tools);
  right: 0;
  top: calc(100% + 10px);
  width: 184px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-small);
  background: var(--bg);
  color: var(--text);
}
.language-menu li { margin: 0; }
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: var(--r-small); }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--bg-panel); color: var(--accent); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer {
  position: absolute;
  z-index: var(--layer-tools);
  top: 100%;
  left: var(--gutter);
  right: var(--gutter);
  padding: 16px;
  max-height: calc(100dvh - var(--header-h) - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-radius: var(--r-tile);
  background: var(--bg);
  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;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--r-small);
}
.mobile-drawer a:hover, .mobile-drawer a[aria-current] { background: var(--bg-panel); color: var(--accent); }
.drawer-label { margin: 20px 16px 8px; color: var(--text-muted); font-size: var(--text-xs); }
.menu-veil {
  position: fixed;
  z-index: var(--layer-veil);
  inset: var(--header-h) 0 0;
  width: 100%;
  border: 0;
  background: var(--veil);
  color: var(--text);
  cursor: default;
}

.hero {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 24px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { min-width: 0; padding-right: 8px; }
.hero h1 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.2; }
.hero h1 .line { display: block; }
.hero h1 .line-accent { color: var(--accent); }
.lead { margin: 24px 0 0; max-width: 33em; font-size: var(--text-lead); line-height: 1.75; color: var(--text-muted); }
.lead strong { color: var(--text); font-weight: var(--weight-medium); }
.devices {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.devices li { margin: 0; }
.device { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--text-muted); }
.device svg { width: 18px; height: 18px; }
a.device:hover { color: var(--accent); }
.devices-sep { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; }
.store-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.stage {
  position: relative;
  height: clamp(620px, calc(100vh - 220px), 680px);
  min-width: 0;
  margin: 0;
  border-radius: var(--r-canvas);
  background: var(--canvas);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}
.glow {
  position: absolute;
  z-index: 0;
  border-radius: var(--r-round);
  pointer-events: none;
  animation: glow-drift 18s ease-in-out infinite;
}
.glow-pink { width: 420px; height: 420px; left: -6%; top: 10%; background: radial-gradient(circle, var(--glow-pink), var(--clear) 68%); }
.glow-lilac { width: 500px; height: 500px; left: 50%; top: 50%; margin: -250px 0 0 -250px; background: radial-gradient(circle, var(--glow-lilac), var(--clear) 66%); animation-delay: -6s; animation-direction: reverse; }
.glow-blue { width: 460px; height: 460px; right: -8%; bottom: -6%; background: radial-gradient(circle, var(--glow-blue), var(--clear) 68%); animation-delay: -12s; }
@keyframes glow-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.82; }
  50% { transform: translate3d(26px, -20px, 0) scale(1.08); opacity: 1; }
}
.stage-caption { position: absolute; z-index: 2; top: 44px; left: 0; right: 0; margin: 0; text-align: center; font-size: 15px; font-weight: var(--weight-light); letter-spacing: 0.02em; }
.stage-caption span {
  background: linear-gradient(90deg, var(--caption-blue), var(--caption-violet));
  color: var(--clear);
  -webkit-background-clip: text;
  background-clip: text;
}
.float-pill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--white-a90);
  background: var(--white-a70);
  color: var(--text-muted);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  white-space: nowrap;
}
.float-pill-a { top: 92px; right: 28px; }
.float-pill-b { bottom: 40px; left: 28px; }
.mosaic {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 470px;
  display: grid;
  grid-template-columns: 200px 256px;
  grid-template-rows: 240px 196px;
  gap: 14px;
  transform: translate(-50%, -47%);
}
.tile { position: relative; min-width: 0; border-radius: var(--r-tile); border: 1px solid var(--white); overflow: hidden; }
.tile-phone { background: linear-gradient(165deg, var(--white-a70), var(--lilac-a35)); color: var(--text); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.phone {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 128px;
  height: 268px;
  margin-left: -64px;
  padding: 5px;
  border: 1.5px solid var(--graphite);
  border-radius: var(--r-phone);
  background: var(--bezel);
  color: var(--white);
}
.phone::before, .phone::after { content: ""; position: absolute; left: -3.5px; width: 2px; height: 22px; border-radius: var(--r-mini); background: var(--graphite); }
.phone::before { top: 62px; }
.phone::after { top: 92px; }
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: var(--r-phone-screen);
  background: linear-gradient(150deg, var(--glow-pink), var(--glow-lilac) 48%, var(--glow-blue));
  color: var(--text);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 92px;
}
.phone-island { position: absolute; top: 8px; left: 50%; width: 40px; height: 12px; margin-left: -20px; border-radius: var(--r-pill); background: var(--bezel); }
.phone-label { font-size: 13px; letter-spacing: -0.01em; }
.tile-code { background: var(--white); color: var(--text); display: flex; flex-direction: column; }
.code-bar { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-bottom: 1px solid var(--bg-panel-2); }
.code-dot { width: 8px; height: 8px; border-radius: var(--r-round); flex-shrink: 0; }
.code-dot.is-r { background: var(--error); }
.code-dot.is-y { background: var(--warn); }
.code-dot.is-g { background: var(--success); }
.code-title { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.code-body { padding: 12px 16px; font-family: var(--font-mono); font-size: 11px; line-height: 2; color: var(--text); overflow-x: auto; }
.rule-line { display: block; white-space: nowrap; animation: line-in var(--time-enter) ease both; }
.rule-line:nth-child(2) { animation-delay: 120ms; }
.rule-line:nth-child(3) { animation-delay: 240ms; }
.rule-line:nth-child(4) { animation-delay: 360ms; }
.rule-line:nth-child(5) { animation-delay: 480ms; }
.rule-line:nth-child(6) { animation-delay: 600ms; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.code-body .k { color: var(--accent); }
.code-body .p { font-weight: var(--weight-medium); }
.code-body .c, .code-body .s { color: var(--text-muted); }
.tile-orb {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--lilac-a55), var(--white-a55));
  color: var(--text);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.orb-halo { position: absolute; width: 180px; height: 180px; left: 50%; top: 50%; margin: -90px 0 0 -90px; border-radius: var(--r-round); background: radial-gradient(circle, var(--violet-a35), var(--clear) 70%); }
.orb { position: relative; width: 104px; height: 104px; border-radius: var(--r-round); background: radial-gradient(circle at 34% 30%, var(--white-a90), var(--glow-blue) 20%, var(--accent) 62%, var(--violet-deep)); }
.tag-pill { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--white); color: var(--text); font-size: 11px; }
.tag-pill i { width: 5px; height: 5px; border-radius: var(--r-round); background: var(--accent); flex-shrink: 0; }
.tile-pad { border: 0; overflow: visible; }
.ipad { position: relative; height: 100%; padding: 7px; border: 1.5px solid var(--graphite); border-radius: var(--r-tile); background: var(--bezel); color: var(--white); transform: translateY(12px); }
.ipad-cam { position: absolute; top: 2px; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: var(--r-round); background: var(--graphite); }
.ipad-screen {
  height: 100%;
  padding-left: 24px;
  border-radius: var(--r-pad-screen);
  background: linear-gradient(135deg, var(--accent) -10%, var(--violet) 72%, var(--glow-pink) 130%);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-size: 15px;
  font-weight: var(--weight-regular);
  line-height: 1.45;
}
.next-peek { max-width: var(--wrap); margin-inline: auto; padding: 96px var(--gutter) 0; text-align: center; }
.next-peek h2 { margin: 0; color: var(--accent); font-size: clamp(26px, 2.8vw, 40px); }
.next-peek p { max-width: 40em; margin: 20px auto 0; color: var(--text-muted); font-size: var(--text-lead); line-height: 1.75; }

.site-footer {
  margin-top: var(--section-gap);
  padding-top: 72px;
  padding-bottom: 32px;
  background: var(--bg-panel);
  color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.7fr 1.3fr 0.7fr; gap: 48px; }
.footer-brand p { margin-top: 24px; max-width: 25em; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.9; }
.footer-title { margin-bottom: 20px; font-size: var(--text-base); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: 0; }
.footer-list a { display: block; padding-block: 7px; color: var(--text-muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 64px; color: var(--text-muted); font-size: var(--text-xs); }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready { opacity: 0; transform: translateY(16px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.reveal-ready.shown { opacity: 1; transform: none; }

@media (max-width: 1360px) {
  .topbar { gap: 22px; }
  .mainnav ul { gap: 18px; }
  .mainnav a { font-size: var(--text-sm); }
}
@media (max-width: 1200px) {
  .mainnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1201px) {
  .mobile-drawer, .menu-veil { display: none !important; }
}
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .mosaic { transform: translate(-50%, -47%) scale(0.9); }
  .float-pill-a { right: 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --gutter: 20px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 28px; }
  .lead { font-size: var(--text-base); }
  .devices { margin-top: 32px; }
  .stage { height: min(70vh, 560px); border-radius: var(--r-card); }
  .mosaic { transform: translate(-50%, -46%) scale(0.76); }
  .stage-caption { top: 28px; font-size: 13px; }
  .float-pill { min-height: 26px; font-size: 11px; padding: 4px 11px; }
  .float-pill-a { top: 62px; right: 14px; }
  .float-pill-b { bottom: 20px; left: 14px; }
  .next-peek { padding-top: 120px; }
  .grid-three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  :root { --text-h1: clamp(24px, 4.5vw, 30px); --card-pad: 28px; }
  .hero h1 { font-size: clamp(24px, 4.5vw, 30px); }
  .section-heading { margin-bottom: 40px; }
  .section-intro { margin-top: -16px; }
  .grid-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --card-pad: 24px; }
  .tilt, [data-tilt] { transform: none !important; }
  .brand { gap: 8px; font-size: 13px; }
  .brand-logo, .brand-mark { width: 30px; height: 30px; }
  .topbar { gap: 8px; }
  .header-tools { gap: 7px; margin-left: auto; }
  .lang { min-height: 44px; padding-inline: 11px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang svg { display: none; }
  .hero-copy { padding-right: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { margin-top: 40px; }
  pre { padding: 18px; font-size: 13px; }
}
@media (max-width: 520px) {
  .cta-row .btn { flex: 1 1 auto; }
  .mosaic { transform: translate(-50%, -46%) scale(0.66); }
  .devices { gap: 12px 18px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand { font-size: 12px; }
  .brand-logo, .brand-mark { width: 26px; height: 26px; }
  .mosaic { transform: translate(-50%, -46%) scale(0.57); }
  .float-pill { font-size: 10px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.reveal-ready { opacity: 1; transform: none; }
  .rule-line { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}