/* app-store-mcp landing page
   Type: Geist (variable) + Geist Mono (variable), self-hosted.
   Theme: locked light. Dark panels are a component material for
   "things the model says or runs", not a theme flip.
   Radius system: cards 16px, inner code 10px, interactive pills 999px. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fcfcfd;
  --surface: #ffffff;
  --ink: #0e0e12;
  --ink-2: #5b5b66;
  --ink-3: #8a8a95;
  --line: #e8e8ee;
  --line-soft: #f0f0f4;
  --accent: #0763e6;
  --accent-deep: #0550bf;
  --accent-wash: #eff5fe;
  --dark: #0b0b10;
  --dark-2: #131319;
  --dark-line: rgba(255, 255, 255, 0.09);
  --dark-text: #e9e9ee;
  --dark-text-2: #a3a3af;
  --green: #2f9e63;
  --r-card: 16px;
  --r-inner: 10px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  --section-pad: clamp(6rem, 10vw, 10.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { overflow-x: clip; width: 100%; }

::selection { background: rgba(7, 99, 230, 0.15); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { left: 16px; top: 16px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 253, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--line-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

.gh-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.gh-link:hover { color: var(--ink); background: var(--line-soft); }
.gh-link svg { width: 17px; height: 17px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background-color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(7, 99, 230, 0.25), 0 8px 24px -12px rgba(7, 99, 230, 0.55);
}
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: #cfcfda; background: #fff; }

.btn-sm { font-size: 14px; padding: 9px 18px; }

.btn-dark-ghost {
  background: transparent;
  color: var(--dark-text);
  border-color: var(--dark-line);
}
.btn-dark-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(3.5rem, 6.5vw, 5.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -64px 0 auto auto;
  width: min(56vw, 760px);
  height: 560px;
  background: radial-gradient(closest-side, rgba(7, 99, 230, 0.07), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.6fr) minmax(0, 5.4fr);
  gap: clamp(36px, 4.5vw, 64px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 4.7vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
  font-weight: 600;
}
.hero h1 .accent { color: var(--accent); }

.hero-sub {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Hero conversation excerpt (labelled example, not app chrome) */

.chat-card {
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-card);
  padding: 22px 24px 20px;
  color: var(--dark-text);
  box-shadow: 0 24px 60px -32px rgba(14, 14, 30, 0.45);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dark-text-2);
}
.chat-head .conn { display: inline-flex; align-items: center; gap: 7px; }
.chat-head .conn svg { width: 13px; height: 13px; color: var(--green); }

.chat-msg { padding-top: 16px; }
.chat-msg .who {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark-text-2);
  margin-bottom: 6px;
}
.chat-msg p { font-size: 14.5px; line-height: 1.55; }
.chat-msg .quote { color: #fff; font-weight: 500; }

.tool-calls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 2px;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #bcd4f8;
  background: rgba(7, 99, 230, 0.14);
  border: 1px solid rgba(90, 150, 240, 0.25);
  border-radius: 999px;
  padding: 5px 11px;
}
.tool-chip svg { width: 11px; height: 11px; color: var(--green); flex: none; }

.chat-msg .answer { color: var(--dark-text); }
.chat-msg .answer strong { color: #fff; font-weight: 600; }

.chat-caption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: right;
}

/* ---------- Icon marquee ---------- */

.marquee-section { padding-block: clamp(2rem, 4vw, 3.5rem) var(--section-pad); }
.marquee-lead {
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  box-shadow: 0 1px 3px rgba(14, 14, 30, 0.12);
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Shared section furniture ---------- */

.section { padding-block: var(--section-pad); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.section-head p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- Install tabs ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: var(--line-soft);
  border-radius: 999px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 28px;
}
.tab-btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(14, 14, 30, 0.1);
}

.tab-panel[hidden] { display: none; }
.tab-panel { max-width: 820px; }

.install-step {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 14px;
  max-width: 62ch;
}
.install-step strong { color: var(--ink); font-weight: 600; }
.install-step + .code-block { margin-top: 4px; }
.code-block + .install-step { margin-top: 22px; }

