/* combot.ai — minimalist authoritative SaaS
   References: anthropic.com, linear.app, vercel.com, openai.com
   Brand: #0A1022 navy, #006994 deep teal, #00A3E0 electric blue
   No emojis. No gradient cards. Confidence is quiet. */

:root {
  --bg: #0a0e1a;
  --bg-elevated: #0f1525;
  --bg-card: #131a2c;
  --border: #1f2940;
  --border-strong: #2a3654;
  --text: #e8ecf4;
  --text-muted: #8a94aa;
  --text-faint: #5d6a85;
  --accent: #00a3e0;
  --accent-hover: #4ec0ed;
  --accent-deep: #006994;
  --warn: #f0b341;
  --danger: #e85d75;

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono",
               "Roboto Mono", monospace;

  --w-prose: 720px;
  --w-section: 1080px;
  --w-wide: 1280px;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

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

/* Layout shell */
.container {
  max-width: var(--w-section);
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide { max-width: var(--w-wide); }
.container--prose { max-width: var(--w-prose); }

/* Header */
.site-header {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.site-header__logo {
  display: flex; align-items: center;
  text-decoration: none;
  color: var(--text);
}
.site-header__logo img {
  height: 28px;
  width: auto;
  display: block;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.site-header__nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.site-header__nav a:hover { color: var(--text); }
.site-header__nav a.cta {
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 7px 14px;
  transition: background 0.15s, border-color 0.15s;
}
.site-header__nav a.cta:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--text);
}
@media (max-width: 720px) {
  .site-header__nav { gap: 16px; font-size: 13px; }
  .site-header__nav a:not(.cta) { display: none; }
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.hero__eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 880px;
}
.hero__subtitle {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 40px;
  font-weight: 400;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s, transform 0.1s;
}
.hero__cta:hover { background: #fff; transform: translateY(-1px); }
.hero__cta::after { content: "→"; font-weight: 400; }
.hero__secondary {
  margin-left: 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.hero__secondary:hover { color: var(--text); }

/* Section base */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.section__label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  max-width: 760px;
}
.section__lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 48px;
}

/* Three-column features grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 920px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature {
  padding: 0;
  border-top: 1px solid var(--border-strong);
  padding-top: 28px;
}
.feature__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.feature__body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.feature__meta {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Funnel layer rows (for /features and /blog/13-layers) */
.layer-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.layer {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 24px;
  padding: 22px 24px;
  background: var(--bg-card);
  align-items: baseline;
}
@media (max-width: 720px) {
  .layer { grid-template-columns: 60px 1fr; }
  .layer__north { grid-column: 1 / -1; padding-left: 60px; }
}
.layer__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.layer__name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.layer__name small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}
.layer__north {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  text-align: right;
}

/* Integration logos / chips */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.integration {
  padding: 22px;
  background: var(--bg-card);
  text-align: center;
}
.integration__name {
  font-size: 14px;
  font-weight: 500;
}
.integration__kind {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Article styles */
article.prose h1, article.prose h2, article.prose h3 {
  letter-spacing: -0.015em;
  line-height: 1.2;
}
article.prose h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 24px; }
article.prose h2 { font-size: 24px; margin: 48px 0 12px; }
article.prose h3 { font-size: 18px; margin: 32px 0 10px; }
article.prose p { color: var(--text); margin: 0 0 20px; }
article.prose ul, article.prose ol {
  padding-left: 22px; margin: 0 0 20px;
  color: var(--text);
}
article.prose li { margin: 4px 0; }
article.prose blockquote {
  margin: 24px 0;
  padding: 12px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}
article.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent);
}
article.prose pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
article.prose pre code { background: none; padding: 0; color: var(--text); }
article.prose hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
article.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
article.prose a:hover { color: var(--accent-hover); }
article.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
article.prose th, article.prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
article.prose th { background: var(--bg-elevated); font-weight: 600; }
.article-header { padding: 80px 0 40px; border-bottom: 1px solid var(--border); }
.article-header .eyebrow { color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px; }
.article-meta { color: var(--text-faint); font-size: 13px; margin-top: 16px; }
.article-meta .dot { margin: 0 8px; opacity: 0.5; }

/* Blog index */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  align-items: baseline;
  transition: padding 0.15s;
}
.post-link:hover { padding-left: 12px; }
.post-link h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.post-link p { margin: 0; color: var(--text-muted); font-size: 14px; }
.post-link .meta { color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; text-align: right; }

/* Footer */
.site-footer {
  padding: 60px 0 40px;
  color: var(--text-faint);
  font-size: 13px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
.site-footer__col h4 {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  text-transform: uppercase;
  font-weight: 600;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin: 8px 0; }
.site-footer__col a { color: var(--text-muted); text-decoration: none; }
.site-footer__col a:hover { color: var(--text); }
.site-footer__col p { margin: 0 0 14px; color: var(--text-muted); }
.site-footer__brand img { height: 24px; margin-bottom: 14px; }
.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Login page */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.login-card img { height: 40px; margin-bottom: 48px; }
.login-card h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 32px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.login-card form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login-card label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.02em; }
.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s;
}
.login-card input:focus {
  outline: none;
  border-color: var(--accent);
}
.login-card button {
  margin-top: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.login-card button:hover { background: #fff; }
.login-card .small {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-faint);
}
.login-card .small a { color: var(--text-muted); text-decoration: none; }
.login-card .small a:hover { color: var(--text); }
.login-card .small .dot { margin: 0 8px; opacity: 0.4; }
