/* ---------------------------------------------------------------
   Lynxy - home page only. Loaded after base.css, which supplies the
   tokens, the top bar, the footer and the cookie banner.
---------------------------------------------------------------- */

.home {
  flex: 1;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px 8px;
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 70px; /* clears the sticky top bar when jumped to by anchor */
}

.section:first-child { border-top: 0; }

/* The hero is a card of its own; a rule right underneath it reads as a seam. */
.hero + .section { border-top: 0; }

.section__title {
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}

.section__lead {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 62ch;
}

/* --------------------------------- hero -------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  margin-top: 18px;
  padding: 44px 24px 40px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Two soft colour washes behind the copy; blurred so they read as light,
   not as shapes, and kept out of the accessibility tree. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .5;
  pointer-events: none;
}

.hero::before {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -90px;
  background: var(--accent);
}

.hero::after {
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: -150px;
  background: var(--accent-2);
}

.hero__inner { position: relative; z-index: 1; }

.hero__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(18, 24, 40, .18));
}

.hero__title {
  font-size: clamp(28px, 6.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  margin: 0 auto 22px;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: clamp(15px, 2.4vw, 17px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

/* ------------------------------ game cards ----------------------------- */

/* auto-fit rather than auto-fill: while the catalogue is small the few cards
   share the row instead of huddling on the left. */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

a.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* The thumbnail is inline SVG, so it follows the theme like the game does. */
.card__thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(140deg, var(--accent-soft), var(--surface-2));
  border-bottom: 1px solid var(--border);
}

.card__thumb svg { width: 100%; height: 100%; max-height: 190px; }

.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__text {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

.card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
}

.card__cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* ------------------------------- features ------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.feature__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.feature h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.01em; }
.feature p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ------------------------------ prose / FAQ ---------------------------- */

.prose {
  max-width: 68ch;
  color: var(--text-dim);
  font-size: 15px;
}

.prose h3 { color: var(--text); font-size: 16px; margin: 22px 0 4px; }
.prose p { margin: 0 0 10px; }

.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 16px;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  color: var(--text-dim);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.faq__item[open] summary::after { content: "–"; }

.faq__item p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-dim);
}

@media (min-width: 720px) {
  .section { padding: 52px 0; }
  .hero { padding: 60px 32px 54px; }
}
