:root {
  --ink: #22211f;
  --muted: #68635c;
  --paper: #f3ecdf;
  --paper-strong: #fffaf0;
  --line: rgba(35, 31, 27, 0.13);
  --accent: #d84d2f;
  --accent-dark: #8f3326;
  --blue: #44748d;
  --green: #59785b;
  --wallpaper-a: #5d796f;
  --wallpaper-b: #b98963;
  --wallpaper-c: #e7d8b4;
  --shadow: 0 24px 70px rgba(43, 35, 25, 0.22);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 420vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 28rem),
    radial-gradient(circle at 12% 10%, rgba(216, 77, 47, 0.1), transparent 22rem),
    radial-gradient(circle at 88% 18%, rgba(68, 116, 141, 0.12), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: rgba(34, 33, 31, 0.86);
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(35, 31, 27, 0.11);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(43, 35, 25, 0.08);
  text-decoration: none;
}

.brand {
  font-weight: 760;
}

.brand-icon {
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(43, 35, 25, 0.16);
}

.topbar nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--ink);
}

.stage {
  position: relative;
  display: grid;
  min-height: 320vh;
  align-items: start;
  justify-items: center;
  padding: 86px clamp(14px, 3vw, 44px) 36px;
}

.desktop-shell {
  position: sticky;
  top: 86px;
  width: min(1180px, 100%);
  aspect-ratio: 16 / 10;
  min-height: 610px;
  border: 1px solid rgba(35, 31, 27, 0.18);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.66);
  box-shadow: var(--shadow);
  padding: 10px;
}

.desktop {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 590px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 82%, rgba(255, 250, 240, 0.34), transparent 18rem),
    linear-gradient(130deg, rgba(255, 250, 240, 0.08) 0 12%, transparent 12% 22%, rgba(255, 250, 240, 0.1) 22% 34%, transparent 34%),
    linear-gradient(155deg, var(--wallpaper-a) 0%, #779176 28%, var(--wallpaper-b) 58%, var(--wallpaper-c) 100%);
  background-size: auto;
  isolation: isolate;
}

.desktop::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(34, 33, 31, 0.06), rgba(34, 33, 31, 0.18)),
    radial-gradient(circle at 55% 52%, rgba(255, 250, 240, 0.28), transparent 38%);
  content: "";
}

.desktop-icons {
  position: absolute;
  top: 72px;
  right: 38px;
  z-index: 2;
  display: grid;
  gap: 16px;
  width: 94px;
  color: rgba(255, 250, 240, 0.94);
  font-size: 11px;
  font-weight: 720;
  text-align: center;
  text-shadow: 0 1px 8px rgba(35, 31, 27, 0.32);
}

.desktop-icons span {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.desktop-icons i {
  display: block;
  width: 42px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.38)),
    linear-gradient(135deg, #f0cc74, #d6964e);
  box-shadow: 0 10px 24px rgba(43, 35, 25, 0.16);
}

.menu-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(43, 35, 25, 0.12);
  font-size: 13px;
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.traffic span:nth-child(1) {
  background: #e86752;
}

.traffic span:nth-child(2) {
  background: #e3b847;
}

.traffic span:nth-child(3) {
  background: #67a75d;
}

.menu-title,
.clock {
  font-weight: 680;
}

.window {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(43, 35, 25, 0.18);
}

.glass-window {
  background: rgba(255, 250, 240, 0.82);
}

.hero-copy {
  left: auto;
  right: 34px;
  bottom: 86px;
  z-index: 5;
  width: 280px;
  padding: 18px;
}

.hero-copy {
  top: auto;
  left: auto;
}

.hero-copy h1 {
  margin-bottom: 10px;
  font-size: 31px;
  line-height: 1;
}

