/* ukrop.org — static site styles */
:root {
  --bg: #0d1117;
  --bg-elev: #161b22;
  --bg-soft: #1c222b;
  --border: #2d333b;
  --border-soft: #21262d;
  --text: #e6edf3;
  --text-dim: #9da7b3;
  --text-muted: #6e7681;
  --accent: #7ee787;
  --accent-dim: #4ac26b;
  --accent-2: #58a6ff;
  --accent-3: #d2a8ff;
  --warn: #f0883e;
  --danger: #ff7b72;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1080px;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -20%, rgba(126, 231, 135, 0.08), transparent 60%),
              radial-gradient(900px 500px at -10% 20%, rgba(88, 166, 255, 0.06), transparent 60%),
              var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

code, pre, kbd, samp { font-family: var(--mono); }
code {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
  color: var(--text);
}
pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  position: relative;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
}

kbd {
  background: #22272e;
  border: 1px solid #444c56;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
  color: #d1d7e0;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  line-height: 1.2;
  color: var(--text);
  margin: 1.4em 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.55rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; color: var(--text-dim); }

p { margin: 0.6em 0 1em; color: var(--text); }
ul, ol { padding-left: 1.3em; }
li { margin: 0.3em 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ---------- layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(150%) blur(10px);
  background: rgba(13, 17, 23, 0.78);
  border-bottom: 1px solid var(--border-soft);
}
.site-nav .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 700;
}
.site-nav .brand:hover { text-decoration: none; color: var(--accent); }
.site-nav .brand svg { width: 26px; height: 26px; }
.site-nav .brand .prompt { color: var(--accent); }

.site-nav ul.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.site-nav ul.links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.93rem;
  font-weight: 500;
}
.site-nav ul.links a:hover,
.site-nav ul.links a.active {
  color: var(--text);
  background: var(--bg-soft);
  text-decoration: none;
}
.site-nav ul.links a.active { color: var(--accent); }

.site-nav .github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}
.site-nav .github:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.site-nav .github svg { width: 16px; height: 16px; fill: currentColor; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; margin-left: auto; }
  .site-nav ul.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    gap: 4px;
  }
  .site-nav.open ul.links { display: flex; }
  .site-nav .github { display: none; }
}

/* ---------- hero ---------- */
.hero {
  padding: 90px 0 40px;
  text-align: center;
  position: relative;
}
.hero .tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: var(--mono);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero h1 .prompt { color: var(--accent); }
.hero h1 .cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--accent);
  vertical-align: -0.1em;
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }
.hero p.lede {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 28px;
}
.hero .ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-elev);
  cursor: pointer;
  transition: transform .1s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #2ea043, #238636);
  border-color: #2ea043;
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.08); border-color: #3fb950; color: #fff; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- install tabs ---------- */
.install-tabs {
  max-width: 680px;
  margin: 0 auto;
}
.install-tabs .tab-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.install-tabs .tab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s ease;
}
.install-tabs .tab:hover { color: var(--text); }
.install-tabs .tab .sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.install-tabs .tab.active {
  background: var(--bg);
  border-color: var(--border);
  color: var(--accent);
}
.install-tabs .tab.active .sub {
  color: var(--accent);
  border-color: var(--accent);
}
.install-tabs .tab-panel { display: none; }
.install-tabs .tab-panel.active { display: block; }

.install-tabs.quickstart-tabs {
  max-width: none;
}
.install-tabs.quickstart-tabs .tab-panel pre {
  margin: 0;
}

/* ---------- install one-liner ---------- */
.install-line {
  margin: 0;
  display: flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.95rem;
  gap: 12px;
  box-shadow: var(--shadow);
}
.install-line .dollar { color: var(--accent); user-select: none; }
.install-line code {
  flex: 1;
  background: none;
  border: 0;
  padding: 0;
  white-space: nowrap;
  overflow-x: auto;
  color: var(--text);
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--sans);
  transition: all .15s ease;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }

/* Copy button attached to pre blocks */
pre .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg-soft);
}

