:root {
  --paper: #f3f0e8;
  --paper-2: #eae6db;
  --ink: #1a1813;
  --ink-soft: #3a362d;
  --muted: #6b6659;
  --rule: rgba(26, 24, 19, 0.13);
  --rule-2: rgba(26, 24, 19, 0.28);
  --accent: #c1543b;
  --accent-ink: #fbf4ef;
  --accent-wash: rgba(193, 84, 59, 0.12);
  --display: "Mohave", "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

/* Type: Mohave only in caps */
h1, h2, h3, .brand, .step-num, .eyebrow, .button, .hero-facts dt, figcaption {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1, h2, h3 { margin: 0; line-height: 0.95; }
h1 { font-size: clamp(64px, 9vw, 128px); letter-spacing: -0.005em; }
h2 { font-size: clamp(44px, 5.6vw, 76px); }
h3 { font-size: 30px; }
p { margin: 0; color: var(--ink-soft); }
.accent { color: var(--accent); }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; letter-spacing: 0.12em; color: var(--accent);
  margin-bottom: 20px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lede { font-size: 19px; max-width: 34em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 24px; letter-spacing: 0.06em; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1.5px solid var(--accent); color: var(--accent); border-radius: 4px; font-size: 18px;
}
nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
nav a { color: var(--muted); transition: color .2s; }
nav a:hover { color: var(--ink); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink); border-radius: 6px;
  font-size: 20px; letter-spacing: 0.06em; transition: transform .2s var(--ease), background .2s;
}
.button:hover { background: #a9452f; transform: translateY(-2px); }
.text-link { font-weight: 700; border-bottom: 2px solid var(--rule-2); padding-bottom: 2px; }
.text-link:hover { border-color: var(--accent); }

/* Phone frame */
.phone {
  position: relative; aspect-ratio: 412 / 892;
  border-radius: 38px; padding: 9px; background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(26, 24, 19, 0.45), 0 0 0 1px rgba(0,0,0,.4);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  min-height: calc(100vh - 64px); padding: 56px 0 72px;
}
.hero h1 { margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin: 36px 0 44px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 40px; margin: 0; padding-top: 24px; border-top: 1px solid var(--rule); }
.hero-facts dt { font-size: 14px; letter-spacing: 0.12em; color: var(--muted); }
.hero-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.hero-phones { position: relative; height: min(640px, 78vh); }
.hero-phones .phone { position: absolute; height: 100%; }
.phone-front { right: 4%; top: 0; animation: rise .9s var(--ease) both .1s; }
.phone-back { right: 46%; top: 8%; height: 86% !important; transform: rotate(-6deg); opacity: .95; animation: rise-tilt .9s var(--ease) both .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes rise-tilt { from { opacity: 0; transform: translateY(60px) rotate(-2deg); } }

/* Section heads */
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p:last-child { font-size: 19px; }

/* Features: scroll story */
.features { background: var(--paper-2); padding: 120px 0; border-block: 1px solid var(--rule); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.story-visual { position: sticky; top: 104px; height: calc(100vh - 160px); max-height: 720px; display: flex; align-items: center; justify-content: center; gap: 28px; }
.story-phone { height: 100%; }
.story-phone img {
  position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px);
  opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.story-phone img.is-active { opacity: 1; transform: none; }
.story-progress { width: 3px; height: 50%; background: var(--rule); border-radius: 2px; overflow: hidden; }
.story-progress span { display: block; width: 100%; height: var(--progress, 16%); background: var(--accent); transition: height .5s var(--ease); }
.story-steps { list-style: none; margin: 0; padding: 0; }
.step {
  min-height: 70vh; display: flex; flex-direction: column; justify-content: center;
  padding-left: 28px; border-left: 2px solid var(--rule);
  opacity: .28; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .4s;
}
.step.is-active { opacity: 1; transform: none; border-color: var(--accent); }
.step h3 { font-size: clamp(40px, 4.4vw, 60px); margin: 10px 0 18px; }
.step p { font-size: 19px; max-width: 26em; }
.step-num { font-size: 18px; letter-spacing: 0.1em; color: var(--accent); }
.step-shot { display: none; }

/* Gallery */
.screens { padding: 120px 0 100px; overflow: hidden; }
.gallery {
  display: flex; gap: 36px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px max(24px, calc((100vw - var(--wrap)) / 2)) 48px;
  scrollbar-width: thin;
}
.gallery figure { flex: 0 0 auto; width: 260px; margin: 0; scroll-snap-align: center; }
.gallery figure .phone { transition: transform .4s var(--ease); }
.gallery figure:hover .phone { transform: translateY(-10px); }
.gallery figcaption { margin-top: 18px; font-size: 20px; letter-spacing: 0.06em; text-align: center; }

/* MCP */
.mcp { background: var(--ink); color: var(--paper); padding: 120px 0; }
.mcp p { color: #cfc9ba; }
.mcp-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mcp h2 { margin-bottom: 26px; }
.mcp-note { margin-top: 28px; font-weight: 700; color: var(--paper) !important; }
.chat { background: #24221c; border: 1px solid rgba(243,240,232,.12); border-radius: 18px; padding: 28px; }
.chat::before { content: "Example"; display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8f897a; margin-bottom: 16px; }
.msg { max-width: 85%; padding: 14px 18px; border-radius: 16px; margin-bottom: 12px; font-size: 16px; }
.msg-user { margin-left: auto; background: var(--accent); color: var(--accent-ink) !important; border-bottom-right-radius: 4px; }
.msg-bot { background: #34312a; color: var(--paper) !important; border-bottom-left-radius: 4px; }
.tool { display: block; font: 600 13px ui-monospace, monospace; color: #e08a73; margin-bottom: 6px; }
.tools { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(243,240,232,.12); display: grid; gap: 14px; }
.tools li { font-size: 15px; color: #cfc9ba; }
.tools b { display: block; font: 600 14px ui-monospace, monospace; color: var(--paper); margin-bottom: 2px; }

/* Stack */
.stack { padding: 120px 0; }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stack-grid article { border-top: 2px solid var(--ink); padding-top: 22px; }
.stack-grid h3 { font-size: 40px; margin: 8px 0 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 15px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-phones { height: 520px; }
  .phone-front { right: 6%; }
  .phone-back { right: auto; left: 2%; }
  .story { grid-template-columns: 1fr; }
  .story-visual { display: none; }
  .step { min-height: 0; padding: 0 0 64px 20px; opacity: 1; transform: none; border-color: var(--accent); }
  .step-shot { display: block; width: 220px; margin-top: 28px; border-radius: 26px; border: 7px solid var(--ink); }
  .mcp-inner, .stack-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-facts { gap: 24px; flex-wrap: wrap; }
  .gallery figure { width: 220px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .step { opacity: 1; transform: none; }
}

.screens .section-head { max-width: var(--wrap); }
.screens .section-head > * { max-width: 760px; }
