/* Landing page — TypeitHero branded background with mode cards on the stage. */

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #1e1b4b;
  color: white;
  overflow: hidden;
}

body.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* The stage = the background artwork. Aspect ratio matches the source PNG so
   the card positions stay correct as the page scales. */
.stage {
  position: relative;
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 1672 / 941;
  background-image: url('assets/landing_bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 24px;
  /* Soft shadow under the whole scene for depth */
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

/* Mode cards float on the stage. Slight tilt makes them feel placed, not pasted. */
.mode-card {
  position: absolute;
  width: 32%;
  bottom: 11%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 0 4px rgba(255, 255, 255, 0.18) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  outline: none;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.mode-card img {
  display: block;
  width: 100%;
  height: auto;
}

.mode-card-left  { left: 7%;  transform: rotate(-3.5deg); }
.mode-card-right { right: 7%; transform: rotate(3.5deg); }

.mode-card:hover {
  filter: brightness(1.06);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.6),
    0 0 0 4px rgba(255, 255, 255, 0.35) inset,
    0 0 40px rgba(251, 191, 36, 0.4);
}
.mode-card-left:hover  { transform: rotate(-1.5deg) translateY(-6px) scale(1.04); }
.mode-card-right:hover { transform: rotate(1.5deg)  translateY(-6px) scale(1.04); }

.mode-card:active {
  transform: scale(0.98);
}
.mode-card:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 4px;
}

/* Layout picker — sits where the gear icon already exists in the artwork.
   Visually inherits from the gear: round, tucked top-right of the stage. */
.stage-settings {
  position: absolute;
  top: 4%;
  right: 11%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1e1b4b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.stage-settings select {
  font: inherit;
  font-weight: 700;
  background: transparent;
  border: none;
  outline: none;
  color: #1e1b4b;
  padding: 4px 6px;
  cursor: pointer;
  max-width: 160px;
}

/* When the screen is narrow, stack the cards (the artwork stage still scales,
   but cards become readable at their smaller absolute size) */
@media (max-width: 600px) {
  .mode-card { width: 38%; }
}
