/* Obelo marketing site.
   The palette and the visual language are lifted from the product's own web app
   (obelo-server web/src/index.css): a flat near-black canvas so artwork carries
   the color, separation from hairline "wireframe" borders rather than fills or
   shadows, and the citrus-lime accent that is the brand mark. Committed dark —
   the product has no light theme and the site should not invent one. */

:root {
  --bg: #0c0d10;
  --surface: #12141a;
  --surface-2: #1a1d25;
  --border: #23272f;
  --border-strong: #333947;
  --text: #e9ecf2;
  --text-dim: #8f97a6;
  --accent: #b8e04d;
  --accent-bright: #cfe86a;
  --accent-ink: #161f08;
  --radius: 6px;
  --radius-sm: 4px;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --shell: 1120px;

  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Focus is visible everywhere, in the accent, since the whole page is dark. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-bright); text-decoration-color: currentColor; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--accent-bright); }
.brand svg { height: 1.5rem; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  font-size: 0.925rem;
}
.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); }

/* The nav links collapse before the buttons do; the GitHub link is the one
   that has to survive to the narrowest width. */
@media (max-width: 46rem) {
  .site-nav .nav-link { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--text-dim); color: var(--text); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--accent-ink); }

.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.9rem; }

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- sections ---------- */

section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
section + section { border-top: 1px solid var(--border); }

.section-label {
  font-size: 0.775rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.section-title { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 650; }

.section-intro {
  color: var(--text-dim);
  max-width: var(--measure);
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }

/* A closing line under a section's content — the same measure as .section-intro,
   one step quieter, for the "and the docs are over there" sentence. */
.section-outro {
  color: var(--text-dim);
  max-width: var(--measure);
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
}

/* ---------- hero ---------- */

.hero {
  border-top: none;
  padding-block: clamp(3.5rem, 10vw, 7rem) clamp(3rem, 8vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

/* A single soft lime bloom behind the copy. The only gradient on the page —
   everywhere else separation is a hairline border, per the app's own rule. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 70vh;
  background: radial-gradient(ellipse 60% 55% at 30% 40%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%);
  pointer-events: none;
}

.hero .shell { position: relative; }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem 0.3rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.eyebrow b { color: var(--text); font-weight: 600; }
.eyebrow .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 0.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 54ch;
  margin: 1.4rem 0 0;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.hero-meta li { display: flex; align-items: center; gap: 0.45rem; }
.hero-meta li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- hero visual ----------
   A real screenshot of the web app, framed and cropped to its top so the hero
   stays roughly the height of the text beside it. */

.stage {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
}
.stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* Cells are separated by the grid's own 1px gap showing the border color
   through — the wireframe rule again, with no per-cell borders to misalign. */
.cell {
  background: var(--bg);
  padding: clamp(1.4rem, 3vw, 1.9rem);
}

.cell h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cell h3 svg { width: 1.15rem; height: 1.15rem; color: var(--accent); flex: none; }
.cell p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
.cell p + p { margin-top: 0.7rem; }
.cell code { color: var(--text); }

/* A cell that takes a whole row (2-up) or two thirds of one (3-up), to close
   the feature grid on the headline capability.

   The spans are load-bearing rather than fussiness: the grid separates cells
   by letting its own background show through a 1px gap, so any track the
   cells do not fill paints as a solid border-coloured block. There are nine
   regular cells, then the plugins cell, then this one. At 3-up the nine fill
   three rows and the last row is plugins + this cell spanning 2. At 2-up the
   nine plus plugins make five even rows, and this cell takes the sixth row
   whole. */
@media (min-width: 46rem) {
  .cell-wide { grid-column: 1 / -1; }
}
@media (min-width: 72rem) {
  .cell-wide { grid-column: span 2; }
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  counter-reset: step;
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { position: relative; padding-top: 2.75rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.1rem; font-weight: 650; margin-bottom: 0.55rem; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- code ---------- */

.code {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.code-head .what { font-weight: 600; color: var(--text); }
.code pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.75;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  -webkit-overflow-scrolling: touch;
}
.code code { color: var(--text); }
.code .c { color: var(--text-dim); }
.code .k { color: var(--accent); }

.copy-btn {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  font: inherit;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  flex: none;
}
.copy-btn:hover { color: var(--text); border-color: var(--text-dim); }
.copy-btn[data-copied="true"] { color: var(--accent); border-color: var(--accent); }

.start-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}
@media (min-width: 62rem) { .start-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }

.start-notes { display: grid; gap: 1.5rem; }
.start-notes h3 { font-size: 1rem; font-weight: 650; margin-bottom: 0.45rem; }
.start-notes p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- clients ---------- */

.clients {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) { .clients { grid-template-columns: repeat(2, 1fr); } }

.client {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2rem);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.client-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.client h3 { font-size: 1.15rem; font-weight: 650; }
.client p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

.tag {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  white-space: nowrap;
  flex: none;
}
.tag-on { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }

.client ul { margin: 0.25rem 0 0; padding-left: 1.1rem; color: var(--text-dim); font-size: 0.925rem; }
.client li + li { margin-top: 0.3rem; }

/* ---------- linked servers ---------- */

/* #linked and #plugins each stack two cards over a three-up grid; .clients and
   .grid both sit flush by default, so the seam between them is set here.

   The columns are overridden to 1-up or 3-up with nothing in between, for the
   same reason .cell-wide spans as it does: three cells cannot fill two
   columns, and an unfilled track in this grid paints as a solid block of the
   border colour. These rules are id-specific, so they win over .grid's own
   breakpoints wherever they overlap. */
#linked .grid,
#plugins .grid {
  margin-top: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 72rem) {
  #linked .grid,
  #plugins .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- attribution ---------- */

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.sources li {
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.fineprint { font-size: 0.85rem; color: var(--text-dim); max-width: var(--measure); margin: 1.5rem 0 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 3rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text-dim); }
.footer-brand svg { height: 1.15rem; width: auto; color: var(--text-dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
