:root {
  --visual-panel-width: clamp(344px, 27vw, 396px);
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100dvh; overflow: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }

.landing {
  --background: oklch(0.115 0.028 256);
  --background-deep: oklch(0.075 0.016 256);
  --surface: oklch(0.22 0.048 256 / 0.5);
  --surface-strong: oklch(0.24 0.05 255 / 0.74);
  --border: oklch(0.74 0.07 248 / 0.16);
  --grid: oklch(0.72 0.08 250 / 0.095);
  --grid-cell: oklch(0.055 0.018 256 / 0.58);
  --foreground: oklch(0.97 0.012 246);
  --muted: oklch(0.75 0.032 249);
  --accent: oklch(0.82 0.12 235);
  --accent-foreground: oklch(0.12 0.025 253);
  --particle-strong: oklch(0.88 0.12 228 / 0.94);
  --particle-highlight: oklch(0.98 0.02 220 / 0.98);
  --particle-soft: oklch(0.74 0.12 244 / 0.64);
  --particle-faint: oklch(0.72 0.08 250 / 0.23);
  --particle-line: oklch(0.76 0.11 244 / 0.22);
  --particle-glow: oklch(0.64 0.15 244 / 0.12);
  --eye-opacity: 1;
  --eye-width-vw: 48vw;
  --eye-width-max: 610px;
  --eye-aspect: 2.1;
  --eye-shift-x: 0px;
  --eye-shift-y: 0px;
  --title-max-size: 88px;
  --title-weight: 520;
  --title-line-height: 0.97;
  --title-tracking: -0.055em;
  --hero-copy-width: 680px;
  --primary-radius: 10px;
  --header-opacity: 0.38;
  --header-blur: 14px;
  --header-border-opacity: 0.1;
  --nebula-opacity: 1;
  --nebula-start-opacity: 0.76;
  --nebula-drift-duration: 16s;
  position: relative;
  isolation: isolate;
  height: 100dvh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 73% 46%, oklch(0.38 0.13 248 / 0.42), transparent 34%),
    radial-gradient(circle at 32% 18%, oklch(0.28 0.09 246 / 0.3), transparent 32%),
    linear-gradient(148deg, var(--background) 0%, var(--background-deep) 100%);
  color: var(--foreground);
}

.landing::before {
  position: absolute;
  z-index: -2;
  inset: -64px;
  background:
    radial-gradient(ellipse at 72% 42%, oklch(0.48 0.13 242 / 0.08), transparent 36%),
    linear-gradient(128deg, transparent 24%, oklch(0.52 0.09 240 / 0.035) 49%, transparent 74%);
  background-position: center;
  background-size: 64px 64px;
  animation: ambient-grid-drift 22s ease-in-out infinite alternate;
  content: "";
  mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
  will-change: transform;
}

