@font-face {
  font-family: "Press Start 2P";
  src: url("assets/press-start-2p-cyrillic.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Press Start 2P";
  src: url("assets/press-start-2p-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+2010-205E;
}

:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #281735;
  background: #fffaf4;
  --ink: #281735;
  --muted: #665969;
  --purple: #6b39a8;
  --purple-strong: #52287f;
  --border: #e4d8e6;
  --gutter: clamp(16px, 5.1vw, 68px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible { outline: 2px solid #8440d7; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1160px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  background:
    radial-gradient(ellipse at 49% 52%, #784c9a46, transparent 53%),
    linear-gradient(154deg, #161021, #241631 65%, #1b1228);
}

.hero-brand {
  position: absolute;
  top: clamp(26px, 7vh, 76px);
  display: flex;
  align-items: center;
  gap: clamp(11px, 1.25vw, 17px);
  margin: 0;
  color: #fff5e9;
  font-size: clamp(2.65rem, 6vw, 4.4rem);
  font-weight: 790;
  letter-spacing: -.072em;
  line-height: 1;
}
.hero-brand img { width: clamp(42px, 5.1vw, 58px); height: auto; image-rendering: pixelated; }

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-stars i {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  height: var(--size);
  color: #d9c3fa;
  background: currentColor;
  clip-path: polygon(40% 0, 60% 0, 60% 20%, 80% 20%, 80% 40%, 100% 40%, 100% 60%, 80% 60%, 80% 80%, 60% 80%, 60% 100%, 40% 100%, 40% 80%, 20% 80%, 20% 60%, 0 60%, 0 40%, 20% 40%, 20% 20%, 40% 20%);
  transform: translate(-50%, -50%);
  animation: twinkle 5.4s steps(1, end) infinite var(--phase);
}

.hero-stars i:nth-child(3n) { color: #f4cfaa; animation-duration: 6.8s; }
.hero-stars i:nth-child(4n) { color: #ae85e5; animation-duration: 7.3s; }
.hero-stars i:nth-child(5n) { color: #d9acf7; }
@keyframes twinkle {
  0%, 76%, 100% { opacity: .56; }
  19%, 65% { opacity: .26; }
  38% { opacity: .8; }
  48% { opacity: 1; }
}

.mascot-perch {
  position: sticky;
  top: 18px;
  width: min(80vw, 466px, 68svh);
  aspect-ratio: 128 / 82;
  transform: translateY(6%);
}

.hero-perch-fallback, .site-mascot :is(canvas, img) {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  object-fit: contain;
  object-position: center bottom;
}

#mascot-corner {
  position: fixed;
  z-index: 10;
  right: max(17px, env(safe-area-inset-right));
  bottom: max(15px, env(safe-area-inset-bottom));
  width: clamp(88px, 10vw, 138px);
  aspect-ratio: 128 / 82;
  pointer-events: none;
}

.site-mascot {
  position: fixed;
  z-index: 12;
  top: 0;
  left: 0;
  width: 128px;
  height: 82px;
  transform-origin: 0 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .16s ease;
}

.site-mascot[data-position] { visibility: visible; }
.site-mascot[data-settings-hidden] { opacity: 0; }
.site-mascot:is([data-position="perched"], [data-position="corner"], [data-position="docked"]) { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; }
.site-mascot :is(canvas, img) { display: none; }
.site-mascot[data-pose="sitting"] .site-mascot-sprite,
.site-mascot[data-pose="jumping"] .site-mascot-jump,
.site-mascot[data-pose="work"][data-ready] canvas,
.site-mascot[data-pose="work"]:not([data-ready]) .site-mascot-fallback { display: block; }
.site-mascot[data-pose="sitting"] .site-mascot-sprite { transform-origin: center bottom; animation: cat-breath 2.9s steps(1) infinite; }
#mascot-corner .site-mascot[data-ready]:has(canvas[data-mascot-mode="note"]) .site-mascot-sprite { display: none; }
#mascot-corner .site-mascot[data-ready] canvas[data-mascot-mode="note"] { display: block; }
.site-mascot[data-facing="left"] .site-mascot-jump { transform: scaleX(-1); }
@keyframes cat-breath { 35%, 60% { transform: scaleY(.982); } }
body:has(.site-mascot[data-position]) .hero-perch-fallback { opacity: 0; }

.demo-section {
  padding-block: clamp(22px, 3.8svh, 38px) clamp(28px, 4.5svh, 46px);
  background: linear-gradient(155deg, #eee3f7, #f9f4fb 72%);
  border-bottom: 1px solid #e6d8f0;
}

.section-intro { margin-bottom: .95rem; }
.section-intro h2, .about-intro h2, .pilot-story h2, .install-intro h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.3vw, 4.1rem);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: -.064em;
  text-wrap: balance;
}
.section-intro h2 { font-size: clamp(2.1rem, 3.45vw, 3.25rem); }
.about-intro > p:not(.eyebrow), .pilot-story > p:last-child {
  margin: 13px 0 0;
  max-width: 43rem;
  font-size: clamp(1rem, 1.34vw, 1.12rem);
  line-height: 1.57;
  color: var(--muted);
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--purple-strong);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .045em;
}
.about-section { display: grid; align-items: center; min-height: min(680px, 84svh); background: #281b33; color: #fff8f4; padding-block: clamp(58px, 8.2vw, 115px); }
.about-section .shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .84fr); gap: clamp(34px, 9vw, 120px); }
.about-intro .eyebrow { color: #d9baf9; }
.about-intro > p:not(.eyebrow) { color: #e0cee8; margin-top: 22px; max-width: 34rem; }
.about-links { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.25rem; margin-top: 1.1rem; }
.about-links a { display: inline-flex; align-items: center; min-height: 44px; color: #f0dafa; font-weight: 650; text-underline-offset: .24em; }
.about-links a:hover, .about-links a:focus-visible { color: #fff; }
.audiences { align-self: center; overflow: hidden; border: 1px solid #584260; border-radius: 18px; background: #32223e; }
.audience { display: flex; align-items: flex-start; gap: clamp(12px, 1.65vw, 21px); padding: clamp(17px, 2vw, 27px); }
.audience + .audience { border-top: 1px solid #584260; }
.audience-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #65497a; border-radius: 11px; color: #f0dafa; background: #473052; }
.audience + .audience .audience-icon { border-color: #694b55; color: #f7d39f; background: #543745; }
.audience h3, .pilot-card h3 { margin: 0 0 6px; font-size: 1.2rem; letter-spacing: -.025em; }
.audience p { margin: 0; color: #e0cee8; font-size: 1rem; line-height: 1.52; }
.pilot-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); align-items: center; gap: clamp(35px, 8vw, 110px); padding-block: clamp(58px, 8vw, 115px); }
.pilot-card { padding: clamp(18px, 3vw, 30px); border: 1px solid #e7daea; border-radius: 18px; background: #fffdfa; }
.pilot-card ul { list-style: none; margin: 18px 0 0; padding: 0; }
.pilot-card li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); line-height: 1.45; }
.pilot-card li + li { border-top: 1px solid #ede4ef; padding-top: .8rem; margin-top: .8rem; }
.pilot-card li strong { display: block; color: var(--ink); }
.pilot-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #f0e6f8; color: var(--purple-strong); }
.pilot-icon .site-icon { width: 20px; height: 20px; }

.install-section { background: #f2eaf7; border-block: 1px solid #e7d7ef; padding-block: clamp(56px, 8vw, 112px); }
.install-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 7vw, 100px); align-items: start; }
.install-intro h2 { font-size: clamp(2.25rem, 3.6vw, 3.45rem); }
.install-browser { display: flex; align-items: center; gap: .75rem; width: fit-content; margin-top: 1.25rem; padding: .65rem .95rem .65rem .7rem; border: 1px solid #e1d4e8; border-radius: 13px; background: #fffdfc; }
.install-browser img { flex: 0 0 auto; }
.install-browser strong, .install-browser span { display: block; }
.install-browser strong { font-size: 1.0625rem; }
.install-browser span { margin-top: .14rem; color: var(--muted); font-size: .875rem; }
.install-download { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; margin-top: 1.2rem; padding: .65rem 1rem; border: 1px solid #603396; border-radius: 10px; background: var(--purple); color: #fff; font-weight: 700; text-decoration: none; }
.install-download .site-icon { width: 20px; height: 20px; }
.install-download:hover { background: var(--purple-strong); }
.install-version { margin: .7rem 0 0; color: var(--muted); font-size: .875rem; }
.install-compatibility { max-width: 34rem; margin: 1rem 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.install-steps { margin: 0; padding: 0; list-style: none; color: var(--muted); line-height: 1.55; }
.install-steps li { position: relative; min-height: 53px; padding: .9rem 0 .9rem 2.8rem; border-bottom: 1px solid #dfd2e6; }
.install-step-number { position: absolute; top: .68rem; left: 0; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #ddcbe7; border-radius: 8px; background: #fffafb; color: var(--purple-strong); font-size: .875rem; font-weight: 750; }
.install-steps strong { color: var(--ink); }
.install-steps code { padding: .11em .28em; border-radius: 4px; background: #fff9ff; color: #54336e; font-size: .9em; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 91px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; color: var(--ink); font-size: 1.4rem; font-weight: 800; letter-spacing: -.055em; text-decoration: none; }
.brand img { image-rendering: pixelated; }
.footer-inner p { color: var(--muted); margin: 0; font-size: .875rem; }
.text-link { color: var(--purple-strong); font-size: .94rem; font-weight: 700; text-underline-offset: .24em; text-decoration-color: #bc9cd9; }
.text-link:hover { text-decoration-color: currentColor; }

@media (max-width: 720px) {
  .about-section .shell, .install-layout { grid-template-columns: 1fr; }
  .pilot-section { grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; }
  #mascot-corner { right: max(10px, env(safe-area-inset-right)); bottom: max(9px, env(safe-area-inset-bottom)); }
  .hero-stars i { scale: .8; }
  .demo-section { padding-top: 22px; }
  .section-intro { margin-bottom: .8rem; }
  .about-intro > p:not(.eyebrow) { margin-top: 17px; }
  .footer-inner { padding-block: 18px; flex-wrap: wrap; gap: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-stars i { opacity: .75; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
