:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101b2c;
  color: #eef4fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 80% 6%, rgba(86, 108, 159, 0.22), transparent 38rem),
    radial-gradient(ellipse at 5% 85%, rgba(38, 124, 112, 0.12), transparent 36rem),
    #101b2c;
}

.page {
  width: min(100% - 40px, 960px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
}

.masthead, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #f3f6fa;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand span { color: #f6be69; }

.masthead-note, footer {
  color: #9cacc0;
  font-size: 0.82rem;
}

.intro {
  padding: clamp(68px, 12vh, 118px) 0 38px;
}

.eyebrow, .card-kicker {
  color: #a7b5ca;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(3rem, 8vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

h1 span { color: #f6be69; }

.intro-copy {
  margin: 0;
  color: #b6c3d3;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 0 68px;
}

.app-card {
  position: relative;
  min-height: 228px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.app-card:hover, .app-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.astronomer { background: linear-gradient(145deg, #293752, #1d2b40 70%); }
.sixstones { background: linear-gradient(145deg, #24433f, #1c3438 70%); }
.fivedice { background: linear-gradient(145deg, #594338, #3e3033 70%); }

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  color: #f6be69;
  font-size: 1.25rem;
}

.sixstones .card-icon { color: #8ed3b2; }
.fivedice .card-icon { color: #f0a887; }

.card-content { display: grid; gap: 8px; }
.card-kicker { font-size: 0.62rem; }

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.card-description {
  max-width: 23ch;
  color: #b7c3d0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.card-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.1rem;
}

footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 700px) {
  .apps { grid-template-columns: 1fr; }
  .app-card { min-height: 182px; }
  .intro { padding-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
