/* VeyFrame website. Light by default with a dark scheme; system fonts only, so nothing loads from a third party. */

:root {
  /* Dark first, like the editor it shows. */
  --bg: #050507;
  --bg-soft: #0b0c11;
  --surface: #111218;
  --surface-2: #171821;
  --ink: #f5f6f8;
  --ink-2: #b3b7c2;
  --ink-3: #7f8390;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #3d84ff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(61, 132, 255, 0.14);
  --coral: #ff6a5c;
  --teal: #2cc6d9;
  --apricot: #ffb36b;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 40px 120px rgba(0, 0, 0, 0.6);
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.022em; margin: 0; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav .btn { margin-left: auto; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; margin: 0;
               background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu-toggle { display: block; }
  .nav .btn { margin-left: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--font); white-space: nowrap;
  transition: transform 0.15s, filter 0.15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn.lg { height: 52px; padding: 0 26px; font-size: 17px; }
.btn.secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 340px at 22% 30%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%),
    radial-gradient(560px 380px at 78% 22%, color-mix(in srgb, var(--apricot) 26%, transparent), transparent 70%),
    radial-gradient(640px 420px at 50% 70%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-icon { width: 104px; height: 104px; margin: 0 auto 22px; filter: drop-shadow(0 18px 30px rgba(30, 60, 140, 0.22)); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2);
}
.pill b { color: var(--accent); font-weight: 650; }
.hero h1 { font-size: clamp(40px, 6.4vw, 70px); margin: 22px auto 0; max-width: 960px; font-weight: 750; }
.hero h1 .soft { color: var(--ink-3); }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 680px; margin: 22px auto 0; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.fine { color: var(--ink-3); font-size: 14px; margin-top: 14px; }
.hero-media { margin: 56px auto 0; max-width: 1080px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: #8fb8f5; }
.hero-media video, .hero-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Sections */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.eyebrow { font-size: 14px; font-weight: 650; letter-spacing: 0.02em; color: var(--accent); margin-bottom: 14px; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 720; }
.section-head p { color: var(--ink-2); font-size: 19px; margin-top: 18px; }
.section-head .eyebrow { color: var(--accent); font-size: 14px; margin: 0 0 14px; }
.alt { background: var(--bg-soft); }

.uses { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--ink-3); font-size: 15px; }
.uses span { display: inline-flex; align-items: center; gap: 8px; }
.uses svg { width: 18px; height: 18px; color: var(--ink-3); }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 720; }
.feature .lead { color: var(--ink-2); font-size: 18px; margin-top: 16px; }
.media-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); }
.media-card video, .media-card img { width: 100%; height: auto; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--ink-2); font-size: 16px; }
.points li b { color: var(--ink); font-weight: 620; }
.points svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-text { order: 0; }
}

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.three, .grid.two, .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h4 { font-size: 19px; font-weight: 650; margin-top: 16px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin-top: 8px; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.coral { background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); }
.icon-tile.teal { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.icon-tile.apricot { background: color-mix(in srgb, var(--apricot) 22%, transparent); color: #d97a1c; }

.shapes { display: grid; grid-template-columns: 1.7fr 0.62fr; gap: 24px; align-items: end; max-width: 980px; margin: 0 auto; }
.shapes figure { margin: 0; }
.shapes figcaption { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 12px; }
@media (max-width: 720px) { .shapes { grid-template-columns: 1fr; } .shapes .tall { max-width: 300px; margin: 0 auto; } }

/* The AI assistant example */
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); font-size: 15.5px; }
.chat .msg { padding: 12px 16px; border-radius: 14px; max-width: 88%; }
.chat .you { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat .bot { background: var(--bg-soft); color: var(--ink); border-bottom-left-radius: 4px; margin-top: 12px; }
.chat .tool { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin: 12px 0 0 4px; }
.chat .tool b { color: var(--teal); font-weight: 600; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 620; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin-top: 12px; }

/* Closing call to action */
.cta-band { text-align: center; padding: 96px 0 104px; }
.cta-band img { width: 88px; height: 88px; margin: 0 auto 24px; }
.cta-band h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 740; }
.cta-band p { color: var(--ink-2); font-size: 19px; margin-top: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14.5px; color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h5 { margin: 0 0 12px; font-size: 13px; color: var(--ink); font-weight: 650; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-3); }
.footer-grid a:hover { color: var(--ink); }
.footer-note { margin-top: 36px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Simple pages: legal, changelog, support, download */
.page { padding: 72px 0 96px; }
.page-head { max-width: 760px; margin: 0 auto 40px; }
.page-head h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 740; }
.page-head p { color: var(--ink-2); font-size: 19px; margin-top: 14px; }
.page-head .eyebrow { color: var(--accent); font-size: 14px; margin: 0 0 14px; }
.page-head .updated { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.prose { max-width: 760px; margin: 0 auto; color: var(--ink-2); overflow-wrap: break-word; }
.prose h2 { font-size: 26px; color: var(--ink); margin: 44px 0 12px; }
.prose h3 { font-size: 19px; color: var(--ink); margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; color: var(--ink); }
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 620; }
.prose kbd { display: inline-block; min-width: 24px; text-align: center; padding: 1px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 1px 0 var(--line-strong); color: var(--ink); font-family: var(--font); font-size: 0.85em; }
.prose img, .prose video { border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 8px 0 18px; }
.callout { border-radius: var(--radius-sm); padding: 14px 18px; background: var(--accent-soft); color: var(--ink); margin: 0 0 18px; font-size: 15.5px; }
.callout.warn { background: color-mix(in srgb, var(--apricot) 20%, transparent); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; color: var(--ink); }
.updated { color: var(--ink-3); font-size: 14px; margin-top: 10px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; margin: 0 0 8px; }

