:root {
  --deep: #0b1a2e;
  --deep-2: #112a45;
  --teal: #2fd3c3;
  --cyan: #5fd8ff;
  --blue: #1e7bff;
  --ink: #06243a;
  --text: #e8f4fb;
  --muted: #a9c3d4;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-edge: rgba(95, 216, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--deep);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Lexend Deca", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 60%) fixed;
}

h1,
h2,
h3 {
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

a {
  color: var(--cyan);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 56px 16px 64px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(11, 26, 46, 0.35) 0%, rgba(11, 26, 46, 0.55) 55%, var(--deep-2) 100%),
    url("images/cave.jpg") center 35% / cover no-repeat;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  color: #fff;
  text-shadow: 0 4px 0 var(--ink), 0 0 32px rgba(95, 216, 255, 0.55);
}

.tagline {
  margin: 8px 0 16px;
  font-family: "Lilita One", sans-serif;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, #b8f6ff, var(--cyan) 50%, #2aa8e8);
  box-shadow: 0 4px 0 var(--ink);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}

.stores a {
  display: block;
  line-height: 0;
  border-radius: 10px;
}

.stores img {
  height: 53px;
  width: auto;
}

/* Google's badge artwork has transparent padding built in (the badge fills
   135x40 of its 155x60 canvas). Scale it so the visible badge matches
   Apple's height, and pull the padding back in. */
.stores img.play {
  height: 80px;
  margin: -13px -13px;
}

.stores a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* ── Body sections ────────────────────────────────────────────────────── */

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
}

.about {
  max-width: 640px;
  margin: 24px auto 56px;
  padding: 24px 28px;
  font-size: 1.05rem;
}

.about p {
  margin: 0;
}

.about p + p {
  margin-top: 1em;
}

.ladder {
  text-align: center;
  margin: 0 auto 56px;
}

.ladder h2,
.cta h2 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: #fff;
}

.ladder-lede {
  margin: 6px 0 24px;
  color: var(--muted);
}

.ladder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 18px 8px;
}

.ladder-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
  font-size: 0.8rem;
  color: var(--muted);
}

.ladder-list img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 56px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

/* Gems grow along the ladder, like they do in the box. */
.ladder-list li:nth-child(1) img { max-height: 30px; }
.ladder-list li:nth-child(2) img { max-height: 34px; }
.ladder-list li:nth-child(3) img { max-height: 38px; }
.ladder-list li:nth-child(4) img { max-height: 42px; }
.ladder-list li:nth-child(5) img { max-height: 46px; }
.ladder-list li:nth-child(6) img { max-height: 50px; }
.ladder-list li:nth-child(7) img { max-height: 54px; }
.ladder-list li:nth-child(8) img { max-height: 58px; }
.ladder-list li:nth-child(9) img { max-height: 62px; }
.ladder-list li:nth-child(10) img { max-height: 66px; }
.ladder-list li.top img {
  max-height: 72px;
  filter: drop-shadow(0 0 14px rgba(95, 216, 255, 0.8));
}

.ladder-list li.top span {
  color: #fff;
  font-weight: 600;
}

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

.features .panel {
  padding: 20px 22px;
}

.features h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #fff;
}

.features p {
  margin: 0;
  color: var(--muted);
}

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 56px;
}

.shots figure {
  margin: 0;
  width: min(260px, 100%);
  text-align: center;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 3px solid var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.shots figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
}

.cta .stores {
  margin-top: 20px;
}

.cta-note {
  margin: 20px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 32px 16px 48px;
  color: var(--muted);
}

footer p {
  margin: 0.25em 0;
}

.small {
  font-size: 0.85rem;
}
