/* The top of the page (2026-10-12, the owner picked concept B of three after rejecting the Quick Menu top):
   the brand moment. Our logo in the middle, landing the way the loading screen and the game's spawn card do (the
   band lands, then the skyline rises out of it; the same two layers, from src/coc_spawncard/make_layers.py), one
   line, Join the Discord and Connect, and our own CPD cars parked along the bottom edge.
   Centred on purpose: the logo is the message. One accent (site.css), Discord blurple only on Discord. */

.hx { position: relative; overflow: hidden; isolation: isolate; }
.hx-b {
    min-height: clamp(660px, 96dvh, 900px);
    background: radial-gradient(ellipse 70% 60% at 50% 42%, #ffffff 0%, #ffffff 45%, var(--page) 100%);
    display: flex; flex-direction: column;
}
.hx-nav { display: flex; justify-content: flex-end; gap: 26px; height: 72px; align-items: center; position: relative; z-index: 3; }
.hx-nav a { font: 600 17px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; color: var(--muted); padding: 8px 0; }
.hx-nav a:hover { color: var(--ink); }

.hx-center { flex: 1; display: grid; justify-items: center; align-content: center; gap: 26px; text-align: center; padding: 0 16px 190px; position: relative; z-index: 2; }

/* live status: the one small line above the logo (a real state, so the dot is allowed) */
.hx-status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    font: 600 14px/1 var(--body); color: var(--muted); box-shadow: 0 1px 2px rgba(24, 50, 86, 0.05); }
.hx-status b { color: var(--ink); font-weight: 600; }
.hx-sep { width: 1px; height: 14px; background: var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa9b7; flex: none; }
.dot.on { background: #1fa463; box-shadow: 0 0 0 3px rgba(31, 164, 99, 0.18); }
.dot.off { background: #c63d36; }

/* the logo in its two layers: the skyline is clipped along the band's slanted top edge */
.hx-logo { margin: 0; line-height: 0; }
.lg { display: block; position: relative; width: clamp(300px, 30vw, 460px); aspect-ratio: 1104 / 809; }
.lg-skybox { display: block; position: absolute; left: 0; top: 0; width: 100%; height: calc(100% * 344 / 809); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 81.52%, 0 100.03%); }
.lg-sky, .lg-band { display: block; width: 100%; height: 100%; }
.lg-band { position: absolute; inset: 0; }

.hx-line { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--muted); max-width: 36ch; }
.hx-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* our CPD cars along the kerb, cut off by the bottom of the top */
.curb { position: absolute; left: 0; right: 0; bottom: -26px; height: 230px; z-index: 1; pointer-events: none; }
.curb img { position: absolute; bottom: 0; height: auto; max-width: none; }
.curb .c1 { width: 330px; left: calc(50% - 860px); }
.curb .c2 { width: 330px; left: calc(50% - 560px); }
.curb .c3 { width: 360px; left: calc(50% - 180px); }
.curb .c4 { width: 330px; left: calc(50% + 200px); }
.curb .c5 { width: 330px; left: calc(50% + 520px); }

/* motion: the logo lands, the cars pull in; nothing moves with reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .hx-center > * { animation: hx-up 0.7s var(--ease) both; }
    .hx-center > :nth-child(2) { animation-delay: 0.06s; }
    .hx-center > :nth-child(3) { animation-delay: 0.12s; }
    .hx-center > :nth-child(4) { animation-delay: 0.18s; }
    .lg-band { animation: hx-land 0.65s var(--ease) 0.15s both; }
    .lg-sky { animation: hx-rise 0.9s cubic-bezier(0.2, 0.9, 0.25, 1) 0.5s both; }
    .curb img { animation: hx-roll 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
    .curb .c2 { animation-delay: 0.08s; } .curb .c3 { animation-delay: 0.16s; } .curb .c4 { animation-delay: 0.24s; } .curb .c5 { animation-delay: 0.32s; }
    @keyframes hx-up { from { opacity: 0; transform: translateY(14px); } }
    @keyframes hx-roll { from { opacity: 0; transform: translateX(70px); } }
    @keyframes hx-land { from { opacity: 0; transform: translateY(4%) scale(0.95); } }
    @keyframes hx-rise { from { transform: translateY(100%); } }
}

@media (max-width: 960px) {
    .hx-nav { display: none; }
    .hx-center { padding-top: 28px; }
    .curb .c1, .curb .c5 { display: none; }
    .curb .c2 { left: calc(50% - 470px); } .curb .c4 { left: calc(50% + 140px); }
}
@media (max-width: 560px) {
    .hx-center { padding-bottom: 150px; }
    .curb { height: 160px; }
    .curb .c2, .curb .c4 { display: none; }
    .curb .c3 { width: 300px; left: calc(50% - 150px); }
}
