/* ============================================================
   cognium.dev — shared theme
   Owned by /assets/theme.css. Do not duplicate tokens per page.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  /* surfaces */
  --bg:        #0a0a0a;
  --bg-2:      #141414;
  --panel:     #1a1a1a;
  --panel-2:   #222222;

  /* text */
  --text:      #f5f5f5;
  --muted:     #b0b0b0;
  --subtle:    #8a8a8a;

  /* lines */
  --line:        rgba(255,255,255,.10);
  --line-strong: rgba(232,134,58,.30);

  /* brand */
  --accent:       #E8863A;
  --accent-light: #F5A55A;
  --accent-glow:  rgba(232,134,58,.15);
  --accent-ink:   #1a1a1a;

  /* semantic */
  --green: #22C55E;
  --red:   #EF4444;
  --amber: #F5A55A;

  /* type */
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* layout */
  --max:    1160px;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(232,134,58,.16), transparent 34rem),
    radial-gradient(circle at 82% 8%, rgba(245,165,90,.10), transparent 30rem),
    linear-gradient(180deg, #0a0a0a 0%, #141414 46%, #0a0a0a 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* ---------- announce bar ---------- */
.announce {
  border-bottom: 1px solid var(--line);
  background: rgba(8,11,16,.76);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.announce .shell {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  font-size: 13px;
  white-space: nowrap;
}

/* dotted-underline hint (native browser tooltip on hover) */
.hint {
  border-bottom: 1px dotted var(--subtle);
  cursor: help;
  text-decoration: none;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(96,211,148,.65);
}

/* ---------- nav ---------- */
nav {
  position: sticky;
  top: 42px;
  z-index: 19;
  background: rgba(8,11,16,.70);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.mark {
  width: 34px;
  height: 28px;
  background: url('/assets/mark.svg') center/contain no-repeat;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.32); }
.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--accent-ink);
  box-shadow: 0 18px 42px rgba(232,134,58,.22);
}
.btn.small { min-height: 36px; padding: 0 13px; }

/* ---------- inline install snippet ---------- */
.install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  color: var(--accent-light);
  font-size: 13px;
}

/* ---------- section rhythm ---------- */
section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.kicker  { color: var(--accent); font-family: var(--mono); font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(46px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 820px;
}
h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.lead {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 680px;
}

.hero          { padding: 86px 0 70px; }
.hero-actions  { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,24,35,.72);
  padding: 22px;
}
.card h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px; }
.card p, .card li { color: var(--muted); }
.card ul { padding-left: 18px; margin-top: 12px; }
.icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(232,134,58,.13);
  color: var(--accent-light);
  margin-bottom: 16px;
  font-family: var(--mono);
  font-weight: 700;
}

/* ---------- terminal / window chrome ---------- */
.terminal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0a;
}
.window-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12px;
}
.lights { display: flex; gap: 7px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
pre {
  padding: 20px;
  overflow: auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
.green  { color: var(--green); }
.cyan   { color: var(--accent-light); }
.amber  { color: var(--amber); }

/* ---------- callout ---------- */
.cta {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(232,134,58,.16), rgba(245,165,90,.08)),
    rgba(17,24,35,.90);
  padding: clamp(30px, 5vw, 54px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cta p { color: var(--muted); margin-top: 10px; font-size: 18px; max-width: 700px; }

/* ---------- footer ---------- */
footer { padding-top: 56px; color: var(--subtle); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--subtle);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 4px 0;
  transition: color .18s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.footer-tag {
  color: var(--muted);
  font-size: 14px;
  max-width: 420px;
  margin-top: 14px;
  line-height: 1.55;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer-social a {
  color: var(--subtle);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.footer-social a:hover { color: var(--accent); background: rgba(232,134,58,.08); }
.footer-social svg { display: block; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--subtle);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  nav { top: 0; }
  .announce { display: none; }
  .grid-2, .grid-3, .cta { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .shell { width: min(var(--max), calc(100% - 28px)); }
  .hero { padding-top: 44px; }
  h1 { font-size: 46px; }
}
