/* ==========================================================================
   elixirmcp.dev — token layer + dark Minimal Tech theme (PLACEHOLDER STYLE).
   Restyling = swap the tokens in :root; section structure is theme-agnostic.
   ========================================================================== */

:root {
  /* canvas + surfaces */
  --bg: #0d0d12;
  --bg-alt: #12121a;
  --surface: #17171f;
  --border: #26262f;

  /* text */
  --text: #eceaf4;      /* 15.9:1 on --bg */
  --text-muted: #a5a1b5; /* 6.8:1 on --bg */
  --text-faint: #7b7790; /* 4.6:1 on --bg — large text / labels only */

  /* accent (Elixir-adjacent violet) */
  --accent: #8b7cf6;
  --accent-strong: #a99cf9; /* 7.2:1 on --bg — accent text */
  --accent-ink: #14121f;    /* text on accent buttons */
  --accent-glow: rgba(139, 124, 246, 0.16);

  /* type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --step-3: clamp(2.4rem, 1.7rem + 3.4vw, 4.25rem);

  /* rhythm */
  --space-section: clamp(4rem, 3rem + 4vw, 7rem);
  --radius: 12px;
  --container: 1080px;
}

/* ---- reset-ish ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h2 {
  font-size: var(--step-2);
}

a {
  color: var(--accent-strong);
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-by {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.brand-by:hover,
.brand-by:focus-visible {
  color: var(--text);
}

.brand-by-logo {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
}

.brand-glyph {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 25% 50%, var(--accent) 0 3px, transparent 3.5px),
    radial-gradient(circle at 80% 25%, var(--accent) 0 3px, transparent 3.5px),
    radial-gradient(circle at 80% 75%, var(--accent) 0 3px, transparent 3.5px),
    linear-gradient(120deg, var(--accent-glow), transparent);
  border: 1px solid var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.btn {
  color: var(--accent-ink);
}

.site-nav a.btn:hover {
  color: var(--accent-ink);
}

/* ---- hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 3rem + 7vw, 9rem);
}

/* Approved beam-graph art, right-aligned behind the hero copy.
   Static image — no motion, so prefers-reduced-motion needs no handling. */
.hero-art {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: min(58%, 880px);
  height: auto;
  opacity: 0.42;
  pointer-events: none;
  /* fade the left edge into the canvas so headline copy keeps its contrast */
  -webkit-mask-image: linear-gradient(to left, #000 60%, transparent 100%);
  mask-image: linear-gradient(to left, #000 60%, transparent 100%);
}

@media (max-width: 900px) {
  /* small screens: drop the backdrop layer entirely — text legibility wins */
  .hero-art {
    display: none;
  }
}

.hero-inner {
  position: relative;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-size: var(--step-3);
  font-weight: 800;
  max-width: 14ch;
}

.accent {
  color: var(--accent-strong);
}

.lede {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.cta-row-center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.install-chip-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.install-chip {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent-strong);
  user-select: all; /* one click selects the whole dep spec for copying */
  cursor: copy;
}

.install-hint {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.stat-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: 0;
  margin: 3rem 0 0;
}

.stat-row li {
  display: grid;
  gap: 0.2rem;
}

.stat-value {
  font-weight: 700;
  font-size: var(--step-1);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---- sections ---- */
.section {
  padding-block: var(--space-section);
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-lede {
  color: var(--text-muted);
  max-width: 52ch;
  margin: -0.25rem 0 2.5rem;
}

/* ---- benefits ---- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.benefit h3 {
  font-size: var(--step-1);
  margin-bottom: 0.75rem;
}

.benefit p {
  color: var(--text-muted);
  margin: 0;
}

.benefit code {
  color: var(--accent-strong);
  background: var(--bg);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

/* ---- feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: transparent;
}

.tile h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.tile p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.tile code {
  color: var(--accent-strong);
}

/* ---- code section ---- */
.codeblock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.codeblock pre {
  margin: 0;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

.codeblock-lg pre {
  padding: 2rem;
}

.codeblock .k { color: var(--accent-strong); font-weight: 600; }
.codeblock .s { color: #9ad1a4; }
.codeblock .n { color: #7fb8e8; }
.codeblock .b { color: #e0a3c4; }
.codeblock .a { color: #e0b97a; }
.codeblock .f { color: #eceaf4; font-weight: 600; }
.codeblock .c { color: var(--text-faint); font-style: italic; }

.caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}

/* ---- closing CTA ---- */
.cta-inner {
  text-align: center;
}

.cta-inner .section-lede {
  margin-inline: auto;
}

.cta-inner .cta-row {
  justify-content: center;
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-title {
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.footer-line {
  color: var(--text-muted);
  margin: 0;
  max-width: 44ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-legal {
  width: 100%;
  margin: 0;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--text);
}
