/* Showcase site for glass-morphism. Glass surfaces come from dist/liquid-glass.css. */
:root {
  --bg: #06060a;
  --fg: #f5f5f7;
  --muted: rgba(235, 235, 245, .62);
  --faint: rgba(235, 235, 245, .32);
  --line: rgba(255, 255, 255, .1);
  --card: rgba(255, 255, 255, .035);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --lg-accent: #0a84ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.011em;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
code { font-family: var(--mono); font-size: .88em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; }
.i .s { fill: none; stroke: currentColor; stroke-width: 2.2; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px;
  background: radial-gradient(circle at 35% 30%, #fff, #7cc4ff 40%, #5e5ce6 75%); box-shadow: 0 0 12px rgba(100, 170, 255, .7); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 100; top: 14px; left: 50%; transform: translateX(-50%);
  height: 52px; padding: 0 8px 0 18px; gap: 2px;
  --lg-tint: rgba(20, 20, 24, .24);
  max-width: calc(100vw - 24px);
}
.nav > a { width: auto; height: 40px; padding: 0 12px; font-size: 14px; font-weight: 550; text-decoration: none; color: rgba(255, 255, 255, .88); border-radius: 20px; filter: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); display: inline-flex; align-items: center; }
.nav > a:hover { background: rgba(255, 255, 255, .1); }
.nav .brand { font-weight: 750; font-size: 15px; letter-spacing: -.02em; margin-right: 8px; padding: 0 8px 0 0; }
.nav .brand:hover { background: none; }
.nav .gh { width: 40px; padding: 0; justify-content: center; font-size: 20px; }
@media (max-width: 780px) { .nav .nl { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(720px, 100vh, 980px); display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 110px 20px 80px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: url(../demo/assets/img/p1069.jpg) center 35%/cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 6, 10, .15) 0%, rgba(6, 6, 10, .05) 45%, rgba(6, 6, 10, .85) 88%, var(--bg) 100%); }
.hero-inner { text-align: center; max-width: 980px; display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.hero .eyebrow { text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.hero-title { display: flex; flex-direction: column; align-items: center; }
.glass-word { min-height: 120px; }
.glass-word.fallback { font-weight: 900; font-size: clamp(56px, 12vw, 150px); letter-spacing: -.05em; line-height: 1; color: rgba(255, 255, 255, .92); }
.solid-word { font-size: clamp(28px, 5vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin-top: -4px; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.lede { max-width: 620px; margin: 22px auto 28px; font-size: clamp(16px, 2vw, 19px); color: rgba(255, 255, 255, .86); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta .lg-button { text-decoration: none; }
.install { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; border-radius: 999px; --lg-tint: rgba(10, 10, 14, .28); max-width: 100%; }
.install code { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
.lens { position: absolute; z-index: 5; width: 170px; height: 170px; border-radius: 50%; right: 9%; top: 22%; cursor: grab; touch-action: none; display: grid; place-items: center; transition: transform .5s cubic-bezier(.2, 1.5, .4, 1); }
.lens span { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .75); position: relative; z-index: 1; }
.lens.dragging { cursor: grabbing; transform: scale(1.08); }
@media (max-width: 780px) { .lens { width: 120px; height: 120px; right: 6%; top: 14%; } }

/* ---------- copy buttons ---------- */
.copy { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; transition: background .2s, transform .3s cubic-bezier(.3, 1.6, .4, 1); }
.copy:hover { background: rgba(255, 255, 255, .22); }
.copy:active { transform: scale(.9); }
.copy.done { background: #30d158; }

/* ---------- sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 110px 20px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .eyebrow { color: var(--lg-accent); }
h2 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.sub { margin: 0; color: var(--muted); font-size: 17.5px; }
.sub code { background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 6px; color: var(--fg); }
.more { text-align: center; margin: 28px 0 0; }
.more a { color: var(--lg-accent); text-decoration: none; font-weight: 600; }
.more a:hover { text-decoration: underline; }

.photo-band { border-radius: 36px; overflow: hidden; isolation: isolate; padding: clamp(20px, 4vw, 48px); background-size: cover; background-position: center; box-shadow: 0 0 0 .5px var(--line), 0 40px 100px rgba(0, 0, 0, .45); }
.band-features { background-image: linear-gradient(rgba(0, 0, 0, .12), rgba(0, 0, 0, .12)), url(../demo/assets/img/p1015.jpg); }
.band-components { background-image: url(../demo/assets/img/p1080.jpg); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature { border-radius: 28px; padding: 24px 24px 22px; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); --lg-tint: rgba(10, 10, 14, .18); }
.feature > * { position: relative; z-index: 1; }
.f-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .16); font-size: 22px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.feature p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .85); }

/* ---------- playground ---------- */
.playground { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .playground { grid-template-columns: 1fr; } }
.pg-stage { position: relative; min-height: 520px; border-radius: 32px; overflow: hidden; isolation: isolate; background: url(../demo/assets/img/p1043.jpg) center/cover; box-shadow: 0 0 0 .5px var(--line); }
.pg-stage::before { content: "REFRACTION LENSING SPECULAR DISPERSION REFRACTION LENSING SPECULAR DISPERSION REFRACTION LENSING SPECULAR DISPERSION REFRACTION LENSING SPECULAR DISPERSION";
  position: absolute; inset: 22px; font-weight: 900; font-size: 44px; line-height: 1.05; letter-spacing: -.03em; color: rgba(255, 255, 255, .9); word-break: break-all; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.pg-stage::after { content: ""; position: absolute; right: 26px; bottom: 26px; width: 34%; height: 28%; border-radius: 20px; background: repeating-linear-gradient(90deg, #111 0 9px, #f4f4f4 9px 18px); }
.pg-target { position: absolute; z-index: 2; left: calc(50% - 160px); top: calc(50% - 100px); width: 320px; height: 200px; border-radius: 44px; display: grid; place-items: center; cursor: grab; touch-action: none; transition: transform .5s cubic-bezier(.2, 1.5, .4, 1); }
.pg-target span { position: relative; z-index: 1; font-weight: 750; font-size: 22px; letter-spacing: -.02em; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.pg-target.dragging { cursor: grabbing; transform: scale(1.05); }
.pg-hint { position: absolute; left: 18px; bottom: 14px; font-size: 12px; color: rgba(255, 255, 255, .8); z-index: 1; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.pg-panel { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 32px; background: var(--card); box-shadow: inset 0 0 0 .5px var(--line); }
.pg-presets { width: 100%; background-color: rgba(118, 118, 128, .2); }
.pg-presets > button { min-width: 0; }
.pg-controls { display: grid; gap: 6px; }
.ctl { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.ctl output { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg); font-family: var(--mono); font-size: 12px; }

/* ---------- code boxes ---------- */
.codebox { position: relative; border-radius: 20px; background: #0d0d12; box-shadow: inset 0 0 0 .5px var(--line); }
.codebox pre { margin: 0; padding: 18px 56px 18px 20px; overflow-x: auto; font: 13px/1.6 var(--mono); color: #d6d6e0; }
.codebox .copy { position: absolute; top: 10px; right: 10px; }
.codebox--big pre { font-size: 14px; padding: 22px 60px 22px 24px; white-space: pre-wrap; word-break: break-word; }
.tok-c { color: #6c6c80; } .tok-s { color: #9ee493; } .tok-k { color: #ff7ab2; } .tok-n { color: #ffd479; } .tok-t { color: #6bdfff; } .tok-a { color: #c792ea; }

/* ---------- components ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.comp { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.comp-live { min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 24px 18px; }
.comp-live .lg-switch { transform: scale(1.3); margin: 0 10px; }
.comp-live--menu { justify-content: space-between; align-items: flex-start; min-height: 220px; padding: 24px; }
.menu-slot { display: flex; justify-content: flex-end; }
.comp-name { padding: 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.comp-code { margin: 10px 0 0; padding: 14px 18px 16px; font: 12px/1.55 var(--mono); color: #d6d6e0; background: rgba(8, 8, 12, .82); overflow-x: auto; }
.lg-tabbar__item .i { font-size: 22px; }
.lg-toolbar .i, .lg-menu .i { font-size: 1em; }

/* ---------- demos ---------- */
.demos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.demo { display: block; text-decoration: none; border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 .5px var(--line); transition: transform .45s cubic-bezier(.3, 1.4, .4, 1), box-shadow .3s; }
.demo:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25), 0 20px 50px rgba(0, 0, 0, .4); }
.demo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; background: #111; }
.demo div { padding: 14px 18px 18px; }
.demo b { display: block; font-size: 17px; letter-spacing: -.02em; }
.demo span { color: var(--muted); font-size: 14px; }

/* ---------- get started ---------- */
.start { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.start-tabs { background-color: rgba(118, 118, 128, .2); }
.lg-segmented > button { white-space: nowrap; }
.start-tabs > button { flex: none; padding: 0 18px; }
.start .codebox { width: 100%; }
.support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.support div { padding: 16px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 .5px var(--line); text-align: center; }
.support b { display: block; font-size: 14px; }
.support span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .support { grid-template-columns: 1fr; } }
.doclinks { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.doclinks .lg-button { text-decoration: none; --lg-tint: rgba(255, 255, 255, .08); }

/* ---------- footer ---------- */
.footer { margin-top: 120px; border-top: .5px solid var(--line); padding: 36px 20px 110px; }
.foot-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .brand { font-weight: 750; font-size: 16px; }
.footer p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.footer .credits { max-width: 560px; }
.footer .credits a { color: var(--fg); }
.footer .fine { font-size: 12px; color: var(--faint); }

/* ---------- built-with badge ---------- */
.built-with {
  position: fixed; z-index: 90; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px 0 14px;
  font-size: 13px; font-weight: 650; text-decoration: none; color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  --lg-tint: rgba(10, 10, 14, .2);
  transition: transform .45s cubic-bezier(.3, 1.5, .4, 1);
}
.built-with > * { position: relative; z-index: 1; }
.built-with:hover { transform: scale(1.05); }
