:root {
  color-scheme: dark;
  --black: #050505;
  --soft-black: #0b0b0b;
  --white: #f8f6f3;
  --muted: #8d888c;
  --pink: #f24791;
  --hot-pink: #ff6aa8;
  --line: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 14%, rgba(242, 71, 145, 0.09), transparent 25rem),
    var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  display: flex;
  min-height: 620px;
  padding: 11vh 24px 86px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.app-icon {
  display: block;
  width: clamp(128px, 13vw, 174px);
  height: auto;
  margin-bottom: 34px;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.65));
  animation: icon-entry 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.download-button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 25px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hot-pink), var(--pink));
  box-shadow: 0 14px 40px rgba(242, 71, 145, 0.24), inset 0 1px rgba(255, 255, 255, 0.24);
  color: #10070b;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.download-button:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.06);
  box-shadow: 0 18px 48px rgba(242, 71, 145, 0.35), inset 0 1px rgba(255, 255, 255, 0.3);
}

.download-button:active {
  transform: translateY(0) scale(0.985);
}

.download-button:focus-visible,
.audio-toggle:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.apple-mark {
  font-size: 20px;
  line-height: 1;
}

.system-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manifesto {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 200px;
}

.film-frame {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft-black);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.72);
}

.film-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, 0.35));
}

.film-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.82) contrast(1.07) brightness(0.82);
  transition: filter 700ms ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.film-frame:hover img {
  filter: saturate(1) contrast(1.03) brightness(0.92);
  transform: scale(1.012);
}

.manifesto-copy {
  max-width: 930px;
  margin: 76px auto 0;
  font-family: "SFMono-Regular", "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
}

.kicker {
  margin: 0 0 26px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.manifesto-copy h2 {
  max-width: 900px;
  margin: 0;
  font-family: inherit;
  font-size: clamp(26px, 4.1vw, 57px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.closing-line {
  margin: 42px 0 0;
  color: var(--hot-pink);
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.audio-toggle {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 22px;
  display: flex;
  min-width: 188px;
  min-height: 58px;
  padding: 9px 15px 9px 10px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(14, 12, 13, 0.84);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.55);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.audio-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 71, 145, 0.62);
  background: rgba(24, 17, 21, 0.92);
}

.audio-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--pink);
  color: #14090e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.audio-toggle.is-playing .audio-icon {
  box-shadow: 0 0 0 6px rgba(242, 71, 145, 0.12), 0 0 26px rgba(242, 71, 145, 0.35);
}

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

.track-title {
  max-width: 128px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-state {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes icon-entry {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 680px) {
  .hero {
    min-height: 540px;
    padding-top: 88px;
    padding-bottom: 66px;
  }

  .manifesto {
    width: calc(100% - 28px);
    padding-bottom: 160px;
  }

  .manifesto-copy {
    margin-top: 44px;
    padding: 0 4px;
  }

  .manifesto-copy h2 {
    letter-spacing: -0.045em;
  }

  .closing-line {
    margin-top: 30px;
  }

  .audio-toggle {
    right: 14px;
    bottom: 14px;
    min-width: 0;
    width: 52px;
    min-height: 52px;
    padding: 7px;
  }

  .audio-icon {
    width: 38px;
    height: 38px;
  }

  .audio-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
