:root {
  --bg: #fffdf7;
  --ink: #121721;
  --muted: #64707b;
  --line: #e5e0d4;
  --paper: #ffffff;
  --amber: #d17a00;
  --amber-dark: #9b5700;
  --mint: #8bd8cf;
  --mint-dark: #28766f;
  --green: #143f3a;
  --shadow: 0 22px 60px rgba(31, 39, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 12%, rgba(139, 216, 207, 0.35), transparent 26%),
    radial-gradient(circle at 16% 4%, rgba(255, 210, 121, 0.32), transparent 24%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 10px max(22px, calc((100vw - 1180px) / 2));
  background: rgba(255, 253, 247, 0.88);
  border-bottom: 1px solid rgba(229, 224, 212, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}

.brand span {
  display: grid;
}

.brand strong {
  font-size: 20px;
  line-height: 1;
}

.brand small {
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
}

.site-header nav {
  display: flex;
  gap: 28px;
  color: #34404b;
  font-size: 14px;
  font-weight: 800;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--amber-dark);
  outline: none;
}

.header-download,
.button,
.prompt-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
}

.header-download {
  padding: 0 16px;
  color: var(--amber-dark);
  background: #fff6e4;
  border: 1px solid rgba(209, 122, 0, 0.35);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.9fr);
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 44px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 56px 0 46px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.mini-label {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: var(--amber-dark);
  background: #fff3d5;
  border: 1px solid rgba(209, 122, 0, 0.22);
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 20px;
  font-size: clamp(45px, 6.2vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 580px;
  margin-bottom: 28px;
  color: #46515d;
  font-size: clamp(17px, 1.5vw, 21px);
}

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

.button {
  padding: 0 19px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(180deg, #e18b09, #bd6d00);
  box-shadow: 0 16px 26px rgba(189, 109, 0, 0.24);
}

.button.secondary {
  color: #17212b;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(229, 224, 212, 0.95);
}

.button:hover,
.button:focus-visible,
.header-download:hover,
.header-download:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.package-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 26px 0 0;
}

.package-facts div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(229, 224, 212, 0.95);
  border-radius: 8px;
}

.package-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.package-facts dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 950;
}

.pet-stage {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.6)),
    radial-gradient(circle at 76% 24%, rgba(139, 216, 207, 0.38), transparent 28%);
  border: 1px solid rgba(229, 224, 212, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pet-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(40, 118, 111, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 118, 111, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(135deg, transparent 0%, #000 54%, transparent 100%);
  pointer-events: none;
}

.stage-top,
.stage-controls,
.stage-screen {
  position: relative;
  z-index: 1;
}

.stage-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.stage-top span {
  font-size: 22px;
  font-weight: 950;
}

.stage-top small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.stage-screen {
  display: grid;
  place-items: center;
  min-height: 382px;
}

.stage-screen img {
  width: auto;
  max-width: min(92%, 388px);
  max-height: 360px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 20px 18px rgba(24, 31, 40, 0.18));
}

.stage-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stage-controls button {
  min-height: 42px;
  color: #163a36;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(40, 118, 111, 0.22);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.stage-controls button.active {
  color: #ffffff;
  background: var(--green);
}

.actions-section,
.install-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2,
.install-panel h2 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 390px;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 700;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.action-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 298px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(229, 224, 212, 0.95);
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease;
}

.action-card:hover,
.action-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(40, 118, 111, 0.35);
  box-shadow: 0 16px 34px rgba(31, 39, 48, 0.12);
}

.action-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  image-rendering: pixelated;
  background: linear-gradient(180deg, #ffffff, #f2fbfa);
  border-radius: 8px;
}

.action-card h3 {
  margin-bottom: 5px;
  font-size: 20px;
}

.action-card p,
.install-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 650;
}

.install-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: 26px;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 216, 207, 0.28), transparent 32%),
    linear-gradient(135deg, #153b36, #10221f);
  border-radius: 8px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.install-panel .mini-label {
  color: #fff4d6;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.install-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.prompt-box {
  display: grid;
  gap: 12px;
}

.prompt-box pre {
  min-height: 170px;
  max-height: 270px;
  margin: 0;
  overflow: auto;
  padding: 16px;
  color: #173430;
  background: #f4fbfa;
  border: 1px solid rgba(139, 216, 207, 0.45);
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  white-space: pre-wrap;
}

.prompt-box button {
  justify-self: start;
  padding: 0 16px;
  color: #143f3a;
  background: var(--mint);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-footer a {
  color: var(--amber-dark);
  font-weight: 950;
}

@media (max-width: 980px) {
  .site-header {
    padding-inline: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .pet-stage {
    order: -1;
  }

  .stage-screen {
    min-height: 300px;
  }

  .stage-screen img {
    max-width: min(76%, 330px);
    max-height: 276px;
  }

  .section-heading {
    display: grid;
  }

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

  .install-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
  }

  .site-header nav {
    display: none;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 18px;
  }

  .header-download {
    min-height: 40px;
    padding-inline: 12px;
  }

  .hero,
  .actions-section,
  .install-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    gap: 24px;
    padding: 24px 0 30px;
  }

  .pet-stage {
    padding: 12px;
  }

  .stage-top {
    align-items: start;
  }

  .stage-top small {
    max-width: 185px;
    text-align: right;
  }

  .stage-screen {
    min-height: 238px;
  }

  .stage-screen img {
    max-width: min(88%, 280px);
    max-height: 220px;
  }

  .stage-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 38px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions,
  .package-facts {
    grid-template-columns: 1fr;
    display: grid;
  }

  .button {
    width: 100%;
  }

  .actions-section,
  .install-section {
    padding-block: 24px;
  }

  .section-heading h2,
  .install-panel h2 {
    font-size: 28px;
  }

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

  .action-card {
    grid-template-columns: 104px 1fr;
    align-items: center;
    min-height: 132px;
  }

  .action-card img {
    width: 104px;
    height: 104px;
  }

  .install-panel {
    padding: 18px;
  }

  .prompt-box pre {
    max-height: 310px;
    font-size: 12px;
  }

  .prompt-box button {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }
}
