:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --paper: #fbfaf6;
  --paper-soft: rgba(255, 255, 255, 0.72);
  --ink: #171515;
  --muted: #807b73;
  --line: rgba(22, 20, 18, 0.1);
  --accent: #e35842;
  --gold: #f3b239;
  --shadow: rgba(43, 34, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg);
  background-image: image-set(
    url("assets/bg2.jpg") type("image/jpeg"),
    url("assets/bg2.png") type("image/png")
  );
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  width: min(calc(100% - 32px), 650px);
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(255, 214, 153, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(31, 24, 17, 0.84), rgba(12, 10, 8, 0.72));
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 235, 196, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(22px);
}

.brand,
.header-actions,
.app-store-button,
.header-app-store-button {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 9px;
  padding: 6px 10px;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff7ea;
  white-space: nowrap;
}

.brand-icon,
.download-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 232, 196, 0.14);
}

.header-actions {
  margin-left: auto;
  gap: 7px;
}

.header-app-store-button {
  width: 120px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.28));
}

.header-app-store-button img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 106px clamp(16px, 4vw, 58px) 72px;
  text-align: center;
}

.hero-layout {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: start;
  width: min(100%, 1120px);
  padding-left: clamp(24px, 5vw, 72px);
  gap: clamp(32px, 6vw, 92px);
}

.hero-left {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-right {
  position: relative;
  min-width: 0;
}

.hero h1 {
  position: relative;
  z-index: 4;
  max-width: 750px;
  margin-bottom: 0;
  color: #fffaf4;
  font-family: "Hoefler Text", Garamond, "Times New Roman", Times, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero h1 span {
  color: rgba(23, 21, 21, 0.34);
}

.hero-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  height: clamp(540px, 52vw, 640px);
  margin: 0 auto;
  isolation: isolate;
}

.album-grid {
  display: none;
  position: absolute;
  grid-template-columns: repeat(8, clamp(84px, 10vw, 132px));
  grid-template-rows: repeat(2, clamp(84px, 10vw, 132px));
  gap: clamp(9px, 1.1vw, 14px);
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.88;
  filter: saturate(0.95);
}

.cover-card {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 18px 32px rgba(42, 32, 22, 0.13);
}

.app-shot {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 8;
  --phone-screen-top: 1.55%;
  --phone-screen-right: 2.05%;
  --phone-screen-bottom: 1.75%;
  --phone-screen-left: 2.05%;
  --phone-screen-radius: 11.5% / 5.45%;
  width: clamp(208px, 20vw, 286px);
  aspect-ratio: 1380 / 2880;
  filter: drop-shadow(0 38px 70px rgba(30, 24, 18, 0.28)) drop-shadow(0 10px 22px rgba(30, 24, 18, 0.18));
  transform: translateX(-50%);
}

.app-shot::before {
  content: "";
  position: absolute;
  top: var(--phone-screen-top);
  right: var(--phone-screen-right);
  bottom: var(--phone-screen-bottom);
  left: var(--phone-screen-left);
  z-index: 1;
  border-radius: var(--phone-screen-radius);
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
}

.phone-scanner {
  position: absolute;
  top: var(--phone-screen-top);
  right: var(--phone-screen-right);
  bottom: var(--phone-screen-bottom);
  left: var(--phone-screen-left);
  z-index: 3;
  overflow: hidden;
  border-radius: var(--phone-screen-radius);
  pointer-events: none;
}

.scan-target {
  position: absolute;
  top: 21%;
  left: 50%;
  width: 92%;
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.scan-artwork {
  position: absolute;
  inset: 6%;
  z-index: 2;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.28);
}

.scan-artwork img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: artwork-cycle 30s infinite;
}

.scan-artwork img:nth-child(2) {
  animation-delay: 3s;
}

.scan-artwork img:nth-child(3) {
  animation-delay: 6s;
}

.scan-artwork img:nth-child(4) {
  animation-delay: 9s;
}

.scan-artwork img:nth-child(5) {
  animation-delay: 12s;
}

.scan-artwork img:nth-child(6) {
  animation-delay: 15s;
}

.scan-artwork img:nth-child(7) {
  animation-delay: 18s;
}

.scan-artwork img:nth-child(8) {
  animation-delay: 21s;
}

.scan-artwork img:nth-child(9) {
  animation-delay: 24s;
}

.scan-artwork img:nth-child(10) {
  animation-delay: 27s;
}

@keyframes artwork-cycle {
  0%,
  8% {
    opacity: 1;
  }

  10%,
  100% {
    opacity: 0;
  }
}

