:root {
  --bg: #0f1115;
  --bg-alt: #151822;
  --fg: #e7e9ee;
  --muted: #9aa3b2;
  --accent: #5fd0a8;
  --accent-dark: #2f8f6c;
  --card-bg: #1b1f2a;
  --border: #2a2f3d;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

.hero {
  padding: 96px 0 72px;
  background: radial-gradient(circle at 20% 20%, #1d2b27 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 8px;
}

.acronym {
  color: var(--muted);
  font-weight: 400;
  font-size: 1.6rem;
}

.tagline {
  max-width: 640px;
  margin: 16px auto 32px;
  font-size: 1.15rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  /* Reset native <button> chrome so <button> and <a> buttons match across
     browsers (Safari otherwise renders a beveled push-button). */
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); opacity: 0.9; }

.btn:focus-visible,
.lang-toggle button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.btn-primary { background: var(--accent); color: #0f1115; }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--border); }

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--card-bg);
  color: var(--muted);
  border: 1px dashed var(--border);
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

.get-note { margin: 16px 0 0; font-size: 0.9rem; color: var(--muted); }

.section { padding: 72px 0; scroll-margin-top: 24px; }
.section.alt { background: var(--bg-alt); }

.section h2 {
  font-size: 1.9rem;
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 720px;
}

.lead a {
  color: var(--accent);
  text-decoration: underline;
}

.lead a:hover { text-decoration: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--accent);
}

.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.pill {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--fg);
}

.bullet-list {
  padding-left: 20px;
  color: var(--muted);
}

.bullet-list li { margin-bottom: 12px; }
.bullet-list strong { color: var(--fg); }

.roadmap {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  counter-reset: milestone;
}

.roadmap li {
  counter-increment: milestone;
  position: relative;
  padding: 0 0 28px 44px;
  border-left: 2px solid var(--border);
}

.roadmap li:last-child { border-left: 2px solid transparent; padding-bottom: 0; }

.roadmap li::before {
  content: counter(milestone);
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #0f1115;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap strong { display: block; margin-bottom: 4px; }
.roadmap span { color: var(--muted); font-size: 0.92rem; }
.roadmap em { color: var(--accent); font-style: normal; }

.beyond-h3 { margin: 48px 0 4px; font-size: 1.2rem; }

.roadmap-full { margin: 28px 0 0; }
.roadmap-full a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
}
.roadmap-full a:hover { text-decoration: underline; }

.cta-section { text-align: center; }
.cta-section .lead { margin: 0 auto 24px; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
/* ============================================================
   Design-preview gallery (staff app mock-ups, M3)
   Append to docs/styles.css.
   ============================================================ */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.shot {
  margin: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.shot a.shot-link {
  display: block;
  cursor: zoom-in;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
}

.shot figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.shot figcaption .shot-full {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}

.shot figcaption .shot-full:hover { text-decoration: underline; }

.shot figcaption strong {
  display: block;
  margin-bottom: 2px;
  color: var(--fg);
  font-weight: 600;
}

.preview-note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Language toggle (EN/PL) */
.lang-toggle {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 900;
  display: flex;
  gap: 2px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-toggle button.active {
  background: var(--accent);
  color: #0f1115;
}

/* Lightbox (progressive enhancement; without JS the links open in a new tab) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(8, 10, 14, 0.88);
  cursor: zoom-out;
  overflow: auto;
  padding: 48px 24px;
}

.lightbox.open { display: block; }

.lightbox img {
  display: block;
  max-width: min(1200px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 24px;
  color: var(--fg);
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.8;
}

.lightbox-close:hover { opacity: 1; }

body.lb-lock { overflow: hidden; }

/* ============================================================
   Responsive — scale hero, headings and spacing on small screens.
   (Grids already reflow via auto-fit minmax.)
   ============================================================ */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero { padding: 72px 0 56px; }
  .hero h1 { font-size: 2.2rem; }
  .acronym { font-size: 1.15rem; }
  .tagline { font-size: 1.05rem; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 1.6rem; }
  .cta-row { gap: 12px; }
}

/* Respect users who prefer reduced motion: no scroll animation, no
   transitions, no hover lift. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover { transform: none; }
}