.landing::after {
  position: absolute;
  z-index: -1;
  inset: auto -10% -27% 20%;
  height: 56%;
  animation: ambient-nebula-drift var(--nebula-drift-duration) ease-in-out infinite alternate;
  background: radial-gradient(ellipse, oklch(0.03 0.015 255 / 0.72), transparent 68%);
  content: "";
  filter: blur(24px);
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes ambient-grid-drift {
  from { transform: translate3d(-14px, -8px, 0); }
  to { transform: translate3d(18px, 14px, 0); }
}

@keyframes ambient-nebula-drift {
  from { opacity: var(--nebula-start-opacity); transform: translate3d(-3%, 1%, 0) scale(0.98); }
  to { opacity: var(--nebula-opacity); transform: translate3d(4%, -3%, 0) scale(1.05); }
}

.particle-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.particle-background { z-index: -1; }
.particle-background { animation: landing-background-reveal 1.2s ease-out both; }

.landing-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  width: min(100% - 40px, 1320px);
  min-height: 76px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: blur(0) saturate(100%);
  transition: top 320ms cubic-bezier(0.22, 1, 0.36, 1), width 320ms cubic-bezier(0.22, 1, 0.36, 1), min-height 320ms cubic-bezier(0.22, 1, 0.36, 1), padding 320ms cubic-bezier(0.22, 1, 0.36, 1), background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
  animation: landing-reveal 720ms 60ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.landing-header.is-scrolled {
  top: 8px;
  width: min(100% - 80px, 980px);
  min-height: 42px;
  padding: 4px 6px 4px 16px;
  border-color: rgb(183 219 244 / var(--header-border-opacity));
  background: rgb(8 24 42 / var(--header-opacity));
  box-shadow: none;
  backdrop-filter: blur(var(--header-blur)) saturate(112%);
}
.landing-header.is-scrolled .brand { gap: 8px; }
.landing-header.is-scrolled .brand-mark,
.landing-header.is-scrolled .brand-mark svg { width: 28px; height: 28px; }
.landing-header.is-scrolled .brand-name { font-size: 16px; font-weight: 500; }
.landing-header.is-scrolled .language { height: 32px; padding: 2px; }
.landing-header.is-scrolled .language-link { padding: 3px 0; }
.landing-header.is-scrolled .release-link { height: 32px; padding-block: 0; }

.brand, .landing-actions, .language { display: flex; align-items: center; }
.brand { gap: 10px; color: var(--foreground); text-decoration: none; }
.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  color: var(--accent);
  place-items: center;
}
.brand-mark svg { width: 30px; height: 30px; fill: currentColor; }
.brand-name, .brand-badge {
  font-family: "Avenir Next", "SF Pro Rounded", "SF Pro Text", "PingFang SC", sans-serif;
}
.brand-name { font-size: 17px; font-weight: 500; line-height: 24px; letter-spacing: 0.005em; }
.brand-badge, .eyebrow { font-size: 11px; font-weight: 500; line-height: 16px; letter-spacing: 0.09em; text-transform: uppercase; }
.brand-badge {
  margin-left: 2px;
  padding: 3px 8px;
  border: 1px solid oklch(0.82 0.04 248 / 0.24);
  border-radius: 999px;
  background: oklch(0.22 0.032 252 / 0.28);
  color: oklch(0.86 0.03 248);
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 0.075em;
}