.shutter-button {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 7.5%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f07a2f 0 13%, #8f3518 14% 17%, transparent 18%),
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(255, 255, 255, 0.08) 29% 30%, transparent 31% 41%, rgba(255, 255, 255, 0.06) 42% 43%, transparent 44%),
    radial-gradient(circle at 50% 50%, #171615 0 48%, #050505 49% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.94),
    inset 0 0 0 7px rgba(255, 255, 255, 0.14),
    inset 0 0 20px rgba(255, 255, 255, 0.04),
    0 0 18px rgba(240, 122, 47, 0.18),
    0 14px 30px rgba(0, 0, 0, 0.54);
  transform: translateX(-50%);
}

.app-shot::after {
  content: "";
  position: absolute;
  right: -30%;
  bottom: -16%;
  left: -30%;
  height: 46%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(23, 21, 21, 0.12);
  filter: blur(28px);
}

.app-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-copy {
  position: relative;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: clamp(28px, 3vw, 42px);
}

.feature-list {
  display: grid;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin-inline: 0;
  justify-items: start;
  transform: none;
}

.feature-list p {
  display: flex;
  align-items: center;
  gap: 0.26em;
  width: 100%;
  max-width: 100%;
  color: #fff7ea;
  font-family: "Hoefler Text", Garamond, "Times New Roman", Times, serif;
  font-size: clamp(1.55rem, 2.35vw, 2.1rem);
  line-height: 1.08;
  text-align: left;
}

.copy-symbol {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 1.08em;
  height: 1.08em;
  color: rgba(255, 250, 244, 0.82);
}

.feature-list p:first-child .copy-symbol,
.feature-list p:nth-child(2) .copy-symbol,
.feature-list p:nth-child(3) .copy-symbol {
  transform: translateY(-5px);
}

.copy-symbol::before,
.copy-symbol::after {
  content: "";
  position: absolute;
  inset: 0.08em;
  border: 0.12em solid currentColor;
  border-radius: 0.24em;
}

.copy-symbol::after {
  inset: 0.33em;
  border-width: 0.1em;
  border-radius: 50%;
}

.copy-symbol-save::before {
  border-radius: 0.18em;
}

.copy-symbol-save::after {
  inset: auto 0.26em 0.22em;
  height: 0.25em;
  border: 0;
  border-radius: 0.08em;
  background: currentColor;
}

.copy-symbol-play::before {
  inset: 0.08em;
  border-radius: 50%;
}

.copy-symbol-play::after {
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-top: 0.22em solid transparent;
  border-bottom: 0.22em solid transparent;
  border-left: 0.34em solid currentColor;
  border-right: 0;
  border-radius: 0;
  transform: translate(-50%, -50%);
}

.hero-copy strong {
  color: var(--accent);
  font-size: 1.08em;
  font-weight: 900;
}

.app-store-button {
  width: 162px;
  min-height: 48px;
  margin-top: clamp(28px, 4vw, 48px);
  filter: drop-shadow(0 20px 30px rgba(31, 25, 19, 0.18));
}

.app-store-button img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  color: rgba(255, 250, 244, 0.5);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    width: min(calc(100% - 24px), 650px);
  }

  .header-actions {
    justify-content: flex-end;
  }

}

@media (max-width: 700px) {
  .site-header {
    top: 12px;
    border-radius: 22px;
  }

  .brand {
    gap: 8px;
    padding-inline: 8px;
  }

  .hero {
    justify-content: flex-start;
    min-height: 860px;
    padding-top: 104px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 0.95;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.72fr);
    gap: 20px;
  }

  .hero-stage {
    width: 100%;
    height: 465px;
    margin-left: 0;
  }

  .album-grid {
    grid-template-columns: repeat(8, 92px);
    grid-template-rows: repeat(2, 92px);
    gap: 9px;
    top: 29%;
  }

  .app-shot {
    width: 206px;
  }

  .hero-copy {
    width: 100%;
    margin-top: 24px;
  }

  .feature-list p {
    font-size: 1.58rem;
  }

  .app-store-button {
    width: 168px;
    margin-top: 34px;
  }

}

@media (max-width: 560px) {
  .hero-layout {
    grid-template-columns: 1fr;
    padding-left: 0;
    gap: 24px;
  }

  .hero-left {
    align-items: center;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
  }

  .feature-list {
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  .site-header {
    width: calc(100% - 16px);
    padding: 6px;
  }

  .header-app-store-button {
    width: 108px;
    border-radius: 9px;
  }

  .hero {
    min-height: 820px;
    padding-inline: 14px;
  }

  .hero-stage {
    height: 425px;
  }

  .app-shot {
    width: 188px;
  }

  .album-grid {
    grid-template-columns: repeat(8, 84px);
    grid-template-rows: repeat(2, 84px);
  }
}
