/* Home page. Built on style.css (tokens, buttons, header basics, footer) and kept flat:
   real screenshots do the heavy lifting, panels have small corners and a hairline border,
   and nothing glows. */

.home {
  --r: 6px;
  --panel: #10141B;
  --panel-2: #141A23;
}

/* Header: transparent over the hero, solid once you scroll. */
.home .hdr {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background-color var(--med) var(--ease-out), border-color var(--med) var(--ease-out);
}
.home .hdr.scrolled {
  background: #0D1117;
  border-bottom-color: var(--line);
}
.home .hdr__nav a {
  color: #DCE3EC;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r);
}
.home .hdr__nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hdr__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #DCE3EC;
  border-radius: var(--r);
  transition: color var(--fast) var(--ease-out), background-color var(--fast) var(--ease-out);
}
.hdr__icon:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.hdr__icon svg { width: 22px; height: 22px; }
.home .btn { border-radius: var(--r); }

/* Hero: a real BONELAB shot, dimmed and softened, with the app in front of it. */
.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 0;
  text-align: center;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -20px;
  z-index: -2;
  background-size: cover;
  background-position: center 40%;
  filter: blur(3px) saturate(.9);
  transform: scale(1.04);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 14, 19, .72) 0%, rgba(11, 14, 19, .80) 55%, var(--bg) 100%);
}
.hero__in { display: flex; flex-direction: column; align-items: center; }
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r);
  background: rgba(0, 0, 0, .45);
  font-size: 13px;
  font-weight: 600;
  color: #DCE3EC;
}
.hero__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
}
.hero__title {
  margin: 22px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: #fff;
}
.hero__sub {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 17px;
  color: #B9C4D2;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.showcase {
  width: 100%;
  max-width: 1000px;
  margin-top: 56px;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 -10px 60px rgba(0, 0, 0, .45);
}
.showcase img { width: 100%; height: auto; }

/* Three pillars under the hero, like a spec sheet. */
.pillars {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.pillars__in {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pillar {
  padding: 40px 32px;
  border-left: 1px solid var(--line);
}
.pillar:first-child { border-left: 0; }
.pillar svg { width: 30px; height: 30px; color: var(--blue); }
.pillar h3 {
  margin: 16px 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.pillar a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--fast) var(--ease-out);
}
.pillar a:hover { color: var(--text); }

/* Section heads and the feature grid. */
.home .section { padding: 100px 0; }
.section--alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 620px; margin-bottom: 40px; }
.head h2, .band h2, .split h2, .dl h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  color: #fff;
}
.head p, .band p, .split p, .dl p { margin: 12px 0 0; font-size: 16px; color: var(--muted); }

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.panel {
  padding: 28px 26px 30px;
  background: var(--bg);
  transition: background-color var(--med) var(--ease-out);
}
.panel:hover { background: var(--panel); }
.panel svg { width: 24px; height: 24px; color: var(--blue); }
.panel h3 { margin: 16px 0 8px; font-family: var(--display); font-weight: 600; font-size: 18px; }
.panel p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Full-bleed band with a game shot behind it. */
.band {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  isolation: isolate;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 14, 19, .96) 0%, rgba(11, 14, 19, .86) 45%, rgba(11, 14, 19, .35) 100%);
}
.band__copy { max-width: 520px; }

/* Text beside a picture. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--flip .split__copy { order: 2; }
.photo {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background-size: cover;
  background-position: center;
}

.pack {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg);
  overflow: hidden;
}
.pack__head {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.pack__head span { color: var(--muted); font-size: 13px; }
.pack__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.pack__row:last-child { border-bottom: 0; }
.pack__row i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-style: normal;
  font-weight: 700;
  font-family: var(--display);
  color: #fff;
}
.pack__row .t1 { background: #3B6FD8; }
.pack__row .t2 { background: #7C4DDB; }
.pack__row .t3 { background: #D8793B; }
.pack__row span { flex: 1; }
.pack__row em { font-style: normal; font-size: 12px; color: var(--muted); }
.pack__row em.mio { color: #7EC8FF; }

/* Download. */
.dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--panel);
}
.dl[hidden] { display: none; }
.dl__copy { max-width: 540px; }
.dl__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dl .agree { font-size: 13px; color: var(--dim); }
.dl .agree a { color: var(--muted); text-decoration: underline; }

.home .footer { margin-top: 0; }