.landing-actions { gap: 8px; }
.language {
  display: grid;
  width: 94px;
  min-width: 94px;
  padding: 3px;
  border: 1px solid oklch(0.82 0.04 248 / 0.14);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  contain: layout paint;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.language-link, .release-link, .primary-link {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.language-link, .release-link { font-weight: 450; }
.language-link {
  width: 100%;
  min-width: 0;
  padding: 5px 0;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  transition: color 140ms ease, background-color 140ms ease;
}
.language-link[aria-current="page"],
:root[data-language="zh"] .language-link[data-language-link="zh"],
:root[data-language="en"] .language-link[data-language-link="en"] { background: var(--foreground); color: var(--background-deep); }
.release-link {
  display: inline-flex;
  min-width: 106px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  background: var(--foreground);
  color: var(--background-deep);
  justify-content: center;
  gap: 7px;
}
.release-link svg { width: 16px; height: 16px; fill: currentColor; }
.language-link:hover { color: var(--accent); }
.release-link:hover { background: var(--accent); color: var(--accent-foreground); }

.landing-hero {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100% - 40px, 1320px);
  min-height: calc(100dvh - 76px);
  margin: 0 auto;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
}
.landing-copy { max-width: var(--hero-copy-width); padding: 72px 0 108px; }
.landing-copy > * { animation: landing-reveal 760ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.landing-copy > :nth-child(1) { animation-delay: 180ms; }
.landing-copy > :nth-child(2) { animation-delay: 270ms; }
.landing-copy > :nth-child(3) { animation-delay: 410ms; }
.landing-copy > :nth-child(4) { animation-delay: 540ms; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.eyebrow::before { width: 28px; height: 1px; background: currentColor; content: ""; }
.landing-title {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(52px, 6vw, var(--title-max-size));
  font-weight: var(--title-weight);
  line-height: var(--title-line-height);
  letter-spacing: var(--title-tracking);
}
.landing-title span { display: block; }
.title-accent { color: var(--accent); text-shadow: 0 0 56px var(--particle-glow); }
.description { max-width: 560px; margin: 30px 0 0; color: var(--muted); font-size: 17px; font-weight: 400; line-height: 1.75; }
.primary-link {
  display: inline-flex;
  min-height: 48px;
  margin-top: 36px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--primary-radius);
  align-items: center;
  gap: 9px;
  background: var(--foreground);
  color: var(--accent-foreground);
}
.primary-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.primary-link:hover { background: var(--accent); transform: translateY(-2px); }
.primary-link:active { transform: translateY(0); }
.landing-focus { position: relative; display: grid; min-height: 520px; place-items: center; pointer-events: none; }
.eye-anchor { width: min(var(--eye-width-vw), var(--eye-width-max)); aspect-ratio: var(--eye-aspect); transform: translate3d(var(--eye-shift-x), var(--eye-shift-y), 0); }
.landing-scroll-tail { height: 72px; }
.landing :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.landing { scrollbar-color: rgb(111 179 217 / 16%) transparent; scrollbar-width: thin; }
.landing::-webkit-scrollbar { width: 6px; }
.landing::-webkit-scrollbar-track { background: transparent; }
.landing::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgb(121 192 229 / 18%); background-clip: padding-box; }
.landing::-webkit-scrollbar-thumb:hover { background: rgb(121 200 240 / 30%); background-clip: padding-box; }

:root[data-visual-panel-open="true"] .landing { width: 100%; }

.visual-launcher,
.visual-panel,
.visual-panel button,
.visual-panel input { font-family: "Avenir Next", "SF Pro Rounded", "SF Pro Text", "PingFang SC", sans-serif; }
.visual-launcher {
  --launcher-proximity: 0;
  --launcher-pointer-x: 50%;
  --launcher-pointer-y: 50%;
  --launcher-icon-x: 0px;
  --launcher-icon-y: 0px;
  --launcher-reminder-glow: 1;
  --launcher-reminder-scan-duration: 2150ms;
  --launcher-particle-duration: 940ms;
  --launcher-hover-scale: 1.015;
  --launcher-click-pulse-duration: 260ms;
  position: fixed;
  z-index: 20;
  top: 50%;
  right: 16px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgb(172 223 255 / 18%);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgb(8 26 46 / 58%);
  box-shadow: 0 12px 36px rgb(0 7 18 / 28%), inset 0 1px 0 rgb(220 246 255 / 8%);
  color: var(--accent);
  isolation: isolate;
  backdrop-filter: blur(18px) saturate(118%);
  transition: right 320ms cubic-bezier(0.22, 1, 0.36, 1), width 180ms ease, background-color 220ms ease-out, border-color 220ms ease-out, box-shadow 260ms ease-out, color 220ms ease-out, transform 220ms ease-out;
}
.visual-launcher::before,
.visual-launcher::after { position: absolute; border-radius: inherit; content: ''; pointer-events: none; }
.visual-launcher::before {
  z-index: 0;
  inset: 1px;
  background: radial-gradient(circle at var(--launcher-pointer-x) var(--launcher-pointer-y), rgb(167 232 255 / calc(0.04 + var(--launcher-proximity) * 0.15)), transparent 58%);
  opacity: calc(0.2 + var(--launcher-proximity) * 0.72);
  transform: translate3d(-2%, -2%, 0) scale(0.94);
  animation: visual-launcher-sheen 5.8s ease-in-out infinite;
  transition: opacity 340ms ease-out;
}
.visual-launcher::after {
  z-index: 2;
  inset: -1px;
  padding: 1px;
  background: conic-gradient(from 16deg, transparent 0deg 238deg, rgb(138 221 255 / 0.08) 257deg, rgb(181 239 255 / 0.7) 284deg, rgb(138 221 255 / 0.06) 314deg, transparent 338deg 360deg);
  opacity: 0;
  transform: rotate(-24deg);
  transition: opacity 360ms ease-out, transform 360ms ease-out;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.visual-launcher.is-aware {
  border-color: rgb(126 214 255 / calc(0.18 + var(--launcher-proximity) * 0.26));
  background: rgb(10 33 56 / calc(0.6 + var(--launcher-proximity) * 0.14));
  box-shadow: 0 12px 36px rgb(0 7 18 / 28%), 0 0 calc(8px + var(--launcher-proximity) * 9px) rgb(68 190 244 / calc(var(--launcher-proximity) * 0.1)), inset 0 1px 0 rgb(220 246 255 / 10%);
}
.visual-launcher.is-aware::after { opacity: calc(var(--launcher-proximity) * 0.38); transform: rotate(calc(-24deg + var(--launcher-proximity) * 34deg)); }
.visual-launcher.is-discoverable {
  border-color: rgb(132 219 255 / calc(0.46 * var(--launcher-reminder-glow)));
  background: rgb(12 40 66 / 78%);
  box-shadow: 0 12px 36px rgb(0 7 18 / 30%), 0 0 18px rgb(67 190 246 / calc(0.13 * var(--launcher-reminder-glow))), inset 0 1px 0 rgb(224 248 255 / calc(0.13 * var(--launcher-reminder-glow)));
}
.visual-launcher.is-discoverable::before { opacity: calc(0.72 * var(--launcher-reminder-glow)); }
.visual-launcher.is-discoverable::after { opacity: calc(0.56 * var(--launcher-reminder-glow)); animation: visual-launcher-scan var(--launcher-reminder-scan-duration) linear 1 both; }
.visual-launcher__icon { position: relative; z-index: 3; display: grid; width: 20px; height: 20px; place-items: center; transform: translate3d(var(--launcher-icon-x), var(--launcher-icon-y), 0); animation: visual-launcher-icon-drift 6.2s ease-in-out infinite; transition: transform 220ms ease-out; }
.visual-launcher__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; }
.visual-launcher__knob { transform-box: fill-box; transform-origin: center; }
.visual-launcher__particles { position: absolute; z-index: 1; inset: -16px; pointer-events: none; }
.visual-launcher__particles i { --launcher-particle-delay: 0ms; position: absolute; top: 50%; left: 50%; width: 2px; height: 2px; border-radius: 50%; background: rgb(173 231 255 / 86%); box-shadow: 0 0 5px rgb(85 190 244 / 38%); opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.45); }
.visual-launcher__particles i:nth-child(1) { --launcher-particle-x: -12px; --launcher-particle-y: -8px; width: 1.7px; height: 1.7px; }
.visual-launcher__particles i:nth-child(2) { --launcher-particle-x: 14px; --launcher-particle-y: -5px; --launcher-particle-delay: 80ms; width: 2.3px; height: 2.3px; }
.visual-launcher__particles i:nth-child(3) { --launcher-particle-x: 10px; --launcher-particle-y: 13px; --launcher-particle-delay: 140ms; width: 1.5px; height: 1.5px; }
.visual-launcher__particles i:nth-child(4) { --launcher-particle-x: -8px; --launcher-particle-y: 12px; --launcher-particle-delay: 40ms; width: 1.8px; height: 1.8px; }
.visual-launcher.is-aware .visual-launcher__icon { animation: none; }
.visual-launcher.is-discoverable .visual-launcher__icon { animation: none; transform: scale(0.98); }
.visual-launcher.is-discoverable .visual-launcher__particles i { animation: visual-launcher-particle-release var(--launcher-particle-duration) cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: var(--launcher-particle-delay); }
.visual-launcher:hover,
.visual-launcher:focus-visible { border-color: rgb(132 219 255 / 52%); background: rgb(13 43 71 / 82%); box-shadow: 0 13px 38px rgb(0 7 18 / 32%), 0 0 18px rgb(67 190 246 / 12%), inset 0 1px 0 rgb(224 248 255 / 14%); transform: translateY(-1px) scale(var(--launcher-hover-scale)); }
.visual-launcher:hover::after,
.visual-launcher:focus-visible::after { opacity: 0.68; animation: visual-launcher-scan 2s linear infinite; }
.visual-launcher:hover .visual-launcher__icon,
.visual-launcher:focus-visible .visual-launcher__icon { transform: translate3d(var(--launcher-icon-x), var(--launcher-icon-y), 0) scale(0.97); }
.visual-launcher:hover .visual-launcher__knob--upper,
.visual-launcher:focus-visible .visual-launcher__knob--upper { animation: visual-launcher-focus-upper 390ms ease-out both; }
.visual-launcher:hover .visual-launcher__knob--lower,
.visual-launcher:focus-visible .visual-launcher__knob--lower { animation: visual-launcher-focus-lower 390ms ease-out both; }
.visual-launcher:active { transform: translateY(-1px) scale(0.978); transition-duration: 90ms; }
.visual-launcher.is-calibrating { animation: visual-launcher-calibrate var(--launcher-click-pulse-duration) cubic-bezier(0.22, 1, 0.36, 1) both; }
.visual-launcher[aria-expanded="true"] { border-color: rgb(126 216 255 / 42%); background: rgb(12 40 66 / 82%); box-shadow: 0 13px 38px rgb(0 7 18 / 30%), 0 0 14px rgb(67 190 246 / 8%), inset 0 1px 0 rgb(224 248 255 / 12%); }
.visual-launcher[aria-expanded="true"] .visual-launcher__icon { animation: none; transform: none; }
.visual-launcher[aria-expanded="true"]::before { animation: none; opacity: 0.52; }
.visual-launcher[aria-expanded="true"]::after { opacity: 0.32; animation: none; transform: rotate(18deg); }
:root[data-visual-panel-open="true"] .visual-launcher { right: calc(var(--visual-panel-width) + 8px); }