/* Changelog */
.release { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.release h2 { font-size: 26px; margin: 0; }
.release .when { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.release .tag { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 650; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; }
@media (max-width: 720px) { .release { grid-template-columns: 1fr; gap: 10px; } }

/* Docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 40px 0 96px; }
.docs-nav { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: 15px; }
.docs-group { margin-bottom: 22px; }
.docs-group p { font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin: 0 0 6px 10px; letter-spacing: 0.02em; }
.docs-group ul { list-style: none; margin: 0; padding: 0; }
.docs-group a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); }
.docs-group a:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink); }
.docs-group a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.docs-main { max-width: 780px; min-width: 0; }
.docs-main .prose { margin: 0; }
.docs-main h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 740; color: var(--ink); margin-bottom: 14px; }
.docs-main .intro { font-size: 19px; color: var(--ink-2); margin-bottom: 26px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager span { display: block; font-size: 13px; color: var(--ink-3); font-weight: 400; margin-bottom: 2px; }
.pager .pager-next { text-align: right; }
.docs-toggle { display: none; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .docs-nav { position: static; max-height: none; display: none; margin-bottom: 24px; }
  .docs-nav.open { display: block; }
  .docs-toggle { display: inline-flex; margin-bottom: 20px; }
}

/* Reveal on scroll (only when JavaScript runs, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------------------------------------------------
   Landing page, dark edition: a cinematic hero with the real editor, a gallery of looks, and tabbed demos.
   --------------------------------------------------------------------------------------------------------------- */
.home main { overflow-x: clip; }
.site-header { background: rgba(5, 5, 7, 0.72); }
.btn { box-shadow: 0 8px 24px rgba(61, 132, 255, 0.28); }
.btn.secondary { background: rgba(255, 255, 255, 0.06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.secondary:hover { background: rgba(255, 255, 255, 0.1); }

.hero { padding: 84px 0 0; }
.hero::before {
  inset: -10% -20% auto; height: 900px;
  background:
    radial-gradient(520px 360px at 30% 18%, rgba(44, 198, 217, 0.22), transparent 70%),
    radial-gradient(560px 380px at 72% 14%, rgba(255, 179, 107, 0.2), transparent 70%),
    radial-gradient(800px 520px at 50% 60%, rgba(61, 132, 255, 0.28), transparent 70%);
  filter: blur(20px);
}
.hero-icon { width: 92px; height: 92px; filter: drop-shadow(0 20px 40px rgba(61, 132, 255, 0.45)); }
.pill { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-strong); }
.hero h1 { font-size: clamp(44px, 7.2vw, 84px); max-width: 1000px; letter-spacing: -0.035em; font-weight: 780; }
.hero h1 .grad { background: linear-gradient(100deg, #7fb2ff 0%, #2cc6d9 45%, #ffb36b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--ink-2); max-width: 640px; }

/* The real editor, with the demo playing in its preview; it tilts up and settles as you scroll (site.js). */
.showcase { margin: 64px auto 0; max-width: 1240px; perspective: 1600px; }
.showcase-frame {
  position: relative; border-radius: 18px; overflow: hidden; background: #1c1c1e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 140px rgba(0, 0, 0, 0.7), 0 0 120px rgba(61, 132, 255, 0.25);
  transform-origin: 50% 0%; will-change: transform;
}
.showcase-frame img { width: 100%; height: auto; display: block; }
/* The preview area of editor.jpg, as a fraction of the screenshot (measured from the capture). */
.showcase-frame video { position: absolute; left: 7.011%; top: 8.008%; width: 66.138%; height: 59.273%; object-fit: cover; border-radius: 2px; }
.showcase-note { color: var(--ink-3); font-size: 14px; text-align: center; margin-top: 18px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 980px; margin: 0 auto; }
.stats div { background: var(--bg); padding: 22px 18px; text-align: center; }
.stats b { display: block; font: 700 24px/1.1 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.stats span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Gallery of looks: a horizontal strip that scrolls on its own and snaps when dragged. */
.gallery { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(20px, calc((100vw - var(--wrap)) / 2)) 20px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.look { flex: 0 0 auto; width: min(560px, 82vw); scroll-snap-align: center; margin: 0; }
.look.tall { width: min(250px, 50vw); }
.look img { width: 100%; height: 315px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.look.tall img { height: 315px; }
.look figcaption { margin-top: 12px; display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 14.5px; }
.look figcaption i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
@media (max-width: 620px) { .look img, .look.tall img { height: 220px; } }

/* Tabs: buttons switch the media beside them. */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); margin-top: 26px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; color: var(--ink-2); font: 600 14.5px var(--font); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #0b0c10; }
.tabs button:hover:not([aria-selected="true"]) { color: var(--ink); }
.tab-text { color: var(--ink-2); font-size: 16.5px; margin-top: 18px; min-height: 52px; }
.panels { position: relative; }
.panel { display: none; }
.panel.on { display: block; animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: scale(0.99); } to { opacity: 1; transform: none; } }
.media-card { background: #000; border-color: var(--line-strong); box-shadow: var(--shadow), 0 0 80px rgba(61, 132, 255, 0.12); }
.panel.tall-media { max-width: 360px; margin: 0 auto; }

.card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); border-color: var(--line); }
.card:hover { border-color: var(--line-strong); }
.alt { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.chat { background: var(--surface); }
.chat .bot { background: var(--surface-2); }

.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 20% 10% auto; height: 420px; z-index: -1; background: radial-gradient(closest-side, rgba(61, 132, 255, 0.28), transparent); filter: blur(30px); }

/* ---------------------------------------------------------------------------------------------------------------
   Liquid Glass, for the controls layer only (navigation, buttons, the version pill, tabs, labels over pictures), like
   macOS 26: content stays solid. Every glass surface blurs and saturates what's behind it, has a specular rim and an
   inner sheen; in Chromium browsers site.js adds a real lens bend at the edges (an SVG displacement filter on the
   backdrop). With Reduce Transparency, glass becomes solid.
   --------------------------------------------------------------------------------------------------------------- */
:root {
  --glass-tint: rgba(255, 255, 255, 0.07);
  --glass-blur: 14px;
  --glass-sat: 175%;
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.22);
}
.site-header .nav, .btn.secondary, .pill, .tabs, .tab-thumb, .look figcaption {
  position: relative;
  /* Inner sheen (a soft highlight across the top) over the tint. No isolation: Chrome drops a url() backdrop filter
     on an isolated element, which turns the refraction off. */
  background: radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, 0.14), transparent 62%), var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    var(--glass-shadow);
}
/* Specular rim: bright where light hits the top-left edge, fading around the shape, catching again at the bottom-right. */
.site-header .nav::before, .btn.secondary::before, .pill::before, .tabs::before, .tab-thumb::before, .look figcaption::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1) 32%, rgba(255, 255, 255, 0) 52%,
                              rgba(255, 255, 255, 0.1) 78%, rgba(255, 255, 255, 0.38));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* The header floats as a glass capsule. Smoky enough that its text stays readable over the bright demo videos. */
