/* OpenWorkspace landing — single stylesheet */

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --background: oklch(0.953 0.006 262);
  --foreground: oklch(0.205 0.018 266);
  --surface: oklch(1 0 0);
  --sunken: oklch(0.978 0.004 262);
  --muted: oklch(0.5 0.018 264);
  --border: oklch(0.89 0.008 262);
  --border-strong: oklch(0.82 0.01 262);
  --primary: oklch(0.52 0.19 266);
  --primary-fg: oklch(0.99 0.004 266);
  --primary-soft: oklch(0.93 0.035 266);
  --primary-text: oklch(0.47 0.19 266);
  --success: oklch(0.52 0.12 155);
  --code-bg: oklch(0.2 0.02 266);
  --code-fg: oklch(0.92 0.01 262);
  --code-muted: oklch(0.65 0.02 264);
  --code-key: oklch(0.76 0.12 266);
  --code-str: oklch(0.8 0.1 155);
  --shadow: 0 1px 2px oklch(0.2 0.02 266 / 0.05), 0 8px 24px -12px oklch(0.2 0.02 266 / 0.12);

  --wrap: 72rem;
  --gutter: 1rem;
  --radius: 0.75rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.17 0.012 266);
    --foreground: oklch(0.94 0.006 262);
    --surface: oklch(0.21 0.014 266);
    --sunken: oklch(0.19 0.013 266);
    --muted: oklch(0.7 0.015 264);
    --border: oklch(0.29 0.016 266);
    --border-strong: oklch(0.36 0.018 266);
    --primary: oklch(0.62 0.18 266);
    --primary-fg: oklch(0.99 0.004 266);
    --primary-soft: oklch(0.3 0.07 266);
    --primary-text: oklch(0.76 0.13 266);
    --success: oklch(0.72 0.13 155);
    --code-bg: oklch(0.225 0.016 266);
    --shadow: 0 1px 2px oklch(0 0 0 / 0.3), 0 8px 24px -12px oklch(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
code { font-family: var(--font-mono); font-size: 0.9em; }
p code, .card li code {
  background: var(--primary-soft);
  color: var(--primary-text);
  padding: 0.08em 0.35em;
  border-radius: 0.3em;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: var(--gutter); top: -3rem; z-index: 10;
  background: var(--primary); color: var(--primary-fg);
  padding: 0.5rem 0.875rem; border-radius: 0.5rem; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in oklch, var(--background) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 3.75rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; }
.brand img { border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 0.25rem; font-size: 0.925rem; }
.nav a { display: inline-block; padding: 0.4rem 0.7rem; border-radius: 0.5rem; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--foreground); }
.nav .nav-gh { color: var(--foreground); border: 1px solid var(--border-strong); background: var(--surface); }
.nav-optional { display: none; }
@media (min-width: 40rem) { .nav-optional { display: block; } }

/* Hero */
.hero { padding-block: 4rem 3.5rem; border-bottom: 1px solid var(--border); }
.eyebrow, .section-num {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary-text);
}
.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.35rem, 1.4rem + 4.6vw, 4.75rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--primary-text); }
.lede { margin-top: 1.5rem; font-size: clamp(1.075rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 40rem; }

.cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; }
.command {
  display: flex; align-items: center; gap: 0.75rem;
  min-width: 0; flex: 1 1 18rem; max-width: 26rem;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  background: var(--code-bg); color: var(--code-fg);
  border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.95rem;
  border: 1px solid oklch(1 0 0 / 0.1);
  box-shadow: var(--shadow);
}
.command .prompt { color: var(--code-muted); user-select: none; }
.command code { flex: 1; min-width: 0; white-space: nowrap; overflow-x: auto; font-size: inherit; }
.copy {
  display: inline-flex; align-items: center; gap: 0.4rem; flex: none;
  font: 500 0.825rem var(--font-sans);
  color: var(--code-fg); background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.12); border-radius: 0.5rem;
  padding: 0.5rem 0.7rem; cursor: pointer;
}
.copy:hover { background: oklch(1 0 0 / 0.14); }
.copy svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.75rem 1.15rem; border-radius: var(--radius);
  background: var(--primary); color: var(--primary-fg);
  font-weight: 500; text-decoration: none;
  box-shadow: var(--shadow);
}
.button:hover { background: color-mix(in oklch, var(--primary) 88%, black); }
@media (max-width: 30rem) {
  .command, .button { flex-basis: 100%; max-width: none; }
  .command { font-size: 0.85rem; gap: 0.5rem; padding-left: 0.85rem; }
}

