/* Manifesto — Resend handbook-style: numbered figure + prose columns */

.pa-mf {
  background: #000;
  color: rgba(255, 255, 255, 0.78);
  min-height: 100vh;
}

.pa-mf__intro {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.pa-mf__title {
  margin: 0 0 1.1rem;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
}

.pa-mf__subtitle {
  max-width: 40rem;
  margin: 0 auto 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.pa-mf__about-link {
  color: rgba(199, 210, 254, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pa-mf__about-link:hover {
  color: #fff;
}

.pa-mf__lead {
  margin: 0 auto;
  max-width: 36rem;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.pa-mf__tagline {
  margin: 1rem auto 0;
  max-width: 38rem;
  font-size: clamp(0.95rem, 1.9vw, 1.05rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

.pa-mf__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin: 1.5rem auto 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.pa-mf__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 5.5rem;
}

.pa-mf__stat-value {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.pa-mf__stat-lbl {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* Ask AI — same pattern as resend.com/security/soc-2 */
.pa-mf-ai {
  margin: 1.75rem auto 0;
  width: 100%;
  max-width: min(48rem, 100%);
  padding: 1.25rem 1.25rem 1.1rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.02);
  box-sizing: border-box;
}

.pa-mf-ai__head {
  margin-bottom: 1rem;
}

.pa-mf-ai__title {
  margin: 0 0 0.35rem;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
}

.pa-mf-ai__sub {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}

.pa-mf-ai__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 900px) {
  .pa-mf-ai__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem 0.7rem;
  }
}

.pa-mf-ai__tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 3.25rem;
  padding: 0.75rem 0.65rem 0.75rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pa-mf-ai__tile:hover,
.pa-mf-ai__tile:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
}

.pa-mf-ai__tile:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.pa-mf-ai__tile-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.pa-mf-ai__ic {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.pa-mf-ai__ic--gpt {
  background: linear-gradient(135deg, rgba(15, 164, 127, 0.1), rgba(15, 164, 127, 0.2));
}

.pa-mf-ai__ic--claude {
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.1), rgba(217, 119, 87, 0.2));
}

.pa-mf-ai__ic--gemini {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(138, 180, 248, 0.2));
}

.pa-mf-ai__ic--perplexity {
  background: linear-gradient(135deg, rgba(32, 128, 141, 0.1), rgba(32, 128, 141, 0.2));
}

.pa-mf-ai__label {
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
}

.pa-mf-ai__tile:hover .pa-mf-ai__label,
.pa-mf-ai__tile:focus-visible .pa-mf-ai__label {
  color: rgba(255, 255, 255, 0.92);
}

.pa-mf-ai__arrow {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  opacity: 0.55;
}

.pa-mf-ai__tile:hover .pa-mf-ai__arrow,
.pa-mf-ai__tile:focus-visible .pa-mf-ai__arrow {
  opacity: 0.95;
}

/* Hero art: abstract dark grid / precision-engineering mood */
.pa-mf__hero {
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding: 0;
  border: 0;
  max-width: min(42rem, 100%);
}

.pa-mf__hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.pa-mf__sections {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.pa-mf-sec {
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.pa-mf-sec__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .pa-mf-sec__inner {
    grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  }
}

/* Left: dark square card */
.pa-mf-fig {
  position: relative;
  aspect-ratio: 1.05 / 1;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  padding: 1.25rem 1rem 1.1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(165deg, #161616 0%, #0c0c0c 55%, #080808 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

@media (min-width: 900px) {
  .pa-mf-fig {
    margin: 0;
    max-width: none;
  }
}

/* Pixel corner decoration */
.pa-mf-fig__pixel {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border-radius: 0 0 0 2px;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.12) 0 2px,
    transparent 2px 4px
  ),
  repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 0 2px,
    transparent 2px 4px
  );
  opacity: 0.35;
  mask-image: linear-gradient(135deg, #000 0%, transparent 55%);
  pointer-events: none;
}

.pa-mf-fig__num {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 10vw, 5.5rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: #fff;
}

.pa-mf-fig__title {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

/* Right column */
.pa-mf-sec__body {
  padding-top: 0.25rem;
  max-width: 40rem;
}

@media (min-width: 900px) {
  .pa-mf-sec__body {
    padding-top: 0.5rem;
  }
}

.pa-mf-sec__body p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.pa-mf-sec__body p:last-child {
  margin-bottom: 0;
}

.pa-mf-sec__body strong {
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
}

.pa-mf-sec__body .pa-mf-line {
  margin: 0.35rem 0 0.85rem;
  padding-left: 0;
}

.pa-mf-sec__body .pa-mf-line:last-of-type {
  margin-bottom: 0;
}

.pa-mf-strike {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.45);
}

.pa-mf-u {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

/* ─── Светлая тема (neuro-os-theme=light → data-pa-theme=day) ─── */
html[data-pa-theme="day"] body.pa-mf {
  background: var(--bg);
  color: var(--fg);
}

html[data-pa-theme="day"] .pa-mf {
  background: linear-gradient(180deg, #fafafa 0%, var(--bg) 36%, #eef0f2 100%);
  color: var(--muted);
}

html[data-pa-theme="day"] .pa-mf__title {
  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    #0f172a 0%,
    #1e293b 38%,
    #1e40af 78%,
    var(--pa-brand-deep) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

html[data-pa-theme="day"] .pa-mf__subtitle {
  color: var(--muted);
}

html[data-pa-theme="day"] .pa-mf__about-link {
  color: var(--pa-brand-deep);
}

html[data-pa-theme="day"] .pa-mf__about-link:hover {
  color: #1e40af;
}

html[data-pa-theme="day"] .pa-mf__lead {
  color: var(--muted);
}

html[data-pa-theme="day"] .pa-mf__tagline {
  color: var(--muted);
  opacity: 0.92;
}

html[data-pa-theme="day"] .pa-mf__stat-value {
  color: var(--fg);
}

html[data-pa-theme="day"] .pa-mf__stat-lbl {
  color: var(--muted);
}

html[data-pa-theme="day"] .pa-mf-ai {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

html[data-pa-theme="day"] .pa-mf-ai__title {
  color: var(--fg);
}

html[data-pa-theme="day"] .pa-mf-ai__sub {
  color: var(--muted);
}

html[data-pa-theme="day"] .pa-mf-ai__tile {
  border-color: var(--line);
  background: rgba(248, 250, 252, 0.85);
  color: var(--fg);
}

html[data-pa-theme="day"] .pa-mf-ai__tile:hover,
html[data-pa-theme="day"] .pa-mf-ai__tile:focus-visible {
  border-color: rgba(var(--pa-brand-rgb), 0.35);
  background: #fff;
  color: var(--fg);
}

html[data-pa-theme="day"] .pa-mf-ai__tile:focus-visible {
  outline-color: rgba(var(--pa-brand-rgb), 0.4);
}

html[data-pa-theme="day"] .pa-mf-ai__ic {
  border-color: rgba(9, 9, 11, 0.1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

html[data-pa-theme="day"] .pa-mf-ai__label {
  color: var(--muted);
}

html[data-pa-theme="day"] .pa-mf-ai__tile:hover .pa-mf-ai__label,
html[data-pa-theme="day"] .pa-mf-ai__tile:focus-visible .pa-mf-ai__label {
  color: var(--fg);
}

html[data-pa-theme="day"] .pa-mf__hero {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--line);
}

html[data-pa-theme="day"] .pa-mf-fig {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
  border-color: var(--line);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

html[data-pa-theme="day"] .pa-mf-fig__pixel {
  background-image: repeating-linear-gradient(
      0deg,
      rgba(15, 23, 42, 0.07) 0 2px,
      transparent 2px 4px
    ),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.05) 0 2px, transparent 2px 4px);
  opacity: 0.55;
}

html[data-pa-theme="day"] .pa-mf-fig__num {
  /* Solid ink reads better than gradient clip on light cards (serif 3/5 counters). */
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: color-mix(in srgb, var(--fg) 88%, var(--pa-brand-deep) 12%);
  -webkit-text-fill-color: currentColor;
  font-weight: 500;
}

html[data-pa-theme="day"] .pa-mf-fig__title {
  color: var(--fg);
}

html[data-pa-theme="day"] .pa-mf-sec__body p {
  color: var(--muted);
}

html[data-pa-theme="day"] .pa-mf-sec__body strong {
  color: var(--fg);
}

html[data-pa-theme="day"] .pa-mf-strike {
  text-decoration-color: rgba(9, 9, 11, 0.22);
  color: var(--muted);
  opacity: 0.85;
}

html[data-pa-theme="day"] .pa-mf-u {
  text-decoration-color: rgba(var(--pa-brand-rgb), 0.45);
  color: inherit;
}
