/* ============================================================
   Eddy McPixel: Marketing / SEO pages shared stylesheet
   Self-contained (no build step) so these static pages stay
   100% crawlable while matching the in-app brand.
   ============================================================ */

:root {
  --bg: #14141b;
  --bg-soft: #1b1b24;
  --panel: #1f1f29;
  --panel-2: #262631;
  --border: #2e2e3a;
  --border-soft: #34344a;
  --text: #e7e7f0;
  --text-dim: #9a9aae;
  --accent: #7c5cff;
  --accent-2: #4f46e5;
  --accent-soft: #2a2447;
  --danger: #f0566b;
  --success: #36d399;
  --warn: #fbbd23;
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo,
    Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(
      900px 500px at 85% -10%,
      rgba(124, 92, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(700px 400px at 0% 0%, rgba(79, 70, 229, 0.1), transparent 55%);
  background-attachment: fixed;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ---------- Layout container ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(20, 20, 27, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.35);
}
.brand b {
  color: var(--accent);
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--panel-2);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--accent);
}
.nav-links a.cta {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 20px -6px rgba(124, 92, 255, 0.6);
}
.nav-links a.cta:hover {
  filter: brightness(1.1);
  background: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(124, 92, 255, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.1;
  margin: 22px 0 16px;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #a78bfa, #7c5cff 45%, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 28px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 30px -10px rgba(124, 92, 255, 0.7);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--panel-2);
}

/* ---------- Generic content ---------- */
section.block {
  padding: 44px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 34px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
}
h2,
h3,
h4 {
  letter-spacing: -0.01em;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 1.6rem;
  margin: 40px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.prose h2:first-child {
  border-top: none;
  padding-top: 0;
}
.prose h3 {
  font-size: 1.2rem;
  margin: 26px 0 8px;
  color: var(--text);
}
.prose p {
  color: var(--text-dim);
  margin: 0 0 14px;
}
.prose ul,
.prose ol {
  color: var(--text-dim);
  padding-left: 1.3rem;
  margin: 0 0 16px;
}
.prose li {
  margin: 6px 0;
}
.prose strong {
  color: var(--text);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--panel-2);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
kbd {
  font-family: var(--mono);
  font-size: 0.8em;
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--text);
}

/* Callout / note box */
.note {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 22px 0;
}
.note strong {
  color: var(--accent);
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  gap: 18px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.14s ease, border-color 0.14s ease,
    background 0.14s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-soft);
  background: var(--panel-2);
}
.card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat .num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(120deg, #a78bfa, #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .lbl {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- Table of contents / shortcuts ---------- */
.toc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 auto 30px;
  max-width: 760px;
}
.toc h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.toc ol {
  columns: 2;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-dim);
}
.toc a {
  color: var(--text-dim);
}
.toc a:hover {
  color: var(--accent);
}

table.docs {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.93rem;
}
table.docs th,
table.docs td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
table.docs th {
  color: var(--text);
  font-weight: 600;
  background: var(--panel);
}
table.docs td {
  color: var(--text-dim);
}
table.docs tr:last-child td {
  border-bottom: none;
}
table.docs td:first-child {
  white-space: nowrap;
}

/* ---------- CTA band ---------- */
.band {
  margin: 40px 0 0;
  border-radius: 22px;
  padding: 46px 28px;
  text-align: center;
  background: linear-gradient(
      135deg,
      rgba(124, 92, 255, 0.22),
      rgba(79, 70, 229, 0.08)
    ),
    var(--panel);
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
}
.band p {
  color: var(--text-dim);
  margin: 0 auto 22px;
  max-width: 520px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.footer-grid .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-grid a {
  color: var(--text-dim);
}
.footer-grid a:hover {
  color: var(--accent);
}
.footer-credit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-credit a {
  color: var(--accent);
  font-weight: 500;
}
.footer-credit a:hover {
  text-decoration: underline;
}
.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dim);
  font-weight: 500;
}
.footer-socials a:hover {
  color: var(--accent);
}
.footer-socials svg {
  width: 14px;
  height: 14px;
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 18px 0 0;
}
.crumbs a {
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.cta) {
    display: none;
  }
  .toc ol {
    columns: 1;
  }
  .hero {
    padding: 48px 0 30px;
  }
}
