@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #070E1F;
  --page-lift: #101D3D;
  --page-deep: #03060F;
  --line: rgba(201, 206, 216, 0.22);
  --text: #CDD1D9;
  --text-2: #98A1B3;
  --footer: #7E8799;
  --silver: #C9CED8;
  --hover: rgba(201, 206, 216, 0.06);
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --title-weight: 500;
  --app-weight: 500;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--page-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--page-lift) 0%, var(--page) 55%, var(--page-deep) 100%)
    no-repeat var(--page-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 64px 28px 40px;
}

h1,
h2,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: var(--silver);
}

a:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 4px;
  border-radius: 4px;
}

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--silver);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Hub header */

.logo {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  perspective: 700px;
}

.logo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
}

/* The ring and the wording turn together like a coin. Two turns per loop:
   the first with the ring fully visible, the second with the ring fading
   out so the wording stands alone, then the ring returns. */

.logo-ring {
  --ring-opacity: 0.45;
  opacity: var(--ring-opacity);
  animation: ring-turn 12s linear infinite;
  will-change: transform, opacity;
}

@keyframes ring-turn {
  0% {
    transform: rotateY(0deg);
    opacity: var(--ring-opacity);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  33% {
    transform: rotateY(360deg);
    opacity: var(--ring-opacity);
    animation-timing-function: linear;
  }
  42% {
    transform: rotateY(360deg);
    opacity: var(--ring-opacity);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  58% {
    opacity: 0;
  }
  75% {
    transform: rotateY(720deg);
    opacity: 0;
    animation-timing-function: linear;
  }
  90% {
    transform: rotateY(720deg);
    opacity: 0;
    animation-timing-function: ease-in-out;
  }
  100% {
    transform: rotateY(720deg);
    opacity: var(--ring-opacity);
  }
}

/* The wording follows the same turns as the ring but never fades. A second
   copy faces the other way, so the name reads correctly from both sides. */

.logo-word {
  --face: 0deg;
  transform: rotateY(var(--face));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: word-turn 12s linear infinite;
  will-change: transform;
}

.logo-word--back {
  --face: 180deg;
}

@keyframes word-turn {
  0% {
    transform: rotateY(var(--face));
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  33% {
    transform: rotateY(calc(var(--face) + 360deg));
    animation-timing-function: linear;
  }
  42% {
    transform: rotateY(calc(var(--face) + 360deg));
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  75%,
  100% {
    transform: rotateY(calc(var(--face) + 720deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-ring,
  .logo-word {
    animation: none;
  }
}

.lede {
  margin-top: 28px;
  color: var(--text-2);
  font-size: 0.9375rem;
  text-align: center;
}

/* Apps header */

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.9375rem;
  text-decoration: none;
}

.back .icon {
  width: 16px;
  height: 16px;
}

.back:hover {
  text-decoration: underline;
}

.heading {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: var(--title-weight);
  font-size: 1.625rem;
  line-height: 1.2;
}

/* Rows */

.rows {
  margin-top: 36px;
}

.rows > li {
  position: relative;
}

.rows > li::before,
.rows > li:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.rows > li::before {
  top: 0;
}

.rows > li:last-child::after {
  bottom: 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 20px 6px;
  color: var(--text);
  text-decoration: none;
}

a.row:hover {
  background: var(--hover);
}

.row-body {
  flex: 1;
  min-width: 0;
}

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.row-title {
  font-family: var(--font-display);
  font-weight: var(--title-weight);
  font-size: 1.1875rem;
  line-height: 1.35;
}

.row-title--app {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: var(--app-weight);
  line-height: 1.3;
}

.row-sub {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.app-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  background: var(--page-deep);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(201, 206, 216, 0.14);
}

.status {
  flex: none;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--silver);
}

.status--soon {
  color: var(--footer);
}

/* Footer */

.footer {
  margin-top: 64px;
  color: var(--footer);
  font-size: 0.8125rem;
  text-align: center;
}

.footer a {
  display: inline-block;
  padding: 12px 4px;
  color: var(--text-2);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .page {
    padding: 112px 32px 56px;
  }

  .logo {
    width: 180px;
    height: 180px;
  }

  .heading {
    font-size: 1.875rem;
  }
}
