/* ==========================================================================
   layout.css — masthead, drawer, hero, bands, footer, mobile dock
   ========================================================================== */

/* Masthead */
.mast {
  position: sticky; top: 0; z-index: 40;
  background: rgba(4, 20, 36, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--rule);
}
.mast::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(253, 106, 18, .7), transparent);
  opacity: .55;
}
.mast__row { display: flex; align-items: center; gap: 8px; min-height: var(--mast); }
.burger {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; margin-left: -6px; padding: 0;
  border: 0; border-radius: 12px; background: transparent; color: var(--head);
}
.burger .ico { width: 28px; height: 28px; }
.brand { display: block; flex: 0 1 122px; min-width: 84px; }
.brand img { width: 100%; }
.mast__nav { display: none; }
.mast__cta { display: flex; gap: 7px; margin-left: auto; flex: none; }
.mast__cta .cta { min-height: 40px; padding: 6px 12px; border-radius: 12px; font-size: 13.5px; }

/* Drawer */
.veil {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(1, 5, 15, .7);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.panel-nav {
  position: fixed; inset: 0 0 0 auto; z-index: 60;
  display: flex; flex-direction: column; gap: 16px;
  width: min(84vw, 320px); padding: 16px;
  overflow-y: auto;
  background: var(--deck);
  border-left: 1px solid var(--rule);
  box-shadow: var(--lift-2);
  transform: translateX(104%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility .3s ease;
}
.nav-open .panel-nav { transform: none; visibility: visible; }
.nav-open .veil { opacity: 1; visibility: visible; }
.panel-nav__top { display: flex; align-items: center; justify-content: space-between; }
.panel-nav__top img { width: 118px; }
.panel-nav__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 12px; background: var(--slate-2); color: var(--head);
}
.panel-nav__links { display: grid; gap: 2px; counter-reset: navlink; }
.panel-nav__links a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 10px 12px; border-radius: 12px;
  color: var(--head); font-weight: 600; line-height: 1.5;
  counter-increment: navlink;
}
.panel-nav__links a::before { content: counter(navlink, decimal-leading-zero); color: var(--flame-text); font-size: 12.5px; }
.panel-nav__links a:hover { background: var(--slate); text-decoration: none; }
.panel-nav__cta { display: grid; gap: 10px; margin-top: auto; }

/* Hero */
.intro { padding-top: 14px; }
.intro__grid { display: grid; gap: 20px; }
.intro__art { position: relative; }
.intro__frame {
  display: block; overflow: hidden;
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 1px rgba(246, 217, 10, .35), 0 24px 54px rgba(253, 60, 18, .18), var(--lift-2);
}
.intro__frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .7s var(--ease); }
.intro__frame:hover img { transform: scale(1.03); }
.intro__tag {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(3, 9, 27, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--head); font-size: 13px; font-weight: 600; line-height: 1.5;
}
.intro__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(78, 224, 196, .22); }
.intro__copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.intro__date { color: var(--soft); font-size: 13.5px; line-height: 1.5; }
.intro h1 { font-size: clamp(27px, 7.2vw, 46px); line-height: 1.3; }
.intro__lead { font-size: 16.5px; }
.intro__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; order: -2; }
.intro .facts { order: -1; }

/* Bands (page sections) */
.band { padding: 56px 0 0; }
.band--panel { margin-top: 56px; padding: 48px 0; background: linear-gradient(180deg, rgba(11, 29, 48, .75), rgba(4, 20, 36, .4)); border-block: 1px solid var(--rule); }
.band--panel + .band { padding-top: 48px; }
.band__head { max-width: 46rem; margin-bottom: 22px; }
.band__index {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 6px;
  color: var(--flame-text); font-size: 13.5px; font-weight: 700; line-height: 1.5;
}
.band__index span { display: grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid rgba(253, 106, 18, .5); border-radius: 6px; font-size: 12px; }
.band__head h2 { font-size: clamp(24px, 6vw, 36px); line-height: 1.34; }
.band__head p { margin-top: 8px; color: var(--soft); font-size: 15.5px; line-height: 1.75; }
.split { display: grid; gap: 22px; }
.prose > * + * { margin-top: 14px; }
.prose h3 { margin-top: 26px; color: var(--gold-text); font-size: 19px; }
.prose { max-width: var(--measure); }

/* Footer */
.foot { margin-top: 64px; padding: 36px 0 24px; background: var(--deck); border-top: 1px solid var(--rule); }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
.foot__about { grid-column: 1 / -1; }
.foot__about img { width: 132px; }
.foot__about p { max-width: 30rem; margin-top: 10px; color: var(--soft); font-size: 14.5px; line-height: 1.75; }
.foot h2 { font-size: 15.5px; }
.foot ul { display: grid; gap: 1px; margin-top: 8px; }
.foot li a { display: inline-block; padding: 4px 0; color: var(--soft); font-size: 14.5px; line-height: 1.5; }
.foot li a:hover { color: var(--head); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 24px; }
.foot__legal a { padding: 4px 0; color: var(--copy); font-size: 14px; }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--soft); font-size: 13.5px; line-height: 1.6;
}

/* Mobile dock (matches the money-site bottom bar) */
.dock {
  position: fixed; inset: auto 0 0; z-index: 35;
  background: rgba(4, 20, 36, .95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .38);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock ul { display: grid; grid-template-columns: repeat(6, 1fr); min-height: var(--dock); }
.dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 100%; padding: 6px 1px;
  color: var(--head); font-size: 11px; font-weight: 600; line-height: 1.2;
  transition: background .15s ease;
}
.dock a:hover { background: var(--slate); text-decoration: none; }
.dock .is-here { margin: 5px 3px; height: calc(100% - 10px); border-radius: 12px; background: #fff; color: var(--flame); }
.dock .ico { width: 24px; height: 24px; }
.dock .c-wallet .ico { color: #3b8bff; }
.dock .c-gift .ico { color: #b44dff; }
.dock .c-team .ico { color: #ff2f7d; }
.dock .c-vip .ico { color: var(--gold); }
.dock .c-chat .ico { color: var(--mint); }
.has-dock { padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom)); }

/* Responsive */
@media (max-width: 374px) {
  .brand { flex-basis: 92px; }
  .mast__cta .cta { padding: 6px 9px; font-size: 12.5px; }
}

@media (min-width: 640px) {
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 820px) {
  .intro { padding-top: 30px; }
  .intro__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 36px; }
  .intro__art { order: 2; }
  .intro__actions, .intro .facts { order: 0; }
  .intro h1 { font-size: clamp(32px, 4.1vw, 50px); }
  .band { padding-top: 76px; }
  .band--panel { margin-top: 76px; padding: 64px 0; }
  .band--panel + .band { padding-top: 64px; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 36px; }
}

@media (min-width: 1024px) {
  .has-dock { padding-bottom: 0; }
  .burger, .dock { display: none; }
  .brand { flex-basis: 148px; }
  .mast__nav { display: flex; gap: 2px; margin-left: 18px; }
  .mast__nav a {
    padding: 7px 12px; border-radius: 999px;
    color: var(--copy); font-size: 15px; font-weight: 600; line-height: 1.5; white-space: nowrap;
    transition: background .15s ease, color .15s ease;
  }
  .mast__nav a:hover { background: var(--slate); color: var(--head); text-decoration: none; }
  .mast__cta .cta { padding: 6px 18px; font-size: 14.5px; }
  .foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
  .foot__about { grid-column: auto; }
}
