:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #07111f;
  color: #f8fbff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(7, 17, 31, 0.7), rgba(7, 17, 31, 0.82)),
    url("./assets/splash-background.avif") center 25% / cover fixed,
    #07111f;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
}

.hero {
  display: grid;
  min-height: 70vh;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.app-icon {
  width: clamp(96px, 18vw, 102px);
  height: clamp(96px, 18vw, 102px);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.logo {
  width: min(450px, 75vw);
  height: auto;
  margin-top: 0px;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tagline {
  margin: 0px 0 0;
  color: #75e9ff;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 500;
}

.description {
  max-width: 690px;
  margin: 16px auto 30px;
  color: #d9e6f7;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  text-wrap: balance;
}

.store-action,
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-action {
  margin-top: 24px;
}

.actions {
  margin-top: 30px;
}

.store-action a,
.actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #eff8ff;
  font-weight: 750;
}

.store-action a:hover,
.store-action a:focus-visible,
.actions a:hover,
.actions a:focus-visible {
  border-color: #75e9ff;
  outline: none;
}

.store-action .primary-link {
  min-height: 54px;
  padding: 0 28px;
  border-color: #ffbf3f;
  background: #ffbf3f;
  color: #182033;
  font-size: 1.05rem;
}

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.details article {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 12, 24, 0.54);
}

.details article {
  min-height: 150px;
  padding: 22px;
}

.details h2 {
  margin: 0 0 10px;
  color: #fff2c7;
  font-size: 1.05rem;
}

.details p {
  margin: 0;
  color: #cfdbeb;
  font-size: 0.98rem;
  line-height: 1.5;
}

.subpage-shell {
  padding-top: 20px;
}

.subpage-header {
  display: grid;
  justify-items: center;
  margin-bottom: 18px;
}

.subpage-header a {
  display: inline-flex;
}

.content-card {
  width: min(880px, 100%);
  margin: 0 auto;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 46px);
  background: rgba(255, 255, 255, 0.9);
  color: #172134;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.content-card h1 {
  margin: 0 0 18px;
  color: #0a1220;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
}

.content-card h2 {
  margin: 28px 0 8px;
  color: #0d1b2f;
  font-size: 1.18rem;
}

.content-card p {
  margin: 0 0 16px;
  color: #263449;
  font-size: 1.05rem;
  line-height: 1.65;
}

.content-card a {
  color: #006fc9;
  font-weight: 800;
}

.content-card ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #263449;
  font-size: 1.05rem;
  line-height: 1.65;
}

.content-card li {
  margin: 0 0 6px;
}

footer {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 22px 0 30px;
  color: #b8c6d8;
  font-size: 0.92rem;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 16px;
}

footer a {
  color: #75e9ff;
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(rgba(7, 17, 31, 0.66), rgba(7, 17, 31, 0.84)),
      url("./assets/splash-background-mobile.avif") center top / cover fixed,
      #07111f;
  }

  .page-shell {
    padding-top: 44px;
  }

  .hero {
    min-height: auto;
    padding: 28px 0;
  }

  .details {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Cookie notice (consent.js). Fixed card, bottom of the viewport. */
.cookie-card {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 50;
  max-width: 380px;
  margin-left: auto;
  padding: 18px 18px 16px;
  border: 1px solid rgba(117, 233, 255, 0.28);
  border-radius: 16px;
  background: rgba(10, 22, 40, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  color: #dbe6f3;
  animation: cookie-rise 0.28s ease-out both;
}

.cookie-card[hidden] {
  display: none;
}

.cookie-card h2 {
  margin: 0 0 6px;
  color: #f8fbff;
  font-size: 1rem;
}

.cookie-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-card a {
  color: #75e9ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.cookie-actions button {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-accept {
  border: 1px solid #ffbf3f;
  background: #ffbf3f;
  color: #182033;
}

.cookie-decline {
  border: 1px solid rgba(184, 198, 216, 0.45);
  background: transparent;
  color: #f8fbff;
}

@keyframes cookie-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-card {
    animation: none;
  }
}
