#nav-placeholder {
  min-height: 76px;
  contain: layout;
}

#footer-placeholder {
  min-height: 400px;
  contain: layout;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 197, 61, .14), transparent 32%),
    rgba(12, 12, 10, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #211300;
  font-weight: 900;
  letter-spacing: -.06em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px rgba(255, 183, 31, .22);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand-tagline {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 16px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #1c1100;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 28px rgba(255, 183, 31, .24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 18px 34px rgba(255, 183, 31, .32);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 197, 61, .55);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 197, 61, .14), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(255, 122, 0, .10), transparent 30%),
    #090908;
  padding: 56px 0 26px;
}

.footer-glow {
  position: absolute;
  inset: auto -12% -42% -12%;
  height: 220px;
  background: linear-gradient(90deg, transparent, rgba(255, 197, 61, .10), transparent);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr .85fr .95fr .9fr;
  gap: 34px;
}

.footer-brand p,
.footer-note p {
  color: var(--muted);
  line-height: 1.7;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #211300;
  font-weight: 950;
  letter-spacing: -.06em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 28px rgba(255, 183, 31, .20);
}

.footer-logo strong,
.footer-logo small {
  display: block;
}

.footer-logo strong {
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: -.03em;
}

.footer-logo small {
  margin-top: 3px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .92rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: fit-content;
  color: var(--muted);
  text-decoration: none;
  margin: 9px 0;
  font-weight: 650;
  transition: color .2s ease, transform .2s ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent);
  transform: translateX(2px);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.age-badge,
.rg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 900;
}

.age-badge {
  width: 42px;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.rg-badge {
  padding: 0 14px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
}

.footer-note {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
}

.footer-note p {
  margin: 0;
  font-size: .92rem;
}

.footer-note p + p {
  margin-top: 9px;
}

.footer-note strong {
  color: var(--accent);
}

.copyright {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 0;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-cta {
  color: #1c1100;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1060px) {
  .nav-links {
    gap: 12px;
    font-size: .88rem;
  }

  .nav-actions .btn-ghost {
    display: none;
  }
}

@media (max-width: 880px) {
  #nav-placeholder {
    min-height: 68px;
  }

  .nav-inner {
    min-height: 68px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .burger {
    display: block;
  }

  .mobile-menu {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 6px 0 18px;
  }

  .mobile-menu.is-open {
    display: grid;
    gap: 8px;
  }

  .mobile-menu a:not(.btn) {
    color: var(--muted);
    text-decoration: none;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-weight: 750;
  }

  .mobile-menu a:not(.btn):hover,
  .mobile-menu a:not(.btn):focus-visible {
    color: var(--accent);
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 10px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .brand-name {
    font-size: .96rem;
  }
}

/* Horizontal scroll fix */
.nav-inner,
.mobile-menu,
.footer-inner,
.footer-note,
.copyright {
  max-width: calc(100% - 24px);
}

.brand,
.footer-logo,
.footer-cta,
.btn {
  max-width: 100%;
}

.footer-cta,
.btn {
  white-space: normal;
  text-align: center;
}

.copyright {
  flex-wrap: wrap;
}

@media (max-width: 420px) {
  .brand-tagline {
    display: none;
  }

  .nav-inner {
    width: calc(100% - 20px);
    gap: 10px;
  }

  .mobile-menu {
    width: calc(100% - 20px);
  }
}
