/* CredOps AI — Brand System
   Warm monochrome, single ochre accent. Linear/Notion/Vercel calm-authority.
*/

:root {
  /* Palette */
  --noir: #17150F;
  --noir-soft: #2A271E;
  --stone-600: #6B6354;
  --stone-400: #968B78;
  --stone-200: #D9D3C5;
  --stone-100: #E8E2D4;
  --stone-50: #F2EEE4;
  --surface: #FAF8F2;
  --white: #FFFFFF;
  --accent: #B8763A;
  --accent-soft: #D89858;

  /* Status (used only in product UI illustration) */
  --status-red: #C04A3A;
  --status-yellow: #B8763A;
  --status-green: #4A7A4F;

  /* Type */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Shadow */
  --shadow-card: 0 1px 3px rgba(23, 21, 15, 0.08);
  --shadow-card-hover: 0 2px 6px rgba(23, 21, 15, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--noir);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--noir); color: var(--surface); }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }
section + section { padding-top: 0; }
.section-tight { padding: 64px 0; }

/* Typography helpers */
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss01" on, "cv01" on;
}
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone-600);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-600);
  margin: 0 0 20px 0;
}
.h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--noir);
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--noir);
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--noir);
}
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--stone-600);
  margin: 20px 0 0 0;
  max-width: 640px;
  text-wrap: pretty;
}
.body { font-size: 15px; line-height: 1.6; color: var(--stone-600); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--noir);
  color: var(--surface);
}
.btn-primary:hover { background: var(--noir-soft); }
.btn-secondary {
  background: transparent;
  color: var(--noir);
  border-color: var(--stone-200);
}
.btn-secondary:hover { border-color: var(--noir); }
.btn-ghost {
  background: transparent;
  color: var(--stone-600);
  padding: 0;
  height: auto;
}
.btn-ghost:hover { color: var(--noir); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-accent {
  background: var(--accent);
  color: var(--surface);
}
.btn-accent:hover { background: #A66A33; }

/* Logo lockup */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--noir);
  line-height: 1;
}
.logo-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  color: var(--noir);
}
.logo-cred { font-weight: 600; }
.logo-ops { font-weight: 500; color: var(--stone-600); margin-left: 1px; }
.logo-ai {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--noir);
  color: var(--surface);
  padding: 3px 6px 3px 7px;
  border-radius: 4px;
  margin-left: 8px;
  line-height: 1;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--stone-200);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  color: var(--stone-600);
  font-weight: 500;
  transition: color 120ms ease;
}
.nav-link:hover, .nav-link.active { color: var(--noir); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}
.card-stone {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 10px;
}

/* Status dot */
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stone-400);
  flex-shrink: 0;
}
.dot-accent { background: var(--accent); }
.dot-green { background: var(--status-green); }
.dot-yellow { background: var(--accent); }
.dot-red { background: var(--status-red); }
.dot-stone { background: var(--stone-400); }

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--stone-50);
  color: var(--stone-600);
  border: 1px solid var(--stone-200);
  white-space: nowrap;
}
.chip-noir {
  background: var(--noir);
  color: var(--surface);
  border-color: var(--noir);
}
.chip-accent {
  background: rgba(184, 118, 58, 0.10);
  color: #8C5526;
  border-color: rgba(184, 118, 58, 0.25);
}
.chip-green {
  background: rgba(74, 122, 79, 0.10);
  color: #355A39;
  border-color: rgba(74, 122, 79, 0.22);
}

/* AI provider badge (legacy class names retained for back-compat) */
.claude-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--stone-600);
  white-space: nowrap;
}
.claude-badge .glyph {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.claude-bracket {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-400);
  letter-spacing: 0.04em;
}
.claude-bracket .dot-accent { margin: 0 2px; }

/* Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Footer */
.footer {
  background: var(--noir);
  color: var(--stone-400);
  padding: 56px 0 40px;
}
.footer .container {
  display: grid;
  grid-template-areas:
    "left nav"
    "copy copy";
  grid-template-columns: 1fr auto;
  column-gap: 32px;
  row-gap: 28px;
  align-items: start;
}
.footer-left { grid-area: left; color: var(--stone-400); font-size: 13px; }
.footer-left .logo { color: var(--surface); }
.footer-left .logo-ops { color: var(--stone-400); }
.footer-left .logo-ai { background: var(--surface); color: var(--noir); }
.footer-left .meta { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--stone-400); }
.footer-center {
  grid-area: copy;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-400);
  letter-spacing: 0.04em;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-nav {
  grid-area: nav;
  display: flex;
  gap: 22px;
  font-size: 13px;
  justify-self: end;
  align-self: center;
}
.footer-nav a { color: var(--stone-400); transition: color 120ms; }
.footer-nav a:hover { color: var(--surface); }
.footer-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.footer-right .claude-bracket { color: var(--stone-400); }

/* Hairline divider */
.hairline { height: 1px; background: var(--stone-200); border: 0; margin: 0; }

/* ── Sign-in access modal ─────────────────────────────────────────────────── */
.signin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23,21,15,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.signin-overlay.open { display: flex; }

.signin-modal {
  background: var(--surface);
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  padding: 36px 40px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(23,21,15,0.22);
  position: relative;
}
.signin-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--stone-400);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  transition: color 120ms;
}
.signin-modal-close:hover { color: var(--noir); }
.signin-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 10px;
}
.signin-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--noir);
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.signin-modal-body {
  font-size: 14px;
  color: var(--stone-600);
  line-height: 1.55;
  margin-bottom: 24px;
}
.signin-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signin-modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--stone-400);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin: 2px 0;
}
.signin-modal-divider::before,
.signin-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--stone-200);
}
.signin-modal-secondary {
  text-align: center;
  font-size: 13px;
  color: var(--stone-600);
  line-height: 1.5;
  padding: 10px 0 4px;
}
.signin-modal-secondary a {
  color: var(--noir);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer .container { grid-template-columns: 1fr; grid-template-areas: "left" "nav" "copy"; text-align: left; }
  .footer-nav { justify-self: start; flex-wrap: wrap; }
  .footer-center { text-align: left; }
  section { padding: 64px 0; }
}
