:root {
  --background: #160b2d;
  --background-alt: #201142;
  --surface: rgba(67, 44, 123, 0.36);
  --surface-strong: rgba(88, 63, 154, 0.48);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --text: #f4efff;
  --muted: #cec2f4;
  --muted-strong: #e1d8ff;
  --accent: #a595ff;
  --accent-soft: #d8c9ff;
  --accent-glow: rgba(172, 154, 255, 0.24);
  --border: rgba(218, 207, 255, 0.14);
  --shadow: 0 28px 80px rgba(8, 4, 21, 0.45);
  --shadow-soft: 0 16px 40px rgba(8, 4, 21, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  background:
    radial-gradient(circle at 50% 18%, rgba(116, 89, 194, 0.28), transparent 34%),
    radial-gradient(circle at 15% 85%, rgba(90, 65, 160, 0.22), transparent 28%),
    linear-gradient(180deg, #221145 0%, #160b2d 52%, #110822 100%);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: transparent;
}

main,
.topbar,
.hero,
.legal {
  position: relative;
  z-index: 1;
}

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

.landing-body {
  min-height: 100dvh;
}

.landing {
  width: min(1080px, calc(100% - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto auto auto;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--muted-strong);
}

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

.nav-links {
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a,
.landing-footer a {
  transition: color 160ms ease, opacity 160ms ease;
}

.nav-links a:hover,
.landing-footer a:hover {
  color: var(--muted-strong);
}

.hero {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 28px 0 28px;
  min-height: calc(100dvh - 160px);
}

.app-icon {
  width: clamp(84px, 12vw, 120px);
  height: clamp(84px, 12vw, 120px);
  border-radius: 26px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.subtitle {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}

.store-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.store-button {
  width: 186px;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  text-align: left;
  color: #ffffff;
  background: #171321;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.store-button:hover {
  transform: translateY(-1px);
  background: #211936;
  border-color: rgba(255, 255, 255, 0.22);
}

.store-button small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  line-height: 1.1;
}

.store-button strong {
  display: block;
  color: #ffffff;
  font-size: 1.06rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.store-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
}

.store-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.tiny-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.showcase {
  padding: 18px 0 82px;
}

.showcase h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.showcase-stage {
  position: relative;
  min-height: 1100px;
  margin: 0 auto;
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.showcase-stage::before {
  content: "";
  position: absolute;
  inset: auto -12% -18% -12%;
  height: 320px;
  background: radial-gradient(circle at center, rgba(138, 115, 255, 0.38), rgba(138, 115, 255, 0));
  pointer-events: none;
}

.showcase-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,0.06), transparent 28%);
}

.showcase-card {
  position: absolute;
  margin: 0;
  width: clamp(180px, 22vw, 250px);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 50px rgba(6, 4, 20, 0.34);
  backdrop-filter: blur(10px);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.showcase-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 26px 70px rgba(6, 4, 20, 0.42);
  z-index: 10;
}

.showcase-card img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase-card figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-strong);
  background: rgba(20, 11, 45, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.card-curated {
  top: 72px;
  left: 56px;
  transform: rotate(-6deg);
}

.card-mix {
  top: 120px;
  left: 330px;
  width: clamp(200px, 24vw, 280px);
  transform: rotate(4deg);
}

.card-sleep {
  top: 84px;
  right: 64px;
  transform: rotate(7deg);
}

.card-history {
  top: 520px;
  left: 112px;
  transform: rotate(-3deg);
}

.card-favourites {
  top: 560px;
  left: 420px;
  transform: rotate(5deg);
}

.card-theme {
  top: 460px;
  right: 52px;
  width: clamp(210px, 25vw, 290px);
  transform: rotate(-7deg);
}

.landing-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.legal-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(12, 7, 33, 0.32);
}

.legal-kicker {
  margin: 0 0 8px;
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.legal h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
  margin: 0;
}

.legal h2 {
  margin: 34px 0 8px;
  font-size: 1.24rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.74;
}

.legal a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal table {
  width: 100%;
  margin: 22px 0 26px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.legal th,
.legal td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.48;
}

.legal th {
  color: var(--muted-strong);
  background: rgba(165, 149, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal td {
  font-size: 0.95rem;
}

.legal tr:last-child td {
  border-bottom: 0;
}

.legal td:first-child {
  width: 31%;
  color: var(--text);
  font-weight: 700;
}

.legal td:nth-child(2) {
  width: 41%;
}

@media (max-height: 690px) and (min-width: 720px) {

  .app-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
  }

  .subtitle {
    margin-top: 14px;
  }

  .store-row {
    margin-top: 20px;
  }

  .tiny-note {
    display: none;
  }
}

@media (max-width: 980px) {
  .showcase-stage {
    min-height: 980px;
  }

  .card-curated {
    top: 56px;
    left: 20px;
  }

  .card-mix {
    top: 88px;
    left: 250px;
  }

  .card-sleep {
    top: 76px;
    right: 18px;
  }

  .card-history {
    top: 448px;
    left: 58px;
  }

  .card-favourites {
    top: 500px;
    left: 312px;
  }

  .card-theme {
    top: 412px;
    right: 12px;
  }
}

@media (max-width: 640px) {
  .landing {
    min-height: 100dvh;
  }

  .hero {
    min-height: auto;
    padding-top: 22px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(2.9rem, 14vw, 4.5rem);
  }

  .store-button {
    width: min(100%, 246px);
  }

  .landing-footer {
    flex-wrap: wrap;
    min-height: auto;
    padding: 20px 0 24px;
  }

  .showcase {
    padding-top: 4px;
    padding-bottom: 56px;
  }

  .section-copy {
    margin-bottom: 22px;
  }

  .showcase-stage {
    min-height: auto;
    padding: 18px 14px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .showcase-card {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none !important;
    border-radius: 26px;
  }

  .card-theme,
  .card-mix {
    grid-column: span 2;
  }

  .legal-header {
    align-items: flex-start;
  }

  .legal table,
  .legal thead,
  .legal tbody,
  .legal tr,
  .legal th,
  .legal td {
    display: block;
  }

  .legal table {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .legal thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .legal tr {
    margin-bottom: 12px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(8, 4, 21, 0.2);
  }

  .legal td {
    width: 100% !important;
    padding: 0;
    border-bottom: 0;
    font-size: 0.95rem;
  }

  .legal td + td {
    margin-top: 10px;
  }

  .legal td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--accent-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .legal td:nth-child(1)::before {
    content: "Data";
  }

  .legal td:nth-child(2)::before {
    content: "Collected";
  }

  .legal td:nth-child(3)::before {
    content: "Purpose";
  }
}
