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

:root {
  --navy: #0b1a38;
  --navy-deep: #071225;
  --red: #d8151b;
  --white: #ffffff;
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.48);
  --rule: rgba(255, 255, 255, 0.12);
}

html, body {
  height: 100%;
}

body {
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(216, 21, 27, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 6vh, 4rem);
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(2.5rem, 6vh, 4rem) 1.5rem;
  text-align: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  animation: fade-up 0.85s ease both;
}

.brand-wordmark {
  display: block;
  width: min(16.5rem, 72vw);
  height: auto;
}

.lede {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.apps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 22.5rem;
  animation: fade-up 0.85s 0.12s ease both;
}

@media (min-width: 44rem) {
  .apps {
    max-width: 46.5rem;
    grid-template-columns: 1fr 1fr;
  }
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.app-icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1rem;
}

.app-name {
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
}

.app-copy {
  margin-top: 0.45rem;
  max-width: 18rem;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-muted);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.1rem;
  margin-top: 1.1rem;
}

.app-actions a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}

.app-actions a:hover {
  color: var(--white);
}

.app-actions a:focus-visible {
  outline: none;
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.contact {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
  animation: fade-up 0.85s 0.22s ease both;
  transition: color 0.2s ease;
}

.contact:hover {
  color: var(--white);
}

.contact:focus-visible {
  outline: none;
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .apps,
  .contact {
    animation: none;
  }
}

.document {
  display: block;
  min-height: 100vh;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.document-content {
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
}

.document-home {
  display: inline-block;
  margin-bottom: 2.25rem;
  opacity: 0.9;
}

.document-home img {
  display: block;
  width: 7.5rem;
  height: auto;
}

.document-header {
  margin-bottom: 2rem;
}

.document h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
}

.document-meta {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.document h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
}

.document h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.document p,
.document li {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.document p + p {
  margin-top: 0.85rem;
}

.document ul {
  margin-top: 0.65rem;
  padding-left: 1.25rem;
}

.document li + li {
  margin-top: 0.45rem;
}

.document a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(216, 21, 27, 0.55);
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.document a:hover {
  color: var(--white);
  text-decoration-color: var(--red);
}

.document a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.document table {
  width: 100%;
  margin-top: 0.85rem;
  border-collapse: collapse;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.document th,
.document td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--rule);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.document th {
  font-weight: 400;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}
