:root {
  color-scheme: dark;
  --ink: #f3f7df;
  --muted: #a8b9ae;
  --deep: #04100f;
  --panel: rgba(8, 30, 27, 0.78);
  --panel-strong: #0b2622;
  --line: rgba(186, 232, 199, 0.16);
  --green: #9be83f;
  --green-strong: #b8ff58;
  --red: #ff5e46;
  --yellow: #ffd85c;
  --radius: 28px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(71, 171, 94, 0.12), transparent 32rem),
    radial-gradient(circle at 92% 3%, rgba(255, 94, 70, 0.08), transparent 28rem),
    linear-gradient(160deg, #061715 0%, #020807 52%, #071412 100%);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(154, 232, 63, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 232, 63, 0.026) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
.button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(184, 255, 88, 0.55);
  border-radius: 50% 50% 45% 55%;
  color: var(--green-strong);
  font-family: Georgia, serif;
  font-size: 1.14rem;
  transform: rotate(-7deg);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--green-strong);
}

.hero {
  display: grid;
  min-height: calc(100svh - 84px);
  align-items: center;
  grid-template-columns: minmax(420px, 0.98fr) minmax(390px, 1.02fr);
  gap: clamp(42px, 7vw, 92px);
  padding: 56px 0 72px;
}

.pet-stage {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  align-content: center;
  padding: 58px 26px 28px;
  border: 1px solid rgba(184, 255, 88, 0.21);
  border-radius: 44px 44px 120px 44px;
  background:
    radial-gradient(circle at 50% 39%, rgba(141, 226, 60, 0.19), transparent 34%),
    radial-gradient(circle at 49% 92%, rgba(14, 95, 73, 0.72), transparent 35%),
    linear-gradient(155deg, rgba(13, 53, 46, 0.96), rgba(5, 22, 20, 0.97));
  box-shadow: var(--shadow), inset 0 0 80px rgba(2, 8, 7, 0.58);
  isolation: isolate;
}

.pet-stage::before,
.pet-stage::after {
  position: absolute;
  border: 1px solid rgba(184, 255, 88, 0.11);
  border-radius: 50%;
  content: "";
}

.pet-stage::before {
  top: 18%;
  right: 11%;
  width: 18px;
  height: 18px;
  box-shadow: -330px 210px 0 5px rgba(184, 255, 88, 0.035), -280px -30px 0 -4px rgba(184, 255, 88, 0.16), -30px 190px 0 -5px rgba(184, 255, 88, 0.2);
}

.pet-stage::after {
  right: -28%;
  bottom: -42%;
  width: 580px;
  height: 580px;
  box-shadow: 0 0 80px rgba(155, 232, 63, 0.06);
}

.stage-topline,
.stage-caption {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stage-topline {
  top: 24px;
  right: 24px;
  left: 24px;
}

.stage-caption {
  right: 70px;
  bottom: 26px;
  left: 36px;
  color: rgba(243, 247, 223, 0.74);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-caption [data-frame-counter] {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid rgba(243, 247, 223, 0.08);
  border-radius: 999px;
  background: rgba(2, 12, 10, 0.42);
  white-space: nowrap;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(243, 247, 223, 0.66);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(2, 8, 7, 0.35);
  font-weight: 800;
  transition: border-color 160ms ease, transform 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--green);
  transform: scale(1.05);
}

.pet-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.55));
}

