/* ============================================================
   Rekall Software Solutions — Design System
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --bg-page:      #030509;
  --bg-surface-1: #050814;
  --bg-surface-2: #080d1a;
  --bg-card:      #0a0f1e;
  --border-dark:  #0f1629;
  --border-light: #1e2d4a;

  --purple:    #7c3aed;
  --purple-lt: #a78bfa;
  --blue:      #3b82f6;
  --blue-lt:   #60a5fa;

  --text-primary:   #f1f5f9;
  --text-secondary: #9ca3af;
  --text-muted:     #6b7280;
  --text-dim:       #4b5563;

  --gradient:      linear-gradient(90deg, #7c3aed, #3b82f6);
  --gradient-text: linear-gradient(90deg, #a78bfa, #60a5fa);
  --gradient-blue: linear-gradient(90deg, #2563eb, #3b82f6);

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   12px;
  --radius-pill: 50px;
  --radius-xs:   4px;

  --transition: 200ms ease;
  --container:  1160px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg-page);
  color: var(--text-secondary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { color: var(--text-primary); font-weight: 800; line-height: 1.1; }
h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -2px; font-weight: 900; }
h2 { font-size: clamp(24px, 3.5vw, 36px); letter-spacing: -1px; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p  { line-height: 1.7; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-blue {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.nav.scrolled {
  background: rgba(5,8,20,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-dark);
}
.nav-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 28px; height: 28px;
  background: var(--gradient);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.nav-cta:hover { opacity: 0.85; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
}
.nav-drawer {
  display: none;
  position: fixed;
  top: 64px; right: 0; bottom: 0;
  width: 240px;
  background: var(--bg-surface-1);
  border-left: 1px solid var(--border-dark);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}
.nav-drawer a { font-size: 15px; color: var(--text-muted); transition: color var(--transition); }
.nav-drawer a:hover { color: var(--text-primary); }
body.nav-open .nav-drawer { display: flex; }

/* ---- Hero ---- */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface-1);
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow { margin-bottom: 20px; }
.hero h1     { margin-bottom: 20px; }
.hero .lead  {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: none;
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
  line-height: 1;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary   { background: var(--gradient); color: #fff; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.btn-secondary:hover { color: var(--text-primary); border-color: rgba(167,139,250,0.4); }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-pill); }
.btn-blue { background: var(--gradient-blue); color: #fff; }

/* ---- Stats bar ---- */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--border-dark);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.stat-num span { color: var(--purple-lt); }
.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- Section headings ---- */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2  { margin-bottom: 16px; }
.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Product cards (homepage) ---- */
.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}
.product-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.product-card:hover { transform: translateY(-2px); }
.product-card.ue:hover  { border-color: rgba(124,58,237,0.45); }
.product-card.nwp:hover { border-color: rgba(59,130,246,0.45); }
.product-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  opacity: 0.09;
}
.product-card.ue::before  { background: var(--purple); }
.product-card.nwp::before { background: var(--blue); }
.product-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.badge-ue  { background: rgba(124,58,237,0.15); color: var(--purple-lt); }
.badge-nwp { background: rgba(59,130,246,0.15);  color: var(--blue-lt);   }
.product-card h3 { font-size: 18px; margin-bottom: 8px; }
.product-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.product-card .card-link { font-size: 13px; font-weight: 700; transition: color var(--transition); }
.product-card.ue  .card-link { color: var(--purple-lt); }
.product-card.nwp .card-link { color: var(--blue-lt); }