/* Fixed, not sticky: Chrome skips a url() backdrop filter inside a sticky element, which turned the refraction off. */
body { padding-top: 68px; }
html { scroll-padding-top: 84px; }
/* The home page lets its hero glow run up behind the floating header. */
body.home { padding-top: 0; }
.home .hero { padding-top: 152px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; padding: 12px 0 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; pointer-events: none; }
.site-header .nav {
  pointer-events: auto; width: min(1100px, 100% - 24px); height: 56px; padding: 0 8px 0 18px; border-radius: 999px;
  --glass-tint: rgba(14, 15, 21, 0.52); --glass-blur: 18px;
  transition: background-color 0.25s;
}
.site-header.scrolled .nav { --glass-tint: rgba(14, 15, 21, 0.62); }
.site-header .nav .btn { height: 40px; }
@media (max-width: 760px) {
  /* Inside the glass capsule, so it can't blur what's behind the page (a nested backdrop sees only the capsule): solid. */
  .nav-links {
    top: 64px; left: 0; right: 0; border: 0; border-radius: 22px; padding: 8px 18px 12px;
    background: #101118;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), var(--glass-shadow);
  }
  .nav-links a:last-child { border-bottom: 0; }
}

/* Primary buttons: tinted glass, the accent color with a specular highlight. */
.btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%), var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 8px 24px rgba(61, 132, 255, 0.3);
}
.btn.secondary { color: var(--ink); --glass-tint: rgba(255, 255, 255, 0.08); }
.btn.secondary:hover { --glass-tint: rgba(255, 255, 255, 0.13); filter: none; }

