/* Vibe Work product page: app tokens, layout and responsive states. Loaded only by index.html. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/vibework/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0e0e11;
  --chrome: #121216;
  --panel: #16161a;
  --raised: #1e1e23;
  --line: #ffffff10;
  --line-2: #ffffff1f;
  --text: #f4f4f5;
  --text-2: #b4b4bc;
  --text-3: #7c7c86;
  --primary-bg: #f4f4f5;
  --primary-fg: #131317;
  --orange: #fa500f;
  --brand-1: #ff8205;
  --brand-2: #fa500f;
  --brand-3: #e61300;
  --green: #44ba82;
  --focus: #55b3fb;
  --window-shadow: 0 30px 80px -20px #000000cc, 0 0 0 1px var(--line-2);
  --ui: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --arrive: 320ms cubic-bezier(0.16, 1, 0.3, 1);
  --section: clamp(72px, 10vw, 128px);
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #fbfbf8;
    --chrome: #f3f2ec;
    --panel: #f7f6f1;
    --raised: #ffffff;
    --line: #00000012;
    --line-2: #0000001f;
    --text: #201f1c;
    --text-2: #615f57;
    --text-3: #928f86;
    --primary-bg: #1a1a1e;
    --primary-fg: #ffffff;
  }
}

/* A shared site toggle can override the system theme without changing this page's controls. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfbf8;
  --chrome: #f3f2ec;
  --panel: #f7f6f1;
  --raised: #ffffff;
  --line: #00000012;
  --line-2: #0000001f;
  --text: #201f1c;
  --text-2: #615f57;
  --text-3: #928f86;
  --primary-bg: #1a1a1e;
  --primary-fg: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Inter Variable", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; font-weight: 650; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 650; letter-spacing: -0.02em; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.015em; }
p { max-width: 64ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.shell { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section h2 { margin-bottom: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 18px; background: var(--primary-bg); color: var(--primary-fg); transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: none; }

/* Family navigation keeps the same groups and one menu on every viewport. */
.nav { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: var(--chrome); }
.nav:not(.enhanced) { position: relative; }
.nav-inner { min-height: 72px; width: min(1360px, calc(100% - 40px)); margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 16px; font-weight: 650; letter-spacing: -0.025em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 32px; height: 26px; flex: none; }
/* Header brand = the shared shellX family brand (as on /cut/, /motion/, /drive/); the footer keeps the Vibe Work mark. */
.nav-brand img { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.nav-brand .name strong { font-weight: 700; }
.nav-source a { gap: 7px; }
.nav-source svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
/* Family bar: product links start next to the brand, then | and this page's sections; GitHub + Download sit right. */
.nav-links { display: flex; flex: 1; align-items: center; gap: 20px; margin-left: 12px; font-size: 14px; font-weight: 500; }
.nav-links .nav-source { margin-left: auto; }
.nav-group { display: flex; align-items: center; gap: 18px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); }
.nav-products a { color: var(--text); }
.nav-current { box-shadow: inset 0 -2px var(--orange); }
.nav-sep { width: 1px; height: 18px; flex: none; background: var(--line-2); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; line-height: 1.5; font-weight: 600; text-decoration: none; }
.button:hover { text-decoration: underline; text-underline-offset: 4px; }
.primary { color: var(--primary-fg); background: var(--primary-bg); }
.secondary { color: var(--text); background: var(--raised); border-color: var(--line-2); }
.nav-cta { min-height: 40px; padding: 9px 16px; flex: none; }
.nav-burger { width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: var(--text); border-radius: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; margin: 4px 0; background: currentColor; }
.nav.open .nav-burger span:first-child { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { visibility: hidden; }
.nav.open .nav-burger span:last-child { transform: translateY(-6px) rotate(-45deg); }

/* The hero window is the only element with an arrival animation. */
.hero { padding-top: clamp(64px, 7vw, 100px); text-align: center; }
.hero h1 { max-width: 850px; margin-inline: auto; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 64ch; margin: 24px auto 0; text-wrap: pretty; }
.hero-actions { display: flex; align-items: flex-start; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-download { flex-direction: column; align-items: flex-start; min-width: 170px; padding: 12px 20px; }
.hero-download strong { font-weight: 600; }
.hero-download span { font-weight: 400; font-size: 13px; color: var(--text-2); }
.hero-download.primary span { color: inherit; opacity: .72; }
.footer-contact { margin-top: 18px; display: grid; gap: 4px; font-size: 14px; }
.footer-contact span { color: var(--text-3); font-size: 13px; }
.footer-contact a { color: var(--text-2); }
.hero-note { font-size: 14px; line-height: 1.5; color: var(--text-2); margin: 20px auto 0; }
.hero-stage { position: relative; margin-top: 48px; padding-bottom: 72px; isolation: isolate; }
.hero-stage .shell { max-width: 1040px; }
.shot { position: relative; background: var(--panel); border-radius: 14px; box-shadow: var(--window-shadow); overflow: hidden; text-align: left; }
.shot picture, .shot img { display: block; width: 100%; height: auto; }
.shot img { object-fit: contain; }
.hero-window { animation: window-arrive var(--arrive) both; }
.pixel-band { position: absolute; bottom: 0; left: 0; z-index: -1; height: calc(15% + 61.2px); shape-rendering: crispEdges; }
@keyframes window-arrive { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.work-loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.work-loop .shot { box-shadow: 0 0 0 1px var(--line-2); }
.work-loop h3 { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; font-size: 16px; }
.step { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; width: 28px; height: 28px; flex: none; }
.feature-section, .install-section { border-block: 1px solid var(--line); background: var(--panel); }
.tabs { display: inline-flex; padding: 4px; margin: 0 0 36px; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { padding: 10px 24px; min-height: 44px; border: 1px solid transparent; border-radius: 8px; color: var(--text-2); background: transparent; font-size: 14px; font-weight: 500; transition: background var(--ui), color var(--ui), box-shadow var(--ui); }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--raised); box-shadow: 0 1px 3px #00000022, 0 0 0 1px var(--line-2); }
.feature-panel, .permissions-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-panel + .feature-panel { margin-top: 48px; }
.tabs:not([hidden]) ~ .feature-panel { margin-top: 0; }
.feature-section .shot { background: var(--bg); }
.feature-copy h3 { font-size: 24px; margin-bottom: 24px; }
.plain-lines { display: grid; gap: 18px; color: var(--text-2); }
.permission-list { display: grid; gap: 22px; }
.permission-list li { position: relative; padding-left: 20px; }
.permission-list li::before { content: ""; position: absolute; width: 6px; height: 6px; top: 10px; left: 0; border-radius: 50%; background: var(--green); }
.permission-note { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.more-section { padding-top: 0; }
.more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 80px; }
.more-list li { display: flex; align-items: flex-start; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line-2); }
.more-list h3 { font-size: 16px; margin-bottom: 6px; }
.more-list p { color: var(--text-2); }
.feature-icon { width: 24px; height: 24px; margin-top: 2px; color: var(--text-2); flex: none; }
.install-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.release-version { font-size: 14px; color: var(--text-2); }
.install-steps { display: grid; gap: 40px; }
.install-steps > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 20px; }
.install-steps h3 { margin-bottom: 12px; font-size: 20px; }
.install-steps p { color: var(--text-2); }
.system-downloads { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; }
.system-downloads .button { flex-direction: column; align-items: flex-start; padding: 14px 22px; min-width: 200px; }
.system-downloads .button span { font-weight: 400; color: var(--text-2); margin-top: 2px; }
.linux-download > a:last-child { display: block; margin: 10px 0 0; padding-block: 2px; font-size: 14px; color: var(--text-2); }
.setup-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; max-width: 620px; gap: 20px; margin-top: 24px; }
.setup-shots .shot { background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
.requirements { margin: 48px 0 0 48px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.requirements strong { color: var(--text); }
.requirements p + p { margin-top: 10px; }
.requirements > a { display: inline-block; padding-block: 8px; margin-top: 12px; color: var(--text); }

footer { padding-block: 64px 32px; background: var(--chrome); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 48px; }
.footer-grid > * { min-width: 0; }
.footer-grid h2 { margin-bottom: 20px; font-size: 14px; line-height: 1.5; letter-spacing: 0; font-weight: 600; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid li a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.about p { margin: 18px 0 12px; font-size: 14px; color: var(--text-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; color: var(--text-2); font-size: 14px; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; text-decoration-color: var(--orange); }

@media (min-width: 1001px) and (max-width: 1200px) {
  .nav-inner { width: calc(100% - 32px); gap: 12px; }
  .nav-links, .nav-group { gap: 10px; }
  .nav-links { font-size: 12px; }
  .nav-brand { font-size: 14px; gap: 6px; }
  .nav-brand .brand-mark { width: 26px; }
  .nav-cta { font-size: 12px; padding-inline: 12px; }
}

@media (max-width: 1000px) {
  .nav-inner { flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .nav-links { order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav-group { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { font-size: 16px; min-height: 44px; padding-block: 8px; }
  .nav-current { align-self: flex-start; }
  .nav-sep { height: 1px; width: 100%; margin-block: 12px; }
  .nav-links .nav-source { margin-left: 0; margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 12px; }
  .nav-cta { margin-left: auto; }
  .nav.enhanced .nav-inner { flex-wrap: nowrap; }
  .nav.enhanced .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 72px); overflow-y: auto; padding: 16px var(--gutter) 24px; background: var(--chrome); border-bottom: 1px solid var(--line-2); }
  .nav.enhanced.open .nav-links { display: flex; }
  .nav-burger { display: block; margin-left: auto; }
  .nav.enhanced .nav-cta { margin-left: 0; }
  .work-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .feature-panel, .permissions-row { gap: 32px; }
  .more-list { column-gap: 40px; }
  .system-downloads { flex-wrap: wrap; }
  .footer-grid { gap: 32px; }
}

@media (max-width: 759px) {
  .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 360px); margin-inline: auto; }
  .hero-download { min-width: 0; }
  html { scroll-padding-top: 88px; }
  .nav-inner { width: calc(100% - 32px); min-height: 64px; padding-block: 10px; gap: 8px; }
  .nav-brand { font-size: 15px; gap: 8px; }
  .nav-brand .brand-mark { width: 28px; }
  .nav-cta { padding-inline: 14px; }
  .nav.enhanced .nav-links { max-height: calc(100dvh - 64px); }
  .hero { padding-top: 56px; }
  .hero h1 { max-width: 540px; }
  .lead { margin-top: 24px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { padding-inline: 16px; }
  .hero-note { margin-top: 16px; }
  .hero-stage { margin-top: 36px; padding-bottom: 36px; }
  .pixel-band { width: 200%; height: calc(30% + 61.2px); transform: scale(.5); transform-origin: bottom left; }
  .hero-stage { overflow: clip; }
  .section h2 { margin-bottom: 32px; }
  .work-loop, .feature-panel, .permissions-row, .more-list, .footer-grid, .setup-shots { grid-template-columns: minmax(0, 1fr); }
  .work-loop { gap: 32px; }
  .work-loop h3 { margin-top: 16px; }
  .tabs { display: flex; }
  .tabs button { flex: 1; padding-inline: 10px; }
  .feature-copy h3 { font-size: 22px; margin-bottom: 20px; }
  .plain-lines { gap: 16px; }
  .more-list li { padding-block: 22px; }
  .install-steps > li { gap: 14px; }
  .system-downloads { display: grid; grid-template-columns: minmax(0, 1fr); }
  .system-downloads .button { width: 100%; }
  .setup-shots { max-width: 420px; }
  .requirements { margin-left: 0; }
  .footer-grid { gap: 36px; }
  .footer-grid ul { gap: 4px; }
  .footer-grid li a { display: inline-block; padding-block: 8px; }
  .footer-grid h2 { margin-bottom: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 370px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-download { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Full-size picture viewer (vibework.js). */
a.zoom { display: block; cursor: zoom-in; color: inherit; border-radius: inherit; }
a.zoom:focus-visible { outline: 2px solid #55b3fb; outline-offset: 2px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(8, 8, 10, 0.86); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto; border-radius: 10px;
  box-shadow: 0 30px 80px -20px #000000cc, 0 0 0 1px var(--line-2); cursor: zoom-out; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--raised); color: var(--text); font: 22px/1 Inter, system-ui, sans-serif;
  cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  dialog.lightbox[open] img { animation: lb-in 200ms cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
}
