:root {
  color-scheme: dark;
  --ink: #07030f;
  --ink-soft: #10091c;
  --paper: #f8f6fb;
  --paper-muted: #696273;
  --white: #ffffff;
  --violet: #8848ff;
  --violet-bright: #a56cff;
  --pink: #e24cac;
  --cyan: #3bc8d0;
  --dark-muted: #bcb3cb;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(16, 9, 28, 0.14);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    linear-gradient(
      rgba(7, 3, 15, 0.58),
      rgba(7, 3, 15, 0.92) 510px,
      var(--ink) 720px
    ),
    url("/assets/trino-your-music-your-way-wide.jpg") center top / 100% auto
      no-repeat,
    var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  width: 100%;
  margin: 0;
  display: block;
}

.nav {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line-dark);
  background: rgba(7, 3, 15, 0.76);
  box-shadow: none;
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
}

.nav a {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
}

.legal-brand img {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(136, 72, 255, 0.34);
}

.trino-label {
  color: var(--violet-bright);
  font-weight: 900;
  text-shadow: 0 8px 24px rgba(136, 72, 255, 0.34);
}

.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav .legal-nav-link {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease;
}

.nav .legal-nav-link:hover,
.nav .legal-nav-link.active {
  color: var(--white);
}

.nav .legal-nav-link.active {
  position: relative;
}

.nav .legal-nav-link.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 0 14px rgba(136, 72, 255, 0.72);
}

.nav .store-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.nav .store-link:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.hero {
  width: min(1120px, calc(100% - 48px));
  min-height: 450px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 94px) 0 74px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 0;
  border-radius: 0;
  color: var(--white);
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.app-icon-shell {
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 22px 54px rgba(136, 72, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  backdrop-filter: blur(20px) saturate(1.35);
}

.app-icon {
  width: 78px;
  height: 78px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--violet-bright);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 56px;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--dark-muted);
  font-size: 18px;
  line-height: 1.55;
}

.document-card {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto 84px;
  padding: 54px 64px 68px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(248, 246, 251, 0.97);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  backdrop-filter: blur(24px) saturate(1.18);
}

.document {
  display: grid;
  gap: 12px;
}

.document h2 {
  margin: 34px 0 4px;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: 0;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.document h2:first-of-type {
  margin-top: 18px;
}

.document h3 {
  margin: 20px 0 0;
  color: #241b30;
  font-size: 18px;
  line-height: 1.25;
}

.document p,
.document li {
  color: var(--paper-muted);
  font-size: 16px;
  line-height: 1.72;
}

.document p {
  margin: 0;
}

.document ul {
  margin: 0;
  padding-left: 24px;
}

.document li + li {
  margin-top: 8px;
}

.document li::marker {
  color: var(--violet);
}

.document a {
  color: #7135d8;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.updated {
  width: fit-content;
  margin-bottom: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(136, 72, 255, 0.2);
  border-radius: 999px;
  color: #7135d8 !important;
  background: rgba(136, 72, 255, 0.09);
  font-size: 13px !important;
  font-weight: 800;
}

.legal-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--dark-muted);
}

.legal-footer-brand {
  color: var(--violet-bright);
  font-weight: 900;
  text-shadow: 0 8px 24px rgba(136, 72, 255, 0.28);
}

.legal-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-footer-links a {
  color: var(--dark-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.legal-footer-links a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  body {
    padding: 0;
    background-size: auto 470px;
  }

  .nav {
    gap: 12px;
    padding: 0 14px;
  }

  .legal-brand {
    gap: 8px;
    font-size: 18px;
  }

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

  .legal-nav-links {
    gap: 14px;
  }

  .nav .legal-nav-link {
    font-size: 13px;
  }

  .nav .legal-nav-link.welcome-link {
    display: none;
  }

  .nav .store-link {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero {
    width: min(100% - 32px, 1120px);
    min-height: 0;
    padding: calc(var(--header-height) + 56px) 0 52px;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }

  .app-icon-shell {
    width: 82px;
    height: 82px;
    margin: 0;
  }

  .app-icon {
    width: 64px;
    height: 64px;
  }

  h1 {
    font-size: 38px;
  }

  .hero p:last-child {
    font-size: 16px;
  }

  .document-card {
    width: 100%;
    margin: 0;
    padding: 42px 20px 54px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .document h2 {
    margin-top: 30px;
    font-size: 23px;
  }

  .document p,
  .document li {
    font-size: 15px;
    line-height: 1.68;
  }

  .legal-footer {
    width: min(100% - 32px, 1120px);
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .nav .store-link {
    display: none;
  }
}

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