/* ---------- hero screen ---------- */
.hero-screen {
  margin: 48px auto 0;
  max-width: 900px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0b0f14;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-screen .bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #12171e;
  border-bottom: 1px solid var(--border);
}
.hero-screen .bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3f46; }
.hero-screen .bar .dot.r { background: #ff5f57; }
.hero-screen .bar .dot.y { background: #febc2e; }
.hero-screen .bar .dot.g { background: #28c840; }
.hero-screen .bar .title {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 10px;
}
.hero-screen pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  font-size: 12.5px;
  line-height: 1.45;
  background: transparent;
  padding: 18px 22px;
  color: #c6d0dc;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  -webkit-font-feature-settings: "liga" 0, "calt" 0;
  white-space: pre;
  text-align: center;
}
.hero-screen .border { color: #3b434d; }
.hero-screen .fav    { color: var(--accent); }
.hero-screen .hl     { color: #79c0ff; text-decoration: underline; }
.hero-screen .dim    { color: #6e7681; }
.hero-screen .key    { color: var(--accent); }

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .15s ease, border-color .15s ease;
}
.feature:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(126, 231, 135, 0.1);
  border: 1px solid rgba(126, 231, 135, 0.25);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-dim); font-size: 0.93rem; }

/* ---------- page header ---------- */
.page-header {
  padding: 60px 0 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 30px;
}
.page-header .eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 8px 0 10px;
}
.page-header p.lede {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 720px;
  margin: 0;
}

/* ---------- content (markdown-like pages) ---------- */
.content {
  max-width: 820px;
  margin: 0 auto;
}
.content h2 { margin-top: 2.2em; }
.content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  margin: 1.2em 0;
  display: block;
  overflow-x: auto;
}
.content th, .content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.content th {
  background: var(--bg-elev);
  font-weight: 600;
  color: var(--text);
}
.content tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

/* ---------- docs layout with TOC ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 44px;
  margin-top: 24px;
}
.docs-toc {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 10px;
  border-right: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
.docs-toc h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.docs-toc ul { list-style: none; padding: 0; margin: 0 0 18px; }
.docs-toc li { margin: 4px 0; }
.docs-toc a {
  color: var(--text-dim);
  display: block;
  padding: 3px 8px;
  border-radius: 4px;
  border-left: 2px solid transparent;
}
.docs-toc a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.docs-toc li.sub { padding-left: 10px; }
.docs-toc li.sub a { font-size: 0.85rem; }
.docs-content { min-width: 0; }
.docs-content h1:first-child { margin-top: 0; }

@media (max-width: 820px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { display: none; }
}

/* ---------- callouts ---------- */
.callout {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 1.2em 0;
  color: var(--text-dim);
}
.callout strong { color: var(--text); }
.callout.warn  { border-left-color: var(--warn); }
.callout.info  { border-left-color: var(--accent-2); }
.callout.tip   { border-left-color: var(--accent); }

/* ---------- install cards ---------- */
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.install-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.install-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.install-card .platform {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.install-card p { color: var(--text-dim); margin: 6px 0 14px; font-size: 0.93rem; }
.install-card pre { margin: 0; font-size: 12.5px; }

/* ---------- compare table ---------- */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  min-width: 1100px;
}
.compare th, .compare td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
  background: var(--bg);
}
.compare th {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.compare td:first-child,
.compare th:first-child {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 200px;
  width: 200px;
}
.compare th:first-child { background: var(--bg-elev); }
.compare td:nth-child(2),
.compare th:nth-child(2) {
  position: sticky;
  left: 200px;
  z-index: 2;
  min-width: 90px;
  border-right: 1px solid var(--border);
}
.compare .ukrop-col { background: rgba(126, 231, 135, 0.12); }
.compare th.ukrop-col { background: rgba(126, 231, 135, 0.18); }
.compare tr.compare-row td:first-child,
.compare tr.compare-row td.ukrop-col { background: var(--bg-elev); }
.compare .yes { color: var(--accent); font-weight: 600; }
.compare .no  { color: var(--text-muted); }
.compare th a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--border); }
.compare th a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.compare tr.compare-row td {
  padding-top: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.compare-btn {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  background: transparent;
}
.compare-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- themes grid ---------- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.theme-swatch {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.theme-swatch h4 {
  font-family: var(--mono);
  font-size: 0.9rem;
  margin: 0 0 8px;
  color: var(--text);
}
.theme-swatch .strip {
  display: flex;
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.theme-swatch .strip span { flex: 1; }
.theme-swatch p { font-size: 0.8rem; color: var(--text-muted); margin: 8px 0 0; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.2);
  margin-top: 80px;
  padding: 30px 0 40px;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.site-footer .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--accent); }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- screenshots ---------- */
.screenshot {
  margin: 1.4em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}
.screenshot figcaption {
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-elev);
  border-top: 1px solid var(--border-soft);
}
.hero .screenshot {
  margin: 48px auto 0;
  max-width: 900px;
}

/* ---------- utility ---------- */
.muted { color: var(--text-dim); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