@keyframes visual-launcher-sheen {
  0%, 100% { transform: translate3d(-3%, -2%, 0) scale(0.94); }
  50% { transform: translate3d(4%, 3%, 0) scale(1.03); }
}
@keyframes visual-launcher-icon-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -0.75px, 0); }
}
@keyframes visual-launcher-particle-release {
  0% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.45); }
  24% { opacity: 0.72; }
  100% { opacity: 0; transform: translate3d(calc(-50% + var(--launcher-particle-x)), calc(-50% + var(--launcher-particle-y)), 0) scale(0.72); }
}
@keyframes visual-launcher-scan { to { transform: rotate(336deg); } }
@keyframes visual-launcher-focus-upper {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(1.35px); }
}
@keyframes visual-launcher-focus-lower {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-1.35px); }
}
@keyframes visual-launcher-calibrate {
  0% { transform: translateY(-1px) scale(1.015); }
  24% { transform: translateY(-1px) scale(0.978); }
  62% { transform: translateY(-1px) scale(1.009); }
  100% { transform: translateY(-1px) scale(1); }
}

.visual-panel {
  position: fixed;
  z-index: 19;
  top: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  width: calc(var(--visual-panel-width) - 24px);
  min-height: 0;
  padding: 13px 12px 11px;
  border: 1px solid rgb(183 224 248 / 10%);
  border-radius: 22px;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 0%, rgb(47 115 154 / 12%), transparent 32%),
    linear-gradient(155deg, rgb(8 29 49 / 72%), rgb(3 15 28 / 78%));
  box-shadow: 0 26px 72px rgb(0 6 16 / 38%), inset 0 1px 0 rgb(222 246 255 / 6%);
  color: var(--foreground);
  backdrop-filter: blur(28px) saturate(108%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(100% + 28px), 0, 0);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}