.status { min-height: 1.5em; margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }

.hero-facts {
  margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.hero-facts > div { padding: 1rem 1rem 0 0; }
.hero-facts dt { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.hero-facts dd { margin: 0.2rem 0 0; font-weight: 500; }
@media (min-width: 48rem) { .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sections */
.section { padding-block: 4.5rem; border-bottom: 1px solid var(--border); }
.section h2 { margin-top: 0.9rem; font-size: clamp(1.85rem, 1.3rem + 2.4vw, 3rem); max-width: 22ch; }
.section-lede { margin-top: 1rem; color: var(--muted); max-width: 40rem; font-size: 1.075rem; }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .split { grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: start; } }
.split > div > p:not(.section-num) { margin-top: 1rem; color: var(--muted); font-size: 1.075rem; max-width: 38rem; }
.points { margin-top: 2rem; display: grid; gap: 1.25rem; }
.points li { padding-left: 1.25rem; border-left: 2px solid var(--primary); color: var(--muted); }
.points strong { color: var(--foreground); font-weight: 600; }

.stack {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem); padding: 0.5rem 1.25rem 0.75rem; box-shadow: var(--shadow);
}
.stack figcaption {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); padding-block: 0.75rem;
}
.stack li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 0.8rem; border-top: 1px solid var(--border);
}
.stack li span { font-weight: 500; }
.stack li small { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); text-align: right; }

/* Feature grid */
.grid { margin-top: 2.75rem; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: calc(var(--radius) + 0.25rem); overflow: hidden; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); padding: 1.75rem 1.5rem 2rem; }
.card h3 { font-size: 1.2rem; display: grid; gap: 0.85rem; }
.tag {
  justify-self: start;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary-text); background: var(--primary-soft);
  padding: 0.25rem 0.5rem; border-radius: 0.35rem;
}
.card ul { margin-top: 1.1rem; display: grid; gap: 0.55rem; color: var(--muted); font-size: 0.95rem; }
.card li { position: relative; padding-left: 1.1rem; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 0.68em;
  width: 0.4rem; height: 1px; background: var(--border-strong);
}

/* Steps */
.steps { margin-top: 2.75rem; display: grid; gap: 1.5rem; counter-reset: none; }
@media (min-width: 60rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:last-child { grid-column: 1 / -1; }
}
.step { min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.step-head { display: flex; align-items: center; gap: 0.7rem; }
.step-head h3 { font-size: 1.05rem; letter-spacing: -0.015em; }
.step-n {
  display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none;
  border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface);
  font: 500 0.8rem var(--font-mono); color: var(--primary-text);
}
.code {
  margin: 0; flex: 1; display: flex; flex-direction: column;
  background: var(--code-bg); color: var(--code-fg);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.code figcaption {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--code-muted);
  padding: 0.65rem 1rem; border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.code pre {
  margin: 0; padding: 1rem; overflow-x: auto; flex: 1;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7; tab-size: 2;
}
.code pre code { font-size: inherit; background: none; color: inherit; padding: 0; }
.code .k { color: var(--code-key); }
.code .s { color: var(--code-str); }
.code .c { color: var(--code-muted); }
.code .ok { color: var(--code-str); }

/* Roadmap */
.roadmap-inner { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .roadmap-inner { grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: end; } }
.roadmap-inner > div > p:not(.section-num) { margin-top: 1rem; color: var(--muted); font-size: 1.075rem; max-width: 38rem; }
.modules { display: grid; border-top: 1px solid var(--border); }
.modules li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 0.9rem; border-bottom: 1px solid var(--border);
}
.modules code { font-weight: 500; overflow-wrap: anywhere; }
.pill {
  flex: none; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted);
}
.pill-live { border-color: color-mix(in oklch, var(--success) 50%, transparent); color: var(--success); }

/* Footer */
.site-footer { padding-block: 2.5rem 3rem; font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; } }
.brand-sm { color: var(--foreground); }
.brand-sm img { border-radius: 5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .hero { padding-block: 6.5rem 4.5rem; }
  .section { padding-block: 6rem; }
}
