/* magicMCP — site styles
   Editorial-corporate: serif display, clean sans body, generous whitespace. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #14161a;
  --ink-soft: #3c424c;
  --muted: #6a7080;
  --line: #e7e9ee;
  --accent: #2747e0;
  --accent-dark: #1b34b0;
  --maxw: 1080px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3 {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-weight: 600;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.brand-name { font-size: 17px; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  padding: .45rem .9rem;
  border-radius: 999px;
}
.nav-cta:hover { border-color: var(--ink); }
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero (fullscreen) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 69px);
  padding-block: clamp(2rem, 5vw, 4rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  width: 100%;
}
.hero-copy { max-width: 36rem; }
.hero-art { justify-self: center; }
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 620px;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 3vh, 2rem);
  transform: translateX(-50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  font-size: 18px;
  animation: bob 2.2s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--ink); border-color: var(--ink); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }
@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: clamp(2.5rem, 8vw, 4rem); padding-bottom: clamp(3rem, 9vw, 5rem); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.25rem; }
  .hero-copy { max-width: none; margin-inline: auto; }
  .hero h1, .lede { margin-inline: auto; }
  .actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 360px; }
  .hero-scroll { display: none; }
}
.eyebrow {
  margin: 0 0 1.4rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.lede {
  margin: 1.6rem 0 0;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}
.actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  padding: .8rem 1.5rem;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--ink); padding-inline: .4rem; }
.btn-ghost:hover { color: var(--accent); }

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.kicker {
  margin: 0 0 1rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker.center, .center { text-align: center; }
.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  max-width: 22ch;
}
.center.kicker + h2, h2.center { margin-inline: auto; }
.sub {
  margin: 1rem auto 0;
  max-width: 52ch;
  color: var(--muted);
}

/* Split (What it is) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split-head h2 { margin-top: .4rem; }
.split-body p { margin: 0 0 1.2rem; color: var(--ink-soft); }
.split-body p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Steps */
.steps {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.steps li {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.step-no {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: .04em;
}
.steps h3 {
  margin: .7rem 0 .5rem;
  font-size: 1.35rem;
}
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* Principles */
.principles {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.principle h3 { font-size: 1.3rem; margin: 0 0 .5rem; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
}

/* Connect */
.connect-card {
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  max-width: 620px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 12px 30px rgba(20, 22, 26, .05);
}
.connect-steps {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.connect-steps li { margin-bottom: .5rem; }
.endpoint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem .75rem .75rem 1rem;
}
.endpoint code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
}
.copy {
  flex: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: .5rem .9rem;
  cursor: pointer;
  transition: background .18s ease;
}
.copy:hover { background: #000; }
.copy.copied { background: #1f8a4c; }
.fineprint {
  margin: 1.25rem 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}
.footer-tag { margin: 1rem 0 0; color: var(--muted); font-size: 15px; max-width: 30ch; }
.footer-h {
  margin: 0 0 1rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: var(--ink-soft); font-size: 15px; }
.footer-col a:hover { color: var(--ink); }
.footer-base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  color: var(--muted);
  font-size: 14px;
}
.footer-base a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-base a:hover { color: var(--ink); }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Legal pages ---------- */
.doc { padding-block: clamp(3.5rem, 8vw, 6rem); }
.doc .container { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: .5rem; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 2.5rem; }
.doc h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2rem; }
.doc a { text-decoration: underline; text-underline-offset: 2px; }
