/* openobserve-cli — shared stylesheet for the landing page (index.html) and the
   generated CLI reference (cli/index.html). Edit here once; both pages follow.
   Aesthetic: light "clean console" — the unified design shared with confluence-cli
   / bitbucket-cli, recolored to OpenObserve's white-and-grey palette: IBM Plex
   Mono display voice, IBM Plex Sans body, one calm blue accent, terminal-window
   framing for code, on a bright canvas. */

:root {
  --bg:          #ffffff;
  --bg-soft:     #f6f8fa;
  --panel:       #f0f3f7;
  --card:        #ffffff;
  --border:      #dfe3e9;
  --border-soft: #eaedf2;
  --text:        #1a2230;
  --muted:       #586273;
  --faint:       #8b95a6;
  --accent:      #1f6feb;
  --accent-2:    #12b886;
  --accent-soft: rgba(31, 111, 235, 0.09);
  --radius:      12px;
  --radius-lg:   18px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmosphere: a soft blue dawn at the top, a faint blueprint grid behind it */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% -6%, rgba(31, 111, 235, 0.10), transparent 72%),
    radial-gradient(40% 36% at 100% 2%, rgba(18, 184, 134, 0.06), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(64% 50% at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(64% 50% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, kbd { font-family: var(--mono); }

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

/* ---- typography ---- */
h1, h2, h3 { font-family: var(--mono); font-weight: 600; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.lead { color: var(--muted); font-size: 1.04rem; max-width: 60ch; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 26px; height: 60px;
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
}
.brand {
  font-family: var(--mono); font-weight: 600; font-size: 1rem; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}
.brand:hover { text-decoration: none; }
.brand::before {
  content: "›"; color: var(--accent); font-weight: 700;
}
.nav-links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 0.88rem; font-family: var(--mono);
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.is-cli { color: var(--accent); }
.nav-links a.is-cli:hover { color: var(--accent-2); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.9rem; font-weight: 500;
  padding: 11px 20px; border-radius: 10px; border: 1px solid var(--border);
  transition: transform 0.12s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--accent); color: #ffffff; border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { background: #1559c8; border-color: #1559c8; }
.btn-ghost { background: var(--card); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---- sections ---- */
.section { padding: 92px 0; border-top: 1px solid var(--border-soft); }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: 1.7rem; margin: 10px 0 8px; }

/* ---- hero ---- */
.hero { padding: 104px 0 88px; text-align: center; position: relative; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.03em; line-height: 1.04;
}
.hero h1 .cursor {
  display: inline-block; width: 0.56ch; height: 1em; vertical-align: -0.12em;
  background: var(--accent); margin-left: 0.08em;
  animation: blink 1.15s steps(1) infinite;
}
.hero .tagline {
  color: var(--muted); font-size: 1.22rem; line-height: 1.55;
  margin: 20px auto 0; max-width: 32ch;
}
.pills { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin: 26px 0 4px; }
.pill {
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
  border: 1px solid var(--border); background: var(--bg-soft);
  border-radius: 999px; padding: 5px 13px;
}
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.shot {
  margin: 56px auto 0; max-width: 900px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-soft);
  box-shadow: 0 30px 70px -48px rgba(31, 111, 235, 0.35),
              0 16px 44px -30px rgba(16, 24, 40, 0.16);
}
.shot img { width: 100%; display: block; }

/* ---- terminal / code blocks ---- */
.term {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-soft); overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-soft);
  background: var(--panel);
}
.term-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.term-bar .term-title {
  margin-left: 8px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
}
pre {
  font-size: 0.88rem; line-height: 1.78; overflow-x: auto;
  padding: 18px 20px; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.term pre { border: 0; border-radius: 0; }
pre .c { color: var(--faint); }
pre .p { color: var(--accent); }       /* prompt marker */
p code, li code, td code {
  font-size: 0.86em; background: var(--accent-soft);
  border: 1px solid var(--border-soft); border-radius: 5px; padding: 1px 6px;
  color: #1a52c0;
}

/* ---- card grids ---- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card h3 { font-size: 1rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.92rem; }
a.card:hover {
  text-decoration: none; transform: translateY(-3px); border-color: var(--accent);
  box-shadow: 0 18px 40px -28px rgba(31, 111, 235, 0.4);
}

/* feature card with icon */
.feat .feat-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--border-soft);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feat .feat-ico svg { width: 20px; height: 20px; stroke: var(--accent); }

/* command-group cards */
.cmd-group { display: block; }
.cmd-group .cg-name {
  font-family: var(--mono); font-weight: 600; color: var(--text); font-size: 0.98rem;
}
.cmd-group .cg-name::before { content: "$ "; color: var(--accent); }
.cmd-group p { margin-top: 5px; }
.cmd-group .cg-go { color: var(--accent); }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-family: var(--mono); font-size: 0.82rem;
     text-transform: uppercase; letter-spacing: 0.05em; }
td code { color: var(--accent); background: none; border: 0; padding: 0; }

/* ---- footer ---- */
.footer {
  border-top: 1px solid var(--border-soft); padding: 34px 0;
  color: var(--muted); font-size: 0.88rem;
}
.footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer .brand-foot { font-family: var(--mono); }

/* ---- entrance motion ---- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
.reveal { opacity: 0; animation: rise 0.62s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.13s; }
.d3 { animation-delay: 0.21s; } .d4 { animation-delay: 0.29s; }
.d5 { animation-delay: 0.37s; } .d6 { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; }
}

/* =====================================================================
   CLI reference page (cli/index.html) — generated by cmd/gen-docs.
   ===================================================================== */
.layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 44px;
  max-width: var(--wrap); margin: 0 auto; padding: 36px 24px 110px; align-items: start;
}
.side { position: sticky; top: 84px; max-height: calc(100vh - 108px); overflow-y: auto; }
.side-group { margin-bottom: 18px; }
.side-title {
  font-family: var(--mono); color: var(--accent); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 7px;
}
.side a {
  display: block; color: var(--muted); font-family: var(--mono);
  font-size: 0.83rem; padding: 3px 0;
}
.side a:hover { color: var(--text); text-decoration: none; }
.cli-main { min-width: 0; }
.cli-main > h1 { font-size: 2rem; }
.cli-main > .lead { margin: 10px 0 6px; }
.cmd { border-top: 1px solid var(--border-soft); padding-top: 34px; margin-top: 34px; }
.cmd:first-of-type { border-top: 0; }
.cmd h2 { font-size: 1.22rem; color: var(--text); }
.cmd .short { color: var(--muted); margin: 6px 0 14px; }
.cmd .long { white-space: pre-wrap; margin: 12px 0; color: var(--text); font-size: 0.95rem; }
.cmd h3 {
  font-family: var(--mono); font-size: 0.78rem; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase; margin: 22px 0 9px;
}
.group-tag {
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 2px 9px; margin-left: 9px; vertical-align: 3px;
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .side { position: static; max-height: none; }
  .nav-links { gap: 14px; }
  .section { padding: 68px 0; }
}
