:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --page-glow-1: rgba(180, 116, 55, 0.16);
  --page-glow-2: rgba(122, 83, 61, 0.18);
  --panel: #1a1311;
  --panel-2: #2b1d19;
  --control: #3a2721;
  --cream: #f8eeea;
  --text: #161616;
  --muted: #69625f;
  --dim: #918a86;
  --line: #312724;
  --app-bg: #000000;
  --app-border: #d9d2ce;
  --app-shadow: rgba(47, 31, 25, 0.2);
  --surface-shadow: rgba(47, 31, 25, 0.22);
  --desktop-text: #ffffff;
  --sidebar-text: #f8f5f3;
  --active-row: rgba(255, 255, 255, 0.12);
  --player-bg: linear-gradient(180deg, #31211d, #241815);
  --phone-border: #151515;
  --brand-mark-bg: #17110f;
  --brand-mark-fg: #f8eeea;
  --badge-filter: none;
  --amber: #8d551f;
  --amber-bright: #b87824;
  --radius: 28px;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --page-glow-1: rgba(135, 82, 32, 0.2);
    --page-glow-2: rgba(70, 42, 28, 0.46);
    --text: #ffffff;
    --muted: #aaa3a0;
    --dim: #67605e;
    --app-border: #292929;
    --app-shadow: rgba(0, 0, 0, 0.62);
    --surface-shadow: rgba(0, 0, 0, 0.64);
    --phone-border: #121212;
    --brand-mark-bg: #f7ebe7;
    --brand-mark-fg: #160f0d;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background:
    radial-gradient(circle at 76% 10%, var(--page-glow-1), transparent 27rem),
    radial-gradient(circle at 15% 92%, var(--page-glow-2), transparent 34rem),
    var(--bg);
  color: var(--text);
}

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

.page-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vh, 40px) clamp(18px, 3vw, 40px);
  overflow: hidden;
}

.hero {
  width: min(1180px, 100%);
  height: min(760px, calc(100svh - clamp(28px, 6vh, 80px)));
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(26px, 4.5vw, 70px);
}

.copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin-bottom: clamp(28px, 6vh, 74px);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 4px;
  padding: 9px;
  border-radius: 13px;
  background: var(--brand-mark-bg);
  color: var(--brand-mark-fg);
}

.brand-mark span {
  display: block;
  border-radius: 999px 999px 5px 5px;
  background: currentColor;
}

.brand-mark span:nth-child(1) {
  height: 13px;
}

.brand-mark span:nth-child(2) {
  height: 21px;
}

.brand-mark span:nth-child(3) {
  height: 16px;
}

.headline-block {
  max-width: 520px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(52px, min(6.7vw, 12.2vh), 104px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 700;
  max-width: 8.6em;
}

.intro {
  margin: clamp(16px, 2.6vh, 24px) 0 0;
  max-width: 450px;
  color: var(--muted);
  font-size: clamp(17px, min(1.7vw, 2.8vh), 23px);
  line-height: 1.35;
}

.download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3.6vh, 36px);
}

.badge-link {
  display: inline-flex;
  height: 62px;
  transition: transform 160ms ease, filter 160ms ease;
}

.badge-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.store-badge {
  display: block;
  width: auto;
  height: 100%;
}

.note {
  margin: clamp(10px, 2vh, 18px) 0 0;
  color: var(--dim);
  font-size: 14px;
  font-weight: 600;
}

.note a {
  color: #e5a00d;
}

.note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.screenshots {
  position: relative;
  height: min(600px, 78vh);
  min-height: 470px;
}

.desktop-shot {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(760px, 100%);
  aspect-ratio: 1.55;
  transform: translateY(-50%);
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: 26px;
  background: var(--app-bg);
  color: var(--desktop-text);
  box-shadow: 0 30px 90px var(--app-shadow);
}

