/* cogs marketing site
   Dark-first, auto light/dark. System fonts only, no external assets. */

:root {
  --bg: #0b0e14;
  --bg-alt: #0f131c;
  --panel: #131822;
  --panel-2: #0a0d13;
  --border: #222a38;
  --text: #e6ebf2;
  --text-dim: #9aa6b8;
  --text-faint: #6b7688;
  --accent: #5eead4;
  --accent-2: #38bdf8;
  --accent-ink: #06231f;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1080px;

  --term-bg: #0a0d13;
  --term-border: #1c2432;
  --c-prompt: #5eead4;
  --c-comment: #6b7688;
  --c-str: #f0b866;
  --c-out: #9aa6b8;
  --c-arg: #38bdf8;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fc;
    --bg-alt: #eef2f8;
    --panel: #ffffff;
    --panel-2: #0a0d13;
    --border: #dce3ee;
    --text: #131822;
    --text-dim: #4a5568;
    --text-faint: #7a869a;
    --accent: #0d9488;
    --accent-2: #0284c7;
    --accent-ink: #ffffff;

    --term-bg: #0b0e14;
    --term-border: #1c2432;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

code, pre, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex: none; }
.header-nav { display: flex; gap: 26px; align-items: center; }
.header-nav a { color: var(--text-dim); font-size: 0.94rem; }
.header-nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 420px at 15% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(760px 380px at 100% 0%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.hero h1 .muted { color: var(--text-faint); font-weight: 700; }
.lede {
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 34em;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hosted-note { margin: 0; font-size: 0.94rem; color: var(--text-faint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Terminal ---------- */
.terminal {
  background: var(--term-bg);
  border: 1px solid var(--term-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.7);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: color-mix(in srgb, var(--term-bg) 60%, #1b2230);
  border-bottom: 1px solid var(--term-border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.terminal-title {
  margin-left: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.terminal-body {
  margin: 0;
  padding: 18px 18px 20px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #d5dde8;
  overflow-x: auto;
  white-space: pre;
}
.terminal-body code { font-size: inherit; color: inherit; }

.terminal-sm .terminal-body { padding: 14px 16px; font-size: 0.8rem; line-height: 1.6; }
.terminal-wide { margin-top: 8px; }

.c-prompt { color: var(--c-prompt); font-weight: 600; }
.c-comment { color: var(--c-comment); font-style: italic; }
.c-str { color: var(--c-str); }
.c-out { color: var(--c-out); }
.c-arg { color: var(--c-arg); }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  text-align: center;
}
.section-title code { font-size: 0.9em; color: var(--accent); background: none; }
.section-sub {
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 40em;
}
.section-sub code { color: var(--accent-2); }

/* inline code */
p code, .step-body p code, .feature p code {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.86em;
}

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 34px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.step-num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.step-body h3 { margin: 4px 0 8px; font-size: 1.22rem; letter-spacing: -0.01em; }
.step-body p { margin: 0 0 16px; color: var(--text-dim); max-width: 60ch; }
.step-body .terminal { margin-top: 4px; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); transform: translateY(-2px); }
.feature-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.footer-brand .brand-mark { width: 24px; height: 24px; color: var(--accent); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-dim); font-size: 0.94rem; }
.footer-links a:hover { color: var(--accent); }
.footer-note { margin: 0; color: var(--text-faint); font-size: 0.88rem; max-width: 42em; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 52px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .header-nav { gap: 16px; }
  .header-nav a:not(:last-child) { display: none; }
  .features { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .step-num { width: 40px; height: 40px; font-size: 1.05rem; }
  .cta-row { flex-direction: column; }
  .btn { width: 100%; }
  .terminal-body { font-size: 0.78rem; }
}
