/* Worktree Control landing page.
   Colors are sRGB equivalents of the dashboard's dark theme tokens
   (src/app/globals.css, .dark). No web fonts, no external requests. */

:root {
  color-scheme: dark;
  --background: #0a0d0a;
  --foreground: #e8ece7;
  --card: #0f130f;
  --muted: #191d19;
  --muted-foreground: #979d97;
  --primary: #abee00;
  --primary-foreground: #121907;
  --accent: #1e2417;
  --border: #282d28; /* 45% of the dashboard border over the background */
  --border-strong: #494f49;
  --ring: #a4e300;
  --warning-foreground: #fcd34d;
  --success-foreground: #86efac;
  --radius: 0.625rem;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 72rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--background);
  background-image: radial-gradient(circle at 55% -10%, rgba(171, 238, 0, 0.07), transparent 38rem);
  background-repeat: no-repeat;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 10, 0.92);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--foreground);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.75;
  stroke-linecap: round;
}

.nav-list,
.footer-links,
.facts,
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  font-size: 0.95rem;
}

.nav-list a {
  color: var(--muted-foreground);
  text-decoration: none;
  display: inline-block;
  padding: 0.3rem 0;
}

.nav-list a:hover {
  color: var(--foreground);
}

/* Hero */

.hero {
  padding: 4rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 750;
}

.promise {
  margin: 0.75rem 0 0;
  max-width: 36ch;
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 62ch;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--foreground);
  background: var(--card);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
}

.button-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.button-primary:hover {
  background: #c1ff2e;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.facts li {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.shot {
  margin: 0;
}

.shot img {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
}

.shot figcaption {
  margin-top: 0.6rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.shot-hero {
  margin-top: 2.75rem;
}

.shot-hero img {
  box-shadow: 0 24px 60px -24px rgba(171, 238, 0, 0.18);
}

/* Sections */

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--card);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}

h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
}

.section-intro {
  margin: 0 0 2.5rem;
  color: var(--muted-foreground);
}

.section p,
.section li {
  max-width: 68ch;
}

.section ul {
  padding-left: 1.2rem;
}

.section li + li {
  margin-top: 0.35rem;
}

.note {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.feature {
  display: grid;
  gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
}

.feature:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feature-index {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

@media (min-width: 60rem) {
  .feature-with-shot {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}

/* Status */

.status-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.status-item {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--background);
}

.status-item dt {
  font-weight: 700;
}

.status-item dd {
  margin: 0.35rem 0 0;
  color: var(--muted-foreground);
}

.status-ok {
  border-left-color: var(--success-foreground);
}

.status-unknown {
  border-left-color: var(--warning-foreground);
}

/* Install and agents */

.release-note {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid #6b5a1e;
  border-radius: var(--radius);
  background: #2a1f0d;
  color: #fde68a;
}

.release-note a {
  color: #fde68a;
}

.code {
  margin: 1rem 0 1.25rem;
  max-width: 48rem;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
}

.code code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  overflow-wrap: normal;
  white-space: pre;
}

.prompt {
  color: var(--muted-foreground);
  user-select: none;
}

.link-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.section .link-list {
  padding-left: 0;
}

.link-list a::after {
  content: " \2192";
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

@media (max-width: 30rem) {
  body {
    font-size: 1rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .code {
    font-size: 0.85rem;
  }
}
