/*
 * The landing page: hero with the "swipe to start" preview, how it plays, zones, pickups,
 * the daily maze and the goals, accounts, stores. Sizes and glows from the screen designs.
 */

/* Hero */

.home-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 8vw, 88px) clamp(56px, 9vw, 96px);
  background: radial-gradient(min(640px, 100vw) 460px at 78% 45%, rgb(63 224 255 / 8%), transparent 70%);
}

/* The faint neon maze behind the hero, fading out behind the text. */

.home-hero__maze {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  mask-image: linear-gradient(100deg, transparent 8%, rgb(0 0 0 / 55%) 45%, #000 80%);
}

.home-hero__maze-svg {
  width: 100%;
  height: 100%;
}

.home-hero__inner {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
  }
}

.home-hero__copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.home-hero__heading {
  font-size: clamp(42px, 7.6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.home-hero__heading-glow {
  display: block;
}

.home-hero__lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* The preview: the game's "swipe to start" screen of the daily maze (design screen 2),
   without the hero. Sizes in cqw (the phone is their container, so its own radius is in
   px): 1cqw is 3.9 points of the 390-point design. */

.home-hero__preview {
  display: flex;
  justify-content: center;
}

.home-phone {
  position: relative;
  container-type: inline-size;
  width: min(320px, 80vw);
  aspect-ratio: 390 / 844;
  overflow: hidden;
  background: var(--bg);
  border-radius: 38px;
  box-shadow: 0 0 0 9px #191932, 0 30px 60px rgb(0 0 0 / 60%);
  user-select: none;
}

.home-phone__maze {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-phone__dim {
  position: absolute;
  inset: 0;
  background: rgb(11 11 30 / 62%);
}

.home-phone__hud {
  position: absolute;
  top: 13.8cqw;
  left: 3.1cqw;
  right: 3.1cqw;
  display: flex;
  align-items: flex-start;
}

.home-phone__lives {
  display: flex;
  gap: 1cqw;
  margin-top: 1.5cqw;
  color: var(--bad);
}

.home-phone__life {
  width: 5.1cqw;
  height: 5.1cqw;
}

.home-phone__score {
  display: grid;
  flex: 1;
  justify-items: center;
}

.home-phone__points {
  font: 900 7.2cqw/1 var(--text);
  text-shadow: 0 0 2cqw var(--bg);
}

.home-phone__mult {
  display: grid;
  justify-items: center;
  margin-top: 0.5cqw;
  padding: 0.8cqw 2.6cqw 1cqw;
  border-radius: 5cqw;
  background: var(--surface);
  color: var(--muted);
  font: 900 3.3cqw/1.1 var(--text);
}

.home-phone__mini {
  width: 8.7cqw;
  height: 0.8cqw;
  margin-top: 0.5cqw;
  border-radius: 1cqw;
  background: rgb(255 255 255 / 15%);
}

.home-phone__pause {
  display: grid;
  place-items: center;
  width: 11.3cqw;
  height: 11.3cqw;
  border-radius: 50%;
  background: rgb(21 21 58 / 80%);
  color: var(--ink);
}

.home-phone__pause-icon {
  width: 6.2cqw;
  height: 6.2cqw;
}

.home-phone__start {
  position: absolute;
  top: 66.4%;
  left: 0;
  right: 0;
  display: grid;
  justify-items: center;
  padding-inline: 5cqw;
  text-align: center;
}

.home-phone__chip {
  padding: 1.5cqw 3.6cqw;
  font-size: 3.6cqw;
  letter-spacing: 0.07em;
}

.home-phone__touch {
  width: 14.4cqw;
  height: 14.4cqw;
  margin-top: 4.6cqw;
  color: var(--ink);
}

.home-phone__swipe {
  margin-top: 2.6cqw;
  font: 900 5.1cqw/1.2 var(--text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-phone__hint {
  margin-top: 1.5cqw;
  color: var(--muted);
  font-size: 3.8cqw;
  line-height: 1.4;
}

/* Sections */

.home-section {
  padding-block: clamp(56px, 9vw, 96px);
}

.home-section--band {
  background: color-mix(in srgb, var(--surface) 45%, var(--bg));
  border-block: 1.5px solid var(--line);
}

.home-section__intro {
  display: grid;
  gap: 12px;
  max-width: 660px;
  margin-bottom: 36px;
}

.home-section__heading {
  font-size: clamp(26px, 4.2vw, 40px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-section__lead {
  color: var(--muted);
  font-size: 17px;
}

.home-features,
.home-zones,
.home-pickups,
.home-goal-list,
.home-accounts {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

/* How it plays: the icon tiles of the designs' daily-maze card */

.home-features {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.home-feature {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
}

.home-feature__icon,
.home-goal__icon,
.home-account__icon,
.home-daily__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-tile);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.home-feature__icon .icon,
.home-goal__icon .icon,
.home-account__icon .icon,
.home-daily__icon .icon {
  width: 24px;
  height: 24px;
}

.home-feature__icon {
  margin-bottom: 6px;
}

/* The multiplier chip of the game's HUD, hot (x2 and up) */

.home-feature__icon--multiplier {
  background: var(--primary);
  color: var(--on-primary);
  font: 900 16px/1 var(--text);
  box-shadow: var(--glow-primary);
}

.home-feature__title,
.home-goal__title,
.home-account__title {
  font-size: 19px;
}

.home-feature__text,
.home-goal__text,
.home-account__text,
.home-zone__text,
.home-pickup__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Zones: a corner of wall tube in each zone's colour */

.home-zones {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}

.home-zone {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px 24px 24px;
}

.home-zone--neon {
  --zone: var(--wall-neon);
}

.home-zone--ice {
  --zone: var(--wall-ice);
}

.home-zone--blackout {
  --zone: var(--wall-blackout);
}

.home-zone--haunted {
  --zone: var(--wall-haunted);
}

.home-zone__wall {
  width: 64px;
  height: 64px;
  margin: -6px 0 6px -10px;
}

.home-zone__label {
  font: 800 12px/1.4 var(--text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zone);
}

.home-zone__title {
  font-size: 21px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Pickups: as the maze shows them */

.home-pickups {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}

.home-pickup {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
}

.home-pickup__badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
}

.home-pickup__body {
  display: grid;
  gap: 4px;
}

.home-pickup__title {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-pickup__title--dash {
  color: var(--item-dash);
}

.home-pickup__title--magnet {
  color: var(--item-magnet);
}

.home-pickup__title--freeze {
  color: var(--item-freeze);
}

.home-pickup__title--phase {
  color: var(--item-phase);
}

.home-pickup__title--bomb {
  color: var(--item-bomb);
}

/* The daily maze card (glowing in cyan, like on the game's home screen) and the goals */

.home-goals {
  display: grid;
  gap: 14px;
  align-items: start;
}

@media (min-width: 900px) {
  .home-goals {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }
}

.home-daily {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
}

.home-daily__body {
  display: grid;
  gap: 8px;
}

.home-daily__title {
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-daily__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.home-daily__ranking {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.home-goal {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
}

.home-goal__body {
  display: grid;
  gap: 4px;
}

.home-goal__icon--coin {
  background: color-mix(in srgb, var(--coin) 15%, transparent);
}

/* The game's coin */

.home-goal__coin {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--coin-edge);
  border-radius: 50%;
  background: var(--coin);
  box-shadow: 0 0 6px rgb(255 194 63 / 50%);
}

/* Accounts */

@media (min-width: 720px) {
  .home-accounts {
    grid-template-columns: 1fr 1fr;
  }
}

.home-account {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
}

.home-account__body {
  display: grid;
  gap: 4px;
}

.home-accounts__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.home-accounts__note-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}

/* Closing: where to get the app */

.home-closing {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 56px);
  text-align: center;
  background: radial-gradient(min(560px, 90vw) 260px at 50% 0%, rgb(255 210 63 / 9%), transparent 75%), var(--surface);
}

.home-closing__logo {
  width: 96px;
  height: 96px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgb(255 210 63 / 35%));
}

.home-closing__lead {
  max-width: 48ch;
  margin-bottom: 10px;
}

.home-closing__contact {
  margin-top: 12px;
  color: var(--muted);
}

.home-closing__link {
  font-weight: 700;
}
