:root {
  /* Expansions brand — retro-70s warm palette (from the logo) */
  --bg: #0c0a09;
  --bg-soft: #14110e;
  --surface: #1a1611;
  --text: #f3ece1;
  --text-dim: #b8a890;
  --accent: #e0833a;        /* orange */
  --accent-hover: #e8a14b;  /* gold-orange */
  --gold: #e0a93c;
  --red: #b23a1e;
  --oxblood: #7b2d26;
  --cream: #ebcfa8;
  --border: #2a2018;
  --max: 1080px;
  --radius: 10px;
  /* the logo chevron, as a reusable stripe gradient */
  --brand-stripe: linear-gradient(90deg,
    var(--oxblood) 0%, var(--oxblood) 20%,
    var(--red) 20%, var(--red) 40%,
    var(--accent) 40%, var(--accent) 60%,
    var(--gold) 60%, var(--gold) 80%,
    var(--cream) 80%, var(--cream) 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand img { height: 26px; width: auto; display: block; mix-blend-mode: lighten; }
.nav nav a {
  margin-left: 24px;
  color: var(--text-dim);
  font-size: 15px;
}
.nav nav a:hover { color: var(--text); }
.nav nav a.cta-link { color: var(--accent); }

/* Sections */
section { padding: 96px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }

h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: 56px; font-weight: 700; }
h2 { font-size: 36px; font-weight: 600; margin-bottom: 24px; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }

p { margin: 0 0 16px; color: var(--text-dim); }
.lede, .section-lede {
  font-size: 19px;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 32px;
}

/* Hero */
.hero { padding-top: 120px; padding-bottom: 120px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(224, 131, 58, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 { max-width: 880px; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-large { padding: 16px 28px; font-size: 17px; }

/* Grids */
.grid-2, .grid-3 {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 > div, .grid-3 > div {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 20px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 28px 84px;
  position: relative;
}
.step-n {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Footer */
.footer {
  padding: 32px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer p { margin: 0; color: var(--text-dim); font-size: 14px; }
.footer nav a {
  margin-left: 20px;
  color: var(--text-dim);
  font-size: 14px;
}
.footer nav a:hover { color: var(--text); }

/* Inline code in body text */
p code, li code, h3 code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--cream);
  background: rgba(235, 207, 168, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
  word-break: break-word;
}

/* Client config headings on the connect page */
#clients h3 { margin-top: 36px; }

/* Brand chevron stripe — echoes the logo X */
.brand-stripe {
  height: 4px;
  width: 100%;
  border: none;
  margin: 0;
  background: var(--brand-stripe);
}
.hero .brand-stripe { width: 88px; border-radius: 999px; margin-bottom: 28px; }

/* Tools / install section */
.tools .grid-2 > div { display: flex; flex-direction: column; }
.tool-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(224, 169, 60, 0.1);
  border: 1px solid rgba(224, 169, 60, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.tool-actions { margin-top: auto; padding-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.tool-note { font-size: 13px; color: var(--text-dim); margin: 12px 0 0; }

/* Active nav link (set by layout.js on the current page) */
.nav nav a.active { color: var(--text); }

/* Disabled button — e.g. a store link that isn't live yet */
.btn-disabled {
  background: var(--surface);
  color: var(--text-dim);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-disabled:hover { background: var(--surface); color: var(--text-dim); }

/* "Free" badge next to a heading */
.badge-free {
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1006;
  background: var(--gold);
  padding: 3px 12px;
  border-radius: 999px;
  margin-left: 12px;
  position: relative;
  top: -4px;
}

/* Plain-language callout (e.g. "New to MCP?") */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text-dim);
  max-width: 720px;
}
.callout strong { color: var(--text); }

/* Code / endpoint block */
.code-block {
  background: #0a0807;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
  overflow-x: auto;
}
.code-block code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--cream);
  white-space: pre;
}
.install-steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; }
.install-steps li {
  position: relative;
  padding: 4px 0 20px 36px;
  border-left: 1px solid var(--border);
  margin-left: 12px;
}
.install-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.install-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -12px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1006;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-steps li p { margin: 4px 0 0; }
.install-steps code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--cream);
  background: rgba(235, 207, 168, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
  word-break: break-all;
}

/* Responsive */
@media (max-width: 720px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  section { padding: 64px 0; }
  .hero { padding-top: 72px; padding-bottom: 72px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav nav a { margin-left: 16px; font-size: 14px; }
  .nav nav a:first-child { display: none; }
}
