/* Shared visual theme for the landing page and every application page. */
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 7% 13%, rgba(182, 209, 255, .68), transparent 31%),
    radial-gradient(circle at 94% 7%, rgba(222, 204, 255, .58), transparent 34%),
    radial-gradient(circle at 9% 92%, rgba(216, 246, 241, .62), transparent 36%),
    radial-gradient(circle at 92% 91%, rgba(255, 225, 212, .55), transparent 32%),
    #f7f8fb;
  background-attachment: fixed;
}

header { background: transparent; color: #17232b; padding-top: 18px; }
nav.container {
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  padding: 12px 23px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(39, 65, 97, .10), inset 0 1px 0 #fff;
  backdrop-filter: blur(16px);
}
nav a, nav button { color: #23323d; }
nav .brand { font-size: 1.25rem; letter-spacing: -.03em; }
nav .language-button { border-color: #d4dde5; }
nav .language-button:hover, nav .language-button:focus-visible { background: #eaf0f7; }
.back-to-hub {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d7e2e8;
  border-radius: 50%;
  background: #f3f8fa;
  transition: background .18s ease, transform .18s ease;
}
.back-to-hub:hover, .back-to-hub:focus-visible { background: #e5f0f4; transform: translateX(-2px); }
.back-to-hub svg { width: 19px; height: 19px; }
.inner-page .card {
  background: rgba(255,255,255,.87);
  border: 1px solid rgba(255,255,255,.93);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(50,74,97,.09), 0 2px 5px rgba(50,74,97,.035);
}
.hub-page main.container { width: min(1080px, calc(100% - 40px)); padding-top: 74px; }

.hub-intro { margin-bottom: 31px; }
.hub-kicker {
  margin: 0 0 12px;
  color: #697988;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.hub-heading { display: flex; align-items: baseline; gap: 18px; }
.hub-heading h1 { margin: 0; color: #13222d; font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1.12; letter-spacing: -.055em; }
.hub-count { color: #82909b; font-size: .96rem; font-weight: 650; white-space: nowrap; }
.hub-subtitle { margin: 13px 0 0; color: #667784; font-size: 1.05rem; }

.app-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.app-tile {
  min-height: 340px;
  padding: 34px 30px 29px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #1c2a33;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 30px;
  box-shadow: 0 16px 35px rgba(50, 74, 97, .065), 0 2px 5px rgba(50, 74, 97, .035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-tile:hover, .app-tile:focus-visible { transform: translateY(-5px); box-shadow: 0 22px 45px rgba(45, 69, 96, .13); border-color: #d8e5ed; outline: none; }
.app-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: white;
  box-shadow: 0 10px 22px rgba(32, 97, 111, .2), inset 0 1px 2px rgba(255,255,255,.45);
}
.app-icon svg { width: 42px; height: 42px; }
.market-icon { background: linear-gradient(145deg, #5fe3b2, #21b7bd); }
.ride-icon { background: linear-gradient(145deg, #67b7ff, #4b64e8); box-shadow: 0 10px 22px rgba(73, 92, 193, .23), inset 0 1px 2px rgba(255,255,255,.45); }
.app-name { margin-top: 23px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; }
.app-description { max-width: 330px; margin-top: 7px; color: #7a8892; line-height: 1.5; }
.app-stat { margin-top: 16px; padding: 5px 12px; border-radius: 999px; background: #f0f6f7; color: #47737a; font-size: .84rem; font-weight: 700; }
.ride-tile .app-stat { background: #eef2ff; color: #5265a8; }
.app-enter { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 24px; font-weight: 800; color: #137f85; }
.ride-tile .app-enter { color: #4d63b9; }
.app-enter span { font-size: 1.25rem; transition: transform .2s ease; }
.app-tile:hover .app-enter span, .app-tile:focus-visible .app-enter span { transform: translate(3px, -3px); }
footer.container { color: #80909a; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-stat { color: #5b7584; text-decoration: none; font-weight: 650; }
.footer-stat:hover, .footer-stat:focus-visible { text-decoration: underline; }

@media (max-width: 680px) {
  header { padding-top: 10px; }
  nav.container { border-radius: 22px; padding: 12px 16px; gap: 12px; }
  .hub-page main.container { padding-top: 46px; }
  .app-directory { grid-template-columns: 1fr; gap: 16px; }
  .app-tile { min-height: 295px; padding: 29px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-tile, .app-enter span, .back-to-hub { transition: none; }
}