.code-block {
  position: relative;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-inner);
  overflow: hidden;
}
.code-block pre {
  overflow-x: auto;
  padding: 18px 100px 18px 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--dark-text);
}
.code-block .tok-key { color: #8ab8f7; }
.code-block .tok-str { color: #a8d5a2; }
.code-block .tok-cmd { color: #fff; }
.code-block .tok-dim { color: var(--dark-text-2); }

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-text-2);
  background: rgba(24, 24, 32, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.copy-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.copy-btn.is-copied { color: #7fd8a5; border-color: rgba(127, 216, 165, 0.4); }
.copy-btn svg { width: 13px; height: 13px; }

.install-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 62ch;
}

/* ---------- Examples bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}
.bento-cell {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s var(--ease), border-color 0.25s ease, box-shadow 0.35s ease;
}
.bento-cell:hover {
  transform: translateY(-3px);
  border-color: #d4d4e0;
  box-shadow: 0 18px 40px -28px rgba(14, 14, 30, 0.28);
}

.cell-feature { grid-column: span 4; grid-row: span 2; justify-content: space-between; }
.cell-feature .prompt { font-size: 16.5px; max-width: 54ch; }
.cell-w2 { grid-column: span 2; }
.cell-w3 { grid-column: span 3; }

.bento-cell h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.bento-cell .prompt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}
.bento-cell .prompt q { font-style: normal; color: var(--ink); quotes: "\201C" "\201D"; }

.cell-dark { background: var(--dark); border-color: rgba(255, 255, 255, 0.06); color: var(--dark-text); }
.cell-dark:hover { border-color: rgba(255, 255, 255, 0.16); }
.cell-dark .prompt { color: var(--dark-text-2); }
.cell-dark .prompt q { color: #fff; }

.cell-tint { background: var(--accent-wash); border-color: #d9e7fb; }
.cell-tint:hover { border-color: #b9d3f7; }

.result-lines {
  margin-top: auto;
  border-top: 1px solid var(--dark-line);
  padding-top: 16px;
  display: grid;
  gap: 10px;
}
.result-lines li {
  list-style: none;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--dark-text-2);
  padding-left: 18px;
  position: relative;
}
.result-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.result-lines li q { color: var(--dark-text); font-style: italic; quotes: "\201C" "\201D"; }

.cell-tools {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--line-soft);
  border-radius: 999px;
  padding: 4px 10px;
}
.cell-dark .mini-chip { color: #bcd4f8; background: rgba(7, 99, 230, 0.14); }
.cell-tint .mini-chip { color: var(--accent-deep); background: rgba(7, 99, 230, 0.1); }

/* ---------- Scrubbed statement ---------- */

.statement { padding-block: var(--section-pad); }
.statement p {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 28ch;
  text-wrap: balance;
}
.statement .word { opacity: 1; }
.statement .em { color: var(--accent); }

/* ---------- Walkthrough (pinned split) ---------- */

.walk-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.walk-sticky { position: sticky; top: 112px; }
.walk-sticky h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.walk-sticky > p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.05rem;
  max-width: 44ch;
  text-wrap: pretty;
}
.walk-sticky .btn { margin-top: 28px; }

.walk-steps { position: relative; display: grid; gap: 18px; }
.walk-rail {
  position: absolute;
  left: -28px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.walk-rail-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(0);
}

.step-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: 26px 28px;
}
.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.step-card h3 .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.step-card > p { margin-top: 10px; font-size: 15px; color: var(--ink-2); max-width: 56ch; }

.step-snippet {
  margin-top: 18px;
  background: var(--dark);
  border-radius: var(--r-inner);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--dark-text);
}
.step-snippet .u { color: #fff; }
.step-snippet .u::before { content: "> "; color: var(--dark-text-2); }
.step-snippet .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- Tools grid ---------- */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}
.tool-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: 22px;
  transition: transform 0.3s var(--ease), border-color 0.25s ease;
}
.tool-card:hover { transform: translateY(-2px); border-color: #c9dcf9; }
.tool-card .name {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.tool-card p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

.tool-card.info {
  background: var(--accent-wash);
  border-color: #d9e7fb;
}
.tool-card.info .name { color: var(--accent-deep); font-family: var(--sans); font-size: 14px; font-weight: 600; }
.tool-card.info p { color: #47536b; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  font-size: 16.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .indicator {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  color: var(--ink-3);
  transition: transform 0.3s var(--ease);
}
.faq summary .indicator::before,
.faq summary .indicator::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  background: currentColor;
  border-radius: 2px;
}
.faq summary .indicator::before { width: 14px; height: 2px; }
.faq summary .indicator::after { width: 2px; height: 14px; transition: opacity 0.2s ease; }
.faq details[open] summary .indicator { transform: rotate(90deg); }
.faq details[open] summary .indicator::after { opacity: 0; }
.faq .a { padding: 0 2px 24px; color: var(--ink-2); font-size: 15.5px; max-width: 62ch; }
.faq .a a { color: var(--accent-deep); }

/* ---------- Footer ---------- */

.footer {
  background: var(--dark);
  color: var(--dark-text);
  padding-block: var(--section-pad) 40px;
  border-top: 1px solid var(--line);
}
.footer-cta { max-width: 820px; }
.footer-cta h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: #fff;
  text-wrap: balance;
}
.footer-cta > p {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--dark-text-2);
  max-width: 52ch;
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}
.footer .code-block {
  background: var(--dark-2);
  border-color: var(--dark-line);
  display: inline-block;
}
.footer .code-block pre { padding: 13px 100px 13px 18px; font-size: 13px; }

.footer-base {
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: 28px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a {
  font-size: 14px;
  color: var(--dark-text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-fine { font-size: 12.5px; color: #6d6d78; max-width: 60ch; }
.footer-fine a { color: var(--dark-text-2); }

/* ---------- Reveal helpers (JS adds motion; static without JS) ---------- */

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .cell-feature { grid-column: span 6; grid-row: span 1; }
  .cell-w2 { grid-column: span 3; }
  .cell-w3 { grid-column: span 3; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-sub { max-width: 56ch; }
  .walk-grid { grid-template-columns: 1fr; }
  .walk-sticky { position: static; }
  .walk-rail { display: none; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .gh-link span { display: none; }
}

@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .cell-feature, .cell-w2, .cell-w3 { grid-column: span 1; grid-row: span 1; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .tabs { border-radius: 20px; }
  .marquee img { width: 48px; height: 48px; border-radius: 11px; }
  .footer .code-block { display: block; width: 100%; }
}

@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .footer-actions .btn { width: 100%; }
}