.product-card.godot::before { background: #22c55e; }
.product-card.godot:hover { border-color: rgba(34,197,94,0.45); }
.product-card.godot .card-link { color: #86efac; }
.badge-godot { background: rgba(34,197,94,0.15); color: #86efac; }

/* ---- Feature / capability cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-2px); }
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.feature-card h4 { font-size: 14px; margin-bottom: 6px; }
.feature-card p  { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ---- How it works steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 1px;
  background: linear-gradient(90deg, rgba(124,58,237,0.4), rgba(59,130,246,0.4));
}
.step { padding: 0 28px; text-align: center; }
.step-num {
  width: 48px; height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--purple-lt);
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}
.step h4 { font-size: 15px; margin-bottom: 8px; }
.step p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---- Works with ---- */
.works-with {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.agent-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---- Kimi showcase ---- */
.kimi-showcase {
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.kimi-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 36px;
  align-items: center;
}
.kimi-showcase-copy .eyebrow { color: var(--purple-lt); margin-bottom: 14px; }
.kimi-showcase-copy h2 { margin-bottom: 16px; }
.kimi-showcase-copy p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.kimi-showcase-copy p:last-child { margin-bottom: 0; }
.kimi-screenshot-card {
  background: var(--bg-card);
  border: 1px solid rgba(167,139,250,0.28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,0.32);
}
.kimi-screenshot-card img {
  width: 100%;
  background: var(--bg-surface-2);
}
.kimi-screenshot-card figcaption {
  border-top: 1px solid var(--border-dark);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Release notes ---- */
.release-notes {
  background: var(--bg-page);
}
.release-note-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
}
.release-note-list-compact {
  max-width: 760px;
}
.release-note-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}
.release-note-current {
  border-top: 3px solid var(--purple-lt);
}
.release-note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.release-version {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}
.release-date {
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.release-note-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
}
.release-note-summary {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.release-note-card ul {
  list-style: none;
  display: grid;
  gap: 9px;
}
.release-note-card li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.release-note-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-lt);
}

/* ---- Inline code ---- */
.inline-code {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
  font-size: 12px;
  color: var(--purple-lt);
  font-family: 'Fira Code', 'Cascadia Code', monospace;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { position: relative; margin-bottom: 16px; }
.cta-banner p  { color: var(--text-secondary); font-size: 16px; margin-bottom: 32px; position: relative; }

/* ---- NWP teaser (homepage section) ---- */
.nwp-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.nwp-teaser-content .eyebrow { color: var(--blue-lt); margin-bottom: 14px; }
.nwp-teaser-content h2       { margin-bottom: 16px; }
.nwp-teaser-content p        { margin-bottom: 24px; font-size: 15px; }
.nwp-card {
  background: var(--bg-card);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.nwp-card .eyebrow  { color: var(--blue-lt); margin-bottom: 10px; }
.nwp-card h3        { font-size: 20px; margin-bottom: 10px; }
.nwp-card p         { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.nwp-features       { display: flex; flex-direction: column; gap: 6px; }
.nwp-feature-item   { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.nwp-feature-item::before { content: '✓'; color: var(--blue-lt); font-weight: 700; flex-shrink: 0; }

/* ---- Footer ---- */
.footer { background: var(--bg-page); border-top: 1px solid var(--border-dark); }
.footer-accent { height: 3px; background: var(--gradient); }
.footer-inner  { padding: 52px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.footer-col h5 {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-secondary); }
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ---- Why cards ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.why-card:hover { border-color: rgba(124,58,237,0.35); transform: translateY(-2px); }
.why-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--purple-lt);
  margin-bottom: 14px;
}
.why-card h3 { font-size: 16px; margin-bottom: 10px; }
.why-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ---- Scroll animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ---- Accessibility: focus rings ---- */
.btn:focus-visible,
.docs-nav-btn:focus-visible,
.docs-mobile-btn:focus-visible,
.nav-hamburger:focus-visible {
  outline: 2px solid var(--purple-lt);
  outline-offset: 2px;
}

/* ---- Docs layout ---- */
.docs-layout {
  display: flex;
  height: calc(100vh - 64px);
  margin-top: 64px;
  overflow: hidden;
}
.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-surface-2);
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.docs-search-wrap {
  padding: 14px;
  border-bottom: 1px solid var(--border-dark);
  flex-shrink: 0;
}
.docs-search-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.docs-search-wrap input::placeholder { color: var(--text-dim); }
.docs-search-wrap input:focus { border-color: var(--purple-lt); }
.docs-nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
}
.docs-nav-scroll::-webkit-scrollbar { width: 3px; }
.docs-nav-scroll::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }
.docs-group-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 16px 4px;
  margin-top: 4px;
}
.docs-nav-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.docs-nav-btn:hover { color: var(--text-primary); background: rgba(167,139,250,0.04); }
.docs-nav-btn.active {
  color: var(--purple-lt);
  background: rgba(167,139,250,0.08);
  border-left-color: var(--purple-lt);
  font-weight: 600;
}
.docs-nav-btn.hidden { display: none; }
.docs-main {
  flex: 1;
  overflow-y: auto;
  padding: 44px 52px;
}
.docs-main::-webkit-scrollbar { width: 3px; }
.docs-main::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }
.docs-section          { display: none; }
.docs-section.active   { display: block; }
.docs-section-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.docs-section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-dark);
}
.docs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.docs-sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color var(--transition);
}
.docs-sub-card:hover { border-color: rgba(167,139,250,0.3); }
.docs-sub-card h5 { font-size: 13px; margin-bottom: 6px; }
.docs-sub-card p  { font-size: 12px; color: var(--text-muted); line-height: 1.55; }
.docs-prose h3 { font-size: 17px; margin: 32px 0 10px; }
.docs-prose p  {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
  max-width: 720px;
}
.docs-prose code {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
  color: var(--purple-lt);
  font-family: 'Fira Code', 'Cascadia Code', monospace;
}
.docs-prose pre {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
  overflow-x: auto;
  margin-bottom: 14px;
  max-width: 720px;
}
.docs-prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.docs-mobile-btn {
  display: none;
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 50;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* ---- Novel Writer Pro overrides ---- */
.nwp-page .hero::before { background: radial-gradient(ellipse, rgba(59,130,246,0.14) 0%, transparent 65%); }
.nwp-page .feature-card:hover { border-color: rgba(59,130,246,0.35); }
.nwp-page .why-card:hover     { border-color: rgba(59,130,246,0.35); }
.nwp-page .why-num            { color: var(--blue-lt); }
.nwp-page .step-num           { color: var(--blue-lt); }
.nwp-page .nav-cta        { background: var(--gradient-blue); }
.nwp-page .footer-accent  { background: var(--gradient-blue); }
.nwp-page .stat-num span  { color: var(--blue-lt); }

/* ============================================================
   LLMOL — emerald accent + syntax highlighter
   ============================================================ */
:root {
  --emerald:    #10b981;
  --emerald-lt: #34d399;
  --teal-lt:    #5eead4;
  --gradient-llmol: linear-gradient(90deg, #10b981, #06b6d4);
  --gradient-text-llmol: linear-gradient(90deg, #34d399, #22d3ee);
}

.gradient-text-llmol {
  background: var(--gradient-text-llmol);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Homepage product card — third color */
.product-card.llmol::before { background: var(--emerald); }
.product-card.llmol:hover   { border-color: rgba(16,185,129,0.45); }
.product-card.llmol .card-link { color: var(--emerald-lt); }
.badge-llmol { background: rgba(16,185,129,0.15); color: var(--emerald-lt); }

/* RedGreenShipIt product card + page accent */
:root {
  --rgsi-red: #ef4444;
  --rgsi-green: #22c55e;
  --rgsi-green-lt: #86efac;
  --gradient-rgsi: linear-gradient(90deg, #ef4444, #22c55e);
  --gradient-text-rgsi: linear-gradient(90deg, #fca5a5, #86efac);
}

.product-card.rgsi::before { background: var(--rgsi-green); }
.product-card.rgsi:hover   { border-color: rgba(34,197,94,0.45); }
.product-card.rgsi .card-link { color: var(--rgsi-green-lt); }
.badge-rgsi { background: rgba(34,197,94,0.15); color: var(--rgsi-green-lt); }

.gradient-text-rgsi {
  background: var(--gradient-text-rgsi);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rgsi-page .hero::before { background: radial-gradient(ellipse, rgba(34,197,94,0.12) 0%, transparent 65%); }
.rgsi-page .nav-cta,
.rgsi-page .footer-accent,
.btn-rgsi { background: var(--gradient-rgsi); color: #fff; }
.rgsi-page .why-num,
.rgsi-page .step-num,
.rgsi-page .stat-num span { color: var(--rgsi-green-lt); }
.rgsi-page .feature-card:hover,
.rgsi-page .why-card:hover { border-color: rgba(34,197,94,0.35); }

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rgsi-green-lt);
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.28);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.guard-report-visual {
  background: var(--bg-card);
  border: 1px solid rgba(134,239,172,0.28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0,0,0,0.34);
}
.guard-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-dark);
}
.guard-report-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
}
.guard-status {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  border-radius: var(--radius-pill);
  padding: 5px 10px;
}
.guard-status-red {
  color: #fecaca;
  background: rgba(239,68,68,0.16);
}
.guard-status-green {
  color: #bbf7d0;
  background: rgba(34,197,94,0.16);
}
.guard-report-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}
.guard-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-dark);
}
.guard-row:last-child { border-bottom: none; padding-bottom: 0; }
.guard-row-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.guard-row-value {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.guard-row-value strong { color: var(--text-primary); }

/* LLMOL page overrides */
.llmol-page .hero::before     { background: radial-gradient(ellipse, rgba(16,185,129,0.14) 0%, transparent 65%); }
.llmol-page .feature-card:hover { border-color: rgba(16,185,129,0.35); }
.llmol-page .why-card:hover     { border-color: rgba(16,185,129,0.35); }
.llmol-page .why-num            { color: var(--emerald-lt); }
.llmol-page .step-num           { color: var(--emerald-lt); }
.llmol-page .nav-cta            { background: var(--gradient-llmol); }
.llmol-page .footer-accent      { background: var(--gradient-llmol); }
.llmol-page .stat-num span      { color: var(--emerald-lt); }
.btn-llmol { background: var(--gradient-llmol); color: #fff; }

/* Code example cards */
.code-example {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.code-example-header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-2);
}
.code-example-header h4 {
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--text-primary);
  margin: 0;
}
.code-example-header .code-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(16,185,129,0.15);
  color: var(--emerald-lt);
}
.code-example-body {
  padding: 18px 22px;
  font-family: 'Fira Code', 'Cascadia Code', Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
}
.code-example-caption {
  padding: 14px 22px;
  border-top: 1px solid var(--border-dark);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  background: var(--bg-surface-2);
}
.code-example-caption strong { color: var(--text-secondary); font-weight: 700; }

