:root {
  --black: #0a0a0a;
  --panel: #151515;
  --panel-edge: #2a2424;
  --red: #c62828;
  --red-bright: #e53935;
  --text: #d6d2cc;
  --text-dim: #9a9490;
  --bebas: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --typewriter: "Special Elite", "Courier New", Courier, monospace;
  --nav-track: 0.12em;
  /* Hero CTA tuned when layout image is 1018px wide */
  --layout-ref: 1018;
  --hero-cta-top: 69.5%;
  --header-pad-block: calc(14 * 100vw / var(--layout-ref));
  --header-pad-inline: calc(22 * 100vw / var(--layout-ref));
  --nav-font-size: calc(14 * 100vw / var(--layout-ref));
  --nav-link-gap: calc(13 * 100vw / var(--layout-ref));
  --nav-buy-reserve: calc(176 * 100vw / var(--layout-ref));
  --nav-buy-height: calc(44 * 100vw / var(--layout-ref));
  --footer-join-pad-bottom: 19%;
  --footer-join-nudge-x: 7%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-color: var(--red) #121010;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(90deg, #0a0a0a 0%, #141010 100%);
  border-left: 1px solid rgba(198, 40, 40, 0.22);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b71c1c 0%, #6d1010 55%, #4a0c0c 100%);
  border: 1px solid #1a0a0a;
  box-shadow:
    inset 0 0 0 1px rgba(229, 57, 53, 0.28),
    0 0 10px rgba(198, 40, 40, 0.18);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--red-bright) 0%, #9f1414 55%, #6d1010 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 14px rgba(229, 57, 53, 0.35);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #9f1414 0%, #5c0e0e 100%);
}

::-webkit-scrollbar-corner {
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--bebas);
  color: var(--text);
  background: var(--black);
  letter-spacing: 0.04em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: max(3.25rem, calc(68 * 100vw / var(--layout-ref)));
  padding: var(--header-pad-block) var(--header-pad-inline);
  background: transparent;
  pointer-events: none;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 8px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header a,
.site-header button {
  pointer-events: auto;
}

.site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: max(6px, var(--nav-link-gap));
  max-width: calc(100vw - (var(--header-pad-inline) * 2) - var(--nav-buy-reserve));
}

.nav-link {
  font-family: var(--bebas);
  font-size: max(11px, var(--nav-font-size));
  letter-spacing: var(--nav-track);
  color: #cfc9c2;
  padding: calc(6 * 100vw / var(--layout-ref)) 0 calc(8 * 100vw / var(--layout-ref));
  border-bottom: max(2px, calc(4 * 100vw / var(--layout-ref))) solid transparent;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    text-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--red-bright);
  border-bottom-color: var(--red-bright);
  text-shadow: 0 0 14px rgba(229, 57, 53, 0.55);
}

.nav-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.nav-buy {
  position: absolute;
  top: 50%;
  right: var(--header-pad-inline);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  line-height: 0;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.nav-buy img {
  width: auto;
  height: max(28px, var(--nav-buy-height));
  max-width: none;
}

.nav-buy:hover,
.nav-buy:focus-visible {
  transform: translateY(-50%) scale(1.03);
  filter: brightness(1.08) drop-shadow(0 0 10px rgba(229, 57, 53, 0.45));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(198, 40, 40, 0.35);
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--red-bright);
}

.mobile-nav {
  display: none;
}

/* —— Hero —— */
.hero {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--black);
}

.hero__frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  container-type: inline-size;
  container-name: hero;
}

.hero__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero-cta {
  position: absolute;
  z-index: 2;
  left: 7.25%;
  top: var(--hero-cta-top);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: max(12px, calc(18 * 100vw / var(--layout-ref)));
}

.hero-btn {
  display: block;
  line-height: 0;
  flex: 0 0 auto;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.hero-btn img {
  display: block;
  height: max(40px, calc(56 * 100vw / var(--layout-ref)));
  width: auto;
  object-fit: contain;
}

.hero-btn:hover,
.hero-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

.hero-btn:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 4px;
}

/* —— Footer four panels —— */
.footer-panels {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--black);
}

.footer-panels__frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  container-type: inline-size;
  container-name: footer;
}

.footer-panels__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.footer-panels__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  pointer-events: none;
}

.footer-panels__anchors {
  display: contents;
}

.footer-anchor {
  justify-self: center;
  align-self: start;
  width: 1px;
  height: 1px;
  margin-top: 12%;
  overflow: hidden;
}

#lore.footer-anchor {
  grid-column: 1;
}

#tokenomics.footer-anchor {
  grid-column: 2;
}

#roadmap.footer-anchor {
  grid-column: 3;
}

#community.footer-anchor {
  grid-column: 4;
}

.footer-panel-slot--join {
  grid-column: 4;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 6% var(--footer-join-pad-bottom);
  box-sizing: border-box;
}

.footer-join-btn {
  display: block;
  line-height: 0;
  pointer-events: auto;
  transform: translateX(var(--footer-join-nudge-x));
  transition: transform 0.15s ease, filter 0.15s ease;
}

.footer-join-btn img {
  display: block;
  width: 78%;
  max-width: calc(240px / var(--layout-ref) * 100cqw);
  height: auto;
}

.footer-join-btn:hover,
.footer-join-btn:focus-visible {
  transform: translateX(var(--footer-join-nudge-x)) scale(1.03);
  filter: brightness(1.06) drop-shadow(0 0 12px rgba(229, 57, 53, 0.4));
}

.footer-join-btn:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 4px;
}

/* —— Responsive —— */
.nav-toggle,
.mobile-nav {
  display: none !important;
}