/* Yes MCP — landing v2
   Warm editorial typography · product-as-demo · zero external requests.
   Fonts are self-hosted subsets (latin + cyrillic incl. Ukrainian). */

/* ---------- fonts ---------- */

@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-italic-600.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/plexsans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plexmono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  --paper: #faf9f5;
  --paper-2: #f0eee6;
  --hairline: #e3e0d5;
  --ink: #141413;
  --ink-soft: #3d3d3a;
  --muted: #87867f;
  --accent: #d97757;
  --accent-deep: #c05f3f;
  --glow: rgba(217, 119, 87, .14);
  --card: #ffffff;

  --serif: "Literata", Georgia, serif;
  --sans: "Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --w: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

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

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

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* grain — static SVG noise tile, no live filter cost */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 .06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- scroll reveal (driven by app.js via IntersectionObserver) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].on { opacity: 1; transform: none; }

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.mark {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none; margin-right: auto;
}
.mark .yes {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 24px; letter-spacing: -.01em;
}
.mark .mcp {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  border-radius: 4px; padding: 2px 6px;
  transform: translateY(-2px);
}
.langs { display: flex; gap: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.langs a { text-decoration: none; color: var(--muted); padding: 6px 9px; border-radius: 5px; }
.langs a:hover { color: var(--ink); background: var(--paper-2); }
.langs a[aria-current] { color: var(--ink); background: var(--paper-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none;
  background: var(--ink); color: var(--paper);
  padding: 13px 22px; border-radius: 999px;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(192, 95, 63, .5);
}
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .18s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn.big { font-size: 17px; padding: 16px 28px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); }
.top .btn { padding: 10px 16px; font-size: 14px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 76px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto;
  height: 130%;
  background:
    radial-gradient(600px 420px at 18% 8%, var(--glow), transparent 70%),
    radial-gradient(700px 520px at 88% 60%, rgba(217, 119, 87, .10), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.12fr .88fr;
  gap: 64px; align-items: center;
}
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-deep);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; animation: rise .7s var(--ease) .05s forwards;
}
.eyebrow::before {
  content: "✳"; font-size: 14px; color: var(--accent);
}
.era {
  margin-top: 18px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(29px, 3.6vw, 46px);
  line-height: 1.14; letter-spacing: -.018em;
  text-wrap: balance;
}
.era .line { display: block; opacity: 0; animation: rise .8s var(--ease) forwards; }
.era .line:nth-child(1) { animation-delay: .15s; }
.era .line:nth-child(2) { animation-delay: .3s; }
.era .line:nth-child(3) { animation-delay: .5s; }
.era .dim { color: var(--muted); font-weight: 450; }
.era .line:nth-child(3) { color: var(--accent-deep); }
.era .now { display: inline-block; position: relative; white-space: nowrap; }
.era .now .stroke {
  position: absolute; left: -1%; right: -1%; bottom: .02em;
  height: .14em; pointer-events: none;
}
.era .now .stroke path {
  fill: none; stroke: var(--accent); stroke-width: 3.2;
  stroke-linecap: round; opacity: .5;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw 1s var(--ease) 1.15s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-sub {
  margin-top: 26px; max-width: 52ch;
  font-size: 19px; color: var(--ink-soft);
  opacity: 0; animation: rise .8s var(--ease) .7s forwards;
}
.cta-row {
  margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  opacity: 0; animation: rise .8s var(--ease) .85s forwards;
}
.cta-note {
  margin-top: 14px; font-size: 13.5px; color: var(--muted);
  opacity: 0; animation: rise .8s var(--ease) .95s forwards;
}

/* ---------- chat demo ---------- */

.mock { position: relative; opacity: 0; animation: rise .9s var(--ease) .55s forwards; }
.chat {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(20, 20, 19, .04),
    0 28px 70px -28px rgba(20, 20, 19, .22);
  padding: 18px;
  font-size: 14.5px; line-height: 1.5;
  min-height: 372px;
}
.chat-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px; margin-bottom: 14px;
}
.chat-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chat-head .dot.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(217, 119, 87, .18); } }

.scene {
  display: none;
  flex-direction: column; gap: 12px;
}
.scene.live { display: flex; }
.scene .step { opacity: 0; transform: translateY(10px); }
.scene.live .step {
  animation: rise .5s var(--ease) forwards;
  animation-delay: calc(var(--i) * .8s + .2s);
}
.bubble-user {
  align-self: flex-end;
  background: var(--paper-2);
  border-radius: 14px 14px 4px 14px;
  padding: 10px 14px; max-width: 86%;
}
.bubble-ai { color: var(--ink-soft); max-width: 95%; }

.app-card {
  border: 1px solid var(--hairline);
  border-radius: 12px; overflow: hidden;
  background: var(--card);
}
.app-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 14px;
  font-weight: 600; font-size: 13.5px;
}
.app-card-head .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: var(--accent-deep); white-space: nowrap;
}
.week { display: flex; gap: 7px; padding: 14px; }
.day {
  flex: 1; aspect-ratio: 1; border-radius: 9px;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  position: relative;
}
.day.done { background: var(--paper-2); border-color: var(--accent); color: transparent; }
.day.done::after {
  content: "✓"; position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--accent-deep); font-size: 13px; font-weight: 700; font-family: var(--sans);
  opacity: 0;
}
.scene.live .day.done::after { animation: pop .35s var(--ease) forwards; animation-delay: var(--t); }
@keyframes pop {
  from { opacity: 0; transform: scale(.4); }
  60%  { transform: scale(1.25); }
  to   { opacity: 1; transform: scale(1); }
}
.app-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 14px 14px; gap: 10px;
}
.app-card-foot .note { font-size: 12.5px; color: var(--muted); }
.mini-btn {
  font-size: 12.5px; font-weight: 600;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 7px 13px; white-space: nowrap;
}