.eyebrow,
.window-label {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  max-width: 390px;
  font-size: clamp(44px, 5.3vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 220px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button,
.beta-form button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.button.primary,
.beta-form button {
  background: var(--ink);
  color: #fffaf0;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
}

.music-widget {
  top: 70px;
  right: 34px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  width: 270px;
  padding: 16px;
}

.music-widget strong,
.music-widget small {
  display: block;
}

.music-widget small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.round-button {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.equalizer {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 5px;
  height: 24px;
}

.equalizer span {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(216, 77, 47, 0.34);
  transform-origin: bottom;
}

.music-on .equalizer span {
  animation: meter 520ms ease-in-out infinite alternate;
}

.music-on .equalizer span:nth-child(2) {
  animation-delay: 120ms;
}

.music-on .equalizer span:nth-child(3) {
  animation-delay: 240ms;
}

.music-on .equalizer span:nth-child(4) {
  animation-delay: 80ms;
}

.doc-window {
  left: 58px;
  top: 82px;
  z-index: 4;
  width: min(800px, calc(100% - 372px));
  min-width: 560px;
  bottom: 28px;
}

.doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.doc-scroll {
  overflow-y: auto;
  height: calc(100% - 42px);
  padding: 30px 34px 34px;
  scroll-behavior: auto;
  scrollbar-width: thin;
}

.doc-scroll section {
  min-height: 390px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(35, 31, 27, 0.1);
}

.doc-scroll section + section {
  padding-top: 28px;
}

.doc-scroll h2,
.content-section h2,
.beta-section h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.doc-scroll h2 {
  font-size: clamp(36px, 3.9vw, 55px);
}

.doc-scroll p:not(.eyebrow),
.content-section p,
.beta-section p {
  color: var(--muted);
  line-height: 1.62;
}

.doc-scroll ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.doc-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  font-weight: 760;
  cursor: pointer;
}

.pet {
  position: absolute;
  z-index: 8;
  width: 116px;
  height: 116px;
  border: 0;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 18px 12px rgba(43, 35, 25, 0.22));
  cursor: pointer;
  transform: translate3d(0, 0, 0);
}

.pet:hover,
.pet:focus-visible {
  outline: none;
  z-index: 12;
}

.sprite,
.mini-sprite {
  display: block;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  image-rendering: auto;
}

.pet-bubble,
.preview-panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 8px);
  min-width: 136px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 12px 34px rgba(43, 35, 25, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.preview-panel {
  bottom: calc(100% - 22px);
  transform: translate(-50%, 10px);
}

.pet-bubble {
  padding: 8px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.preview-panel {
  display: flex;
  align-items: start;
  gap: 8px;
  min-width: 342px;
  padding: 10px;
  background: rgba(255, 250, 240, 0.96);
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  pointer-events: none;
}

.pet:hover .preview-panel,
.pet:focus-visible .preview-panel {
  pointer-events: auto;
}

.preview-panel strong {
  align-self: center;
  color: var(--ink);
  font-size: 13px;
  min-width: 54px;
}

.wide-preview {
  min-width: 404px;
}

.preview-card {
  display: grid;
  gap: 7px;
  width: 124px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.preview-card:hover {
  border-color: rgba(216, 77, 47, 0.42);
  background: rgba(216, 77, 47, 0.1);
}

.preview-card b {
  display: block;
  height: 70px;
  border-radius: 5px;
  border: 1px solid rgba(35, 31, 27, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    #e8ddc7;
  overflow: hidden;
  position: relative;
}

.preview-card b::before,
.preview-card b::after {
  position: absolute;
  content: "";
}

.preview-card em {
  overflow: hidden;
  color: var(--ink);
  font-style: normal;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-preview b {
  background:
    linear-gradient(90deg, rgba(216, 77, 47, 0.2) 0 18%, transparent 18%),
    linear-gradient(135deg, #2b2927, #5a584f);
}

.music-preview b::before {
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 26px;
  border-radius: 14px;
  background: linear-gradient(90deg, #d84d2f, #f3c46b, #fffaf0);
}

.playlist-preview b {
  background: linear-gradient(135deg, #314850, #d5a45b);
}

.playlist-preview b::before {
  inset: 15px 18px;
  border-radius: 6px;
  background: repeating-linear-gradient(180deg, rgba(255, 250, 240, 0.88) 0 4px, transparent 4px 10px);
}

.calendar-preview b {
  background: #fffaf0;
}

.calendar-preview b::before {
  inset: 0 0 auto;
  height: 18px;
  background: #d84d2f;
}

.calendar-preview b::after {
  inset: 29px 13px 12px;
  background:
    linear-gradient(90deg, rgba(68, 116, 141, 0.3) 0 24%, transparent 24% 34%, rgba(68, 116, 141, 0.3) 34% 58%, transparent 58% 68%, rgba(68, 116, 141, 0.3) 68%),
    linear-gradient(180deg, transparent 0 45%, rgba(35, 31, 27, 0.1) 45% 49%, transparent 49%);
}

.notes-preview b,
.sketch-preview b {
  background: #fffaf0;
}

.notes-preview b::before,
.sketch-preview b::before {
  inset: 16px;
  background: repeating-linear-gradient(180deg, rgba(35, 31, 27, 0.32) 0 2px, transparent 2px 10px);
}

.sketch-preview b::after {
  left: 24px;
  bottom: 16px;
  width: 52px;
  height: 30px;
  border: 3px solid rgba(216, 77, 47, 0.48);
  border-top-color: transparent;
  border-radius: 50%;
}

.code-preview b {
  background: #242424;
}

.code-preview b::before {
  inset: 13px;
  background: repeating-linear-gradient(180deg, #91c483 0 3px, transparent 3px 10px);
}

.terminal-preview b {
  background: #171717;
}

.terminal-preview b::before {
  left: 14px;
  top: 14px;
  width: 70px;
  height: 38px;
  background: repeating-linear-gradient(180deg, #e7d8b4 0 3px, transparent 3px 12px);
}

.call-preview b {
  background: linear-gradient(135deg, #44748d, #8ab0a8);
}

.call-preview b::before {
  left: 36px;
  top: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.72);
}

.pet:hover .pet-bubble,
.pet:focus-visible .pet-bubble {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pet:hover .preview-panel,
.pet:focus-visible .preview-panel {
  opacity: 1;
  transform: translate(-50%, 0);
}

.active-pet {
  filter:
    drop-shadow(0 0 14px rgba(255, 250, 240, 0.92))
    drop-shadow(0 18px 12px rgba(43, 35, 25, 0.22));
}

.pet-music {
  right: 318px;
  bottom: 78px;
}

.pet-calendar {
  right: 126px;
  top: 212px;
}

.pet-code {
  left: 51%;
  top: 50%;
}

.pet-notes {
  left: 34%;
  bottom: 74px;
}

.pet-calls {
  right: 66px;
  top: 346px;
}

.music-notes {
  position: absolute;
  z-index: 11;
  color: #fffaf0;
  font-size: 19px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(43, 35, 25, 0.34);
  animation: float-note 920ms ease-out forwards;
  pointer-events: none;
}

.content-section,
.beta-section {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto 120px;
  padding-top: 80px;
}

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

.pet-grid article,
.meet-grid article,
.beta-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
  box-shadow: 0 16px 42px rgba(43, 35, 25, 0.11);
}

.pet-grid article,
.meet-grid article {
  padding: 18px;
}

.mini-sprite {
  width: 92px;
  height: 92px;
  margin-bottom: 8px;
  filter: drop-shadow(0 10px 8px rgba(43, 35, 25, 0.18));
}

.meet-grid img {
  display: block;
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 10px 8px rgba(43, 35, 25, 0.18));
}

.pet-grid h3,
.meet-grid h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.pet-grid p,
.meet-grid p {
  margin-bottom: 0;
  font-size: 14px;
}

.beta-section {
  align-items: center;
  margin-bottom: 72px;
}

.beta-form {
  padding: 22px;
}

.beta-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.beta-form div {
  display: flex;
  gap: 8px;
}

.beta-form input {
  min-width: 0;
  flex: 1;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.64);
}

.beta-form p {
  margin: 10px 0 0;
  font-size: 13px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.footer a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(34, 33, 31, 0.34);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none;
}

.success-modal {
  position: relative;
  width: min(440px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.95);
  box-shadow: 0 28px 80px rgba(43, 35, 25, 0.28);
  padding: 28px;
}

.success-modal h2 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.02;
}

.success-modal p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.56;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: transparent;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 15px;
  left: 9px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.hero-copy h1 {
  max-width: 220px;
  margin-bottom: 10px;
  font-size: 31px;
  line-height: 1;
}

@keyframes meter {
  from {
    transform: scaleY(0.55);
  }

  to {
    transform: scaleY(1.85);
  }
}

@keyframes float-note {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.86);
  }

  18% {
    opacity: 1;
  }

  to {
    opacity: 0;
    transform: translateY(-70px) scale(1.08);
  }
}

@media (max-width: 900px) {
  body {
    min-height: auto;
  }

  .topbar {
    position: absolute;
  }

  .stage {
    position: relative;
    min-height: auto;
    padding-top: 84px;
  }

  .desktop-shell {
    position: relative;
    top: auto;
    aspect-ratio: auto;
    min-height: 830px;
  }

  .desktop {
    min-height: 810px;
  }

  .hero-copy,
  .music-widget,
  .doc-window {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .hero-copy {
    top: 72px;
    bottom: auto;
    right: 18px;
    left: 18px;
  }

  .music-widget {
    top: 356px;
  }

  .doc-window {
    top: 488px;
    bottom: auto;
    min-width: 0;
    height: 292px;
  }

  .pet {
    width: 82px;
    height: 82px;
  }

  .pet-music {
    right: 40px;
    bottom: 72px;
  }

  .pet-calendar {
    right: 40px;
    top: 302px;
  }

  .pet-code {
    left: 42%;
    top: 45%;
  }

  .pet-notes {
    left: 34px;
    bottom: 82px;
  }

  .pet-calls {
    left: 39%;
    bottom: 152px;
  }

  .desktop-icons {
    display: none;
  }

  .preview-panel {
    min-width: min(342px, calc(100vw - 40px));
    transform: translate(-50%, 12px) scale(0.88);
  }

  .preview-card {
    width: 100px;
  }

  .content-section,
  .beta-section,
  .pet-grid,
  .meet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar nav {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    padding: 20px;
  }

  .beta-form div {
    display: grid;
  }

  .footer {
    display: grid;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