.pill { --glass-tint: rgba(255, 255, 255, 0.07); }

/* Tabs: a glass track with a glass thumb that slides to the chosen tab (added by site.js; without it the old fill shows). */
.tabs { border: 0; --glass-tint: rgba(255, 255, 255, 0.05); --glass-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.tabs button { position: relative; z-index: 1; transition: color 0.25s; }
.tabs.has-thumb button[aria-selected="true"] { background: none; color: var(--ink); }
.tab-thumb {
  position: absolute; z-index: 0; left: 0; top: 4px; height: calc(100% - 8px); border-radius: 999px; pointer-events: none;
  --glass-tint: rgba(255, 255, 255, 0.16); --glass-blur: 6px; --glass-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s cubic-bezier(0.32, 1.25, 0.5, 1), width 0.5s cubic-bezier(0.32, 1.25, 0.5, 1);
}
.tabs.pressing .tab-thumb { --glass-tint: rgba(255, 255, 255, 0.22); }

/* Gallery labels float as glass chips in the bottom-left corner, over the background rather than the recording. */
.look { position: relative; }
.look figcaption {
  position: absolute; left: 14px; bottom: 14px; margin: 0; padding: 7px 13px 7px 11px; border-radius: 999px;
  color: #fff; font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  --glass-tint: rgba(10, 12, 20, 0.3); --glass-blur: 10px;
}

@media (prefers-reduced-motion: reduce) { .tab-thumb { transition: none; } }
@media (prefers-reduced-transparency: reduce) {
  .site-header .nav, .btn.secondary, .pill, .tabs, .tab-thumb, .look figcaption, .nav-links {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .site-header .nav { background: #14151c; }
  .btn.secondary, .pill, .tabs { background: var(--surface-2); }
  .tab-thumb { background: #2a2c38; }
  .look figcaption { background: rgba(10, 12, 20, 0.85); }
}

/* A 9:16 video beside text stays a comfortable height. */
.feature .panel.tall-media { max-width: 300px; }

/* A vertical video in a phone, with the interface of YouTube Shorts, Instagram Reels, or TikTok drawn on top (or Off),
   so you can see what the app covers. No platform logos; the counts are illustrative. */
.feed { display: grid; justify-items: center; gap: 20px; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 40px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.16), 0 0 0 6px #0c0c0e, 0 0 0 7px rgba(255, 255, 255, 0.08), var(--shadow-lg);
  color: #fff; font: 600 13px/1.3 var(--font);
}
.feed-screen { position: absolute; inset: 0; overflow: hidden; }
.feed-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-island { position: absolute; z-index: 4; left: 50%; top: 11px; width: 92px; height: 27px; margin-left: -46px; border-radius: 15px; background: #000; }
.feed-layers { position: absolute; inset: 0; z-index: 3; pointer-events: none; text-shadow: 0 0 1px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.6); }
.feed-ui { display: none; position: absolute; inset: 0; }
.feed-ui::before, .feed-ui::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; }
.feed-ui::before { top: 0; height: 20%; background: linear-gradient(rgba(0, 0, 0, 0.55), transparent); }
.feed-ui::after { bottom: 0; height: 36%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); }
.feed[data-feed="shorts"] [data-ui="shorts"], .feed[data-feed="reels"] [data-ui="reels"], .feed[data-feed="tiktok"] [data-ui="tiktok"] { display: block; }
.feed-ui svg { display: block; width: 24px; height: 24px; filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.55)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55)); }
.feed-topbar { position: absolute; top: 52px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; }
.feed-topbar.centered svg { width: 25px; height: 25px; }
.feed-tools { display: flex; gap: 18px; }
.feed-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.feed-live { font-size: 12px; font-weight: 700; opacity: 0.9; }
.feed-tabs { position: absolute; left: 0; right: 0; text-align: center; font-size: 15px; color: rgba(255, 255, 255, 0.72); pointer-events: none; }
.feed-tabs b { color: #fff; margin-left: 14px; padding-bottom: 5px; border-bottom: 2.5px solid #fff; }
.feed-rail { position: absolute; right: 9px; bottom: 26px; display: grid; justify-items: center; gap: 15px; }
.feed-rail > span { display: grid; justify-items: center; gap: 4px; }
.feed-rail svg { width: 30px; height: 30px; }
.feed-rail i { font-style: normal; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; }
.feed-sound-tile { width: 32px; height: 32px; border-radius: 9px; border: 2px solid #fff; background: linear-gradient(135deg, #3d84ff, #2cc6d9); }
.feed-sound-tile.square { border-radius: 8px; }
.feed-profile { position: relative; margin-bottom: 8px; }
.feed-avatar { display: block; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #fff; background: linear-gradient(135deg, #3d84ff, #2cc6d9); }
.feed-profile em { position: absolute; left: 50%; bottom: -9px; width: 19px; height: 19px; margin-left: -9.5px; border-radius: 50%; background: #fff; color: #000; font: 800 15px/19px var(--font); font-style: normal; text-align: center; text-shadow: none; }
.feed-disc { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle, #3d84ff 0 30%, #222 31% 100%); box-shadow: inset 0 0 0 7px #2a2a2e; }
.feed-meta { position: absolute; left: 14px; right: 70px; bottom: 26px; display: grid; gap: 7px; }
[data-ui="shorts"] .feed-meta { right: 76px; }
[data-ui="shorts"] .feed-account { font-size: 13.5px; gap: 7px; }
[data-ui="shorts"] .feed-pill.solid { padding: 4px 10px; font-size: 12px; }
.feed-meta p { margin: 0; }
.feed-account { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; }
.feed-avatar-sm { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.9); background: linear-gradient(135deg, #3d84ff, #2cc6d9); flex: none; }
.feed-pill { padding: 4px 12px; border-radius: 9px; border: 1.2px solid rgba(255, 255, 255, 0.9); font-size: 13px; font-weight: 600; }
.feed-pill.solid { background: #fff; color: #0f0f0f; border-color: #fff; border-radius: 999px; text-shadow: none; }
.feed-caption { font-weight: 500; font-size: 13.5px; line-height: 1.35; }
.feed-caption .dim { color: rgba(255, 255, 255, 0.75); }
.feed-audio { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; }
.feed-audio svg { width: 15px; height: 15px; }
.feed-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.feed-switch button { border: 0; background: none; color: var(--ink-2); font: 600 13.5px var(--font); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.feed-switch button[aria-pressed="true"] { background: var(--ink); color: #0b0c10; }
.feed-switch button:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* Style: the result with the editor's own inspector floating beside it, as it looks in the app. */
.style-stage { max-width: 1120px; margin: 0 auto; }
.style-pair { position: relative; padding-left: 210px; }
.style-result img { display: block; width: 100%; height: auto; }
.style-inspector { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 280px; max-height: 92%; overflow: hidden; border-radius: 16px; background: #1e1e1e; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(0, 0, 0, 0.6); -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.style-inspector.short { -webkit-mask-image: none; mask-image: none; }
.style-inspector img { display: block; width: 100%; height: auto; }
.style-controls { text-align: center; }
.style-controls .tab-text { max-width: 620px; margin-left: auto; margin-right: auto; min-height: 0; }
@media (max-width: 900px) {
  .style-pair { padding-left: 0; }
  .style-inspector { position: relative; top: auto; left: auto; transform: none; width: min(250px, 68%); max-height: 230px; margin: -48px auto 0; }
  .style-inspector.short { max-height: none; }
}
@media (max-width: 520px) {
  .style-controls .tabs { flex-wrap: nowrap; gap: 2px; }
  .style-controls .tabs button { padding: 8px 12px; font-size: 14px; }
}

/* Pricing: the free tier and the one-time license side by side. */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 920px; margin: 0 auto; }
.price-card { display: flex; flex-direction: column; gap: 14px; padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); }
.price-card.featured { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 30px 80px rgba(61, 132, 255, 0.14); }
.price-name { margin: 0; font-weight: 650; color: var(--ink-2); font-size: 15px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.price b { font: 720 48px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.price span { color: var(--ink-3); font-size: 16px; }
.price-note { margin: 0; color: var(--ink-2); }
.checks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; flex: 1; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price-card .btn { align-self: stretch; justify-content: center; }
.pricing-fine { text-align: center; color: var(--ink-3); font-size: 14px; margin: 22px auto 0; max-width: 640px; }
.soon-note { max-width: 920px; margin: 0 auto 26px; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* Headlines break into even lines instead of leaving one word behind. */
.section-head h2, .page-head h1 { text-wrap: balance; }