/* scene 2 — source verification */
.quote-line {
  padding: 12px 14px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 14.5px; line-height: 1.5;
  border-bottom: 1px solid var(--hairline);
}
.src-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  border-radius: 999px; padding: 4px 10px;
  background: rgba(217, 119, 87, .07);
}
.mock-cap {
  margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center;
}
.scene-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.scene-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hairline); transition: background .3s;
}
.scene-dots i.on { background: var(--accent); }

/* ---------- timeline band ---------- */

.band {
  position: relative;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-2);
}
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); }
.t-cell { padding: 44px 28px; border-left: 1px solid var(--hairline); }
.t-cell:first-child { border-left: none; }
.t-cell .when {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
}
.t-cell .what { font-family: var(--serif); font-size: 27px; font-weight: 600; margin-top: 6px; }
.t-cell.now .what { color: var(--accent-deep); }
.t-cell .how { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */

section { padding: 92px 0; }

.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-deep);
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: "✳"; color: var(--accent); font-size: 13px; }
h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(27px, 3.3vw, 40px);
  letter-spacing: -.012em; line-height: 1.18;
  margin-top: 12px; max-width: 26ch; text-wrap: balance;
}
.lead { margin-top: 14px; max-width: 58ch; color: var(--ink-soft); }

/* capabilities — editorial rows */
.cap-list { margin-top: 48px; border-top: 1px solid var(--hairline); }
.cap {
  display: grid;
  grid-template-columns: 64px 1fr 1.4fr;
  gap: 24px; align-items: baseline;
  padding: 27px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--hairline);
  border-radius: 10px;
  transition: background .25s var(--ease);
}
.cap:hover { background: rgba(217, 119, 87, .05); }
.cap .n {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  transition: color .25s;
}
.cap:hover .n { color: var(--accent-deep); }
.cap h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.cap .cap-tag {
  display: block;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--muted); margin-top: 5px; text-transform: uppercase;
}
.cap p { color: var(--ink-soft); font-size: 16px; }

/* ---------- honesty band ---------- */

.honesty {
  position: relative;
  background: var(--ink); color: var(--paper);
  padding: 96px 0; overflow: hidden;
}
.honesty::before {
  content: "✳";
  position: absolute; right: -3%; top: -22%;
  font-size: 420px; line-height: 1;
  color: rgba(217, 119, 87, .12);
  pointer-events: none;
}
.honesty .quote {
  position: relative;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(23px, 2.9vw, 34px);
  line-height: 1.42; max-width: 34ch; text-wrap: balance;
}
.honesty .quote em { color: var(--accent); }
.honesty .who {
  margin-top: 22px; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .07em; color: #b0aea5;
}

/* ---------- steps ---------- */

.steps {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.step { border-top: 2px solid var(--ink); padding-top: 18px; position: relative; }
.step::before {
  content: "";
  position: absolute; top: -2px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width .8s var(--ease) .2s;
}
.step.on::before { width: 100%; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); }
.step h3 { font-family: var(--serif); font-size: 21px; margin-top: 6px; }
.step p { margin-top: 8px; font-size: 15.5px; color: var(--ink-soft); }

/* ---------- objections ---------- */

.faq { background: var(--paper-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.faq-list { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.qa { border-bottom: 1px solid var(--hairline); padding: 26px 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.qa h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.qa p { color: var(--ink-soft); font-size: 16px; }

/* ---------- final CTA ---------- */

.fin { position: relative; text-align: center; padding: 116px 0; overflow: hidden; }
.fin::before {
  content: "";
  position: absolute; inset: auto -20% -60%;
  height: 120%;
  background: radial-gradient(640px 380px at 50% 100%, var(--glow), transparent 70%);
  pointer-events: none;
}
.fin .kicker { justify-content: center; }
.fin h2 { margin: 12px auto 0; }
.fin .cta-row { justify-content: center; opacity: 1; animation: none; margin-top: 34px; }
.fin .mail { position: relative; margin-top: 18px; font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.fin .mail a { color: var(--accent-deep); text-decoration: none; }
.fin .mail a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--hairline); padding: 36px 0 48px; font-size: 13.5px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot-in .mark { margin-right: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-right: auto; }
.foot-links a { text-decoration: none; padding: 6px 0; }
.foot-links a:hover { color: var(--ink); }

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none;
  transform: translateY(120%);
  transition: transform .35s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn {
  width: 100%; justify-content: center;
  padding: 16px 22px; font-size: 16px;
  box-shadow: 0 12px 34px -10px rgba(20, 20, 19, .4);
}

/* ---------- motion preferences & responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .eyebrow, .era .line, .hero-sub, .cta-row, .cta-note, .mock,
  .scene .step, .scene.live .day.done::after { opacity: 1 !important; transform: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .step::before { width: 100%; }
  .era .now .stroke path { stroke-dashoffset: 0; }
}

@media (max-width: 900px) {
  .hero { padding: 52px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .era { font-size: clamp(30px, 8.2vw, 44px); }
  .timeline { grid-template-columns: 1fr; }
  .t-cell { border-left: none; border-top: 1px solid var(--hairline); padding: 28px; }
  .t-cell:first-child { border-top: none; }
  .cap { grid-template-columns: 40px 1fr; padding: 22px 8px; margin: 0 -8px; }
  .cap p { grid-column: 2; }
  .steps { grid-template-columns: 1fr; }
  .qa { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  section { padding: 64px 0; }
  .fin { padding: 84px 0 96px; }
  .sticky-cta { display: block; }
  footer { padding-bottom: 96px; }
}

@media (max-width: 560px) {
  .top .btn { display: none; }
  .eyebrow { font-size: 10.5px; letter-spacing: .1em; }
}
