/* KimmerLabs marketing site — site-wide chrome
   Tokens come from /colors_and_type.css */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* faint engineering-grid backdrop */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(94,182,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,182,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* ── Layout ─────────────────────────────── */
.kl-shell { width: 100%; }
.kl-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Top nav ────────────────────────────── */
.kl-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 2, 14, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border-light);
}
.kl-nav-inner {
  display: flex; align-items: center; gap: 40px;
  height: 64px;
}
.kl-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 800; letter-spacing: -.01em;
}
.kl-nav-brand img { width: 24px; height: 24px; }
.kl-nav-brand .nm { color: var(--text-primary); }
.kl-nav-brand .lb { color: var(--accent); font-weight: 300; letter-spacing: .12em; margin-left: 2px; }
.kl-nav-links { display: flex; gap: 4px; align-items: center; }
.kl-nav-link {
  padding: 8px 12px; border-radius: 8px;
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  transition: color .12s, background .12s;
}
.kl-nav-link:hover { color: var(--text-primary); background: rgba(94,182,255,.06); }
.kl-nav-link.active { color: var(--accent); background: var(--accent-light); }
.kl-nav-spacer { flex: 1; }
.kl-nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #00020e;
  padding: 8px 16px; border-radius: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: var(--shadow-cta);
  transition: transform .12s, background .12s;
}
.kl-nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.kl-nav-cta .material-symbols-outlined { font-size: 16px; }

/* ── Buttons (shared) ───────────────────── */
.kl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform .12s, background .12s, box-shadow .12s, border-color .12s;
}
.kl-btn-primary {
  background: var(--accent); color: #00020e;
  box-shadow: var(--shadow-cta);
}
.kl-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.kl-btn-ghost {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.kl-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.kl-btn-lg { padding: 14px 26px; font-size: 14px; }
.kl-btn .material-symbols-outlined { font-size: 18px; }

/* ── Eyebrow + headings ─────────────────── */
.kl-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}
.kl-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.kl-h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; letter-spacing: -.025em; line-height: 1.05;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.kl-h1 em { font-style: normal; color: var(--accent); }
.kl-h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  margin: 0 0 16px;
}
.kl-h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 8px;
}
.kl-lead {
  font-size: 18px; line-height: 1.6;
  color: var(--text-secondary);
  max-width: 64ch;
  margin: 0 0 28px;
}

/* ── Section ───────────────────────────── */
.kl-section { padding: 96px 0; position: relative; }
.kl-section.tight { padding: 64px 0; }
.kl-section.alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.kl-section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 32px;
  margin-bottom: 48px;
}
.kl-section-head .kl-h2 { margin-bottom: 0; }
.kl-section-head .right { color: var(--text-secondary); max-width: 36ch; font-size: 14px; }

/* ── Page hero (interior pages) ────────── */
.kl-page-hero {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.kl-page-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: .25;
}

/* ── Card primitives ───────────────────── */
.kl-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.kl-card-link {
  display: block;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.kl-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(94,182,255,.45);
  box-shadow: var(--shadow-card);
}

/* ── Footer ────────────────────────────── */
.kl-footer {
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px;
  background: var(--bg-secondary);
}
.kl-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
.kl-footer-brand .kl-nav-brand { margin-bottom: 16px; font-size: 18px; }
.kl-footer-brand p { color: var(--text-tertiary); font-size: 13px; max-width: 32ch; line-height: 1.6; margin: 0; }
.kl-footer-col h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--text-tertiary); margin: 0 0 14px;
}
.kl-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.kl-footer-col a { color: var(--text-secondary); font-size: 13px; }
.kl-footer-col a:hover { color: var(--accent); }
.kl-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border-light);
  color: var(--text-tertiary); font-size: 12px;
}
.kl-footer-bottom .meta { font-family: ui-monospace, Menlo, monospace; letter-spacing: .05em; }

/* ── Misc ──────────────────────────────── */
.kl-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
  margin: 48px 0;
}
.kl-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 9999px;
  background: var(--accent-light); color: var(--accent);
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase;
}
.kl-mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .02em; }

@media (max-width: 900px) {
  .kl-nav-links { display: none; }
  .kl-footer-grid { grid-template-columns: 1fr 1fr; }
  .kl-section { padding: 64px 0; }
  .kl-section-head { flex-direction: column; align-items: flex-start; }
}