.visual-scrim { display: none; }
:root[data-visual-panel-open="true"] .visual-panel { opacity: 1; pointer-events: auto; transform: translate3d(0, 0, 0); }
.visual-panel__head { display: flex; min-height: 40px; padding: 0 3px 8px; align-items: center; justify-content: space-between; }
.visual-panel__identity { display: flex; align-items: center; gap: 10px; }
.visual-panel__identity strong { display: block; font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.visual-panel__glyph { display: grid; width: 27px; height: 27px; border: 1px solid rgb(115 210 255 / 14%); border-radius: 9px; color: var(--accent); place-items: center; }
.visual-panel__glyph svg { width: 19px; height: 19px; fill: currentColor; opacity: .9; }
.visual-panel__live { display: block; margin-top: 1px; color: rgb(132 213 255 / 64%); font-size: 8px; font-weight: 450; letter-spacing: .13em; }
.visual-icon-button { width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: 22px; font-weight: 300; line-height: 1; }
.visual-icon-button:hover { border-color: rgb(170 222 255 / 18%); background: rgb(124 203 255 / 10%); color: var(--foreground); }
.visual-search { width: 100%; height: 34px; margin-bottom: 8px; padding: 0 12px; border: 1px solid rgb(168 220 255 / 10%); border-radius: 999px; outline: none; background: rgb(4 18 32 / 34%); color: var(--foreground); font-size: 11px; }
.visual-search::placeholder { color: rgb(184 210 233 / 54%); }
.visual-search:focus { border-color: rgb(108 205 255 / 30%); box-shadow: 0 0 0 3px rgb(80 190 255 / 5%); }
.visual-tabs { display: grid; min-height: 30px; margin-bottom: 7px; padding: 2px; border: 1px solid rgb(169 220 255 / 7%); border-radius: 10px; background: rgb(2 14 26 / 22%); grid-template-columns: repeat(6, minmax(0, 1fr)); }
.visual-tab { min-width: 0; padding: 4px 2px; border: 0; border-radius: 7px; background: transparent; color: rgb(185 210 232 / 52%); font-size: 9px; font-weight: 400; line-height: 16px; white-space: nowrap; }
.visual-tab[aria-selected="true"] { background: rgb(115 201 244 / 10%); color: rgb(225 243 254 / 88%); box-shadow: inset 0 0 0 1px rgb(148 216 249 / 7%); }
.visual-panel__content { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 5px 12px 1px; scrollbar-color: rgb(116 188 224 / 16%) transparent; scrollbar-width: thin; }
.visual-panel__content::-webkit-scrollbar { width: 5px; }
.visual-panel__content::-webkit-scrollbar-track { background: transparent; }
.visual-panel__content::-webkit-scrollbar-thumb { border: 1px solid transparent; border-radius: 999px; background: rgb(116 188 224 / 18%); background-clip: padding-box; }
.visual-panel__content::-webkit-scrollbar-thumb:hover { background: rgb(121 201 240 / 30%); background-clip: padding-box; }
.visual-group { border-top: 1px solid rgb(167 220 255 / 7%); }
.visual-group:first-child { border-top: 0; }
.visual-group > summary { display: flex; min-height: 36px; cursor: pointer; list-style: none; align-items: center; color: rgb(192 217 237 / 70%); font-size: 10px; font-weight: 450; letter-spacing: .045em; justify-content: space-between; }
.visual-group > summary::-webkit-details-marker { display: none; }
.visual-group > summary::after { margin-left: 7px; color: rgb(126 203 244 / 70%); content: '⌄'; font-size: 14px; transform: rotate(-90deg); transition: transform 160ms ease; }
.visual-group[open] > summary::after { transform: rotate(0); }
.visual-group__count { margin-left: auto; color: rgb(141 190 220 / 42%); font-size: 9px; font-variant-numeric: tabular-nums; }
.visual-group__body { display: grid; gap: 4px; padding-bottom: 9px; }
.visual-field { position: relative; min-height: 52px; padding: 7px 9px 6px; border: 1px solid transparent; border-radius: 9px; background: rgb(74 137 177 / 3.5%); transition: background-color 140ms ease, border-color 140ms ease; }
.visual-field:hover { border-color: rgb(146 215 255 / 8%); background: rgb(76 151 196 / 7%); }
.visual-field.is-changed { border-color: rgb(98 203 255 / 10%); background: rgb(74 166 214 / 7%); box-shadow: inset 1px 0 0 rgb(91 205 255 / 48%); }
.visual-field__head { display: flex; min-height: 18px; align-items: center; gap: 4px; justify-content: space-between; }
.visual-field__label { overflow: hidden; color: rgb(229 242 251 / 82%); font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.visual-field__changed { display: none; color: var(--accent); font-size: 13px; line-height: 1; }
.visual-field.is-changed .visual-field__changed { display: inline; }
.visual-field__value { display: flex; min-width: 68px; align-items: center; color: rgb(191 220 240 / 75%); justify-content: flex-end; }
.visual-number { width: 52px; padding: 0; border: 0; outline: 0; appearance: textfield; background: transparent; color: rgb(191 222 241 / 84%); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-align: right; }
.visual-number::-webkit-inner-spin-button,
.visual-number::-webkit-outer-spin-button { margin: 0; appearance: none; }
.visual-field__unit { min-width: 18px; margin-left: 3px; color: rgb(159 198 224 / 54%); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.visual-range { width: 100%; height: 15px; margin: 3px 0 -3px; appearance: none; background: transparent; cursor: ew-resize; }
.visual-range::-webkit-slider-runnable-track { height: 2px; border-radius: 999px; background: rgb(118 191 228 / 24%); }
.visual-range::-webkit-slider-thumb { width: 10px; height: 10px; margin-top: -4px; border: 1.5px solid rgb(211 239 252 / 84%); border-radius: 50%; appearance: none; background: rgb(85 184 230 / 82%); box-shadow: 0 0 0 3px rgb(66 182 236 / 6%); }
.visual-field--color { display: grid; min-height: 42px; padding-block: 7px; align-items: center; gap: 5px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) 22px; }
.visual-color-text { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: rgb(193 221 240 / 78%); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; text-align: right; }
.visual-color-swatch { width: 18px; height: 18px; border: 1px solid rgb(230 248 255 / 24%); border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(4 18 30 / 24%); }
.visual-field--switch { display: flex; min-height: 42px; padding-block: 7px; align-items: center; gap: 5px; }
.visual-field--switch .visual-switch { width: 34px; height: 20px; margin-left: auto; padding: 2px; border: 1px solid rgb(178 222 248 / 14%); border-radius: 99px; background: rgb(157 194 221 / 14%); }
.visual-switch::before { display: block; width: 14px; height: 14px; border-radius: 50%; background: rgb(211 232 247 / 74%); content: ''; transition: transform 160ms ease, background-color 160ms ease; }
.visual-switch.is-on { border-color: rgb(101 208 255 / 34%); background: rgb(53 174 235 / 40%); }
.visual-switch.is-on::before { background: rgb(229 248 255); transform: translateX(14px); }
.visual-empty { padding: 28px 4px; color: var(--muted); font-size: 12px; text-align: center; }
.visual-panel__footer { display: grid; padding-top: 8px; border-top: 1px solid rgb(169 220 255 / 7%); gap: 5px; grid-template-columns: 1fr 1fr; }
.visual-action { min-height: 29px; padding: 0 8px; border: 1px solid rgb(172 222 255 / 9%); border-radius: 8px; background: rgb(11 35 55 / 28%); color: rgb(214 234 247 / 76%); font-size: 9px; font-weight: 450; }
.visual-action:hover { border-color: rgb(120 210 255 / 20%); background: rgb(20 61 91 / 42%); }
.visual-action--primary { border-color: rgb(126 214 255 / 16%); background: rgb(74 172 218 / 72%); color: rgb(4 24 42); }
.visual-status { min-height: 13px; margin: 2px 1px 0; color: rgb(128 211 255 / 82%); font-size: 9px; grid-column: 1 / -1; text-align: center; }
.visual-debug-readout { position: fixed; z-index: 18; right: 18px; bottom: 18px; max-width: min(420px, calc(100vw - 84px)); padding: 7px 10px; border: 1px solid rgb(142 215 255 / 16%); border-radius: 8px; background: rgb(4 19 34 / 62%); color: rgb(171 225 252 / 82%); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.4; backdrop-filter: blur(12px); }
:root[data-visual-panel-open="true"] .visual-debug-readout { right: calc(var(--visual-panel-width) + 8px); }

@keyframes landing-reveal {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes landing-background-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 860px) {
  .landing-header, .landing-hero { width: min(100% - 32px, 720px); }
  .landing-header { min-height: 66px; }
  .landing-header.is-scrolled { min-height: 42px; }
  .landing-hero { grid-template-columns: minmax(0, 1fr); }
  .landing-hero { min-height: calc(100dvh - 66px); }
  .landing-copy { z-index: 1; max-width: 620px; padding: 84px 0 110px; }
  .landing-focus { position: absolute; inset: 0 -25% 0 38%; min-height: 0; }
  .landing { --eye-opacity: 0.46; }
  .eye-anchor { width: min(68vw, var(--eye-width-max)); }
}

@media (max-width: 560px) {
  .landing-header { min-height: 56px; }
  .brand-badge { display: none; }
  .landing-actions { gap: 5px; }
  .language { width: 88px; min-width: 88px; }
  .release-link { width: 36px; min-width: 36px; padding-inline: 0; }
  .release-label { display: none; }
  .landing-header.is-scrolled { width: calc(100% - 24px); min-height: 42px; padding-left: 12px; }
  .landing-hero { min-height: calc(100dvh - 56px); }
  .landing-copy { padding: 78px 0 88px; }
  .landing-title { margin-top: 20px; font-size: clamp(46px, 12.5vw, 60px); }
  .description { max-width: 330px; margin-top: 24px; font-size: 14px; line-height: 22px; }
  .landing-focus { inset: -14% -62% 10% 12%; }
  .landing { --eye-opacity: 0.34; }
  .eye-anchor { width: min(92vw, var(--eye-width-max)); }
  .primary-link { width: 100%; max-width: 280px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .landing::before, .landing::after { animation: none !important; transform: none !important; }
  .primary-link:hover, .primary-link:active { transform: none; }
  .visual-launcher::before,
  .visual-launcher::after,
  .visual-launcher__icon { animation: none !important; }
  .visual-launcher:hover,
  .visual-launcher:focus-visible,
  .visual-launcher:active,
  .visual-launcher.is-calibrating { transform: none; }
  .visual-launcher:hover .visual-launcher__icon,
  .visual-launcher:focus-visible .visual-launcher__icon { transform: none; }
}

@media (max-width: 899px) {
  :root[data-visual-panel-open="true"] .landing { width: 100%; }
  .visual-panel { left: 12px; width: auto; }
  .visual-scrim,
  :root[data-visual-panel-open="true"] .visual-scrim { display: none; }
  .visual-launcher { top: auto; right: 16px; bottom: 18px; }
  :root[data-visual-panel-open="true"] .visual-launcher { right: 16px; opacity: 0; pointer-events: none; transform: translateY(8px); }
  :root[data-visual-panel-open="true"] .visual-debug-readout { right: 18px; }
}

@media (max-width: 460px) {
  .visual-panel { top: 0; right: 0; bottom: 0; left: 0; padding: 14px; border-radius: 0; }
  .visual-panel__content { padding-bottom: 8px; }
  .visual-tabs { overflow-x: auto; grid-template-columns: repeat(6, 58px); }
  .visual-tab { font-size: 9px; }
}
