/* ══════════════════════════════════════════════════════════════
   Keln — constellation hero styling.

   Two blocks:
     1. .sky-hero      → the full-bleed dashboard centerpiece
     2. .hc-*          → the landing page demo controls

   Link on both dashboard.html and landing.html:
     <link rel="stylesheet" href="/constellation-hero.css">
   ══════════════════════════════════════════════════════════════ */

/* ═══ 1. DASHBOARD HERO ═══════════════════════════════════════ */

.sky-hero {
  position: relative;
  grid-column: 1 / -1;
  margin: 0 0 var(--s-9);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 20%, #0e1428 0%, #080c16 48%, #030508 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

/* Header floats over the sky rather than sitting above it — the map
   should read as the surface, not as a panel inside a card. */
.sky-hero__head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 12;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-8);
  padding: var(--s-9) var(--s-10);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 5, 8, .75), transparent);
}

.sky-hero__eyebrow {
  font-family: var(--mono);
  font-size: var(--t-2xs);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 5px;
}

.sky-hero__rank {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.05;
  background: linear-gradient(105deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sky-hero__right { text-align: right; flex-shrink: 0 }

.sky-hero__xp {
  font-family: var(--mono);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.sky-hero__xp small { font-size: var(--t-sm); color: var(--dim); font-weight: 600; margin-left: var(--s-2) }

.sky-hero__meta {
  font-family: var(--mono);
  font-size: var(--t-2xs);
  letter-spacing: 1.2px;
  color: var(--dim);
  margin-top: var(--s-3);
}

/* Progress rail sits at the very bottom edge of the sky, like a
   horizon line. */
.sky-hero__rail {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .05);
  z-index: 12;
}
.sky-hero__rail i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  box-shadow: 0 0 16px rgba(34, 211, 166, .55);
  transition: width .6s cubic-bezier(.2, .7, .2, 1);
}

.sky-hero__canvas { width: 100% }

/* Quick-log strip pinned to the bottom of the hero, so the primary
   action is inside the primary surface. */
.sky-hero__actions {
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  z-index: 12;
  display: flex;
  gap: var(--s-4);
  padding: var(--s-7) var(--s-9);
  overflow-x: auto;
  background: linear-gradient(to top, rgba(3, 5, 8, .88), transparent);
  scrollbar-width: none;
}
.sky-hero__actions::-webkit-scrollbar { display: none }

.sky-act {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 9px var(--s-7);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(10, 16, 26, .8);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-base);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .12s;
}
.sky-act:hover { border-color: var(--border-hi); background: rgba(34, 211, 166, .10) }
.sky-act:active { transform: scale(.96) }
.sky-act:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px }
.sky-act b { color: var(--accent2); font-family: var(--mono); font-size: 11.5px }

@media (max-width: 720px) {
  .sky-hero__head { padding: var(--s-7) var(--s-8) }
  .sky-hero__actions { padding: var(--s-6) var(--s-7) }
  .sky-act { font-size: var(--t-sm); padding: var(--s-4) var(--s-6) }
}

/* ═══ 2. LANDING DEMO CONTROLS ════════════════════════════════ */

.hero-demo {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(ellipse at 30% 20%, #0e1428 0%, #080c16 50%, #030508 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.hero-demo__sky { position: relative; min-width: 0 }

.hero-demo__panel {
  padding: 26px var(--s-10);
  border-left: 1px solid var(--border);
  background: rgba(6, 10, 18, .5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--s-6);
  gap: var(--s-6);
}
.hc-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 3px;
}
.hc-rankname {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  background: linear-gradient(105deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hc-xp {
  font-family: var(--mono);
  font-size: var(--t-4xl);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.hc-xp small { font-size: var(--t-xs); color: var(--dim); margin-left: 3px }

.hc-bar {
  height: 3px;
  background: rgba(255, 255, 255, .06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 7px;
}
.hc-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 0 12px rgba(34, 211, 166, .5);
  transition: width .45s cubic-bezier(.2, .7, .2, 1);
}

.hc-next {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: var(--dim);
  margin-bottom: 18px;
}

.hc-btns { display: flex; flex-direction: column; gap: var(--s-4); margin-bottom: var(--s-7) }

.hc-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px var(--s-7);
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(10, 16, 26, .6);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s, background .18s;
}
.hc-btn:hover { border-color: var(--border-hi); background: rgba(34, 211, 166, .08) }
.hc-btn:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px }
.hc-btn b { margin-left: auto; color: var(--accent2); font-family: var(--mono); font-size: var(--t-sm) }
.hc-ico { font-size: var(--t-lg) }

.hc-note {
  font-size: var(--t-sm);
  color: var(--dim);
  line-height: 1.5;
  min-height: 34px;
  transition: color .25s;
}
.hc-note--hot { color: var(--ink) }

#heroDemoCta {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .5s var(--ease, cubic-bezier(.2,.7,.2,1)), transform .5s cubic-bezier(.2,.7,.2,1);
}
#heroDemoCta.show { opacity: 1; transform: none; pointer-events: auto }

@media (max-width: 860px) {
  .hero-demo { grid-template-columns: 1fr }
  .hero-demo__panel { border-left: none; border-top: 1px solid var(--border); padding: var(--s-9) 18px }
  .hc-btns { display: grid; grid-template-columns: 1fr 1fr }
}

@media (prefers-reduced-motion: reduce) {
  .sky-hero__rail i, .hc-bar i, #heroDemoCta { transition: none }
  .sky-act:active { transform: none }
}
