/* Hoppado homepage v2 — mockup docs/hoppado/mockup/home-v1.png (TC-HOP-H1..H4). */
body[data-route="home"] .topbar { display: none; }
body[data-route="home"] .screen { max-width: none; padding: 0; gap: 0; }
body[data-route="home"] .screen__body { gap: 0; scroll-behavior: smooth; }
body[data-route="home"] { background: #070b14; }

.hp { --lime: #c8f04a; --ink: #0a0f1a; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero canvas */
.hp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(660px, calc(100dvh - 40px));
  display: grid; grid-template-rows: auto 1fr auto auto auto; align-items: start;
  padding: 0 clamp(16px, 2vw, 30px) 26px;
  background: #0a0f1a;
}
.hp-backdrop {
  position: absolute; inset: -40px; z-index: -4;
  background: url('/img/hero-football.webp') 70% 30% / cover no-repeat;
  filter: blur(28px) brightness(.45) saturate(1.1);
}
.hp-stage {
  position: absolute; z-index: -3; top: 66px; right: 0; height: min(62%, 37vw); aspect-ratio: 786 / 530;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 24%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 24%);
  mask-composite: intersect;
  transform: translate(var(--px, 0), var(--py, 0));
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.hp-art { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 40% 60%; }
.hp-hero.is-live .hp-art { animation: hp-burns 20s ease-in-out infinite alternate; }
@keyframes hp-burns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-1.6%, -1.2%); } }
/* fades that blend the art into the left copy zone and the bottom tiles */
.hp-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, #0a0f1aee 0%, #0a0f1ad0 24%, #0a0f1a55 42%, transparent 58%),
    linear-gradient(0deg, #070b14 0%, #070b14d9 14%, transparent 42%),
    linear-gradient(180deg, #0a0f1acc 0%, transparent 14%);
}

/* floodlight glints */
.hp-glint { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, #fffbe6 0, #fff3b080 12%, #ffe9a020 34%, transparent 62%); opacity: .55; }
.hp-glint--a { left: 81%; top: -2%; }
.hp-glint--b { left: -4%; top: 14%; width: 13%; }
.hp-hero.is-live .hp-glint--a { animation: hp-flicker 5.5s ease-in-out infinite; }
.hp-hero.is-live .hp-glint--b { animation: hp-flicker 7s ease-in-out 1.4s infinite; }
@keyframes hp-flicker { 0%, 100% { opacity: .35; transform: scale(.92); } 45% { opacity: .85; transform: scale(1.08); } 52% { opacity: .5; } 60% { opacity: .8; } }

/* ball glow (sits on the ball in the art) */
.hp-ball { position: absolute; left: 31.2%; top: 84%; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 38%, #c8f04a55 48%, transparent 66%); opacity: 0; }
.hp-ball.kick { animation: hp-kick 1.6s ease-out; }
@keyframes hp-kick { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.8) rotate(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35) rotate(180deg); } }

/* speech bubble */
.hp-bubble {
  position: absolute; left: 53%; top: 18%; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 26px; background: #f4f6f8; color: #111;
  font-size: clamp(.85rem, 1.05vw, 1rem); font-weight: 600; box-shadow: 0 10px 30px #0007;
  transform-origin: 0 100%;
}
.hp-bubble::before { content: ''; position: absolute; left: -9px; top: 50%; border: 9px solid transparent; border-right-color: #f4f6f8; border-left: 0; transform: translateY(-50%); }
.hp-bubble span[aria-hidden] { color: #2b6be5; }
.hp-bubble:hover { background: #fff; }
.hp-bubble.pop { animation: hp-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hp-pop { from { transform: scale(.4) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }

.hp-dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* nav */
.hp-nav { display: flex; align-items: center; gap: 24px; height: 66px; padding: 0 clamp(4px, 2.6vw, 34px); border-bottom: 1px solid #ffffff14; margin: 0 calc(-1 * clamp(16px, 2vw, 30px)); padding-left: clamp(20px, 4vw, 64px); padding-right: clamp(20px, 4vw, 56px); }
.hp-logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.75rem; letter-spacing: -.03em; }
.hp-logo b { color: #fff; }
.hp-hero.is-live .hp-logo svg { animation: hp-spin 9s linear infinite; }
@keyframes hp-spin { 0%, 85% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
.hp-nav__links { display: flex; gap: 44px; margin: 0 auto; }
.hp-nav__links a, .hp-lang { color: #e8ecf3; text-decoration: none; font-size: .95rem; font-weight: 500; }
.hp-nav__links a:hover, .hp-lang:hover { color: var(--lime); }
.hp-nav__right { display: flex; align-items: center; gap: 34px; }
.hp-login { color: #fff; text-decoration: none; background: #1a2130cc; border: 1px solid #ffffff1f; padding: 9px 19px; border-radius: 10px; font-weight: 500; }
.hp-login:hover { border-color: var(--lime); }

/* copy */
.hp-copy { padding: clamp(40px, 9vh, 104px) 0 0 clamp(20px, 4vw, 52px); max-width: 760px; }
.hp-eyebrow { color: #c9d0dc; letter-spacing: .32em; font-size: .9rem; font-weight: 500; margin-bottom: 26px; }
.hp-title { color: #fff; font-weight: 800; font-size: clamp(2.6rem, 5vw, 4.9rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 26px; text-shadow: 0 4px 30px #0009; }
.hp-t2 { white-space: nowrap; }
@media (min-width: 521px) { .hp-title { white-space: nowrap; } }
.hp-caret { display: inline-block; width: .07em; height: .82em; margin-left: .06em; background: var(--lime); vertical-align: -.06em; animation: hp-blink 1s steps(1) infinite; }
@keyframes hp-blink { 50% { opacity: 0; } }
.hp-sub { color: #dfe4ec; font-size: clamp(1.05rem, 1.6vw, 1.6rem); font-weight: 400; }

/* idea bar */
.hp-bar {
  justify-self: center; width: min(920px, 100%); margin-top: clamp(28px, 6vh, 70px);
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 26px;
  background: #f4f6f8; border-radius: 999px; box-shadow: 0 18px 50px #0008, 0 0 0 6px #ffffff12;
}
.hp-hero.is-live .hp-bar { animation: hp-breathe 4s ease-in-out infinite; }
@keyframes hp-breathe { 50% { box-shadow: 0 18px 50px #0008, 0 0 0 9px #c8f04a2a; } }
.hp-bar__icon { font-size: 1.9rem; line-height: 1; }
.hp-hero.is-live .hp-bar__icon { animation: hp-roll 8s ease-in-out infinite; }
@keyframes hp-roll { 0%, 80%, 100% { transform: rotate(0); } 90% { transform: rotate(360deg); } }
.hp .hp-bar__input { flex: 1; min-width: 0; margin: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #222; font-size: clamp(1rem, 1.5vw, 1.4rem); padding: 14px 4px; outline: none; }
.hp-bar__input::placeholder { color: #4a505c; }
.hp-bar__mic { color: #333; background: none; padding: 10px 20px; border-left: 1px solid #d4d8de; }
.hp-bar__go {
  display: inline-flex; align-items: center; gap: 14px; white-space: nowrap;
  background: var(--lime); color: #111; font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.4rem);
  padding: 18px 34px; border-radius: 999px; transition: transform .15s, box-shadow .15s;
}
.hp-bar__go:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #c8f04a66; }
.hp-bar__go span { transition: transform .2s; }
.hp-bar__go:hover span { transform: translateX(4px); }
.hp-caption { justify-self: center; color: #e2e6ee; font-size: 1rem; margin: 18px 0 28px; }

/* tiles */
.hp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hp-tile { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 354 / 206; padding: 0; background: #111; border: 3px solid transparent; transition: transform .25s, box-shadow .25s, border-color .25s; }
.hp-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hp-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #000a 0%, transparent 55%); }
.hp-tile:hover { transform: translateY(-6px); box-shadow: 0 16px 34px #000a; }
.hp-tile:hover img { transform: scale(1.06); }
.hp-tile.is-on { border-color: var(--lime); }
.hp-hero.is-live .hp-tile.is-on { animation: hp-pulse 2.4s ease-in-out infinite; }
@keyframes hp-pulse { 50% { box-shadow: 0 0 0 4px #c8f04a40, 0 0 28px #c8f04a55; } }
.hp-tile__play { position: absolute; z-index: 1; left: 18px; bottom: 16px; width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: 1rem; padding-left: 3px; }
.hp-tile__label { position: absolute; z-index: 1; left: 80px; bottom: 24px; color: #fff; font-size: clamp(1rem, 1.6vw, 1.45rem); font-weight: 500; }

/* word ticker */
.hp-tick { position: absolute; right: clamp(16px, 2vw, 30px); top: 84px; display: flex; align-items: center; gap: 8px; color: #dfe6f0; font: 600 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; background: #0a0f1aa8; border: 1px solid #ffffff1c; padding: 8px 12px; border-radius: 8px; opacity: 0; }
.hp-tick strong { color: var(--lime); letter-spacing: .04em; font-size: .85rem; text-transform: lowercase; }
.hp-tick span { color: #9aa4b5; letter-spacing: .04em; }
.hp-tick .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: hp-blink 1.2s steps(1) infinite; }
.hp-tick.in { animation: hp-tick 3.4s ease both; }
@keyframes hp-tick { 0% { opacity: 0; transform: translateY(-6px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* how + lobby below the fold */
.hp-how { padding: 56px clamp(20px, 4vw, 64px) 18px; color: #e8ecf3; }
.hp-how h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.hp-how ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hp-how li { background: #121826; border: 1px solid #ffffff14; border-radius: 12px; padding: 20px; font-size: 1.05rem; }
.hp-how b { display: block; color: var(--lime); font-size: .8rem; letter-spacing: .2em; margin-bottom: 8px; }
.hp-lobby { padding: 18px clamp(20px, 4vw, 64px) 40px; grid-template-rows: auto; }

@media (max-width: 900px) {
  .hp-nav__links { display: none; }
  .hp-nav__right { margin-left: auto; gap: 16px; }
  .hp-stage { height: 46%; right: -30%; opacity: .8; }
  .hp-copy { padding-top: 34px; }
  .hp-bar { padding-left: 16px; gap: 6px; }
  .hp-bar__mic { padding: 8px 10px; }
  .hp-bar__go { padding: 14px 18px; }
  .hp-tiles { grid-template-columns: repeat(2, 1fr); }
  .hp-tile__label { left: 66px; bottom: 18px; }
  .hp-tile__play { width: 38px; height: 38px; left: 14px; bottom: 12px; }
  .hp-bubble { left: 46%; }
  .hp-how ol { grid-template-columns: 1fr; }
  .hp-lobby { grid-template-columns: 1fr; }
  .hp-tick { display: none; }
}
@media (max-width: 520px) {
  .hp-bar__icon { display: none; }
  .hp-t2 { white-space: normal; }
  .hp-bubble { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hp *, .hp *::before, .hp *::after { animation: none !important; transition: none !important; }
  .hp-tick { display: none; }
}
