/* ============================================
   mcpcleaner.com — shared styles
   Aesthetic: refined dark, editorial, hairline
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-elev-2: #161616;
  --ink: #f5f1ea;
  --ink-dim: #a8a298;
  --ink-dimmer: #6b665d;
  --rule: #1e1e1e;
  --rule-strong: #2a2a2a;
  --accent: oklch(0.88 0.18 125);
  --accent-dim: oklch(0.88 0.18 125 / 0.15);
  --warn: oklch(0.78 0.15 60);
  --err: oklch(0.7 0.19 25);
  --ok: oklch(0.88 0.18 125);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* soft radial glow top-right */
body::after {
  content: "";
  position: fixed;
  top: -40vh;
  right: -20vw;
  width: 80vw;
  height: 80vw;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, oklch(0.88 0.18 125 / 0.07) 0%, transparent 55%);
  filter: blur(40px);
}

main, header, footer, nav {
  position: relative;
  z-index: 2;
}

a { color: inherit; text-decoration: none; }

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

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  position: relative;
  display: inline-block;
  transform: rotate(45deg);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent);
}

.brand-name { letter-spacing: 0.02em; }
.brand-name em {
  font-style: normal;
  color: var(--ink-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 8px 14px;
  color: var(--ink-dim);
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--rule);
  margin-top: 120px;
  padding: 40px 32px 32px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer h5 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dimmer);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer p, .footer a {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.7;
  display: block;
}
.footer a:hover { color: var(--accent); }

.footer-meta {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dimmer);
}

/* ============ PAGE CHROME ============ */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.display {
  font-family: var(--f-display);
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.display em {
  font-style: italic;
  color: var(--ink-dim);
}

.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 560px;
}

.section-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dimmer);
}

.hairline {
  height: 1px;
  background: var(--rule);
  border: none;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
  font-weight: 500;
}
.btn:hover {
  border-color: var(--ink);
  background: var(--bg-elev);
}
.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #000;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============ CARD / PANEL ============ */
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 2px;
}

/* numbered list style */
.numbered {
  counter-reset: step;
}
.numbered > * {
  counter-increment: step;
}
.numbered > *::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-dimmer);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

/* utility */
.mono { font-family: var(--f-mono); }
.dim { color: var(--ink-dim); }
.dimmer { color: var(--ink-dimmer); }
.accent { color: var(--accent); }
.serif { font-family: var(--f-display); }

/* responsive */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-inner { padding: 14px 20px; }
  .page { padding: 0 20px; }
  .nav-links a { padding: 6px 8px; }
  body::after { display: none; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { flex-direction: column; gap: 8px; }
  .nav-links { font-size: 10px; }
}

/* page entry animation */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise {
  animation: riseIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }
.rise-5 { animation-delay: 0.45s; }