/* Syntax highlighting tokens */
.tok-comment  { color: #475569; font-style: italic; }
.tok-key      { color: var(--emerald-lt); }   /* JSON keys */
.tok-op       { color: #fb923c; font-weight: 700; }   /* op values: call, let, if, etc. */
.tok-attr     { color: #fbbf24; }   /* @hint, @type, etc. — also as keys */
.tok-ref      { color: #22d3ee; }   /* $reference strings */
.tok-target   { color: #c084fc; }   /* dotted targets like core.add */
.tok-string   { color: #a5f3fc; }
.tok-number   { color: #fbbf24; }
.tok-bool     { color: #f97316; font-weight: 700; }
.tok-null     { color: #f97316; font-weight: 700; }
.tok-punct    { color: #64748b; }
.tok-brace    { color: #94a3b8; }

/* Two-column code layout for long pages */
.code-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .code-grid-2 { grid-template-columns: 1fr; }
}

/* Spec-style reference grid */
.ref-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 13px;
  margin-bottom: 24px;
}
.ref-table th, .ref-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-dark);
  vertical-align: top;
}
.ref-table th {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ref-table td { color: var(--text-secondary); line-height: 1.6; }
.ref-table td:first-child {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  color: var(--emerald-lt);
  font-size: 12px;
  white-space: nowrap;
}
.ref-table tr:last-child th,
.ref-table tr:last-child td { border-bottom: none; }

/* Pillar cards — used on LLMOL page for the design pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.pillar-card .pillar-num {
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  color: var(--emerald-lt);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.pillar-card h4 { font-size: 15px; margin-bottom: 8px; }
.pillar-card p  { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }

/* Three-card homepage product grid */
@media (min-width: 769px) {
  .product-cards.three { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
  .product-cards.three .product-card h3 { font-size: 17px; }
  .product-cards.three .product-card p  { font-size: 12.5px; }
}

/* Four-card homepage product grid (>=1100px four across, otherwise 2x2) */
.product-cards.four { grid-template-columns: repeat(2, 1fr); max-width: 920px; }
@media (min-width: 1100px) {
  .product-cards.four { grid-template-columns: repeat(4, 1fr); max-width: 1300px; }
}
.product-cards.four .product-card h3 { font-size: 17px; }
.product-cards.four .product-card p  { font-size: 12.5px; }

/* Five-card homepage product grid (>=1280px five across, otherwise wraps cleanly) */
.product-cards.five { grid-template-columns: repeat(2, 1fr); max-width: 920px; }
@media (min-width: 900px) {
  .product-cards.five { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
}
@media (min-width: 1280px) {
  .product-cards.five { grid-template-columns: repeat(5, 1fr); max-width: 1500px; }
}
.product-cards.five .product-card h3 { font-size: 17px; }
.product-cards.five .product-card p  { font-size: 12.5px; }

/* Six-card homepage product grid */
.product-cards.six { grid-template-columns: repeat(2, 1fr); max-width: 920px; }
@media (min-width: 900px) {
  .product-cards.six { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
}
@media (min-width: 1360px) {
  .product-cards.six { grid-template-columns: repeat(6, 1fr); max-width: 1680px; }
}
.product-cards.six .product-card h3 { font-size: 17px; }
.product-cards.six .product-card p  { font-size: 12.5px; }

/* Seven-card homepage product grid */
.product-cards.seven { grid-template-columns: repeat(2, 1fr); max-width: 920px; }
@media (min-width: 900px) {
  .product-cards.seven { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
}
@media (min-width: 1360px) {
  .product-cards.seven { grid-template-columns: repeat(7, 1fr); max-width: 1900px; }
}
.product-cards.seven .product-card h3 { font-size: 17px; }
.product-cards.seven .product-card p  { font-size: 12.5px; }

/* Rekall Godot page accent */
:root {
  --godot-green: #22c55e;
  --godot-green-lt: #86efac;
  --godot-cyan-lt: #67e8f9;
  --gradient-godot: linear-gradient(90deg, #22c55e, #06b6d4);
  --gradient-text-godot: linear-gradient(90deg, #86efac, #67e8f9);
}

.gradient-text-godot {
  background: var(--gradient-text-godot);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.godot-page .hero::before { background: radial-gradient(ellipse, rgba(34,197,94,0.13) 0%, transparent 65%); }
.godot-page .nav-cta,
.godot-page .footer-accent,
.btn-godot { background: var(--gradient-godot); color: #fff; }
.godot-page .why-num,
.godot-page .step-num,
.godot-page .stat-num span { color: var(--godot-green-lt); }
.godot-page .feature-card:hover,
.godot-page .why-card:hover { border-color: rgba(34,197,94,0.35); }

/* Terrain product card (amber/orange theme) */
.product-card.terrain::before  { background: #f59e0b; }
.product-card.terrain:hover    { border-color: rgba(245,158,11,0.45); }
.product-card.terrain .card-link { color: #fbbf24; }
.badge-terrain { background: rgba(245,158,11,0.15); color: #fbbf24; }

.product-card.terrain-studio::before  { background: #f59e0b; }
.product-card.terrain-studio:hover    { border-color: rgba(245,158,11,0.45); }
.product-card.terrain-studio .card-link { color: #fbbf24; }
.badge-terrain-studio { background: rgba(245,158,11,0.15); color: #fbbf24; }

/* Per-page accent overrides for the standalone Rekall Terrain System pages */
.terrain-page .why-num            { color: #fbbf24; }
.terrain-page .step-num           { color: #fbbf24; }
.terrain-page .stat-num span      { color: #fbbf24; }
.terrain-page .gradient-text      {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.terrain-page .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #fbbf24;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .nwp-teaser { grid-template-columns: 1fr; gap: 28px; }
  .kimi-showcase-grid { grid-template-columns: 1fr; gap: 24px; }
  .release-note-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-cta      { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 116px 20px 64px; }

  .product-cards { grid-template-columns: 1fr; max-width: 420px; }

  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2)   { border-right: none; }
  .stat-item:nth-child(3)   { border-top: 1px solid var(--border-dark); }
  .stat-item:nth-child(4)   { border-top: 1px solid var(--border-dark); border-right: none; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .release-note-meta { align-items: flex-start; flex-direction: column; gap: 4px; }

  .footer-grid { grid-template-columns: 1fr; }

  .docs-sidebar {
    position: fixed;
    top: 64px; left: 0; bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform var(--transition);
    width: 280px;
  }
  .docs-sidebar.open { transform: translateX(0); }
  .docs-main { padding: 28px 20px; }
  .docs-mobile-btn { display: block; }
}