@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .pillars__in, .grid3 { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--flip .split__copy { order: 0; }
  .dl { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .band::before { background: rgba(11, 14, 19, .86); }
}

/* The signed-in slot: admin link, avatar and badge on one line. */
.home #userSlot { display: flex; align-items: center; gap: 10px; }
.home #userSlot .hdr__nav { margin: 0; padding: 8px 12px; font-size: 15px; font-weight: 600; color: #DCE3EC; border-radius: var(--r); }

/* The shared .panel brings its own rounded border; inside the grid the hairlines come
   from the gap, so each cell stays square. */
.grid3 .panel { border: 0; border-radius: 0; }

.dl__actions { flex-wrap: nowrap; flex-shrink: 0; }
@media (max-width: 900px) { .dl__actions { flex-wrap: wrap; } }

/* Header nav, Badlion style: even spacing, no hover box, a thin blue bar that slides in
   from the left on hover and slides out to the right when you leave. */
.home .hdr__in { max-width: none; padding: 0 40px; height: 76px; gap: 0; }
@media (max-width: 900px) { .home .hdr__in { padding: 0 16px; } }
.home .hdr__nav { gap: 0; margin-left: 48px; }
.home .hdr__nav a,
.home #userSlot .hdr__nav {
  position: relative;
  padding: 10px 0;
  margin: 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: #E6ECF3;
  background: none;
  border-radius: 0;
}
.home .hdr__nav a:hover,
.home #userSlot .hdr__nav:hover { color: #fff; background: none; }
.home .hdr__nav a::after,
.home #userSlot .hdr__nav::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.home .hdr__nav a:hover::after,
.home .hdr__nav a.on::after,
.home #userSlot .hdr__nav:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.home .hdr__right { gap: 22px; }
.home #userSlot { gap: 22px; }
.home #userSlot .hdr__nav { margin: 0; }

/* Dashboard. */
.acctpage .hdr { background: #0D1117; border-bottom-color: var(--line); }
.dash { padding-top: 124px; padding-bottom: 80px; min-height: 80vh; }
.dash__top { display: flex; align-items: center; gap: 16px; }
.dash__top img { width: 64px; height: 64px; border-radius: 50%; }
.dash__top h1 { margin: 0 0 6px; font-family: var(--display); font-size: 30px; }
.dash__tabs { display: flex; gap: 28px; margin: 28px 0 24px; border-bottom: 1px solid var(--line); }
.dash__tabs a { position: relative; padding: 10px 0; font-weight: 600; color: var(--muted); transition: color 180ms ease-out; }
.dash__tabs a:hover, .dash__tabs a.on { color: #fff; }
.dash__tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1) !important; }
.dash__tabs a.on::after { transform: scaleX(1); }
.dash__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dash section[data-pane="settings"] { display: grid; gap: 16px; max-width: 640px; }
.dash section[hidden] { display: none; }
.dcard { padding: 22px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); }
.dcard h2 { margin: 0 0 10px; font-family: var(--display); font-size: 18px; }
.dcard p { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.dcard p.dim { margin: 12px 0 0; font-size: 13px; color: var(--dim); }
.dcard--plus { border-color: rgba(45, 151, 248, .45); }
.plan { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; }
.plan span { font-size: 12px; color: var(--dim); }
.dcard .row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.dcard .row span { color: var(--muted); }
.dcard .mono { font-family: ui-monospace, Consolas, monospace; font-weight: 500; }
@media (max-width: 900px) { .dash__grid { grid-template-columns: 1fr; } }

/* The live app in the hero. The iframe renders at the app's own window size and is
   scaled down to fit, so it looks the same as on a desktop. */
.hero__title { font-size: clamp(48px, 7vw, 88px); letter-spacing: -.02em; }
.hero__sub { max-width: 620px; }
.btn-plus { gap: 0; }
.btn-plus b { color: var(--blue); font-weight: 800; margin-left: 1px; }
.showcase { position: relative; height: 640px; }
.showcase iframe {
  position: absolute; top: 0; left: 0;
  width: 1280px; height: 800px; border: 0;
  transform-origin: 0 0;
  background: #070A10;
}
.showcase__note { margin: 14px 0 0; font-size: 13px; color: var(--dim); }
.hero { padding-bottom: 56px; }
.showcase { border-bottom: 1px solid var(--line-2); border-radius: var(--r); }

/* Discord icon gets the same sliding underline as the nav links. */
.hdr__icon { position: relative; background: none !important; }
.hdr__icon::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: right center;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.hdr__icon:hover::after { transform: scaleX(1); transform-origin: left center; }

/* Craze+ page. */
.plus-hero { padding-bottom: 90px; }
.plus-mark { color: var(--blue); margin-left: 2px; }
.plus-more { margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.hero__cta .btn[disabled] { opacity: .6; }
.hdr__burger svg { display: block; width: 24px; height: 24px; }

/* The solid icons read better a size up. */
.panel svg { width: 30px; height: 30px; }
.pillar svg { width: 36px; height: 36px; }
.acct__item svg { width: 18px; height: 18px; }
