/* ========================================
   Mastodon Marketing, Design System
   Ported from connect.mastodonmarketing.com
   ======================================== */

:root {
  /* Core palette */
  --bg: #0b0a0f;
  --bg-alt: #17101f;
  --bg-elevated: #1e1828;
  --panel: #16131d;
  --panel-2: #1d1a27;
  --border: #2a2536;
  --border-soft: #231e2e;

  /* Text */
  --text: #f6f4fa;
  --muted: #a097b0;
  --muted-2: #7a7287;

  /* Brand accents */
  --accent: #4B3B5C;
  --accent-2: #7A618F;
  --accent-3: #B89FD0;

  /* Feedback */
  --error: #ff5b6a;
  --success: #8fd2b5;

  /* Data-viz (per-domain) */
  --data-marketing: #2dd4bf;
  --data-sales: #ffd60a;
  --data-service: #ec4899;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: 0; top: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 100;
  transform: translateY(-120%);
  transition: transform 140ms ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--accent-3); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Layout */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-3);
  font-weight: 700;
  margin-bottom: 18px;
}
.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 28px;
}
.lede strong { color: var(--text); font-weight: 700; }
h1 {
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.95;
  font-weight: 900;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
  text-transform: none;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: clamp(32px, 5.6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  margin: 0 0 24px;
  letter-spacing: -0.025em;
}
h2 em { font-style: italic; color: var(--accent-3); }
h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
p { margin: 0 0 14px; color: var(--muted); }
a { color: inherit; }
.text-link {
  color: var(--accent-3);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed rgba(184,159,208,0.35);
}
.text-link:hover { border-bottom-style: solid; }

/* ============================================
   Section variants, four flavors to distinguish
   rhythm across a long page:
   - .section (default): base bg, flat
   - .section.dark: elevated alt bg, clear border
   - .section.spotlight: radial glow, centered drama
   - .section.panel: top accent bar + gradient tint
   ============================================ */
section.section {
  padding: 128px 0;
  position: relative;
  border-top: 1px solid transparent;
}
@media (max-width: 640px) { section.section { padding: 80px 0; } }

/* Chapter head: centered scroll-landmark header block (KK-inspired rhythm) */
.chapter-head {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 56px;
}
.chapter-head .lede { margin-left: auto; margin-right: auto; }

/* Paper band: light interlude section. Re-scopes the token set so all
   descendants (cards, quotes, stats) invert automatically. */
section.paper {
  --bg: #f6f4fa;
  --bg-alt: #efeaf6;
  --bg-elevated: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1edf7;
  --border: #d9d2e4;
  --border-soft: #e5e0ee;
  --text: #17131b;
  --muted: #554d61;
  --muted-2: #7a7287;
  --accent-3: #7A618F; /* light-bg legibility: mid purple instead of pale */
  background: #f6f4fa;
  color: var(--text);
  border-top: 1px solid #e5e0ee;
  border-bottom: 1px solid #e5e0ee;
}
section.paper h2, section.paper h3 { color: var(--text); }
section.paper h2 em { color: var(--accent-2); }

/* CTA band: repeating conversion block (button + phone + review stars) */
.cta-band { text-align: center; }
.cta-band .cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-band .cta-band-sub {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.cta-band .cta-band-sub a { color: var(--text); font-weight: 700; text-decoration: none; }
.cta-band .cta-band-sub a:hover { color: var(--accent-3); }
.cta-band .cta-band-stars {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.cta-band .cta-band-stars .stars { color: #ffd60a; letter-spacing: 0.1em; }

/* Win list: big-check scoreboard of concrete client results */
.win-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.win-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}
.win-list li strong { color: var(--text); font-weight: 800; }
.win-list .check {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(143,210,181,0.16);
  color: var(--success);
  font-weight: 900;
  font-size: 16px;
  margin-top: 2px;
}
section.paper .win-list .check { background: rgba(75,59,92,0.10); color: #3e7d63; }
/* Dark inset cards inside a paper band keep light text */
section.paper .cell-hero { --text: #f6f4fa; --muted: #cfc7dd; }

/* Proof shot: real analytics exports framed as evidence */
.proof-shot { margin: 0 auto; max-width: 980px; }
.proof-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
}
.proof-shot figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* Alt background, noticeably more purple */
section.section.dark {
  background: var(--bg-alt);
}

/* Spotlight, asymmetric glow orb, position configurable per section */
section.section.spotlight {
  background: var(--bg);
  overflow: hidden;
}
section.section.spotlight::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  top: var(--glow-top, -20%);
  left: var(--glow-left, auto);
  right: var(--glow-right, auto);
  bottom: var(--glow-bottom, auto);
  background: radial-gradient(circle, var(--spotlight-color, rgba(122,97,143,0.22)) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}
section.section.spotlight .container { position: relative; z-index: 1; }

/* Decorative marquee text for centerpiece sections */
.bg-marquee {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 0;
  opacity: 0.06;
}
.bg-marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: bg-marquee-scroll 40s linear infinite;
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-3);
}
.bg-marquee-track span { flex: 0 0 auto; }
@keyframes bg-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .bg-marquee-track { animation: none; } }

/* Panel, elevated gradient section (no bar) */
section.section.panel {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-alt));
  box-shadow: inset 0 -60px 80px -60px rgba(122,97,143,0.15);
}

/* Chapter label, the "01 · SECTION NAME" anchor at section top */
.chapter {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.chapter .chapter-num {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--chapter-color, var(--accent-3)), var(--chapter-color-2, var(--accent-2)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.chapter .chapter-label { color: var(--muted); letter-spacing: 0.14em; }
.chapter .chapter-divider {
  width: 40px; height: 1px;
  background: var(--border);
  align-self: center;
}

/* Section ornament, subtle decorative dot grid in the corner */
section.section.has-ornament::after {
  content: '';
  position: absolute;
  top: 32px; right: 32px;
  width: 120px; height: 120px;
  background-image: radial-gradient(circle, rgba(184,159,208,0.22) 1px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.6;
  pointer-events: none;
}
@media (max-width: 720px) { section.section.has-ornament::after { display: none; } }

/* Primary button */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 16px 26px;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(75,59,92,0.55);
  transition: filter 160ms ease, transform 80ms ease;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-hero-primary:hover { filter: brightness(1.1); }
.btn-hero-primary:active { transform: translateY(1px); }
.btn-hero-primary .arrow { transition: transform 180ms ease; }
.btn-hero-primary:hover .arrow { transform: translateX(3px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 12px;
  transition: border-color 160ms ease, background 160ms ease;
}
.btn-secondary:hover { border-color: var(--accent-2); background: rgba(122,97,143,0.1); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-sub {
  display: block;
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 13px;
}

/* Card system */
.card-base {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
}

/* Footer */
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-top img { height: 28px; width: auto; display: block; opacity: 0.9; }
.footer-right {
  color: var(--muted-2);
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-right a { color: var(--muted); text-decoration: none; border-bottom: 1px dashed var(--border); }
.footer-right a:hover { color: var(--text); }
