/* The home page (index.html): a landing page in the app's own look, on
   top of styles.css (colors, buttons, the sign-up card). */

body.home {
  background:
    radial-gradient(900px 600px at 70% -10%, rgba(145, 132, 217, 0.28), rgba(22, 24, 38, 0) 70%),
    var(--bg);
}

.home .accent { color: #b5abfc; }
.home .gold { color: #e0b84f; }

.btn-lg { font-size: 16px; font-weight: 600; padding: 14px 24px; border-radius: 12px; }
.home .btn-primary { background: #9184d9; color: #161826; border-color: #9184d9; font-weight: 600; }
.home .btn-primary:hover { background: #a89cf0; }

/* ---------- Header ---------- */

.home-top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.home-brand img { border-radius: 9px; }
.home-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.home-nav a { color: rgba(233, 233, 237, 0.75); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.home-nav a:hover { color: var(--text); }
.home-nav .home-nav-cta { color: #161826; padding: 9px 16px; }

/* ---------- Hero ---------- */

.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(145, 132, 217, 0.16);
  color: #d2cefd;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero-lede {
  margin: 22px 0 28px;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(233, 233, 237, 0.75);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-soon { margin: 16px 0 0; font-size: 14px; color: rgba(233, 233, 237, 0.55); }

.hero-phone { display: flex; justify-content: center; }
.phone-frame {
  width: min(320px, 78vw);
  aspect-ratio: 9 / 16;
  border-radius: 40px;
  padding: 10px;
  background: #07080d;
  box-shadow: 0 0 0 2px #3f424d, 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 120px rgba(145, 132, 217, 0.25);
}
.phone-frame video {
  width: 100%;
  height: 100%;
  border-radius: 31px;
  object-fit: cover;
  display: block;
  background: var(--bg);
}

/* ---------- Features ---------- */

.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: grid;
  gap: 88px;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature.flip > :first-child { order: 2; }
.feature-shot {
  width: min(300px, 100%);
  justify-self: center;
  /* The img tags carry their real size so the page doesn't jump while
     they load; the height has to follow the width, or they stretch. */
  height: auto;
  border-radius: 28px;
  box-shadow: 0 0 0 2px #3f424d, 0 24px 70px rgba(0, 0, 0, 0.5);
  display: block;
}
.feature-wide {
  width: 100%;
  max-width: 480px;
  height: auto;
  justify-self: center;
  border-radius: 24px;
  display: block;
}
.shot-pair { display: flex; gap: 16px; justify-content: center; }
.shot-pair .feature-shot { width: min(220px, 46%); }
.hound-row { display: flex; justify-content: center; align-items: flex-end; }
.hound-row img { width: 20%; max-width: 120px; height: auto; margin: 0 -6px; }
.hound-row img:nth-child(3) { width: 26%; max-width: 150px; }
.feature-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(233, 233, 237, 0.5);
}
.feature h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.feature-text p:last-child { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(233, 233, 237, 0.72); }

/* ---------- Games ---------- */

.games, .beta {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 20px 24px;
  text-align: center;
}
.games h2, .beta h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.games-sub, .beta-sub { margin: 10px auto 32px; max-width: 34em; font-size: 17px; color: rgba(233, 233, 237, 0.7); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: left;
}
.game {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
}
.game-icon { font-size: 26px; }
.game h3 { margin: 10px 0 4px; font-size: 16px; font-weight: 700; }
.game p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(233, 233, 237, 0.65); }

/* ---------- Beta ---------- */

.beta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.beta-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: inset 0 0 0 1.5px rgba(181, 171, 252, 0.3);
}
.beta-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.beta-card p { margin: 0 0 18px; font-size: 15px; color: rgba(233, 233, 237, 0.7); }

/* ---------- Account ---------- */

.account { max-width: 560px; margin: 0 auto; padding: 72px 20px 24px; }

.home-footer {
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 28px 20px 48px;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.home-footer .home-brand { font-size: 16px; }
.home-footer p { margin: 0; font-size: 13.5px; color: rgba(233, 233, 237, 0.55); }

/* ---------- Phones ---------- */

@media (max-width: 820px) {
  .home-nav a:not(.home-nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 24px 16px 56px; text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; font-size: 17px; }
  .hero-ctas { justify-content: center; }
  .features { gap: 64px; padding: 8px 16px 24px; }
  .feature { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feature.flip > :first-child { order: 0; }
  .feature-shot { width: min(220px, 58%); }
  .shot-pair .feature-shot { width: min(170px, 44%); }
  .phone-frame { width: min(260px, 68vw); }
  .games, .beta, .account { padding: 56px 16px 16px; }
  .games-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .game { padding: 14px; }
  .beta-grid { grid-template-columns: 1fr; }
  .home-top { padding: 14px 16px; }
  .home-footer { padding: 24px 16px 40px; }
}