.traffic-lights {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

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

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

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

.traffic-lights span:nth-child(3) {
  background: #28c955;
}

.desktop-toolbar {
  position: absolute;
  top: 14px;
  left: 210px;
  right: 22px;
  display: grid;
  grid-template-columns: 42px 42px minmax(170px, 1fr) 48px;
  gap: 10px;
  z-index: 2;
}

.nav-pill,
.home-pill,
.search-pill {
  height: 42px;
  border-radius: 15px;
  background: var(--panel-2);
}

.search-pill {
  display: flex;
  align-items: center;
  padding-left: 18px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
}

.home-pill {
  background: var(--cream);
}

.desktop-body {
  height: calc(100% - 72px);
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 26px;
  padding: 86px 18px 0;
}

.desktop-body aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding: 18px 16px;
  border-radius: 17px;
  background: var(--panel-2);
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 700;
}

.desktop-body aside span {
  white-space: nowrap;
}

.desktop-body aside .active {
  padding: 8px 10px;
  margin: -8px -8px 0;
  border-radius: 7px;
  background: var(--active-row);
}

.album-area {
  min-width: 0;
}

.album-area h2 {
  margin: 0 0 18px;
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0;
}

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

.album-card {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 14px;
  border-radius: 13px;
  background:
    linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.72)),
    linear-gradient(135deg, #ffef3f, #f22162 48%, #111 49%);
  font-size: 16px;
  line-height: 1.02;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.album-card b,
.album-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.art-2 {
  background:
    linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.72)),
    repeating-linear-gradient(135deg, #11351e 0 12px, #3499df 12px 24px);
}

.art-3 {
  background:
    linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 50% 42%, #d7e4df 0 12%, #7f8d91 13% 42%, #181818 43%);
}

.art-4 {
  background:
    linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.72)),
    linear-gradient(135deg, #f4f0db, #2a2a2a 48%, #c2361e);
}

.player-bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 56px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 156px;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 10px;
  border-radius: 18px;
  background: var(--player-bg);
}

.mini-art {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, #14341f 0 6px, #3a9be2 6px 12px);
}

.player-bar strong,
.player-bar span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-bar strong {
  font-size: 16px;
  line-height: 1.05;
}

.player-bar span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.05;
}

.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.player-controls span {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--muted);
}

.player-controls .play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.phone-shot {
  position: absolute;
  right: min(5vw, 46px);
  bottom: 0;
  width: clamp(180px, 20vw, 255px);
  margin: 0;
  overflow: hidden;
  border-radius: 34px;
  border: 8px solid var(--phone-border);
  background: #fff;
  box-shadow: 0 24px 70px var(--surface-shadow);
}

.phone-shot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .page-shell {
    overflow: visible;
  }

  .hero {
    min-height: auto;
    height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .brand {
    margin-bottom: 52px;
  }

  .screenshots {
    height: auto;
    min-height: 560px;
  }

  .desktop-shot {
    left: 0;
    right: auto;
    width: 100%;
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  .brand {
    margin-bottom: 22px;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(50px, 11.3vh, 86px);
    line-height: 0.91;
  }

  .intro {
    max-width: 430px;
    line-height: 1.26;
  }

  .download-actions {
    margin-top: 18px;
  }

  .badge-link {
    height: 54px;
  }

  .note {
    margin-top: 10px;
  }

  .screenshots {
    height: min(520px, 76vh);
    min-height: 430px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 22px;
  }

  .brand {
    margin-bottom: 44px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .intro {
    font-size: 18px;
  }

  .download-actions {
    width: 100%;
  }

  .badge-link {
    flex: 0 0 auto;
  }

  .screenshots {
    min-height: 430px;
  }

  .desktop-shot {
    aspect-ratio: 0.95;
    border-radius: 22px;
  }

  .desktop-toolbar {
    left: 18px;
    grid-template-columns: 42px minmax(0, 1fr) 48px;
  }

  .desktop-toolbar .nav-pill:first-child {
    display: none;
  }

  .desktop-body {
    grid-template-columns: 1fr;
    padding-top: 82px;
  }

  .desktop-body aside {
    display: none;
  }

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

  .player-bar {
    grid-template-columns: 42px minmax(0, 1fr) 44px;
  }

  .player-controls span:not(.play) {
    display: none;
  }

  .phone-shot {
    right: 16px;
    width: 150px;
    border-width: 6px;
    border-radius: 28px;
  }
}