.stage-floor {
  position: absolute;
  z-index: 0;
  bottom: 88px;
  left: 50%;
  width: 56%;
  height: 56px;
  border: 1px solid rgba(155, 232, 63, 0.17);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(154, 232, 63, 0.12), rgba(3, 10, 9, 0) 69%);
  transform: translateX(-50%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pet-switcher-region {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.pet-switcher-label {
  color: rgba(168, 185, 174, 0.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pet-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 12, 10, 0.52);
}

.pet-option {
  display: inline-flex;
  min-height: 36px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 720;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.pet-option:hover,
.pet-option:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.pet-option[aria-pressed="true"] {
  color: #102008;
  background: var(--green-strong);
}

.pet-option-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(243, 247, 223, 0.12);
}

.pet-option-mark-bulko {
  background: linear-gradient(135deg, #8dff29 0 52%, #ff4b35 53%);
}

.pet-option-mark-shepard {
  background: linear-gradient(135deg, #20282d 0 52%, #e6544a 53%);
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(4.8rem, 10vw, 8.6rem);
  text-shadow: 0 8px 40px rgba(155, 232, 63, 0.11);
}

body[data-pet="shepard"] h1 {
  font-size: clamp(4rem, 7vw, 6rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.lede {
  max-width: 600px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.animation-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 30px;
}

.animation-chip {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: rgba(10, 39, 35, 0.54);
  font-size: 0.86rem;
  font-weight: 650;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.animation-chip:hover,
.animation-chip:focus-visible {
  border-color: rgba(155, 232, 63, 0.5);
  color: var(--ink);
  transform: translateY(-1px);
}

.animation-chip[aria-pressed="true"] {
  border-color: var(--green);
  color: #102008;
  background: var(--green-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 20px;
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #102008;
  background: var(--green-strong);
  box-shadow: 0 12px 30px rgba(155, 232, 63, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #cbff83;
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(10, 39, 35, 0.58);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(155, 232, 63, 0.5);
}

.button-meta {
  color: rgba(243, 247, 223, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.install-note {
  min-height: 24px;
  margin: 13px 0 0;
  color: rgba(168, 185, 174, 0.76);
  font-size: 0.78rem;
}

.animations-section {
  padding: 110px 0 90px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  align-items: end;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  margin-bottom: 42px;
}

.section-heading > p {
  margin: 0 0 3px;
  color: var(--muted);
}

.animation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.animation-card {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 48%, rgba(155, 232, 63, 0.085), transparent 38%),
    rgba(7, 25, 23, 0.72);
  transition: border-color 180ms ease, transform 180ms ease;
}

.animation-card:hover {
  border-color: rgba(155, 232, 63, 0.36);
  transform: translateY(-3px);
}

.animation-card canvas {
  display: block;
  width: 100%;
  height: 225px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.43));
}

.animation-card-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 18px 18px;
}

.animation-card-copy strong {
  font-size: 0.93rem;
}

.animation-card-copy span {
  color: rgba(168, 185, 174, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.download-section {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(44px, 8vw, 100px);
  padding: 98px clamp(24px, 5vw, 70px);
  border: 1px solid rgba(155, 232, 63, 0.2);
  border-radius: 42px 120px 42px 42px;
  background:
    linear-gradient(125deg, rgba(12, 53, 44, 0.92), rgba(7, 25, 23, 0.8)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.download-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 24px 0 32px;
  color: var(--muted);
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  margin: 0;
}

.specs div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.specs dt {
  color: rgba(168, 185, 174, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.specs dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.download-card {
  padding: 24px;
  border: 1px solid rgba(243, 247, 223, 0.13);
  border-radius: 26px;
  background: rgba(2, 12, 10, 0.58);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.2);
}

.package-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.file-glyph {
  display: grid;
  width: 54px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(155, 232, 63, 0.28);
  border-radius: 8px 16px 8px 8px;
  color: var(--green-strong);
  background: rgba(155, 232, 63, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.package-title div {
  display: grid;
  gap: 4px;
}

.package-title strong {
  font-size: 1.05rem;
}

.package-title span {
  color: var(--muted);
  font-size: 0.78rem;
}

.button-wide {
  width: 100%;
}

.file-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
}

.file-links a {
  color: var(--muted);
  font-size: 0.78rem;
  text-underline-offset: 4px;
}

.file-links a:hover,
.file-links a:focus-visible {
  color: var(--green-strong);
}

footer {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(168, 185, 174, 0.58);
  font-size: 0.76rem;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 20px 2px 0;
  }

  .pet-stage {
    min-height: 560px;
  }

  .section-heading,
  .download-section {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 24px;
  }

  .animation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 70px;
  }

  nav {
    gap: 14px;
  }

  nav a:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 34px;
    padding: 46px 0 62px;
  }

  h1 {
    font-size: clamp(4.2rem, 25vw, 6rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .pet-stage {
    min-height: 470px;
    padding-inline: 8px;
    border-radius: 30px 30px 76px 30px;
  }

  .stage-topline {
    right: 18px;
    left: 18px;
  }

  .stage-caption {
    right: 48px;
    bottom: 21px;
    left: 24px;
  }

  .pet-switcher-region {
    display: grid;
    justify-items: start;
    gap: 8px;
  }

  body[data-pet="shepard"] h1 {
    font-size: clamp(3.3rem, 17vw, 4.6rem);
  }

  .animations-section {
    padding: 80px 0 70px;
  }

  .animation-grid {
    grid-template-columns: 1fr;
  }

  .animation-card {
    min-height: 260px;
  }

  .download-section {
    padding: 64px 20px;
    border-radius: 30px 72px 30px 30px;
  }

  .specs {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .file-links,
  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
